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";
215 pinctrl-names = "default";
216 pinctrl-0 = <&serial_nand_pins>;
220 mediatek,bmt-table-size = <0x1000>;
221 mediatek,bmt-remap-range = <0x0 0x6c0000>;
224 compatible = "fixed-partitions";
225 #address-cells = <1>;
236 reg = <0x80000 0x40000>;
242 reg = <0xc0000 0x80000>;
247 label = "u-boot-env";
248 reg = <0x140000 0x40000>;
253 reg = <0x180000 0x40000>;
256 factory: partition@1c0000 {
258 reg = <0x1c0000 0x80000>;
261 compatible = "nvmem-cells";
262 #address-cells = <1>;
265 macaddr_factory_4: macaddr@4 {
272 reg = <0x240000 0x40000>;
278 reg = <0x280000 0x40000>;
282 /* Shrunk and renamed from "firmware"
283 * as to not break luci size checks
287 compatible = "denx,fit";
288 reg = <0x2c0000 0x400000>;
292 /* ubi partition is the result of squashing
293 * consecutive stock partitions:
294 * - firmware (partially)
301 reg = <0x6C0000 0x6f00000>;
307 pinctrl-names = "default";
308 pinctrl-0 = <&pcie0_pins>;
316 compatible = "mediatek,mt76";
317 reg = <0x0000 0 0 0 0>;
318 mediatek,mtd-eeprom = <&factory 0x5000>;
319 ieee80211-freq-limit = <5000000 6000000>;
324 pinctrl-names = "default";
325 pinctrl-0 = <&pwm7_pins>;
330 pinctrl-names = "default";
331 pinctrl-0 = <&pmic_bus_pins>;
340 pinctrl-names = "default";
341 pinctrl-0 = <&uart0_pins>;
346 pinctrl-names = "default";
347 pinctrl-0 = <&watchdog_pins>;
354 mediatek,mtd-eeprom = <&factory 0x0>;