ath79: allow use GPIO17 as regular gpio on GL-AR300M devices
authorPtilopsis Leucotis <PtilopsisLeucotis@yandex.com>
Sun, 15 May 2022 16:15:03 +0000 (19:15 +0300)
committerHauke Mehrtens <hauke@hauke-m.de>
Tue, 7 Jun 2022 20:28:59 +0000 (22:28 +0200)
Small update to my previous path 'fix I2C on GL-AR300M devices'.
This update allow using GPIO17 as regular GPIO in case it not used
as I2C SDA line.

Signed-off-by: Ptilopsis Leucotis <PtilopsisLeucotis@yandex.com>
(cherry picked from commit 493080815d2ba6e3b7740dbd45c44310935aeebc)

target/linux/ath79/dts/qca9531_glinet_gl-ar300m.dtsi

index 47fda91a0c787ebe01ed3b0b2bbf109b5db56df8..d64ffa7115d2616e508d6d16e6d1273ce0fd213e 100644 (file)
@@ -72,9 +72,6 @@
        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)>;
        };
 };
 
 &pinmux {
+       pinctrl-names = "default";
+       pinctrl-0 = <&enable_gpio17>;
+
        enable_gpio17: pinmux_enable_gpio17 {
                pinctrl-single,bits = <0x10 0x0000 0xff00>;
        };