更新1h的一些外设
This commit is contained in:
@ -79,17 +79,36 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
adc_keys: adc-keys {
|
|
||||||
|
adc-keys {
|
||||||
compatible = "adc-keys";
|
compatible = "adc-keys";
|
||||||
io-channels = <&saradc 0>;
|
io-channels = <&saradc 0>;
|
||||||
io-channel-names = "buttons";
|
io-channel-names = "buttons";
|
||||||
keyup-threshold-microvolt = <1800000>;
|
|
||||||
poll-interval = <100>;
|
poll-interval = <100>;
|
||||||
|
keyup-threshold-microvolt = <1800000>;
|
||||||
|
|
||||||
restart-key {
|
esc-key {
|
||||||
label = "restart";
|
linux,code = <KEY_ESC>;
|
||||||
linux,code = <KEY_RESTART>;
|
label = "esc";
|
||||||
press-threshold-microvolt = <9>;
|
press-threshold-microvolt = <1100000>;
|
||||||
|
};
|
||||||
|
|
||||||
|
menu-key {
|
||||||
|
linux,code = <KEY_MENU>;
|
||||||
|
label = "menu";
|
||||||
|
press-threshold-microvolt = <600000>;
|
||||||
|
};
|
||||||
|
|
||||||
|
vol-down-key {
|
||||||
|
linux,code = <KEY_VOLUMEDOWN>;
|
||||||
|
label = "volume down";
|
||||||
|
press-threshold-microvolt = <300000>;
|
||||||
|
};
|
||||||
|
|
||||||
|
vol-up-key {
|
||||||
|
linux,code = <KEY_VOLUMEUP>;
|
||||||
|
label = "volume up";
|
||||||
|
press-threshold-microvolt = <18000>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -282,6 +301,25 @@
|
|||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
pinctrl-0 = <&sys_status_led_pin>;
|
pinctrl-0 = <&sys_status_led_pin>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
blue_led: blue-led {
|
||||||
|
label = "blue_led";
|
||||||
|
linux,default-trigger = "heartbeat";
|
||||||
|
default-state = "on";
|
||||||
|
gpios = <&gpio2 RK_PC0 GPIO_ACTIVE_LOW>;
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&blue_led_pin>;
|
||||||
|
};
|
||||||
|
|
||||||
|
red_led: red-led {
|
||||||
|
label = "red_led";
|
||||||
|
linux,default-trigger = "heartbeat";
|
||||||
|
default-state = "on";
|
||||||
|
gpios = <&gpio2 RK_PB7 GPIO_ACTIVE_LOW>;
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&red_led_pin>;
|
||||||
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
rk809_sound: rk809-sound {
|
rk809_sound: rk809-sound {
|
||||||
@ -432,6 +470,30 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&pwm3 {
|
||||||
|
status = "okay";
|
||||||
|
|
||||||
|
compatible = "rockchip,remotectl-pwm";
|
||||||
|
interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
|
||||||
|
remote_pwm_id = <3>;
|
||||||
|
handle_cpu_id = <1>;
|
||||||
|
remote_support_psci = <0>;
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&pwm3_pins>;
|
||||||
|
|
||||||
|
ir_key_lubancat{
|
||||||
|
rockchip,usercode = <0x909>;
|
||||||
|
rockchip,key_table =
|
||||||
|
<0xf4 KEY_POWER>,
|
||||||
|
<0xe6 KEY_SLEEP>,
|
||||||
|
<0xe4 KEY_WAKEUP>,
|
||||||
|
<0xed KEY_VOLUMEUP>,
|
||||||
|
<0xec KEY_VOLUMEDOWN>,
|
||||||
|
<0xef KEY_UP>,
|
||||||
|
<0xee KEY_DOWN>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&sdmmc1 {
|
&sdmmc1 {
|
||||||
max-frequency = <150000000>;
|
max-frequency = <150000000>;
|
||||||
supports-sdio;
|
supports-sdio;
|
||||||
@ -886,6 +948,38 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&uart0 {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&uart3 {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&uart4 {
|
||||||
|
status = "okay";
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&uart4m1_xfer>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&uart5 {
|
||||||
|
status = "okay";
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&uart5m1_xfer>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&uart7 {
|
||||||
|
status = "okay";
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&uart7m1_xfer>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&uart9 {
|
||||||
|
status = "okay";
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&uart9m1_xfer>;
|
||||||
|
};
|
||||||
|
|
||||||
&i2c1 {
|
&i2c1 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
clock-frequency = <100000>;
|
clock-frequency = <100000>;
|
||||||
@ -1302,6 +1396,12 @@
|
|||||||
sys_status_led_pin: sys-status-led-pin {
|
sys_status_led_pin: sys-status-led-pin {
|
||||||
rockchip,pins = <0 RK_PC7 RK_FUNC_GPIO &pcfg_pull_none>;
|
rockchip,pins = <0 RK_PC7 RK_FUNC_GPIO &pcfg_pull_none>;
|
||||||
};
|
};
|
||||||
|
blue_led_pin: blue-led-pin {
|
||||||
|
rockchip,pins = <2 RK_PC0 RK_FUNC_GPIO &pcfg_pull_none>;
|
||||||
|
};
|
||||||
|
red_led_pin: red-led-pin {
|
||||||
|
rockchip,pins = <2 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
sdio-pwrseq {
|
sdio-pwrseq {
|
||||||
|
|||||||
Reference in New Issue
Block a user