Changeset View
Changeset View
Standalone View
Standalone View
sys/gnu/dts/mips/HLKRM04.dts
/dts-v1/; | /dts-v1/; | ||||
#include "rt5350.dtsi" | #include "rt5350.dtsi" | ||||
#include <dt-bindings/gpio/gpio.h> | |||||
#include <dt-bindings/input/input.h> | |||||
/ { | / { | ||||
compatible = "HLKRM04", "ralink,rt5350-soc"; | compatible = "hilink,hlk-rm04", "ralink,rt5350-soc"; | ||||
model = "HILINK HLK-RM04"; | model = "HILINK HLK-RM04"; | ||||
memory@0 { | memory@0 { | ||||
device_type = "memory"; | device_type = "memory"; | ||||
reg = <0x0 0x1000000>; | reg = <0x0 0x1000000>; | ||||
}; | }; | ||||
chosen { | chosen { | ||||
bootargs = "console=ttyS1,57600"; | bootargs = "console=ttyS1,57600"; | ||||
}; | }; | ||||
gpio-export { | gpio-export { | ||||
compatible = "gpio-export"; | compatible = "gpio-export"; | ||||
#size-cells = <0>; | #size-cells = <0>; | ||||
/* I2C */ | /* I2C */ | ||||
gpio1 { | gpio1 { | ||||
/* I2C_I2C_SD */ | /* I2C_I2C_SD */ | ||||
gpio-export,name = "hlk-rm04:gpio0"; | gpio-export,name = "hlk-rm04:gpio0"; | ||||
gpio-export,direction_may_change = <1>; | gpio-export,direction_may_change = <1>; | ||||
gpios = <&gpio0 1 0>; | gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>; | ||||
}; | }; | ||||
gpio2 { | gpio2 { | ||||
/* I2C_I2C_SCLK */ | /* I2C_I2C_SCLK */ | ||||
gpio-export,name = "hlk-rm04:gpio1"; | gpio-export,name = "hlk-rm04:gpio1"; | ||||
gpio-export,direction_may_change = <1>; | gpio-export,direction_may_change = <1>; | ||||
gpios = <&gpio0 2 0>; | gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>; | ||||
}; | }; | ||||
}; | }; | ||||
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 0 1>; | gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; | ||||
linux,code = <0x198>; | linux,code = <KEY_RESTART>; | ||||
}; | }; | ||||
wps { | wps { | ||||
label = "wps"; | label = "wps"; | ||||
gpios = <&gpio0 14 1>; | gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; | ||||
linux,code = <0x211>; | linux,code = <KEY_WPS_BUTTON>; | ||||
}; | }; | ||||
}; | }; | ||||
}; | }; | ||||
&uart { | &uart { | ||||
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", "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 20 Lines • Show All 48 Lines • Show Last 20 Lines |