1 // SPDX-License-Identifier: GPL-2.0 2 /* 3 * Copyright (C) 2014 Claudio Leite <leitec@sta 4 * 5 */ 6 7 /dts-v1/; 8 9 #include "kirkwood.dtsi" 10 #include "kirkwood-6281.dtsi" 11 12 / { 13 model = "D-Link DIR-665"; 14 compatible = "dlink,dir-665", "marvell 15 16 memory { 17 device_type = "memory"; 18 reg = <0x00000000 0x8000000>; 19 }; 20 21 chosen { 22 bootargs = "console=ttyS0,1152 23 stdout-path = &uart0; 24 }; 25 26 ocp@f1000000 { 27 pinctrl: pin-controller@10000 28 pinctrl-0 =< &pmx_led_ 29 &pmx_led_ 30 &pmx_led_ 31 &pmx_led_ 32 &pmx_led_ 33 &pmx_led_ 34 &pmx_btn_ 35 pinctrl-names = "defau 36 37 pmx_led_usb: pmx-led-u 38 marvell,pins = 39 marvell,functi 40 }; 41 pmx_led_internet_blue: 42 marvell,pins = 43 marvell,functi 44 }; 45 pmx_led_internet_amber 46 marvell,pins = 47 marvell,functi 48 }; 49 pmx_led_5g: pmx-led-5g 50 marvell,pins = 51 marvell,functi 52 }; 53 pmx_led_status_blue: p 54 marvell,pins = 55 marvell,functi 56 }; 57 pmx_led_wps: pmx-led-w 58 marvell,pins = 59 marvell,functi 60 }; 61 pmx_led_status_amber: 62 marvell,pins = 63 marvell,functi 64 }; 65 pmx_led_24g: pmx-led-2 66 marvell,pins = 67 marvell,functi 68 }; 69 pmx_btn_restart: pmx-b 70 marvell,pins = 71 marvell,functi 72 }; 73 pmx_btn_wps: pmx-btn-w 74 marvell,pins = 75 marvell,functi 76 }; 77 }; 78 79 spi@10600 { 80 status = "okay"; 81 flash@0 { 82 #address-cells 83 #size-cells = 84 compatible = " 85 spi-max-freque 86 reg = <0>; 87 88 partition@0 { 89 label 90 reg = 91 read-o 92 }; 93 94 partition@3000 95 label 96 reg = 97 read-o 98 }; 99 100 partition@4000 101 label 102 reg = 103 }; 104 105 partition@1c00 106 label 107 reg = 108 }; 109 110 cal_data: part 111 label 112 reg = 113 read-o 114 }; 115 116 partition@fd00 117 label 118 reg = 119 read-o 120 }; 121 }; 122 }; 123 124 serial@12000 { 125 status = "okay"; 126 }; 127 128 i2c@11000 { 129 status = "okay"; 130 }; 131 132 ehci@50000 { 133 status = "okay"; 134 }; 135 }; 136 137 gpio-leds { 138 compatible = "gpio-leds"; 139 140 led-blue-usb { 141 label = "dir665:blue:u 142 gpios = <&gpio0 12 GPI 143 }; 144 led-blue-internet { 145 /* Can only be turned 146 * Ethernet port has L 147 */ 148 label = "dir665:blue:i 149 gpios = <&gpio1 10 GPI 150 }; 151 led-amber-internet { 152 label = "dir665:amber: 153 gpios = <&gpio1 11 GPI 154 }; 155 led-blue-wifi5g { 156 label = "dir665:blue:5 157 gpios = <&gpio1 12 GPI 158 }; 159 led-blue-status { 160 label = "dir665:blue:s 161 gpios = <&gpio1 13 GPI 162 }; 163 led-blue-wps { 164 label = "dir665:blue:w 165 gpios = <&gpio1 15 GPI 166 }; 167 led-amber-status { 168 label = "dir665:amber: 169 gpios = <&gpio1 16 GPI 170 }; 171 led-blue-24g { 172 label = "dir665:blue:2 173 gpios = <&gpio1 17 GPI 174 }; 175 }; 176 177 gpio-keys { 178 compatible = "gpio-keys"; 179 180 button-reset { 181 label = "reset"; 182 linux,code = <KEY_REST 183 gpios = <&gpio0 28 GPI 184 }; 185 button-wps { 186 label = "wps"; 187 linux,code = <KEY_WPS_ 188 gpios = <&gpio1 14 GPI 189 }; 190 }; 191 }; 192 193 &mdio { 194 status = "okay"; 195 196 switch@0 { 197 compatible = "marvell,mv88e608 198 #address-cells = <1>; 199 #size-cells = <0>; 200 reg = <0>; 201 202 ports { 203 #address-cells = <1>; 204 #size-cells = <0>; 205 206 port@0 { 207 reg = <0>; 208 label = "lan4" 209 }; 210 211 port@1 { 212 reg = <1>; 213 label = "lan3" 214 }; 215 216 port@2 { 217 reg = <2>; 218 label = "lan2" 219 }; 220 221 port@3 { 222 reg = <3>; 223 label = "lan1" 224 }; 225 226 port@4 { 227 reg = <4>; 228 label = "wan"; 229 }; 230 231 port@6 { 232 reg = <6>; 233 phy-mode = "rg 234 ethernet = <&e 235 fixed-link { 236 speed 237 full-d 238 }; 239 }; 240 }; 241 }; 242 }; 243 244 /* eth0 is connected to a Marvell 88E6171 swit 245 * fixed speed and duplex. */ 246 ð0 { 247 status = "okay"; 248 249 ethernet0-port@0 { 250 speed = <1000>; 251 duplex = <1>; 252 phy-mode = "rgmii"; 253 }; 254 }; 255 256 /* eth1 is connected to the switch as well. Ho 257 * single CPU port. So leave this port disable 258 259 ð1 { 260 status = "disabled"; 261 }; 262 263 /* There is no battery on the boards, so the R 264 * when there is no power, making it useless. 265 &rtc { 266 status = "disabled"; 267 }; 268 269 &pciec { 270 status = "okay"; 271 }; 272 273 &pcie0 { 274 status = "okay"; 275 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.