aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/dts/mt7621_netgear_sercomm_chj.dtsi
diff options
context:
space:
mode:
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>2019-10-24 13:36:47 +0200
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>2019-11-06 14:43:04 +0100
commitc7842ceaaa27a72146303362e24e10fbb1bcb213 (patch)
tree56a1c00d65137b54ebec2ff8facf36fdb211eec6 /target/linux/ramips/dts/mt7621_netgear_sercomm_chj.dtsi
parent62b1559b569c47e3b5596b190f3e077f8e70d7f0 (diff)
downloadupstream-c7842ceaaa27a72146303362e24e10fbb1bcb213.tar.gz
upstream-c7842ceaaa27a72146303362e24e10fbb1bcb213.tar.bz2
upstream-c7842ceaaa27a72146303362e24e10fbb1bcb213.zip
ramips: reorganize DTSI files for Netgear R devices
This reorganizes DTSI files for the Netgear R devices in mt7621 (and the WNDR3700 v5). It creates a common DTSI for all R (sercomm) devices and distributes the remaining code in r6220.dtsi to R6220 and WNDR3700 v5. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'target/linux/ramips/dts/mt7621_netgear_sercomm_chj.dtsi')
-rw-r--r--target/linux/ramips/dts/mt7621_netgear_sercomm_chj.dtsi72
1 files changed, 72 insertions, 0 deletions
diff --git a/target/linux/ramips/dts/mt7621_netgear_sercomm_chj.dtsi b/target/linux/ramips/dts/mt7621_netgear_sercomm_chj.dtsi
new file mode 100644
index 0000000000..d09585a753
--- /dev/null
+++ b/target/linux/ramips/dts/mt7621_netgear_sercomm_chj.dtsi
@@ -0,0 +1,72 @@
+// SPDX-License-Identifier: GPL-2.0
+/dts-v1/;
+
+#include "mt7621_netgear_sercomm.dtsi"
+
+/ {
+ keys {
+ compatible = "gpio-keys";
+
+ wps {
+ label = "wps";
+ gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_WPS_BUTTON>;
+ };
+
+ reset {
+ label = "reset";
+ gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_RESTART>;
+ };
+ };
+};
+
+&nand {
+ status = "okay";
+
+ partitions {
+ compatible = "fixed-partitions";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ partition@0 {
+ label = "u-boot";
+ reg = <0x0 0x100000>;
+ read-only;
+ };
+
+ partition@100000 {
+ label = "SC PART_MAP";
+ reg = <0x100000 0x100000>;
+ read-only;
+ };
+
+ partition@200000 {
+ label = "kernel";
+ reg = <0x200000 0x400000>;
+ };
+
+ partition@600000 {
+ label = "ubi";
+ reg = <0x600000 0x2800000>;
+ };
+
+ partition@2e00000 {
+ label = "reserved0";
+ reg = <0x2e00000 0x1800000>;
+ read-only;
+ };
+
+ factory: partition@4600000 {
+ label = "factory";
+ reg = <0x4600000 0x200000>;
+ read-only;
+ };
+
+ partition@4800000 {
+ label = "reserved1";
+ reg = <0x4800000 0x3800000>;
+ read-only;
+ };
+ };
+};