summaryrefslogtreecommitdiff
path: root/target
diff options
context:
space:
mode:
authorMatthias Badaire <mbadaire@gmail.com>2018-05-08 15:42:05 +0200
committerJohn Crispin <john@phrozen.org>2018-05-15 06:39:46 +0200
commita0685deec458bf81128ded8e992b33c32dce63ca (patch)
treeb6b10eb6dc01a330b887848e6fc4812f17fa4075 /target
parente09d4c850d7f9b8dd840ed8066fd2f6cfc819a84 (diff)
downloadmtk-20170518-a0685deec458bf81128ded8e992b33c32dce63ca.zip
mtk-20170518-a0685deec458bf81128ded8e992b33c32dce63ca.tar.gz
mtk-20170518-a0685deec458bf81128ded8e992b33c32dce63ca.tar.bz2
ramips: Add i2c support for mt7620n
I2c is supported on mt7620n like on mt7620a when checking the datasheet Signed-off-by: Matthias Badaire <mbadaire@gmail.com>
Diffstat (limited to 'target')
-rw-r--r--target/linux/ramips/dts/mt7620n.dtsi23
1 files changed, 23 insertions, 0 deletions
diff --git a/target/linux/ramips/dts/mt7620n.dtsi b/target/linux/ramips/dts/mt7620n.dtsi
index 4eb1dde..91d124c 100644
--- a/target/linux/ramips/dts/mt7620n.dtsi
+++ b/target/linux/ramips/dts/mt7620n.dtsi
@@ -160,6 +160,22 @@
status = "disabled";
};
+ i2c: i2c@900 {
+ compatible = "ralink,rt2880-i2c";
+ reg = <0x900 0x100>;
+
+ resets = <&rstctrl 16>;
+ reset-names = "i2c";
+
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ status = "disabled";
+
+ pinctrl-names = "default";
+ pinctrl-0 = <&i2c_pins>;
+ };
+
spi0: spi@b00 {
compatible = "ralink,mt7620a-spi", "ralink,rt2880-spi";
reg = <0xb00 0x40>;
@@ -192,6 +208,13 @@
pinctrl-0 = <&spi_cs1>;
};
+ i2c_pins: i2c {
+ i2c {
+ ralink,group = "i2c";
+ ralink,function = "i2c";
+ };
+ };
+
uartlite: uartlite@c00 {
compatible = "ralink,mt7620a-uart", "ralink,rt2880-uart", "ns16550a";
reg = <0xc00 0x100>;