| 1 | /dts-v1/; |
| 2 | |
| 3 | /include/ "danube.dtsi" |
| 4 | |
| 5 | / { |
| 6 | model = "ARV7518PW - Astoria Networks"; |
| 7 | |
| 8 | chosen { |
| 9 | bootargs = "console=ttyLTQ0,115200 init=/etc/preinit"; |
| 10 | }; |
| 11 | |
| 12 | memory@0 { |
| 13 | reg = <0x0 0x4000000>; |
| 14 | }; |
| 15 | |
| 16 | sram@1F000000 { |
| 17 | vmmc@107000 { |
| 18 | status = "okay"; |
| 19 | }; |
| 20 | }; |
| 21 | |
| 22 | fpi@10000000 { |
| 23 | localbus@0 { |
| 24 | nor-boot@0 { |
| 25 | compatible = "lantiq,nor"; |
| 26 | bank-width = <2>; |
| 27 | reg = <0 0x0 0x2000000>; |
| 28 | #address-cells = <1>; |
| 29 | #size-cells = <1>; |
| 30 | |
| 31 | partition@0 { |
| 32 | label = "uboot"; |
| 33 | reg = <0x00000 0x10000>; |
| 34 | read-only; |
| 35 | }; |
| 36 | |
| 37 | partition@10000 { |
| 38 | label = "uboot_env"; |
| 39 | reg = <0x10000 0x10000>; |
| 40 | }; |
| 41 | |
| 42 | partition@20000 { |
| 43 | label = "linux"; |
| 44 | reg = <0x20000 0x7d0000>; |
| 45 | }; |
| 46 | |
| 47 | partition@400000 { |
| 48 | label = "boardconfig"; |
| 49 | reg = <0x7f0000 0x10000>; |
| 50 | read-only; |
| 51 | }; |
| 52 | }; |
| 53 | |
| 54 | gpiomm: gpiomm@4000000 { |
| 55 | compatible = "lantiq,gpio-mm"; |
| 56 | reg = <1 0x0 0x10 >; |
| 57 | #address-cells = <1>; |
| 58 | #size-cells = <1>; |
| 59 | #gpio-cells = <2>; |
| 60 | gpio-controller; |
| 61 | lantiq,shadow = <0x0>; |
| 62 | }; |
| 63 | |
| 64 | mac_addr { |
| 65 | compatible = "lantiq,eth-mac"; |
| 66 | reg = <0 0x7f0016 0x6>; |
| 67 | mac-increment = <2>; |
| 68 | }; |
| 69 | |
| 70 | ath9k_eep { |
| 71 | compatible = "ath9k,eeprom"; |
| 72 | reg = <0 0x7f0400 0x800 |
| 73 | 0 0x7f0016 0x6>; |
| 74 | ath,mac-increment = <1>; |
| 75 | ath,eep-swap; |
| 76 | }; |
| 77 | }; |
| 78 | |
| 79 | gpio: pinmux@E100B10 { |
| 80 | pinctrl-names = "default"; |
| 81 | pinctrl-0 = <&state_default>; |
| 82 | |
| 83 | state_default: pinmux { |
| 84 | ebu { |
| 85 | lantiq,groups = "ebu cs1"; |
| 86 | lantiq,function = "ebu"; |
| 87 | }; |
| 88 | pci_in { |
| 89 | lantiq,groups = "req1", "req2"; |
| 90 | lantiq,function = "pci"; |
| 91 | lantiq,open-drain = <1>; |
| 92 | lantiq,pull = <2>; |
| 93 | lantiq,output = <0>; |
| 94 | }; |
| 95 | pci_out { |
| 96 | lantiq,groups = "gnt1", "gnt2"; |
| 97 | lantiq,function = "pci"; |
| 98 | lantiq,pull = <0>; |
| 99 | lantiq,output = <1>; |
| 100 | }; |
| 101 | pci_rst { |
| 102 | lantiq,pins = "io21"; |
| 103 | lantiq,pull = <2>; |
| 104 | lantiq,output = <1>; |
| 105 | }; |
| 106 | }; |
| 107 | }; |
| 108 | |
| 109 | etop@E180000 { |
| 110 | phy-mode = "rmii"; |
| 111 | }; |
| 112 | |
| 113 | ifxhcd@E101000 { |
| 114 | status = "okay"; |
| 115 | gpio-reset = <&gpio 14 0>; |
| 116 | }; |
| 117 | |
| 118 | pci@E105400 { |
| 119 | status = "okay"; |
| 120 | lantiq,external-clock; |
| 121 | gpio-reset = <&gpio 21 0>; |
| 122 | req-mask = <0xf>; |
| 123 | }; |
| 124 | |
| 125 | }; |
| 126 | |
| 127 | /* |
| 128 | #define SWITCH_RESET 13 |
| 129 | */ |
| 130 | gpio-keys-polled { |
| 131 | compatible = "gpio-keys-polled"; |
| 132 | #address-cells = <1>; |
| 133 | #size-cells = <0>; |
| 134 | poll-interval = <100>; |
| 135 | |
| 136 | rfkill { |
| 137 | label = "rfkill"; |
| 138 | gpios = <&gpio 25 1>; |
| 139 | linux,code = <0xf7>; |
| 140 | }; |
| 141 | /* reset { |
| 142 | label = "reset"; |
| 143 | gpios = <&gpio 30 1>; |
| 144 | linux,code = <0x198>; |
| 145 | };*/ |
| 146 | }; |
| 147 | |
| 148 | gpio-leds { |
| 149 | compatible = "gpio-leds"; |
| 150 | power { |
| 151 | label = "power"; |
| 152 | gpios = <&gpio 2 0>; |
| 153 | }; |
| 154 | dsl { |
| 155 | label = "dsl"; |
| 156 | gpios = <&gpio 4 1>; |
| 157 | }; |
| 158 | online { |
| 159 | label = "online"; |
| 160 | gpios = <&gpio 5 1>; |
| 161 | }; |
| 162 | wifi { |
| 163 | label = "wifi"; |
| 164 | gpios = <&gpio 6 1>; |
| 165 | }; |
| 166 | power2 { |
| 167 | label = "power2"; |
| 168 | gpios = <&gpio 7 1>; |
| 169 | }; |
| 170 | online2 { |
| 171 | label = "online2"; |
| 172 | gpios = <&gpio 8 1>; |
| 173 | }; |
| 174 | usb { |
| 175 | label = "usb"; |
| 176 | gpios = <&gpio 19 1>; |
| 177 | }; |
| 178 | voice { |
| 179 | label = "voice"; |
| 180 | gpios = <&gpiomm 0 1>; |
| 181 | }; |
| 182 | fxs1 { |
| 183 | label = "fxs1"; |
| 184 | gpios = <&gpiomm 1 1>; |
| 185 | }; |
| 186 | fxs2 { |
| 187 | label = "fxs2"; |
| 188 | gpios = <&gpiomm 2 1>; |
| 189 | }; |
| 190 | fxo { |
| 191 | label = "fxo"; |
| 192 | gpios = <&gpiomm 3 1>; |
| 193 | }; |
| 194 | wps { |
| 195 | label = "wps"; |
| 196 | gpios = <&gpiomm 4 1>; |
| 197 | }; |
| 198 | wps2 { |
| 199 | label = "wps2"; |
| 200 | gpios = <&gpiomm 5 1>; |
| 201 | }; |
| 202 | wps3 { |
| 203 | label = "wps3"; |
| 204 | gpios = <&gpiomm 6 1>; |
| 205 | }; |
| 206 | }; |
| 207 | }; |
| 208 | |