aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Badaire <mbadaire@gmail.com>2018-05-22 12:06:55 +0200
committerJohn Crispin <john@phrozen.org>2018-05-22 21:02:01 +0200
commit52809db5446e1c4fbdaa50b703961d036c14bceb (patch)
treed3e4e4c0376906bc483453c0e180295406586090
parenta7e1e919afa9659f66dada5e69d1b162f447ced7 (diff)
downloadupstream-52809db5446e1c4fbdaa50b703961d036c14bceb.tar.gz
upstream-52809db5446e1c4fbdaa50b703961d036c14bceb.tar.bz2
upstream-52809db5446e1c4fbdaa50b703961d036c14bceb.zip
ramips: fix to mt7620a and add support for i2c on WD03
There was an error on initial commit, the proper soc is mt7620n (which is more limited than mt7620a). Moreover, there is a battery management controller connected to the i2c port of the mt7620n. I have a small piece of i2c code to get battery level coming. Signed-off-by: Matthias Badaire <mbadaire@gmail.com>
-rw-r--r--target/linux/ramips/dts/WD03.dts6
1 files changed, 5 insertions, 1 deletions
diff --git a/target/linux/ramips/dts/WD03.dts b/target/linux/ramips/dts/WD03.dts
index 454e757ce1..1552ae8259 100644
--- a/target/linux/ramips/dts/WD03.dts
+++ b/target/linux/ramips/dts/WD03.dts
@@ -6,7 +6,7 @@
#include <dt-bindings/input/input.h>
/ {
- compatible = "ravpower,wd03", "ralink,mt7620a-soc";
+ compatible = "ravpower,wd03", "ralink,mt7620n-soc";
model = "Ravpower WD03";
chosen {
@@ -50,6 +50,10 @@
status = "okay";
};
+&i2c {
+ status = "okay";
+};
+
&spi0 {
status = "okay";