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>;
150 nvmem-cell-names = "mac-address";
151 mac-address-increment = <(-1)>;
161 #address-cells = <1>;
165 compatible = "mediatek,mt7531";
167 interrupt-controller;
168 #interrupt-cells = <1>;
169 interrupt-parent = <&pio>;
170 interrupts = <53 IRQ_TYPE_LEVEL_HIGH>;
171 reset-gpios = <&pio 54 GPIO_ACTIVE_HIGH>;
174 #address-cells = <1>;
201 phy-mode = "2500base-x";
219 pinctrl-names = "default";
220 pinctrl-0 = <&serial_nand_pins>;
224 compatible = "spi-nand";
226 spi-tx-bus-width = <4>;
227 spi-rx-bus-width = <4>;
228 nand-ecc-engine = <&snfi>;
231 mediatek,bmt-table-size = <0x1000>;
232 mediatek,bmt-remap-range = <0x0 0x6c0000>;
235 compatible = "fixed-partitions";
236 #address-cells = <1>;
247 reg = <0x80000 0x40000>;
253 reg = <0xc0000 0x80000>;
258 label = "u-boot-env";
259 reg = <0x140000 0x40000>;
264 reg = <0x180000 0x40000>;
267 factory: partition@1c0000 {
269 reg = <0x1c0000 0x80000>;
272 compatible = "nvmem-cells";
273 #address-cells = <1>;
276 macaddr_factory_4: macaddr@4 {
283 reg = <0x240000 0x40000>;
289 reg = <0x280000 0x40000>;
293 /* Shrunk and renamed from "firmware"
294 * as to not break luci size checks
298 compatible = "denx,fit";
299 reg = <0x2c0000 0x400000>;
302 /* ubi partition is the result of squashing
303 * consecutive stock partitions:
304 * - firmware (partially)
311 reg = <0x6C0000 0x6f00000>;
318 pinctrl-names = "default";
319 pinctrl-0 = <&pcie0_pins>;
327 compatible = "mediatek,mt76";
328 reg = <0x0000 0 0 0 0>;
329 mediatek,mtd-eeprom = <&factory 0x5000>;
330 ieee80211-freq-limit = <5000000 6000000>;
331 mediatek,disable-radar-background;
336 pinctrl-names = "default";
337 pinctrl-0 = <&pwm7_pins>;
342 pinctrl-names = "default";
343 pinctrl-0 = <&pmic_bus_pins>;
352 pinctrl-names = "default";
353 pinctrl-0 = <&uart0_pins>;
358 pinctrl-names = "default";
359 pinctrl-0 = <&watchdog_pins>;
366 mediatek,mtd-eeprom = <&factory 0x0>;