| 1 | /dts-v1/; |
| 2 | |
| 3 | /include/ "vr9.dtsi" |
| 4 | |
| 5 | / { |
| 6 | model = "FRITZ3370 - Fritz!Box WLAN 3370"; |
| 7 | |
| 8 | chosen { |
| 9 | bootargs = "console=ttyLTQ0,115200 init=/etc/preinit"; |
| 10 | }; |
| 11 | |
| 12 | memory@0 { |
| 13 | reg = <0x0 0x4000000>; |
| 14 | }; |
| 15 | |
| 16 | fpi@10000000 { |
| 17 | localbus@0 { |
| 18 | nand-parts@0 { |
| 19 | compatible = "gen_nand", "lantiq,nand-xway"; |
| 20 | bank-width = <2>; |
| 21 | reg = <1 0x0 0x2000000>; |
| 22 | #address-cells = <1>; |
| 23 | #size-cells = <1>; |
| 24 | |
| 25 | partition@0 { |
| 26 | label = "linux"; |
| 27 | reg = <0x00000 0x400000>; |
| 28 | }; |
| 29 | |
| 30 | partition@400000 { |
| 31 | label = "filesystem"; |
| 32 | reg = <0x400000 0x3000000>; |
| 33 | }; |
| 34 | |
| 35 | partition@3400000 { |
| 36 | label = "reserved-kernel"; |
| 37 | reg = <0x3400000 0x400000>; |
| 38 | }; |
| 39 | partition@3800000 { |
| 40 | label = "reserved"; |
| 41 | reg = <0x3800000 0x3000000>; |
| 42 | }; |
| 43 | partition@6800000 { |
| 44 | label = "config"; |
| 45 | reg = <0x6800000 0x200000>; |
| 46 | }; |
| 47 | partition@6a00000 { |
| 48 | label = "nand-filesystem"; |
| 49 | reg = <0x6a00000 0x1600000>; |
| 50 | }; |
| 51 | }; |
| 52 | }; |
| 53 | |
| 54 | spi@E100800 { |
| 55 | compatible = "lantiq,spi-xway-broken"; |
| 56 | reg = <0xE100800 0x100>; |
| 57 | interrupt-parent = <&icu0>; |
| 58 | interrupts = <22 23 24>; |
| 59 | #address-cells = <1>; |
| 60 | #size-cells = <1>; |
| 61 | |
| 62 | m25p80@0 { |
| 63 | #address-cells = <1>; |
| 64 | #size-cells = <1>; |
| 65 | compatible = "s25fl129p0"; |
| 66 | reg = <0 0>; |
| 67 | linux,modalias = "m25p80", "mx25l3205d"; |
| 68 | spi-max-frequency = <1000000>; |
| 69 | |
| 70 | partition@0 { |
| 71 | reg = <0x0 0x20000>; |
| 72 | label = "SPI (RO) U-Boot Image"; |
| 73 | read-only; |
| 74 | }; |
| 75 | |
| 76 | partition@20000 { |
| 77 | reg = <0x20000 0x10000>; |
| 78 | label = "ENV_MAC"; |
| 79 | read-only; |
| 80 | }; |
| 81 | |
| 82 | partition@30000 { |
| 83 | reg = <0x30000 0x10000>; |
| 84 | label = "DPF"; |
| 85 | read-only; |
| 86 | }; |
| 87 | |
| 88 | partition@40000 { |
| 89 | reg = <0x40000 0x10000>; |
| 90 | label = "NVRAM"; |
| 91 | read-only; |
| 92 | }; |
| 93 | |
| 94 | partition@500000 { |
| 95 | reg = <0x50000 0x003a0000>; |
| 96 | label = "kernel"; |
| 97 | }; |
| 98 | }; |
| 99 | }; |
| 100 | |
| 101 | gpio: pinmux@E100B10 { |
| 102 | pinctrl-names = "default"; |
| 103 | pinctrl-0 = <&state_default>; |
| 104 | |
| 105 | state_default: pinmux { |
| 106 | spi { |
| 107 | lantiq,groups = "spi", "spi_cs4"; |
| 108 | lantiq,function = "spi"; |
| 109 | }; |
| 110 | nand_out { |
| 111 | lantiq,groups = "nand cle", "nand ale", "nand rd", "ebu a23", "ebu a24"; |
| 112 | lantiq,function = "ebu"; |
| 113 | lantiq,direction = <1>; |
| 114 | lantiq,pull = <0>; |
| 115 | }; |
| 116 | nand_in { |
| 117 | lantiq,groups = "nand rdy"; |
| 118 | lantiq,function = "ebu"; |
| 119 | lantiq,direction = <0>; |
| 120 | lantiq,open-drain = <1>; |
| 121 | lantiq,pull = <2>; |
| 122 | }; |
| 123 | mdio { |
| 124 | lantiq,groups = "mdio"; |
| 125 | lantiq,function = "mdio"; |
| 126 | }; |
| 127 | phy-rst { |
| 128 | lantiq,pins = "io37", "io44"; |
| 129 | lantiq,pull = <0>; |
| 130 | lantiq,open-drain = <0>; |
| 131 | lantiq,output = <1>; |
| 132 | }; |
| 133 | pcie-rst { |
| 134 | lantiq,pins = "io38"; |
| 135 | lantiq,pull = <0>; |
| 136 | lantiq,output = <1>; |
| 137 | }; |
| 138 | }; |
| 139 | }; |
| 140 | |
| 141 | eth@E108000 { |
| 142 | #address-cells = <1>; |
| 143 | #size-cells = <0>; |
| 144 | compatible = "lantiq,xrx200-net"; |
| 145 | reg = < 0xE108000 0x3000 /* switch */ |
| 146 | 0xE10B100 0x70 /* mdio */ |
| 147 | 0xE10B1D8 0x30 /* mii */ |
| 148 | 0xE10B308 0x30 /* pmac */ |
| 149 | >; |
| 150 | interrupt-parent = <&icu0>; |
| 151 | interrupts = <73 72>; |
| 152 | |
| 153 | lan: interface@0 { |
| 154 | compatible = "lantiq,xrx200-pdi"; |
| 155 | #address-cells = <1>; |
| 156 | #size-cells = <0>; |
| 157 | reg = <0>; |
| 158 | mac-address = [ 00 11 22 33 44 55 ]; |
| 159 | |
| 160 | ethernet@0 { |
| 161 | compatible = "lantiq,xrx200-pdi-port"; |
| 162 | reg = <0>; |
| 163 | phy-mode = "rgmii"; |
| 164 | phy-handle = <&phy0>; |
| 165 | gpios = <&gpio 37 0>; |
| 166 | }; |
| 167 | ethernet@1 { |
| 168 | compatible = "lantiq,xrx200-pdi-port"; |
| 169 | reg = <1>; |
| 170 | phy-mode = "rgmii"; |
| 171 | phy-handle = <&phy1>; |
| 172 | gpios = <&gpio 44 0>; |
| 173 | }; |
| 174 | ethernet@2 { |
| 175 | compatible = "lantiq,xrx200-pdi-port"; |
| 176 | reg = <2>; |
| 177 | phy-mode = "gmii"; |
| 178 | phy-handle = <&phy11>; |
| 179 | }; |
| 180 | ethernet@3 { |
| 181 | compatible = "lantiq,xrx200-pdi-port"; |
| 182 | reg = <4>; |
| 183 | phy-mode = "gmii"; |
| 184 | phy-handle = <&phy13>; |
| 185 | }; |
| 186 | }; |
| 187 | |
| 188 | mdio@0 { |
| 189 | #address-cells = <1>; |
| 190 | #size-cells = <0>; |
| 191 | compatible = "lantiq,xrx200-mdio"; |
| 192 | phy0: ethernet-phy@0 { |
| 193 | reg = <0x0>; |
| 194 | compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22"; |
| 195 | lantiq,c45-reg-init = <1 0 0 0>; |
| 196 | }; |
| 197 | phy1: ethernet-phy@1 { |
| 198 | reg = <0x1>; |
| 199 | compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22"; |
| 200 | lantiq,c45-reg-init = <1 0 0 0>; |
| 201 | }; |
| 202 | phy11: ethernet-phy@11 { |
| 203 | reg = <0x11>; |
| 204 | compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22"; |
| 205 | lantiq,c45-reg-init = <1 0 0 0>; |
| 206 | }; |
| 207 | phy13: ethernet-phy@13 { |
| 208 | reg = <0x13>; |
| 209 | compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22"; |
| 210 | lantiq,c45-reg-init = <1 0 0 0>; |
| 211 | }; |
| 212 | }; |
| 213 | }; |
| 214 | |
| 215 | ifxhcd@E101000 { |
| 216 | status = "okay"; |
| 217 | gpios = <&gpio 5 0 |
| 218 | &gpio 14 0>; |
| 219 | lantiq,portmask = <0x3>; |
| 220 | }; |
| 221 | }; |
| 222 | |
| 223 | gphy-xrx200 { |
| 224 | compatible = "lantiq,phy-xrx200"; |
| 225 | firmware = "lantiq/vr9_phy11g_a1x.bin"; |
| 226 | phys = [ 00 01 ]; |
| 227 | }; |
| 228 | |
| 229 | gpio-keys-polled { |
| 230 | compatible = "gpio-keys-polled"; |
| 231 | #address-cells = <1>; |
| 232 | #size-cells = <0>; |
| 233 | poll-interval = <100>; |
| 234 | power { |
| 235 | label = "power"; |
| 236 | gpios = <&gpio 1 0>; |
| 237 | linux,code = <0x100>; |
| 238 | }; |
| 239 | /* wifi { |
| 240 | label = "wifi"; |
| 241 | gpios = <&gpio 29 0>; |
| 242 | linux,code = <0x101>; |
| 243 | };*/ |
| 244 | }; |
| 245 | |
| 246 | gpio-leds { |
| 247 | compatible = "gpio-leds"; |
| 248 | |
| 249 | power { |
| 250 | label = "power"; |
| 251 | gpios = <&gpio 32 1>; |
| 252 | }; |
| 253 | power2 { |
| 254 | label = "power2"; |
| 255 | gpios = <&gpio 33 1>; |
| 256 | }; |
| 257 | info_red { |
| 258 | label = "info_red"; |
| 259 | gpios = <&gpio 34 1>; |
| 260 | }; |
| 261 | wifi { |
| 262 | label = "wifi"; |
| 263 | gpios = <&gpio 35 1>; |
| 264 | }; |
| 265 | dsl { |
| 266 | label = "dsl"; |
| 267 | gpios = <&gpio 36 1>; |
| 268 | }; |
| 269 | lan { |
| 270 | label = "lan"; |
| 271 | gpios = <&gpio 38 1>; |
| 272 | }; |
| 273 | info_green { |
| 274 | label = "info_green"; |
| 275 | gpios = <&gpio 47 1>; |
| 276 | }; |
| 277 | }; |
| 278 | }; |
| 279 | |