ath79: fix I2C on GL-AR300M devices
[openwrt/staging/chunkeey.git] / target / linux / ath79 / dts / qca9531_glinet_gl-ar300m.dtsi
index 2eaff61f50b5ce58a057ec53ba24e970d6a2802e..47fda91a0c787ebe01ed3b0b2bbf109b5db56df8 100644 (file)
@@ -72,6 +72,9 @@
        i2c: i2c {
                compatible = "i2c-gpio";
 
+               pinctrl-names = "default";
+               pinctrl-0 = <&enable_gpio17>;
+
                sda-gpios = <&gpio 17 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
                scl-gpios = <&gpio 16 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
        };
                reg = <0x0 0x6>;
        };
 };
+
+&pinmux {
+       enable_gpio17: pinmux_enable_gpio17 {
+               pinctrl-single,bits = <0x10 0x0000 0xff00>;
+       };
+};