2 * Copyright (C) 2014 Claudio Leite <leitec@staticky.com>
4 * This file is licensed under the terms of the GNU General Public
5 * License version 2. This program is licensed "as is" without any
6 * warranty of any kind, whether express or implied.
11 #include "kirkwood.dtsi"
12 #include "kirkwood-6281.dtsi"
15 model = "D-Link DIR-665";
16 compatible = "dlink,dir-665", "marvell,kirkwood-88f6281", "marvell,kirkwood";
19 device_type = "memory";
20 reg = <0x00000000 0x8000000>; /* 128 MB */
24 bootargs = "console=ttyS0,115200n8 earlyprintk";
29 pinctrl: pin-controller@10000 {
30 pinctrl-0 =< &pmx_led_usb
31 &pmx_led_internet_blue
32 &pmx_led_internet_amber
33 &pmx_led_5g &pmx_led_status_blue
34 &pmx_led_wps &pmx_led_status_amber
36 &pmx_btn_restart &pmx_btn_wps>;
37 pinctrl-names = "default";
39 pmx_led_usb: pmx-led-usb {
40 marvell,pins = "mpp12";
41 marvell,function = "gpio";
43 pmx_led_internet_blue: pmx-led-internet-blue {
44 marvell,pins = "mpp42";
45 marvell,function = "gpio";
47 pmx_led_internet_amber: pmx-led-internet-amber {
48 marvell,pins = "mpp43";
49 marvell,function = "gpio";
51 pmx_led_5g: pmx-led-5g {
52 marvell,pins = "mpp44";
53 marvell,function = "gpio";
55 pmx_led_status_blue: pmx-led-status-blue {
56 marvell,pins = "mpp45";
57 marvell,function = "gpio";
59 pmx_led_wps: pmx-led-wps {
60 marvell,pins = "mpp47";
61 marvell,function = "gpio";
63 pmx_led_status_amber: pmx-led-status-amber {
64 marvell,pins = "mpp48";
65 marvell,function = "gpio";
67 pmx_led_24g: pmx-led-24g {
68 marvell,pins = "mpp49";
69 marvell,function = "gpio";
71 pmx_btn_restart: pmx-btn-restart {
72 marvell,pins = "mpp28";
73 marvell,function = "gpio";
75 pmx_btn_wps: pmx-btn-wps {
76 marvell,pins = "mpp46";
77 marvell,function = "gpio";
86 compatible = "mxicy,mx25l12805d", "jedec,spi-nor";
87 spi-max-frequency = <50000000>;
98 reg = <0x30000 0x10000>;
104 reg = <0x40000 0x180000>;
109 reg = <0x1c0000 0xe00000>;
112 cal_data: partition@fc0000 {
114 reg = <0xfc0000 0x10000>;
120 reg = <0xfd0000 0x30000>;
140 compatible = "gpio-leds";
143 label = "dir665:blue:usb";
144 gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
147 /* Can only be turned on if the Internet
148 * Ethernet port has Link
150 label = "dir665:blue:internet";
151 gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
154 label = "dir665:amber:internet";
155 gpios = <&gpio1 11 GPIO_ACTIVE_HIGH>;
158 label = "dir665:blue:5g";
159 gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
162 label = "dir665:blue:status";
163 gpios = <&gpio1 13 GPIO_ACTIVE_HIGH>;
166 label = "dir665:blue:wps";
167 gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>;
170 label = "dir665:amber:status";
171 gpios = <&gpio1 16 GPIO_ACTIVE_HIGH>;
174 label = "dir665:blue:24g";
175 gpios = <&gpio1 17 GPIO_ACTIVE_LOW>;
180 compatible = "gpio-keys";
181 #address-cells = <1>;
186 linux,code = <KEY_RESTART>;
187 gpios = <&gpio0 28 GPIO_ACTIVE_LOW>;
191 linux,code = <KEY_WPS_BUTTON>;
192 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
199 compatible = "marvell,dsa";
200 #address-cells = <2>;
203 dsa,ethernet = <ð0port>;
204 dsa,mii-bus = <&mdio>;
207 #address-cells = <1>;
209 reg = <0 0>; /* MDIO address 0, switch 0 in tree */
248 compatible = "marvell,mv88e6085";
249 #address-cells = <1>;
254 #address-cells = <1>;
285 ethernet = <ð0port>;
295 /* eth0 is connected to a Marvell 88E6171 switch, without a PHY. So set
296 * fixed speed and duplex. */
306 /* eth1 is connected to the switch as well. However DSA only supports a
307 * single CPU port. So leave this port disabled to avoid confusion. */
313 /* There is no battery on the boards, so the RTC does not keep time
314 * when there is no power, making it useless. */