Firefly开源社区

标题: 最新sdk rk3288_linux_release_20210304 I2C复用问题 [打印本页]

作者: xuhao    时间: 2022-4-14 16:57
标题: 最新sdk rk3288_linux_release_20210304 I2C复用问题
参考https://wiki.t-firefly.com/zh_CN/AIO-3288C/driver_gpio.html
代码与说明不匹配,
自己修改后,GPIO只能是拉高,无法清零
修改 kernel/arch/arm/boot/dts/rk3288.dts 如下
506     i2c4: i2c@ff160000 {                                                                                                                                                
507         compatible = "rockchip,rk3288-i2c";
508         reg = <0x0 0xff160000 0x0 0x1000>;
509         interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>;
510         #address-cells = <1>;
511         #size-cells = <0>;
512         clock-names = "i2c";
513         clocks = <&cru PCLK_I2C4>;
514         pinctrl-names = "default", "gpio";
515         pinctrl-0 = <&i2c4_xfer>;
516         pinctrl-1 = <&i2c4_gpio>;
517         status = "disabled";
518     };

2177         i2c4 {                                                                                                                                                
2178             i2c4_xfer: i2c4-xfer {
2179                 rockchip,pins = <7 17 RK_FUNC_1 &pcfg_pull_none>,
2180                         <7 18 RK_FUNC_1 &pcfg_pull_none>;
2181             };
2182             i2c4_gpio: i2c4-gpio {
2183                 rockchip,pins = <7 17 RK_FUNC_GPIO &pcfg_pull_none>,
2184                         <7 18 RK_FUNC_GPIO &pcfg_pull_none>;
2185             };
2186
2187         };


作者: xuhao    时间: 2022-4-15 08:39
已解决,自身原因。




欢迎光临 Firefly开源社区 (https://dev.t-firefly.com/) Powered by Discuz! X3.1