页次: 1
可以对比一下老内核的驱动看看有什么变化,我用的6.1内核IIC功能正常
测试了一下发现没办法在dts中变更设备状态,写在dtsi中才能正常使用I2C
i2c0: i2c@1c27000 {
compatible = "allwinner,suniv-f1c100s-i2c",
"allwinner,sun6i-a31-i2c";
reg = <0x01c27000 0x400>;
interrupts = <7>;
clocks = <&ccu CLK_BUS_I2C0>;
resets = <&ccu RST_BUS_I2C0>;
pinctrl-names = "default";
pinctrl-0 = <&i2c0_pd_pins>;
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
};
&i2c0 {
/*pinctrl-0 = <&i2c0_pd_pins>;
pinctrl-name = "default";
status = "okay";*/
ssd1306:oled@3c{
compatible = "solomon,ssd1306fb-i2c";
reg = <0x3c>;
solomon,height = <64>;
solomon,width = <128>;
};
};
页次: 1