1 // SPDX-License-Identifier: GPL-2.0-only
2 // Copyright (C) 2016 Jamie Lentin <jm@lentin.co.uk>
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/input.h>
8 #include "orion5x-mv88f5181.dtsi"
11 model = "Netgear WNR854-t";
12 compatible = "netgear,wnr854t", "marvell,orion5x-88f5181",
19 device_type = "memory";
20 reg = <0x00000000 0x2000000>; /* 32 MB */
24 stdout-path = "serial0:115200n8";
28 ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000>,
29 <MBUS_ID(0x09, 0x00) 0 0xf2200000 0x800>,
30 <MBUS_ID(0x01, 0x0f) 0 0xf4000000 0x800000>;
34 compatible = "gpio-keys";
35 pinctrl-0 = <&pmx_reset_button>;
36 pinctrl-names = "default";
39 label = "Reset Button";
40 linux,code = <KEY_RESTART>;
41 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
46 compatible = "gpio-leds";
47 pinctrl-0 = <&pmx_power_led &pmx_power_led_blink &pmx_wan_led>;
48 pinctrl-names = "default";
51 label = "wnr854t:green:power";
52 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
56 label = "wnr854t:blink:power";
57 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
61 label = "wnr854t:green:wan";
62 gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
73 compatible = "cfi-flash";
78 compatible = "fixed-partitions";
89 reg = <0x100000 0x660000>;
94 reg = <0x760000 0x20000>;
99 reg = <0x780000 0x80000>;
110 compatible = "marvell,mv88e6085";
111 #address-cells = <1>;
117 #address-cells = <1>;
123 phy-handle = <&lan3phy>;
129 phy-handle = <&lan4phy>;
135 phy-handle = <&wanphy>;
141 ethernet = <ðport>;
147 phy-handle = <&lan1phy>;
153 phy-handle = <&lan2phy>;
158 #address-cells = <1>;
161 lan3phy: ethernet-phy@0 {
162 /* Marvell 88E1121R (port 1) */
163 compatible = "ethernet-phy-id0141.0cb0",
164 "ethernet-phy-ieee802.3-c22";
166 marvell,reg-init = <3 16 0 0x1777 3 17 0 0x15>;
169 lan4phy: ethernet-phy@1 {
170 /* Marvell 88E1121R (port 2) */
171 compatible = "ethernet-phy-id0141.0cb0",
172 "ethernet-phy-ieee802.3-c22";
174 marvell,reg-init = <3 16 0 0x1777 3 17 0 0x15>;
177 wanphy: ethernet-phy@2 {
178 /* Marvell 88E1121R (port 1) */
179 compatible = "ethernet-phy-id0141.0cb0",
180 "ethernet-phy-ieee802.3-c22";
182 marvell,reg-init = <3 16 0 0x1777 3 17 0 0x15>;
185 lan1phy: ethernet-phy@5 {
186 /* Marvell 88E1112 */
187 compatible = "ethernet-phy-id0141.0cb0",
188 "ethernet-phy-ieee802.3-c22";
190 marvell,reg-init = <3 16 0 0x1777 3 17 0 0x15>;
193 lan2phy: ethernet-phy@7 {
194 /* Marvell 88E1112 */
195 compatible = "ethernet-phy-id0141.0cb0",
196 "ethernet-phy-ieee802.3-c22";
198 marvell,reg-init = <3 16 0 0x1777 3 17 0 0x15>;
208 /* Hardwired to DSA switch */
215 pinctrl-0 = <&pmx_pci_gpios>;
216 pinctrl-names = "default";
218 pmx_power_led: pmx-power-led {
219 marvell,pins = "mpp0";
220 marvell,function = "gpio";
223 pmx_reset_button: pmx-reset-button {
224 marvell,pins = "mpp1";
225 marvell,function = "gpio";
228 pmx_power_led_blink: pmx-power-led-blink {
229 marvell,pins = "mpp2";
230 marvell,function = "gpio";
233 pmx_wan_led: pmx-wan-led {
234 marvell,pins = "mpp3";
235 marvell,function = "gpio";
238 pmx_pci_gpios: pmx-pci-gpios {
239 marvell,pins = "mpp4";
240 marvell,function = "gpio";
245 /* Pin 1: Tx, Pin 7: Rx, Pin 8: Gnd */