1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2014 Claudio Leite <leitec@staticky.com>
9 #include "kirkwood.dtsi"
10 #include "kirkwood-6281.dtsi"
13 model = "D-Link DIR-665";
14 compatible = "dlink,dir-665", "marvell,kirkwood-88f6281", "marvell,kirkwood";
17 device_type = "memory";
18 reg = <0x00000000 0x8000000>; /* 128 MB */
22 bootargs = "console=ttyS0,115200n8 earlyprintk";
27 pinctrl: pin-controller@10000 {
28 pinctrl-0 =< &pmx_led_usb
29 &pmx_led_internet_blue
30 &pmx_led_internet_amber
31 &pmx_led_5g &pmx_led_status_blue
32 &pmx_led_wps &pmx_led_status_amber
34 &pmx_btn_restart &pmx_btn_wps>;
35 pinctrl-names = "default";
37 pmx_led_usb: pmx-led-usb {
38 marvell,pins = "mpp12";
39 marvell,function = "gpio";
41 pmx_led_internet_blue: pmx-led-internet-blue {
42 marvell,pins = "mpp42";
43 marvell,function = "gpio";
45 pmx_led_internet_amber: pmx-led-internet-amber {
46 marvell,pins = "mpp43";
47 marvell,function = "gpio";
49 pmx_led_5g: pmx-led-5g {
50 marvell,pins = "mpp44";
51 marvell,function = "gpio";
53 pmx_led_status_blue: pmx-led-status-blue {
54 marvell,pins = "mpp45";
55 marvell,function = "gpio";
57 pmx_led_wps: pmx-led-wps {
58 marvell,pins = "mpp47";
59 marvell,function = "gpio";
61 pmx_led_status_amber: pmx-led-status-amber {
62 marvell,pins = "mpp48";
63 marvell,function = "gpio";
65 pmx_led_24g: pmx-led-24g {
66 marvell,pins = "mpp49";
67 marvell,function = "gpio";
69 pmx_btn_restart: pmx-btn-restart {
70 marvell,pins = "mpp28";
71 marvell,function = "gpio";
73 pmx_btn_wps: pmx-btn-wps {
74 marvell,pins = "mpp46";
75 marvell,function = "gpio";
84 compatible = "mxicy,mx25l12805d", "jedec,spi-nor";
85 spi-max-frequency = <50000000>;
96 reg = <0x30000 0x10000>;
102 reg = <0x40000 0x180000>;
107 reg = <0x1c0000 0xe00000>;
110 cal_data: partition@fc0000 {
112 reg = <0xfc0000 0x10000>;
118 reg = <0xfd0000 0x30000>;
138 compatible = "gpio-leds";
141 label = "dir665:blue:usb";
142 gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
145 /* Can only be turned on if the Internet
146 * Ethernet port has Link
148 label = "dir665:blue:internet";
149 gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
152 label = "dir665:amber:internet";
153 gpios = <&gpio1 11 GPIO_ACTIVE_HIGH>;
156 label = "dir665:blue:5g";
157 gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
160 label = "dir665:blue:status";
161 gpios = <&gpio1 13 GPIO_ACTIVE_HIGH>;
164 label = "dir665:blue:wps";
165 gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>;
168 label = "dir665:amber:status";
169 gpios = <&gpio1 16 GPIO_ACTIVE_HIGH>;
172 label = "dir665:blue:24g";
173 gpios = <&gpio1 17 GPIO_ACTIVE_LOW>;
178 compatible = "gpio-keys";
179 #address-cells = <1>;
184 linux,code = <KEY_RESTART>;
185 gpios = <&gpio0 28 GPIO_ACTIVE_LOW>;
189 linux,code = <KEY_WPS_BUTTON>;
190 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
199 compatible = "marvell,mv88e6085";
200 #address-cells = <1>;
205 #address-cells = <1>;
236 ethernet = <ð0port>;
246 /* eth0 is connected to a Marvell 88E6171 switch, without a PHY. So set
247 * fixed speed and duplex. */
257 /* eth1 is connected to the switch as well. However DSA only supports a
258 * single CPU port. So leave this port disabled to avoid confusion. */
264 /* There is no battery on the boards, so the RTC does not keep time
265 * when there is no power, making it useless. */