Changeset View
Changeset View
Standalone View
Standalone View
sys/gnu/dts/mips/TEW-714TRU.dts
- This file was copied from sys/gnu/dts/mips/MPRA2.dts.
/dts-v1/; | /dts-v1/; | ||||
#include "rt5350.dtsi" | #include "rt5350.dtsi" | ||||
#include <dt-bindings/gpio/gpio.h> | |||||
#include <dt-bindings/input/input.h> | |||||
/ { | / { | ||||
compatible = "MPRA2", "ralink,rt5350-soc"; | compatible = "trendnet,tew-714tru", "ralink,rt5350-soc"; | ||||
model = "HAME MPR-A2"; | model = "TRENDnet TEW714TRU"; | ||||
gpio-leds { | gpio-leds { | ||||
compatible = "gpio-leds"; | compatible = "gpio-leds"; | ||||
system { | usb { | ||||
label = "mpr-a2:blue:system"; | label = "tew-714tru:red:usb"; | ||||
gpios = <&gpio0 20 1>; | gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; | ||||
}; | }; | ||||
power { | wifi { | ||||
label = "mpr-a2:red:power"; | label = "tew-714tru:green:wifi"; | ||||
gpios = <&gpio0 17 1>; | gpios = <&gpio0 13 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>; | ||||
wps { | reset { | ||||
label = "reset"; | label = "reset"; | ||||
gpios = <&gpio0 0 1>; | gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; | ||||
linux,code = <0x198>; | linux,code = <KEY_RESTART>; | ||||
}; | }; | ||||
wps { | |||||
label = "wps"; | |||||
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; | |||||
linux,code = <KEY_WPS_BUTTON>; | |||||
}; | }; | ||||
}; | |||||
gpio_export { | gpio_export { | ||||
compatible = "gpio-export"; | compatible = "gpio-export"; | ||||
#size-cells = <0>; | #size-cells = <0>; | ||||
usb { | repeater { | ||||
gpio-export,name = "usb"; | gpio-export,name = "repeater_switch"; | ||||
gpio-export,output = <1>; | gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>; | ||||
gpios = <&gpio0 7 0>; | |||||
}; | }; | ||||
root_hub { | wisp { | ||||
gpio-export,name = "root_hub"; | gpio-export,name = "wisp_switch"; | ||||
gpio-export,output = <1>; | gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; | ||||
gpios = <&gpio0 12 0>; | |||||
}; | }; | ||||
}; | }; | ||||
}; | }; | ||||
&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", "s25fl064k"; | |||||
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 14 Lines | partition@50000 { | ||||
reg = <0x50000 0x7b0000>; | reg = <0x50000 0x7b0000>; | ||||
}; | }; | ||||
}; | }; | ||||
}; | }; | ||||
&pinctrl { | &pinctrl { | ||||
state_default: pinctrl0 { | state_default: pinctrl0 { | ||||
gpio { | gpio { | ||||
ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; | ralink,group = "i2c", "jtag", "uartf"; | ||||
ralink,function = "gpio"; | ralink,function = "gpio"; | ||||
}; | }; | ||||
}; | }; | ||||
}; | }; | ||||
ðernet { | ðernet { | ||||
mtd-mac-address = <&factory 0x4>; | mtd-mac-address = <&factory 0x4>; | ||||
}; | }; | ||||
Show All 17 Lines |