Changeset View
Changeset View
Standalone View
Standalone View
sys/gnu/dts/mips/TINY-AC.dts
/dts-v1/; | /dts-v1/; | ||||
#include "mt7620a.dtsi" | #include "mt7620a.dtsi" | ||||
#include <dt-bindings/gpio/gpio.h> | |||||
#include <dt-bindings/input/input.h> | |||||
/ { | / { | ||||
compatible = "TINY-AC", "ralink,mt7620a-soc"; | compatible = "dovado,tiny-ac", "ralink,mt7620a-soc"; | ||||
model = "Dovado Tiny AC"; | model = "Dovado Tiny AC"; | ||||
chosen { | chosen { | ||||
bootargs = "console=ttyS0,57600"; | bootargs = "console=ttyS0,57600"; | ||||
}; | }; | ||||
gpio-leds { | gpio-leds { | ||||
compatible = "gpio-leds"; | compatible = "gpio-leds"; | ||||
usb { | usb { | ||||
label = "tiny-ac:green:usb"; | label = "tiny-ac:green:usb"; | ||||
gpios = <&gpio0 11 1>; | gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; | ||||
}; | }; | ||||
wifi { | wifi { | ||||
label = "tiny-ac:orange:wifi"; | label = "tiny-ac:orange:wifi"; | ||||
gpios = <&gpio3 0 1>; | gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; | ||||
}; | }; | ||||
}; | }; | ||||
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 13 1>; | gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; | ||||
linux,code = <0x198>; | linux,code = <KEY_RESTART>; | ||||
}; | }; | ||||
}; | }; | ||||
gpio_export { | gpio_export { | ||||
compatible = "gpio-export"; | compatible = "gpio-export"; | ||||
#size-cells = <0>; | #size-cells = <0>; | ||||
usbpower { | usbpower { | ||||
gpio-export,name = "usbpower"; | gpio-export,name = "usbpower"; | ||||
gpio-export,output = <1>; | gpio-export,output = <1>; | ||||
gpios = <&gpio2 5 0>; | gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>; | ||||
}; | }; | ||||
}; | }; | ||||
}; | }; | ||||
&gpio0 { | &gpio0 { | ||||
status = "okay"; | status = "okay"; | ||||
}; | }; | ||||
&gpio2 { | &gpio2 { | ||||
status = "okay"; | status = "okay"; | ||||
}; | }; | ||||
&gpio3 { | &gpio3 { | ||||
status = "okay"; | status = "okay"; | ||||
}; | }; | ||||
&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", "mx25l6405d"; | |||||
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 20 Lines • Show All 55 Lines • ▼ Show 20 Lines | phy5: ethernet-phy@5 { | ||||
phy-mode = "rgmii"; | phy-mode = "rgmii"; | ||||
}; | }; | ||||
}; | }; | ||||
}; | }; | ||||
&gsw { | &gsw { | ||||
mediatek,port4 = "gmac"; | mediatek,port4 = "gmac"; | ||||
mediatek,mt7530 = <1>; | mediatek,mt7530 = <1>; | ||||
}; | |||||
&wmac { | |||||
ralink,eeprom = "rt2x00pci_1_0.eeprom"; | |||||
}; | }; | ||||
&pcie { | &pcie { | ||||
status = "okay"; | status = "okay"; | ||||
}; | }; | ||||
&pinctrl { | &pinctrl { | ||||
state_default: pinctrl0 { | state_default: pinctrl0 { | ||||
gpio { | gpio { | ||||
ralink,group = "uartf", "nd_sd", "wled"; | ralink,group = "uartf", "nd_sd", "wled"; | ||||
ralink,function = "gpio"; | ralink,function = "gpio"; | ||||
}; | }; | ||||
}; | }; | ||||
}; | }; |