1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
4 #include <dt-bindings/input/input.h>
5 #include <dt-bindings/leds/common.h>
6 #include <dt-bindings/gpio/gpio.h>
12 model = "Xiaomi Redmi Router AX6S";
13 compatible = "xiaomi,redmi-router-ax6s", "mediatek,mt7622";
17 led-boot = &led_power_amber;
18 led-failsafe = &led_power_amber;
19 led-running = &led_power_blue;
20 led-upgrade = &led_power_blue;
24 stdout-path = "serial0:115200n8";
25 rootdisk = <&ubi_rootfs>;
26 bootargs = "earlycon=uart8250,mmio32,0x11002000 swiotlb=512 ubi.block=0,fit root=/dev/fit0";
30 reg = <0 0x40000000 0 0x8000000>;
34 compatible = "gpio-leds";
36 led_power_blue: power_blue {
37 function = LED_FUNCTION_POWER;
38 color = <LED_COLOR_ID_BLUE>;
39 gpios = <&pio 18 GPIO_ACTIVE_LOW>;
42 led_power_amber: power_amber {
43 function = LED_FUNCTION_POWER;
44 color = <LED_COLOR_ID_AMBER>;
45 gpios = <&pio 17 GPIO_ACTIVE_LOW>;
48 led_net_blue: net_blue {
50 gpios = <&pio 01 GPIO_ACTIVE_LOW>;
53 led_net_amber: net_amber {
55 gpios = <&pio 16 GPIO_ACTIVE_LOW>;
61 compatible = "gpio-keys";
65 gpios = <&pio 0 GPIO_ACTIVE_LOW>;
66 linux,code = <KEY_RESTART>;
71 gpios = <&pio 102 GPIO_ACTIVE_LOW>;
73 linux,input-type = <EV_SW>;
79 proc-supply = <&mt6380_vcpu_reg>;
80 sram-supply = <&mt6380_vm_reg>;
84 proc-supply = <&mt6380_vcpu_reg>;
85 sram-supply = <&mt6380_vm_reg>;
92 groups = "mdc_mdio", "rgmii_via_gmac2";
96 pcie0_pins: pcie0-pins {
99 groups = "pcie0_pad_perst",
105 pmic_bus_pins: pmic-bus-pins {
112 pwm7_pins: pwm1-2-pins {
115 groups = "pwm_ch7_2";
119 /* Serial NAND is shared pin with SPI-NOR */
120 serial_nand_pins: serial-nand-pins {
127 uart0_pins: uart0-pins {
130 groups = "uart0_0_tx_rx" ;
134 watchdog_pins: watchdog-pins {
136 function = "watchdog";
143 pinctrl-names = "default";
144 pinctrl-0 = <ð_pins>;
148 compatible = "mediatek,eth-mac";
151 phy-connection-type = "2500base-x";
153 nvmem-cells = <&macaddr_factory_4 (-1)>;
154 nvmem-cell-names = "mac-address";
164 #address-cells = <1>;
168 compatible = "mediatek,mt7531";
170 interrupt-controller;
171 #interrupt-cells = <1>;
172 interrupt-parent = <&pio>;
173 interrupts = <53 IRQ_TYPE_LEVEL_HIGH>;
174 reset-gpios = <&pio 54 GPIO_ACTIVE_HIGH>;
177 #address-cells = <1>;
203 phy-mode = "2500base-x";
221 pinctrl-names = "default";
222 pinctrl-0 = <&serial_nand_pins>;
226 compatible = "spi-nand";
228 spi-tx-bus-width = <4>;
229 spi-rx-bus-width = <4>;
230 nand-ecc-engine = <&snfi>;
233 mediatek,bmt-table-size = <0x1000>;
234 mediatek,bmt-remap-range = <0x0 0x340000>;
237 compatible = "fixed-partitions";
238 #address-cells = <1>;
249 reg = <0x80000 0x40000>;
255 reg = <0xc0000 0x80000>;
260 label = "u-boot-env";
261 reg = <0x140000 0x40000>;
266 reg = <0x180000 0x40000>;
269 factory: partition@1c0000 {
271 reg = <0x1c0000 0x80000>;
275 compatible = "fixed-layout";
276 #address-cells = <1>;
279 macaddr_factory_4: macaddr@4 {
280 compatible = "mac-base";
282 #nvmem-cell-cells = <1>;
289 reg = <0x240000 0x40000>;
295 reg = <0x280000 0x40000>;
300 label = "ubi-loader";
301 reg = <0x2c0000 0x80000>;
304 /* ubi partition is the result of squashing
305 * consecutive stock partitions:
306 * - firmware (partially)
313 reg = <0x340000 0x7280000>;
314 compatible = "linux,ubi";
317 ubi_rootfs: ubi-volume-fit {
327 pinctrl-names = "default";
328 pinctrl-0 = <&pcie0_pins>;
336 compatible = "mediatek,mt76";
337 reg = <0x0000 0 0 0 0>;
338 mediatek,mtd-eeprom = <&factory 0x5000>;
339 ieee80211-freq-limit = <5000000 6000000>;
340 mediatek,disable-radar-background;
345 pinctrl-names = "default";
346 pinctrl-0 = <&pwm7_pins>;
351 pinctrl-names = "default";
352 pinctrl-0 = <&pmic_bus_pins>;
361 pinctrl-names = "default";
362 pinctrl-0 = <&uart0_pins>;
367 pinctrl-names = "default";
368 pinctrl-0 = <&watchdog_pins>;
375 mediatek,mtd-eeprom = <&factory 0x0>;