修改arch/arm/boot/dts/imx6ull.dtsi,i2c1 status okay
i2c1: i2c@021a0000 {
#address-cells = <1>;
#size-cells = <0>;
compatible = “fsl,imx6ul-i2c”, “fsl,imx21-i2c”;
reg = <0x021a0000 0x4000>;
interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clks IMX6UL_CLK_I2C1>;
status = “okay”;
};
编译设备树放入板子/boot之后,reboot。找不到对应的设备节点,是不是还需要重新编译一下i2c-imx模块?加载之后才能找到?请问下如何操作的?
教程中是说的修改这个设备树文件吗?找不到是在 /dev下面找不到吗,看看 /sys/firmware/devicetree/base 这个路径下有没有呢。