From aab4793130853f754e9da288decec8f852fe5e5d Mon Sep 17 00:00:00 2001 From: kalous12 <2797795537@qq.com> Date: Tue, 22 Aug 2023 05:38:40 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B01h=E7=9A=84=E4=B8=80=E4=BA=9B?= =?UTF-8?q?=E5=A4=96=E8=AE=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../boot/dts/rockchip/rk3566-lubancat-1h.dts | 112 +++++++++++++++++- 1 file changed, 106 insertions(+), 6 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3566-lubancat-1h.dts b/arch/arm64/boot/dts/rockchip/rk3566-lubancat-1h.dts index 644894fa42a0..3fd52fb01884 100644 --- a/arch/arm64/boot/dts/rockchip/rk3566-lubancat-1h.dts +++ b/arch/arm64/boot/dts/rockchip/rk3566-lubancat-1h.dts @@ -79,17 +79,36 @@ }; }; - adc_keys: adc-keys { + + adc-keys { compatible = "adc-keys"; io-channels = <&saradc 0>; io-channel-names = "buttons"; - keyup-threshold-microvolt = <1800000>; poll-interval = <100>; + keyup-threshold-microvolt = <1800000>; - restart-key { - label = "restart"; - linux,code = ; - press-threshold-microvolt = <9>; + esc-key { + linux,code = ; + label = "esc"; + press-threshold-microvolt = <1100000>; + }; + + menu-key { + linux,code = ; + label = "menu"; + press-threshold-microvolt = <600000>; + }; + + vol-down-key { + linux,code = ; + label = "volume down"; + press-threshold-microvolt = <300000>; + }; + + vol-up-key { + linux,code = ; + label = "volume up"; + press-threshold-microvolt = <18000>; }; }; @@ -282,6 +301,25 @@ pinctrl-names = "default"; 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 { @@ -432,6 +470,30 @@ }; }; +&pwm3 { + status = "okay"; + + compatible = "rockchip,remotectl-pwm"; + interrupts = ; + 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 { max-frequency = <150000000>; 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 { status = "okay"; clock-frequency = <100000>; @@ -1302,6 +1396,12 @@ sys_status_led_pin: sys-status-led-pin { 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 {