1 // SPDX-License-Identifier: GPL-2.0 1 // SPDX-License-Identifier: GPL-2.0 2 2 3 / { 3 / { 4 #address-cells = <1>; 4 #address-cells = <1>; 5 #size-cells = <1>; 5 #size-cells = <1>; 6 compatible = "ralink,mt7628a-soc"; 6 compatible = "ralink,mt7628a-soc"; 7 7 8 cpus { 8 cpus { 9 #address-cells = <1>; 9 #address-cells = <1>; 10 #size-cells = <0>; 10 #size-cells = <0>; 11 11 12 cpu@0 { 12 cpu@0 { 13 compatible = "mti,mips 13 compatible = "mti,mips24KEc"; 14 device_type = "cpu"; 14 device_type = "cpu"; 15 reg = <0>; 15 reg = <0>; 16 }; 16 }; 17 }; 17 }; 18 18 19 resetc: reset-controller { 19 resetc: reset-controller { 20 compatible = "ralink,rt2880-re 20 compatible = "ralink,rt2880-reset"; 21 #reset-cells = <1>; 21 #reset-cells = <1>; 22 }; 22 }; 23 23 24 cpuintc: interrupt-controller { 24 cpuintc: interrupt-controller { 25 #address-cells = <0>; 25 #address-cells = <0>; 26 #interrupt-cells = <1>; 26 #interrupt-cells = <1>; 27 interrupt-controller; 27 interrupt-controller; 28 compatible = "mti,cpu-interrup 28 compatible = "mti,cpu-interrupt-controller"; 29 }; 29 }; 30 30 31 palmbus@10000000 { 31 palmbus@10000000 { 32 compatible = "palmbus"; 32 compatible = "palmbus"; 33 reg = <0x10000000 0x200000>; 33 reg = <0x10000000 0x200000>; 34 ranges = <0x0 0x10000000 0x1FF 34 ranges = <0x0 0x10000000 0x1FFFFF>; 35 35 36 #address-cells = <1>; 36 #address-cells = <1>; 37 #size-cells = <1>; 37 #size-cells = <1>; 38 38 39 sysc: system-controller@0 { 39 sysc: system-controller@0 { 40 compatible = "ralink,m 40 compatible = "ralink,mt7620a-sysc", "syscon"; 41 reg = <0x0 0x60>; 41 reg = <0x0 0x60>; 42 }; 42 }; 43 43 44 pinmux: pinmux@60 { 44 pinmux: pinmux@60 { 45 compatible = "pinctrl- 45 compatible = "pinctrl-single"; 46 reg = <0x60 0x8>; 46 reg = <0x60 0x8>; 47 #address-cells = <1>; 47 #address-cells = <1>; 48 #size-cells = <0>; 48 #size-cells = <0>; 49 #pinctrl-cells = <2>; 49 #pinctrl-cells = <2>; 50 pinctrl-single,bit-per 50 pinctrl-single,bit-per-mux; 51 pinctrl-single,registe 51 pinctrl-single,register-width = <32>; 52 pinctrl-single,functio 52 pinctrl-single,function-mask = <0x1>; 53 53 54 pinmux_gpio_gpio: gpio 54 pinmux_gpio_gpio: gpio-gpio-pins { 55 pinctrl-single 55 pinctrl-single,bits = <0x0 0x0 0x3>; 56 }; 56 }; 57 57 58 pinmux_spi_cs1_cs: spi 58 pinmux_spi_cs1_cs: spi-cs1-cs-pins { 59 pinctrl-single 59 pinctrl-single,bits = <0x0 0x0 0x30>; 60 }; 60 }; 61 61 62 pinmux_i2s_gpio: i2s-g 62 pinmux_i2s_gpio: i2s-gpio-pins { 63 pinctrl-single 63 pinctrl-single,bits = <0x0 0x40 0xc0>; 64 }; 64 }; 65 65 66 pinmux_uart0_uart: uar 66 pinmux_uart0_uart: uart0-uart0-pins { 67 pinctrl-single 67 pinctrl-single,bits = <0x0 0x0 0x300>; 68 }; 68 }; 69 69 70 pinmux_sdmode_sdxc: sd 70 pinmux_sdmode_sdxc: sdmode-sdxc-pins { 71 pinctrl-single 71 pinctrl-single,bits = <0x0 0x0 0xc00>; 72 }; 72 }; 73 73 74 pinmux_sdmode_gpio: sd 74 pinmux_sdmode_gpio: sdmode-gpio-pins { 75 pinctrl-single 75 pinctrl-single,bits = <0x0 0x400 0xc00>; 76 }; 76 }; 77 77 78 pinmux_spi_spi: spi-sp 78 pinmux_spi_spi: spi-spi-pins { 79 pinctrl-single 79 pinctrl-single,bits = <0x0 0x0 0x1000>; 80 }; 80 }; 81 81 82 pinmux_refclk_gpio: re 82 pinmux_refclk_gpio: refclk-gpio-pins { 83 pinctrl-single 83 pinctrl-single,bits = <0x0 0x40000 0x40000>; 84 }; 84 }; 85 85 86 pinmux_i2c_i2c: i2c-i2 86 pinmux_i2c_i2c: i2c-i2c-pins { 87 pinctrl-single 87 pinctrl-single,bits = <0x0 0x0 0x300000>; 88 }; 88 }; 89 89 90 pinmux_uart1_uart: uar 90 pinmux_uart1_uart: uart1-uart1-pins { 91 pinctrl-single 91 pinctrl-single,bits = <0x0 0x0 0x3000000>; 92 }; 92 }; 93 93 94 pinmux_uart2_uart: uar 94 pinmux_uart2_uart: uart2-uart-pins { 95 pinctrl-single 95 pinctrl-single,bits = <0x0 0x0 0xc000000>; 96 }; 96 }; 97 97 98 pinmux_pwm0_pwm: pwm0- 98 pinmux_pwm0_pwm: pwm0-pwm-pins { 99 pinctrl-single 99 pinctrl-single,bits = <0x0 0x0 0x30000000>; 100 }; 100 }; 101 101 102 pinmux_pwm0_gpio: pwm0 102 pinmux_pwm0_gpio: pwm0-gpio-pins { 103 pinctrl-single 103 pinctrl-single,bits = <0x0 0x10000000 104 104 0x30000000>; 105 }; 105 }; 106 106 107 pinmux_pwm1_pwm: pwm1- 107 pinmux_pwm1_pwm: pwm1-pwm-pins { 108 pinctrl-single 108 pinctrl-single,bits = <0x0 0x0 0xc0000000>; 109 }; 109 }; 110 110 111 pinmux_pwm1_gpio: pwm1 111 pinmux_pwm1_gpio: pwm1-gpio-pins { 112 pinctrl-single 112 pinctrl-single,bits = <0x0 0x40000000 113 113 0xc0000000>; 114 }; 114 }; 115 115 116 pinmux_p0led_an_gpio: 116 pinmux_p0led_an_gpio: p0led-an-gpio-pins { 117 pinctrl-single 117 pinctrl-single,bits = <0x4 0x4 0xc>; 118 }; 118 }; 119 119 120 pinmux_p1led_an_gpio: 120 pinmux_p1led_an_gpio: p1led-an-gpio-pins { 121 pinctrl-single 121 pinctrl-single,bits = <0x4 0x10 0x30>; 122 }; 122 }; 123 123 124 pinmux_p2led_an_gpio: 124 pinmux_p2led_an_gpio: p2led-an-gpio-pins { 125 pinctrl-single 125 pinctrl-single,bits = <0x4 0x40 0xc0>; 126 }; 126 }; 127 127 128 pinmux_p3led_an_gpio: 128 pinmux_p3led_an_gpio: p3led-an-gpio-pins { 129 pinctrl-single 129 pinctrl-single,bits = <0x4 0x100 0x300>; 130 }; 130 }; 131 131 132 pinmux_p4led_an_gpio: 132 pinmux_p4led_an_gpio: p4led-an-gpio-pins { 133 pinctrl-single 133 pinctrl-single,bits = <0x4 0x400 0xc00>; 134 }; 134 }; 135 }; 135 }; 136 136 137 watchdog: watchdog@100 { 137 watchdog: watchdog@100 { 138 compatible = "mediatek 138 compatible = "mediatek,mt7621-wdt"; 139 reg = <0x100 0x30>; 139 reg = <0x100 0x30>; 140 140 141 resets = <&resetc 8>; 141 resets = <&resetc 8>; 142 reset-names = "wdt"; 142 reset-names = "wdt"; 143 143 144 interrupt-parent = <&i 144 interrupt-parent = <&intc>; 145 interrupts = <24>; 145 interrupts = <24>; 146 146 147 status = "disabled"; 147 status = "disabled"; 148 }; 148 }; 149 149 150 intc: interrupt-controller@200 150 intc: interrupt-controller@200 { 151 compatible = "ralink,r 151 compatible = "ralink,rt2880-intc"; 152 reg = <0x200 0x100>; 152 reg = <0x200 0x100>; 153 153 154 interrupt-controller; 154 interrupt-controller; 155 #interrupt-cells = <1> 155 #interrupt-cells = <1>; 156 156 157 resets = <&resetc 9>; 157 resets = <&resetc 9>; 158 reset-names = "intc"; 158 reset-names = "intc"; 159 159 160 interrupt-parent = <&c 160 interrupt-parent = <&cpuintc>; 161 interrupts = <2>; 161 interrupts = <2>; 162 162 163 ralink,intc-registers 163 ralink,intc-registers = <0x9c 0xa0 164 164 0x6c 0xa4 165 165 0x80 0x78>; 166 }; 166 }; 167 167 168 memory-controller@300 { 168 memory-controller@300 { 169 compatible = "ralink,m 169 compatible = "ralink,mt7620a-memc"; 170 reg = <0x300 0x100>; 170 reg = <0x300 0x100>; 171 }; 171 }; 172 172 173 gpio: gpio@600 { 173 gpio: gpio@600 { 174 compatible = "mediatek 174 compatible = "mediatek,mt7621-gpio"; 175 reg = <0x600 0x100>; 175 reg = <0x600 0x100>; 176 176 177 gpio-controller; 177 gpio-controller; 178 interrupt-controller; 178 interrupt-controller; 179 #gpio-cells = <2>; 179 #gpio-cells = <2>; 180 #interrupt-cells = <2> 180 #interrupt-cells = <2>; 181 181 182 interrupt-parent = <&i 182 interrupt-parent = <&intc>; 183 interrupts = <6>; 183 interrupts = <6>; 184 }; 184 }; 185 185 186 spi: spi@b00 { 186 spi: spi@b00 { 187 compatible = "ralink,m 187 compatible = "ralink,mt7621-spi"; 188 reg = <0xb00 0x100>; 188 reg = <0xb00 0x100>; 189 189 190 pinctrl-names = "defau 190 pinctrl-names = "default"; 191 pinctrl-0 = <&pinmux_s 191 pinctrl-0 = <&pinmux_spi_spi>; 192 192 193 resets = <&resetc 18>; 193 resets = <&resetc 18>; 194 reset-names = "spi"; 194 reset-names = "spi"; 195 195 196 #address-cells = <1>; 196 #address-cells = <1>; 197 #size-cells = <0>; 197 #size-cells = <0>; 198 198 199 status = "disabled"; 199 status = "disabled"; 200 }; 200 }; 201 201 202 i2c: i2c@900 { 202 i2c: i2c@900 { 203 compatible = "mediatek 203 compatible = "mediatek,mt7621-i2c"; 204 reg = <0x900 0x100>; 204 reg = <0x900 0x100>; 205 205 206 pinctrl-names = "defau 206 pinctrl-names = "default"; 207 pinctrl-0 = <&pinmux_i 207 pinctrl-0 = <&pinmux_i2c_i2c>; 208 208 209 resets = <&resetc 16>; 209 resets = <&resetc 16>; 210 reset-names = "i2c"; 210 reset-names = "i2c"; 211 211 212 #address-cells = <1>; 212 #address-cells = <1>; 213 #size-cells = <0>; 213 #size-cells = <0>; 214 214 215 status = "disabled"; 215 status = "disabled"; 216 }; 216 }; 217 217 218 uart0: uartlite@c00 { 218 uart0: uartlite@c00 { 219 compatible = "ns16550a 219 compatible = "ns16550a"; 220 reg = <0xc00 0x100>; 220 reg = <0xc00 0x100>; 221 221 222 pinctrl-names = "defau 222 pinctrl-names = "default"; 223 pinctrl-0 = <&pinmux_u 223 pinctrl-0 = <&pinmux_uart0_uart>; 224 224 225 resets = <&resetc 12>; 225 resets = <&resetc 12>; 226 reset-names = "uart0"; 226 reset-names = "uart0"; 227 227 228 interrupt-parent = <&i 228 interrupt-parent = <&intc>; 229 interrupts = <20>; 229 interrupts = <20>; 230 230 231 reg-shift = <2>; 231 reg-shift = <2>; 232 }; 232 }; 233 233 234 uart1: uart1@d00 { 234 uart1: uart1@d00 { 235 compatible = "ns16550a 235 compatible = "ns16550a"; 236 reg = <0xd00 0x100>; 236 reg = <0xd00 0x100>; 237 237 238 pinctrl-names = "defau 238 pinctrl-names = "default"; 239 pinctrl-0 = <&pinmux_u 239 pinctrl-0 = <&pinmux_uart1_uart>; 240 240 241 resets = <&resetc 19>; 241 resets = <&resetc 19>; 242 reset-names = "uart1"; 242 reset-names = "uart1"; 243 243 244 interrupt-parent = <&i 244 interrupt-parent = <&intc>; 245 interrupts = <21>; 245 interrupts = <21>; 246 246 247 reg-shift = <2>; 247 reg-shift = <2>; 248 }; 248 }; 249 249 250 uart2: uart2@e00 { 250 uart2: uart2@e00 { 251 compatible = "ns16550a 251 compatible = "ns16550a"; 252 reg = <0xe00 0x100>; 252 reg = <0xe00 0x100>; 253 253 254 pinctrl-names = "defau 254 pinctrl-names = "default"; 255 pinctrl-0 = <&pinmux_u 255 pinctrl-0 = <&pinmux_uart2_uart>; 256 256 257 resets = <&resetc 20>; 257 resets = <&resetc 20>; 258 reset-names = "uart2"; 258 reset-names = "uart2"; 259 259 260 interrupt-parent = <&i 260 interrupt-parent = <&intc>; 261 interrupts = <22>; 261 interrupts = <22>; 262 262 263 reg-shift = <2>; 263 reg-shift = <2>; 264 }; 264 }; 265 }; 265 }; 266 266 267 usb_phy: usb-phy@10120000 { 267 usb_phy: usb-phy@10120000 { 268 compatible = "mediatek,mt7628- 268 compatible = "mediatek,mt7628-usbphy"; 269 reg = <0x10120000 0x1000>; 269 reg = <0x10120000 0x1000>; 270 270 271 #phy-cells = <0>; 271 #phy-cells = <0>; 272 272 273 ralink,sysctl = <&sysc>; 273 ralink,sysctl = <&sysc>; 274 resets = <&resetc 22 &resetc 2 274 resets = <&resetc 22 &resetc 25>; 275 reset-names = "host", "device" 275 reset-names = "host", "device"; 276 }; 276 }; 277 277 278 usb@101c0000 { 278 usb@101c0000 { 279 compatible = "generic-ehci"; 279 compatible = "generic-ehci"; 280 reg = <0x101c0000 0x1000>; 280 reg = <0x101c0000 0x1000>; 281 281 282 phys = <&usb_phy>; 282 phys = <&usb_phy>; 283 phy-names = "usb"; 283 phy-names = "usb"; 284 284 285 interrupt-parent = <&intc>; 285 interrupt-parent = <&intc>; 286 interrupts = <18>; 286 interrupts = <18>; 287 }; 287 }; 288 288 289 wmac: wmac@10300000 { 289 wmac: wmac@10300000 { 290 compatible = "mediatek,mt7628- 290 compatible = "mediatek,mt7628-wmac"; 291 reg = <0x10300000 0x100000>; 291 reg = <0x10300000 0x100000>; 292 292 293 interrupt-parent = <&cpuintc>; 293 interrupt-parent = <&cpuintc>; 294 interrupts = <6>; 294 interrupts = <6>; 295 295 296 status = "disabled"; 296 status = "disabled"; 297 }; 297 }; 298 }; 298 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.