1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
4 #include <dt-bindings/input/input.h>
5 #include <dt-bindings/gpio/gpio.h>
11 model = "Xiaomi Redmi Router AX6S";
12 compatible = "xiaomi,redmi-router-ax6s", "mediatek,mt7622";
16 led-boot = &led_power_amber;
17 led-failsafe = &led_power_amber;
18 led-running = &led_power_blue;
19 led-upgrade = &led_power_blue;
23 stdout-path = "serial0:115200n8";
24 bootargs = "earlycon=uart8250,mmio32,0x11002000 console=ttyS0,115200n8 swiotlb=512";
28 reg = <0 0x40000000 0 0x8000000>;
32 compatible = "gpio-leds";
34 led_power_blue: power_blue {
36 gpios = <&pio 18 GPIO_ACTIVE_LOW>;
39 led_power_amber: power_amber {
40 label = "amber:power";
41 gpios = <&pio 17 GPIO_ACTIVE_LOW>;
44 led_net_blue: net_blue {
46 gpios = <&pio 01 GPIO_ACTIVE_LOW>;
49 led_net_amber: net_amber {
51 gpios = <&pio 16 GPIO_ACTIVE_LOW>;
57 compatible = "gpio-keys";
61 gpios = <&pio 0 GPIO_ACTIVE_LOW>;
62 linux,code = <KEY_RESTART>;
67 gpios = <&pio 102 GPIO_ACTIVE_LOW>;
69 linux,input-type = <EV_SW>;
75 proc-supply = <&mt6380_vcpu_reg>;
76 sram-supply = <&mt6380_vm_reg>;
80 proc-supply = <&mt6380_vcpu_reg>;
81 sram-supply = <&mt6380_vm_reg>;
88 groups = "mdc_mdio", "rgmii_via_gmac2";
92 pcie0_pins: pcie0-pins {
95 groups = "pcie0_pad_perst",
101 pmic_bus_pins: pmic-bus-pins {
108 pwm7_pins: pwm1-2-pins {
111 groups = "pwm_ch7_2";
115 /* Serial NAND is shared pin with SPI-NOR */
116 serial_nand_pins: serial-nand-pins {
123 uart0_pins: uart0-pins {
126 groups = "uart0_0_tx_rx" ;
130 watchdog_pins: watchdog-pins {
132 function = "watchdog";
139 pinctrl-names = "default";
140 pinctrl-0 = <ð_pins>;
144 compatible = "mediatek,eth-mac";
147 phy-connection-type = "2500base-x";
149 nvmem-cells = <&macaddr_factory_4 (-1)>;
150 nvmem-cell-names = "mac-address";
160 #address-cells = <1>;
164 compatible = "mediatek,mt7531";
166 interrupt-controller;
167 #interrupt-cells = <1>;
168 interrupt-parent = <&pio>;
169 interrupts = <53 IRQ_TYPE_LEVEL_HIGH>;
170 reset-gpios = <&pio 54 GPIO_ACTIVE_HIGH>;
173 #address-cells = <1>;
199 phy-mode = "2500base-x";
217 pinctrl-names = "default";
218 pinctrl-0 = <&serial_nand_pins>;
222 compatible = "spi-nand";
224 spi-tx-bus-width = <4>;
225 spi-rx-bus-width = <4>;
226 nand-ecc-engine = <&snfi>;
229 mediatek,bmt-table-size = <0x1000>;
230 mediatek,bmt-remap-range = <0x0 0x6c0000>;
233 compatible = "fixed-partitions";
234 #address-cells = <1>;
245 reg = <0x80000 0x40000>;
251 reg = <0xc0000 0x80000>;
256 label = "u-boot-env";
257 reg = <0x140000 0x40000>;
262 reg = <0x180000 0x40000>;
265 factory: partition@1c0000 {
267 reg = <0x1c0000 0x80000>;
271 compatible = "fixed-layout";
272 #address-cells = <1>;
275 macaddr_factory_4: macaddr@4 {
276 compatible = "mac-base";
278 #nvmem-cell-cells = <1>;
285 reg = <0x240000 0x40000>;
291 reg = <0x280000 0x40000>;
295 /* Shrunk and renamed from "firmware"
296 * as to not break luci size checks
300 reg = <0x2c0000 0x400000>;
303 /* ubi partition is the result of squashing
304 * consecutive stock partitions:
305 * - firmware (partially)
312 reg = <0x6C0000 0x6f00000>;
319 pinctrl-names = "default";
320 pinctrl-0 = <&pcie0_pins>;
328 compatible = "mediatek,mt76";
329 reg = <0x0000 0 0 0 0>;
330 mediatek,mtd-eeprom = <&factory 0x5000>;
331 ieee80211-freq-limit = <5000000 6000000>;
332 mediatek,disable-radar-background;
337 pinctrl-names = "default";
338 pinctrl-0 = <&pwm7_pins>;
343 pinctrl-names = "default";
344 pinctrl-0 = <&pmic_bus_pins>;
353 pinctrl-names = "default";
354 pinctrl-0 = <&uart0_pins>;
359 pinctrl-names = "default";
360 pinctrl-0 = <&watchdog_pins>;
367 mediatek,mtd-eeprom = <&factory 0x0>;