aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ath79/dts
diff options
context:
space:
mode:
authorJeff Kletsky <git-commits@allycomm.com>2019-10-23 09:55:02 -0700
committerJohn Crispin <john@phrozen.org>2019-10-24 23:00:49 +0200
commit1f748df085590daf4d220b50123082bb0d9b465c (patch)
treeb7342e3c8d7cc3454e78d9010515e15bfb8af651 /target/linux/ath79/dts
parent736d16baad35a1fcbf22edac8d7d9eccae686a33 (diff)
downloadupstream-1f748df085590daf4d220b50123082bb0d9b465c.tar.gz
upstream-1f748df085590daf4d220b50123082bb0d9b465c.tar.bz2
upstream-1f748df085590daf4d220b50123082bb0d9b465c.zip
ath79: GL-AR750S: Add I2C Support
The GL-AR750S has an internal header for I2C. Provide DTS definitions for the i2c-gpio driver. The I2C drivers; kmod-i2c-core, kmod-i2c-gpio consume ~20 kB of flash and can be loaded as modules, Default clock measured ~11.2 ms period, ~89 kHz The board has well-labeled (unpopulated) headers for serial and I2C along the front edge of the board (the edge with the LEDs). Looking from the top, rear of the unit (behind Ethernet jacks) ------------------------------------------- 5G_LED 2G_LED PWR_LED O O O O O O O 3 S S G T R G V C D N X X N 3 L A D D Signed-off-by: Jeff Kletsky <git-commits@allycomm.com>
Diffstat (limited to 'target/linux/ath79/dts')
-rw-r--r--target/linux/ath79/dts/qca9563_glinet_gl-ar750s.dts7
1 files changed, 7 insertions, 0 deletions
diff --git a/target/linux/ath79/dts/qca9563_glinet_gl-ar750s.dts b/target/linux/ath79/dts/qca9563_glinet_gl-ar750s.dts
index 24198e8043..4f65b2d2e2 100644
--- a/target/linux/ath79/dts/qca9563_glinet_gl-ar750s.dts
+++ b/target/linux/ath79/dts/qca9563_glinet_gl-ar750s.dts
@@ -63,6 +63,13 @@
};
};
+ i2c: i2c {
+ compatible = "i2c-gpio";
+
+ sda-gpios = <&gpio 5 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
+ scl-gpios = <&gpio 21 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
+ };
+
usb_vbus: regulator-usb-vbus {
compatible = "regulator-fixed";