1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0 OR MIT) 2*f126890aSEmmanuel Vadot/* 3*f126890aSEmmanuel Vadot * Device Tree file for the Linksys WRT3200ACM (Rango) 4*f126890aSEmmanuel Vadot * 5*f126890aSEmmanuel Vadot * Copyright (C) 2016 Imre Kaloz <kaloz@openwrt.org> 6*f126890aSEmmanuel Vadot */ 7*f126890aSEmmanuel Vadot 8*f126890aSEmmanuel Vadot/dts-v1/; 9*f126890aSEmmanuel Vadot#include <dt-bindings/gpio/gpio.h> 10*f126890aSEmmanuel Vadot#include <dt-bindings/input/input.h> 11*f126890aSEmmanuel Vadot#include "armada-385-linksys.dtsi" 12*f126890aSEmmanuel Vadot 13*f126890aSEmmanuel Vadot/ { 14*f126890aSEmmanuel Vadot model = "Linksys WRT3200ACM"; 15*f126890aSEmmanuel Vadot compatible = "linksys,rango", "linksys,armada385", "marvell,armada385", 16*f126890aSEmmanuel Vadot "marvell,armada380"; 17*f126890aSEmmanuel Vadot}; 18*f126890aSEmmanuel Vadot 19*f126890aSEmmanuel Vadot&expander0 { 20*f126890aSEmmanuel Vadot wan_amber@0 { 21*f126890aSEmmanuel Vadot label = "rango:amber:wan"; 22*f126890aSEmmanuel Vadot reg = <0x0>; 23*f126890aSEmmanuel Vadot }; 24*f126890aSEmmanuel Vadot 25*f126890aSEmmanuel Vadot wan_white@1 { 26*f126890aSEmmanuel Vadot label = "rango:white:wan"; 27*f126890aSEmmanuel Vadot reg = <0x1>; 28*f126890aSEmmanuel Vadot }; 29*f126890aSEmmanuel Vadot 30*f126890aSEmmanuel Vadot usb2@5 { 31*f126890aSEmmanuel Vadot label = "rango:white:usb2"; 32*f126890aSEmmanuel Vadot reg = <0x5>; 33*f126890aSEmmanuel Vadot }; 34*f126890aSEmmanuel Vadot 35*f126890aSEmmanuel Vadot usb3_1@6 { 36*f126890aSEmmanuel Vadot label = "rango:white:usb3_1"; 37*f126890aSEmmanuel Vadot reg = <0x6>; 38*f126890aSEmmanuel Vadot }; 39*f126890aSEmmanuel Vadot 40*f126890aSEmmanuel Vadot usb3_2@7 { 41*f126890aSEmmanuel Vadot label = "rango:white:usb3_2"; 42*f126890aSEmmanuel Vadot reg = <0x7>; 43*f126890aSEmmanuel Vadot }; 44*f126890aSEmmanuel Vadot 45*f126890aSEmmanuel Vadot wps_white@8 { 46*f126890aSEmmanuel Vadot label = "rango:white:wps"; 47*f126890aSEmmanuel Vadot reg = <0x8>; 48*f126890aSEmmanuel Vadot }; 49*f126890aSEmmanuel Vadot 50*f126890aSEmmanuel Vadot wps_amber@9 { 51*f126890aSEmmanuel Vadot label = "rango:amber:wps"; 52*f126890aSEmmanuel Vadot reg = <0x9>; 53*f126890aSEmmanuel Vadot }; 54*f126890aSEmmanuel Vadot}; 55*f126890aSEmmanuel Vadot 56*f126890aSEmmanuel Vadot&gpio_leds { 57*f126890aSEmmanuel Vadot led-power { 58*f126890aSEmmanuel Vadot gpios = <&gpio1 24 GPIO_ACTIVE_HIGH>; 59*f126890aSEmmanuel Vadot label = "rango:white:power"; 60*f126890aSEmmanuel Vadot }; 61*f126890aSEmmanuel Vadot 62*f126890aSEmmanuel Vadot led-sata { 63*f126890aSEmmanuel Vadot gpios = <&gpio0 21 GPIO_ACTIVE_LOW>; 64*f126890aSEmmanuel Vadot label = "rango:white:sata"; 65*f126890aSEmmanuel Vadot }; 66*f126890aSEmmanuel Vadot 67*f126890aSEmmanuel Vadot led-wlan_2g { 68*f126890aSEmmanuel Vadot gpios = <&gpio1 13 GPIO_ACTIVE_LOW>; 69*f126890aSEmmanuel Vadot label = "rango:white:wlan_2g"; 70*f126890aSEmmanuel Vadot }; 71*f126890aSEmmanuel Vadot 72*f126890aSEmmanuel Vadot led-wlan_5g { 73*f126890aSEmmanuel Vadot gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; 74*f126890aSEmmanuel Vadot label = "rango:white:wlan_5g"; 75*f126890aSEmmanuel Vadot }; 76*f126890aSEmmanuel Vadot}; 77*f126890aSEmmanuel Vadot 78*f126890aSEmmanuel Vadot&gpio_leds_pins { 79*f126890aSEmmanuel Vadot marvell,pins = "mpp21", "mpp45", "mpp46", "mpp56"; 80*f126890aSEmmanuel Vadot}; 81*f126890aSEmmanuel Vadot 82*f126890aSEmmanuel Vadot&nand { 83*f126890aSEmmanuel Vadot /* AMD/Spansion S34ML02G2 256MiB, OEM Layout */ 84*f126890aSEmmanuel Vadot partitions { 85*f126890aSEmmanuel Vadot compatible = "fixed-partitions"; 86*f126890aSEmmanuel Vadot #address-cells = <1>; 87*f126890aSEmmanuel Vadot #size-cells = <1>; 88*f126890aSEmmanuel Vadot 89*f126890aSEmmanuel Vadot partition@0 { 90*f126890aSEmmanuel Vadot label = "u-boot"; 91*f126890aSEmmanuel Vadot reg = <0x0000000 0x200000>; /* 2MiB */ 92*f126890aSEmmanuel Vadot read-only; 93*f126890aSEmmanuel Vadot }; 94*f126890aSEmmanuel Vadot 95*f126890aSEmmanuel Vadot partition@200000 { 96*f126890aSEmmanuel Vadot label = "u_env"; 97*f126890aSEmmanuel Vadot reg = <0x200000 0x20000>; /* 128KiB */ 98*f126890aSEmmanuel Vadot }; 99*f126890aSEmmanuel Vadot 100*f126890aSEmmanuel Vadot partition@220000 { 101*f126890aSEmmanuel Vadot label = "s_env"; 102*f126890aSEmmanuel Vadot reg = <0x220000 0x40000>; /* 256KiB */ 103*f126890aSEmmanuel Vadot }; 104*f126890aSEmmanuel Vadot 105*f126890aSEmmanuel Vadot partition@7e0000 { 106*f126890aSEmmanuel Vadot label = "devinfo"; 107*f126890aSEmmanuel Vadot reg = <0x7e0000 0x40000>; /* 256KiB */ 108*f126890aSEmmanuel Vadot read-only; 109*f126890aSEmmanuel Vadot }; 110*f126890aSEmmanuel Vadot 111*f126890aSEmmanuel Vadot partition@820000 { 112*f126890aSEmmanuel Vadot label = "sysdiag"; 113*f126890aSEmmanuel Vadot reg = <0x820000 0x1e0000>; /* 1920KiB */ 114*f126890aSEmmanuel Vadot read-only; 115*f126890aSEmmanuel Vadot }; 116*f126890aSEmmanuel Vadot 117*f126890aSEmmanuel Vadot /* kernel1 overlaps with rootfs1 by design */ 118*f126890aSEmmanuel Vadot partition@a00000 { 119*f126890aSEmmanuel Vadot label = "kernel1"; 120*f126890aSEmmanuel Vadot reg = <0xa00000 0x5000000>; /* 80MiB */ 121*f126890aSEmmanuel Vadot }; 122*f126890aSEmmanuel Vadot 123*f126890aSEmmanuel Vadot partition@1000000 { 124*f126890aSEmmanuel Vadot label = "rootfs1"; 125*f126890aSEmmanuel Vadot reg = <0x1000000 0x4a00000>; /* 74MiB */ 126*f126890aSEmmanuel Vadot }; 127*f126890aSEmmanuel Vadot 128*f126890aSEmmanuel Vadot /* kernel2 overlaps with rootfs2 by design */ 129*f126890aSEmmanuel Vadot partition@5a00000 { 130*f126890aSEmmanuel Vadot label = "kernel2"; 131*f126890aSEmmanuel Vadot reg = <0x5a00000 0x5000000>; /* 80MiB */ 132*f126890aSEmmanuel Vadot }; 133*f126890aSEmmanuel Vadot 134*f126890aSEmmanuel Vadot partition@6000000 { 135*f126890aSEmmanuel Vadot label = "rootfs2"; 136*f126890aSEmmanuel Vadot reg = <0x6000000 0x4a00000>; /* 74MiB */ 137*f126890aSEmmanuel Vadot }; 138*f126890aSEmmanuel Vadot 139*f126890aSEmmanuel Vadot /* 140*f126890aSEmmanuel Vadot * 86MiB, last MiB is for the BBT, not writable 141*f126890aSEmmanuel Vadot */ 142*f126890aSEmmanuel Vadot partition@aa00000 { 143*f126890aSEmmanuel Vadot label = "syscfg"; 144*f126890aSEmmanuel Vadot reg = <0xaa00000 0x5600000>; 145*f126890aSEmmanuel Vadot }; 146*f126890aSEmmanuel Vadot 147*f126890aSEmmanuel Vadot /* 148*f126890aSEmmanuel Vadot * Unused area between "s_env" and "devinfo". 149*f126890aSEmmanuel Vadot * Moved here because otherwise the renumbered 150*f126890aSEmmanuel Vadot * partitions would break the bootloader 151*f126890aSEmmanuel Vadot * supplied bootargs 152*f126890aSEmmanuel Vadot */ 153*f126890aSEmmanuel Vadot partition@180000 { 154*f126890aSEmmanuel Vadot label = "unused_area"; 155*f126890aSEmmanuel Vadot reg = <0x260000 0x5c0000>; /* 5.75MiB */ 156*f126890aSEmmanuel Vadot }; 157*f126890aSEmmanuel Vadot }; 158*f126890aSEmmanuel Vadot}; 159*f126890aSEmmanuel Vadot 160*f126890aSEmmanuel Vadot&sdhci { 161*f126890aSEmmanuel Vadot pinctrl-names = "default"; 162*f126890aSEmmanuel Vadot pinctrl-0 = <&sdhci_pins>; 163*f126890aSEmmanuel Vadot no-1-8-v; 164*f126890aSEmmanuel Vadot non-removable; 165*f126890aSEmmanuel Vadot wp-inverted; 166*f126890aSEmmanuel Vadot bus-width = <8>; 167*f126890aSEmmanuel Vadot status = "okay"; 168*f126890aSEmmanuel Vadot}; 169*f126890aSEmmanuel Vadot 170*f126890aSEmmanuel Vadot&usb3_1_vbus { 171*f126890aSEmmanuel Vadot gpio = <&gpio1 12 GPIO_ACTIVE_HIGH>; 172*f126890aSEmmanuel Vadot}; 173*f126890aSEmmanuel Vadot 174*f126890aSEmmanuel Vadot&usb3_1_vbus_pins { 175*f126890aSEmmanuel Vadot marvell,pins = "mpp44"; 176*f126890aSEmmanuel Vadot}; 177