summaryrefslogtreecommitdiff
path: root/target/linux/ramips/dts/F5D8235_V1.dts
diff options
context:
space:
mode:
authorTobias Wolf <git-NTEO@vplace.de>2016-12-01 15:08:22 +0100
committerMathias Kresin <dev@kresin.me>2016-12-04 07:03:17 +0100
commitc2ed721e89156d3b37d2bcbc9155f31bb1aa97b2 (patch)
treeea5b97d3d4456d4782eafd7975bedbc7ccddd570 /target/linux/ramips/dts/F5D8235_V1.dts
parent62e4c915ee867b5c3610fcc150d3a6bf90cbb130 (diff)
downloadmtk-20170518-c2ed721e89156d3b37d2bcbc9155f31bb1aa97b2.zip
mtk-20170518-c2ed721e89156d3b37d2bcbc9155f31bb1aa97b2.tar.gz
mtk-20170518-c2ed721e89156d3b37d2bcbc9155f31bb1aa97b2.tar.bz2
ramips: improve F5D8235 V1 support
This fixes the partition name for the firmware splitter, the cfi address and adds the mtd-eeprom address for wmac. It adds additional LEDs and make use of them in diag.sh and 01_leds. Please note that the ":blue:wired" LED is used because the ":blue:router" behaviour is unpredictable for failsafe indication. The issue with the router LED is that you have two states only. "off" is steady on and "on" blinks. Therefore the wired LED is more suitable. Furthermore it reuses the correct switch configuration definition to reflect the device ports and numbering. Additionally fixes the issue that the default configuration is not applied as no port 6 exists on this device. Signed-off-by: Tobias Wolf <github-NTEO@vplace.de>
Diffstat (limited to 'target/linux/ramips/dts/F5D8235_V1.dts')
-rw-r--r--target/linux/ramips/dts/F5D8235_V1.dts85
1 files changed, 69 insertions, 16 deletions
diff --git a/target/linux/ramips/dts/F5D8235_V1.dts b/target/linux/ramips/dts/F5D8235_V1.dts
index 74e423c..4d95860 100644
--- a/target/linux/ramips/dts/F5D8235_V1.dts
+++ b/target/linux/ramips/dts/F5D8235_V1.dts
@@ -2,6 +2,7 @@
#include "rt2880.dtsi"
+#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
/ {
@@ -12,7 +13,7 @@
cfi@1f000000 {
compatible = "cfi-flash";
- reg = <0x1f000000 0x800000>;
+ reg = <0xbc400000 0x800000>;
bank-width = <2>;
device-width = <2>;
#address-cells = <1>;
@@ -37,15 +38,15 @@
};
partition@50000 {
- label = "linux";
- reg = <0x50000 0x3b0000>;
+ label = "firmware";
+ reg = <0x50000 0x7b0000>;
};
};
rtl8366s {
compatible = "realtek,rtl8366s";
- gpio-sda = <&gpio0 1 0>;
- gpio-sck = <&gpio0 2 0>;
+ gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>;
+ gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>;
};
gpio-keys-polled {
@@ -56,13 +57,13 @@
wps {
label = "wps";
- gpios = <&gpio0 0 1>;
+ gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
linux,code = <KEY_WPS_BUTTON>;
};
reset {
label = "reset";
- gpios = <&gpio0 9 1>;
+ gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>;
};
};
@@ -70,14 +71,69 @@
gpio-leds {
compatible = "gpio-leds";
+ internet {
+ label = "f5d8235-v1:blue:internet";
+ gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
+ };
+
+ internet2 {
+ label = "f5d8235-v1:amber:internet";
+ gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
+ };
+
+ modem {
+ label = "f5d8235-v1:blue:modem";
+ gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
+ };
+
+ modem2 {
+ label = "f5d8235-v1:amber:modem";
+ gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
+ };
+
+ router {
+ label = "f5d8235-v1:blue:router";
+ gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
+ };
+
storage {
label = "f5d8235-v1:blue:storage";
- gpios = <&gpio0 7 1>;
+ gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
};
storage2 {
- label = "f5d8235-v1:orange:storage";
- gpios = <&gpio0 8 1>;
+ label = "f5d8235-v1:amber:storage";
+ gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
+ };
+
+ security {
+ label = "f5d8235-v1:blue:security";
+ gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
+ };
+
+ security2 {
+ label = "f5d8235-v1:amber:security";
+ gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
+ };
+
+ wired {
+ label = "f5d8235-v1:blue:wired";
+ gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
+ };
+
+ wired2 {
+ label = "f5d8235-v1:amber:wired";
+ gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
+ };
+
+ wireless {
+ label = "f5d8235-v1:blue:wireless";
+ gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
+ };
+
+ wireless2 {
+ label = "f5d8235-v1:amber:wireless";
+ gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
};
};
};
@@ -89,7 +145,7 @@
&pinctrl {
state_default: pinctrl0 {
gpio {
- ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
+ ralink,group = "spi", "i2c", "jtag", "mdio", "uartlite";
ralink,function = "gpio";
};
};
@@ -104,10 +160,7 @@
};
};
-/* FIXME: no u-boot partition and 0x40000@uboot is out of boundaries */
-/*&wmac {
+&wmac {
status = "okay";
- ralink,mtd-eeprom = <&u-boot 0x40000>;
+ ralink,mtd-eeprom = <&factory 0x0>;
};
-*/
-