Changeset View
Changeset View
Standalone View
Standalone View
sys/gnu/dts/mips/RT-AC51U.dts
- This file was copied from sys/gnu/dts/mips/RT-N14U.dts.
/dts-v1/; | /dts-v1/; | ||||
#include "mt7620n.dtsi" | #include "mt7620a.dtsi" | ||||
#include <dt-bindings/gpio/gpio.h> | |||||
#include <dt-bindings/input/input.h> | |||||
/ { | / { | ||||
compatible = "asus,rt-n14u", "ralink,mt7620n-soc"; | compatible = "asus,rt-ac51u", "ralink,mt7620a-soc"; | ||||
model = "Asus RT-N14U"; | model = "Asus RT-AC51U"; | ||||
gpio-leds { | gpio-leds { | ||||
compatible = "gpio-leds"; | compatible = "gpio-leds"; | ||||
wan { | power { | ||||
label = "rt-n14u:blue:wan"; | label = "rt-ac51u:blue:power"; | ||||
gpios = <&gpio2 0 1>; | gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; | ||||
}; | }; | ||||
lan { | |||||
label = "rt-n14u:blue:lan"; | |||||
gpios = <&gpio2 1 1>; | |||||
}; | |||||
usb { | usb { | ||||
label = "rt-n14u:blue:usb"; | label = "rt-ac51u:blue:usb"; | ||||
gpios = <&gpio2 2 1>; | gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; | ||||
}; | }; | ||||
power { | wifi { | ||||
label = "rt-n14u:blue:power"; | label = "rt-ac51u:blue:wifi"; | ||||
gpios = <&gpio2 3 1>; | gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; | ||||
}; | }; | ||||
air { | |||||
label = "rt-n14u:blue:air"; | |||||
gpios = <&gpio3 0 1>; | |||||
}; | }; | ||||
}; | |||||
gpio-keys-polled { | gpio-keys-polled { | ||||
compatible = "gpio-keys-polled"; | compatible = "gpio-keys-polled"; | ||||
#address-cells = <1>; | #address-cells = <1>; | ||||
#size-cells = <0>; | #size-cells = <0>; | ||||
poll-interval = <20>; | poll-interval = <20>; | ||||
reset { | reset { | ||||
label = "reset"; | label = "reset"; | ||||
gpios = <&gpio0 1 1>; | gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; | ||||
linux,code = <0x198>; | linux,code = <KEY_RESTART>; | ||||
}; | }; | ||||
wps { | wps { | ||||
label = "wps"; | label = "wps"; | ||||
gpios = <&gpio0 2 1>; | gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; | ||||
linux,code = <0x211>; | linux,code = <KEY_WPS_BUTTON>; | ||||
}; | }; | ||||
}; | }; | ||||
}; | |||||
&gpio2 { | gpio_export { | ||||
status = "okay"; | compatible = "gpio-export"; | ||||
}; | #size-cells = <0>; | ||||
&gpio3 { | enable-leds { | ||||
status = "okay"; | gpio-export,name = "enable-leds"; | ||||
gpio-export,output = <1>; | |||||
gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>; | |||||
}; | }; | ||||
}; | |||||
}; | |||||
&spi0 { | &spi0 { | ||||
status = "okay"; | status = "okay"; | ||||
m25p80@0 { | m25p80@0 { | ||||
#address-cells = <1>; | #address-cells = <1>; | ||||
#size-cells = <1>; | #size-cells = <1>; | ||||
compatible = "jedec,spi-nor"; | compatible = "jedec,spi-nor"; | ||||
reg = <0>; | reg = <0>; | ||||
linux,modalias = "m25p80", "w25q128"; | |||||
spi-max-frequency = <10000000>; | spi-max-frequency = <10000000>; | ||||
partition@0 { | partition@0 { | ||||
label = "u-boot"; | label = "u-boot"; | ||||
reg = <0x0 0x30000>; | reg = <0x0 0x30000>; | ||||
read-only; | read-only; | ||||
}; | }; | ||||
Show All 19 Lines | |||||
&ehci { | &ehci { | ||||
status = "okay"; | status = "okay"; | ||||
}; | }; | ||||
&ohci { | &ohci { | ||||
status = "okay"; | status = "okay"; | ||||
}; | }; | ||||
&gpio3 { | |||||
status = "okay"; | |||||
}; | |||||
ðernet { | ðernet { | ||||
status = "okay"; | |||||
mtd-mac-address = <&factory 0x4>; | mtd-mac-address = <&factory 0x4>; | ||||
mediatek,portmap = "wllll"; | mediatek,portmap = "wllll"; | ||||
}; | }; | ||||
&wmac { | &wmac { | ||||
ralink,mtd-eeprom = <&factory 0>; | ralink,mtd-eeprom = <&factory 0>; | ||||
}; | }; | ||||
&pinctrl { | &pinctrl { | ||||
state_default: pinctrl0 { | state_default: pinctrl0 { | ||||
default { | gpio { | ||||
ralink,group = "ephy", "wled", "i2c"; | ralink,group = "i2c", "wled", "uartf"; | ||||
ralink,function = "gpio"; | ralink,function = "gpio"; | ||||
}; | }; | ||||
}; | }; | ||||
}; | }; |