aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorPtilopsis Leucotis <PtilopsisLeucotis@yandex.com>2022-05-15 19:15:03 +0300
committerHauke Mehrtens <hauke@hauke-m.de>2022-06-07 22:28:59 +0200
commite8fedf26ab82cc295560b9add2b98008ced89818 (patch)
tree30602ffa8be3dcbffe5407a634fc296544f8441c /target/linux
parentc29641f71834393836b969180013cb95c8ce8576 (diff)
downloadupstream-e8fedf26ab82cc295560b9add2b98008ced89818.tar.gz
upstream-e8fedf26ab82cc295560b9add2b98008ced89818.tar.bz2
upstream-e8fedf26ab82cc295560b9add2b98008ced89818.zip
ath79: allow use GPIO17 as regular gpio on GL-AR300M devices
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)
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/ath79/dts/qca9531_glinet_gl-ar300m.dtsi6
1 files changed, 3 insertions, 3 deletions
diff --git a/target/linux/ath79/dts/qca9531_glinet_gl-ar300m.dtsi b/target/linux/ath79/dts/qca9531_glinet_gl-ar300m.dtsi
index 47fda91a0c..d64ffa7115 100644
--- a/target/linux/ath79/dts/qca9531_glinet_gl-ar300m.dtsi
+++ b/target/linux/ath79/dts/qca9531_glinet_gl-ar300m.dtsi
@@ -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)>;
};
@@ -186,6 +183,9 @@
};
&pinmux {
+ pinctrl-names = "default";
+ pinctrl-0 = <&enable_gpio17>;
+
enable_gpio17: pinmux_enable_gpio17 {
pinctrl-single,bits = <0x10 0x0000 0xff00>;
};