Changeset View
Changeset View
Standalone View
Standalone View
sys/gnu/dts/mips/OY-0001.dts
- This file was copied to sys/gnu/dts/mips/Timecloud.dts.
/dts-v1/; | /dts-v1/; | ||||
#include "mt7620a.dtsi" | #include "mt7620a.dtsi" | ||||
#include <dt-bindings/gpio/gpio.h> | |||||
#include <dt-bindings/input/input.h> | |||||
/ { | / { | ||||
compatible = "ralink,mt7620a-soc"; | compatible = "ohyeah,oy-0001", "ralink,mt7620a-soc"; | ||||
model = "OY-0001"; | model = "OY-0001"; | ||||
chosen { | chosen { | ||||
bootargs = "console=ttyS0,115200"; | bootargs = "console=ttyS0,115200"; | ||||
}; | }; | ||||
gpio-leds { | gpio-leds { | ||||
compatible = "gpio-leds"; | compatible = "gpio-leds"; | ||||
powerled { | powerled { | ||||
label = "oy-0001:green:power"; | label = "oy-0001:green:power"; | ||||
gpios = <&gpio0 9 1>; | gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; | ||||
}; | }; | ||||
wifiled { | wifiled { | ||||
label = "oy-0001:green:wifi"; | label = "oy-0001:green: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>; | ||||
s1 { | s1 { | ||||
label = "reset"; | label = "reset"; | ||||
gpios = <&gpio0 1 1>; | gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; | ||||
linux,code = <0x198>; | linux,code = <KEY_RESTART>; | ||||
}; | }; | ||||
}; | }; | ||||
}; | }; | ||||
&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", "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 20 Lines • Show All 57 Lines • Show Last 20 Lines |