0001 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
0002 /*
0003 * Device Tree file for the Linksys WRT3200ACM (Rango)
0004 *
0005 * Copyright (C) 2016 Imre Kaloz <kaloz@openwrt.org>
0006 */
0007
0008 /dts-v1/;
0009 #include <dt-bindings/gpio/gpio.h>
0010 #include <dt-bindings/input/input.h>
0011 #include "armada-385-linksys.dtsi"
0012
0013 / {
0014 model = "Linksys WRT3200ACM";
0015 compatible = "linksys,rango", "linksys,armada385", "marvell,armada385",
0016 "marvell,armada380";
0017 };
0018
0019 &expander0 {
0020 wan_amber@0 {
0021 label = "rango:amber:wan";
0022 reg = <0x0>;
0023 };
0024
0025 wan_white@1 {
0026 label = "rango:white:wan";
0027 reg = <0x1>;
0028 };
0029
0030 usb2@5 {
0031 label = "rango:white:usb2";
0032 reg = <0x5>;
0033 };
0034
0035 usb3_1@6 {
0036 label = "rango:white:usb3_1";
0037 reg = <0x6>;
0038 };
0039
0040 usb3_2@7 {
0041 label = "rango:white:usb3_2";
0042 reg = <0x7>;
0043 };
0044
0045 wps_white@8 {
0046 label = "rango:white:wps";
0047 reg = <0x8>;
0048 };
0049
0050 wps_amber@9 {
0051 label = "rango:amber:wps";
0052 reg = <0x9>;
0053 };
0054 };
0055
0056 &gpio_leds {
0057 power {
0058 gpios = <&gpio1 24 GPIO_ACTIVE_HIGH>;
0059 label = "rango:white:power";
0060 };
0061
0062 sata {
0063 gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
0064 label = "rango:white:sata";
0065 };
0066
0067 wlan_2g {
0068 gpios = <&gpio1 13 GPIO_ACTIVE_LOW>;
0069 label = "rango:white:wlan_2g";
0070 };
0071
0072 wlan_5g {
0073 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
0074 label = "rango:white:wlan_5g";
0075 };
0076 };
0077
0078 &gpio_leds_pins {
0079 marvell,pins = "mpp21", "mpp45", "mpp46", "mpp56";
0080 };
0081
0082 &nand {
0083 /* AMD/Spansion S34ML02G2 256MiB, OEM Layout */
0084 partitions {
0085 compatible = "fixed-partitions";
0086 #address-cells = <1>;
0087 #size-cells = <1>;
0088
0089 partition@0 {
0090 label = "u-boot";
0091 reg = <0x0000000 0x200000>; /* 2MiB */
0092 read-only;
0093 };
0094
0095 partition@200000 {
0096 label = "u_env";
0097 reg = <0x200000 0x20000>; /* 128KiB */
0098 };
0099
0100 partition@220000 {
0101 label = "s_env";
0102 reg = <0x220000 0x40000>; /* 256KiB */
0103 };
0104
0105 partition@7e0000 {
0106 label = "devinfo";
0107 reg = <0x7e0000 0x40000>; /* 256KiB */
0108 read-only;
0109 };
0110
0111 partition@820000 {
0112 label = "sysdiag";
0113 reg = <0x820000 0x1e0000>; /* 1920KiB */
0114 read-only;
0115 };
0116
0117 /* kernel1 overlaps with rootfs1 by design */
0118 partition@a00000 {
0119 label = "kernel1";
0120 reg = <0xa00000 0x5000000>; /* 80MiB */
0121 };
0122
0123 partition@1000000 {
0124 label = "rootfs1";
0125 reg = <0x1000000 0x4a00000>; /* 74MiB */
0126 };
0127
0128 /* kernel2 overlaps with rootfs2 by design */
0129 partition@5a00000 {
0130 label = "kernel2";
0131 reg = <0x5a00000 0x5000000>; /* 80MiB */
0132 };
0133
0134 partition@6000000 {
0135 label = "rootfs2";
0136 reg = <0x6000000 0x4a00000>; /* 74MiB */
0137 };
0138
0139 /*
0140 * 86MiB, last MiB is for the BBT, not writable
0141 */
0142 partition@aa00000 {
0143 label = "syscfg";
0144 reg = <0xaa00000 0x5600000>;
0145 };
0146
0147 /*
0148 * Unused area between "s_env" and "devinfo".
0149 * Moved here because otherwise the renumbered
0150 * partitions would break the bootloader
0151 * supplied bootargs
0152 */
0153 partition@180000 {
0154 label = "unused_area";
0155 reg = <0x260000 0x5c0000>; /* 5.75MiB */
0156 };
0157 };
0158 };
0159
0160 &sdhci {
0161 pinctrl-names = "default";
0162 pinctrl-0 = <&sdhci_pins>;
0163 no-1-8-v;
0164 non-removable;
0165 wp-inverted;
0166 bus-width = <8>;
0167 status = "okay";
0168 };
0169
0170 &usb3_1_vbus {
0171 gpio = <&gpio1 12 GPIO_ACTIVE_HIGH>;
0172 };
0173
0174 &usb3_1_vbus_pins {
0175 marvell,pins = "mpp44";
0176 };