diff --git a/arch/arm/boot/dts/rk3506-evb1-v10.dtsi b/arch/arm/boot/dts/rk3506-evb1-v10.dtsi index e3678d28310f..d48c91e963b1 100644 --- a/arch/arm/boot/dts/rk3506-evb1-v10.dtsi +++ b/arch/arm/boot/dts/rk3506-evb1-v10.dtsi @@ -4,6 +4,7 @@ */ #include +#include #include / { @@ -14,6 +15,38 @@ bootargs = "earlycon=uart8250,mmio32,0xff0a0000 console=ttyFIQ0 ubi.mtd=4 ubi.block=0,rootfs root=/dev/ubiblock0_0 rootfstype=squashfs rootwait snd_aloop.index=7 snd_aloop.use_raw_jiffies=1"; }; + adc_keys: adc-keys { + compatible = "adc-keys"; + io-channels = <&saradc 1>; + io-channel-names = "buttons"; + keyup-threshold-microvolt = <1800000>; + poll-interval = <100>; + + vol-up-key { + label = "volume up"; + linux,code = ; + press-threshold-microvolt = <16000>; + }; + + vol-down-key { + label = "volume down"; + linux,code = ; + press-threshold-microvolt = <420000>; + }; + + menu-key { + label = "menu"; + linux,code = ; + press-threshold-microvolt = <800000>; + }; + + esc-key { + label = "esc"; + linux,code = ; + press-threshold-microvolt = <1200000>; + }; + }; + backlight: backlight { compatible = "pwm-backlight"; pwms = <&pwm0_4ch_2 0 25000 0>; @@ -87,6 +120,19 @@ interrupts = ; }; + gpio_keys: gpio-keys { + compatible = "gpio-keys"; + pinctrl-names = "default"; + pinctrl-0 = <&key_wake_up>; + + wake_up: wake-up { + label = "Wake-up"; + gpios = <&gpio0 RK_PC1 GPIO_ACTIVE_LOW>; + linux,code = ; + wakeup-source; + }; + }; + vcc12v_dc: vcc12v-dc { compatible = "regulator-fixed"; regulator-name = "vcc12v_dc"; @@ -580,6 +626,12 @@ }; &pinctrl { + gpio-keys { + key_wake_up: key-wake-up { + rockchip,pins = <0 RK_PC1 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; + sdio-pwrseq { wifi_enable_h: wifi-enable-h { rockchip,pins = <0 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>; @@ -632,6 +684,11 @@ &rm_io12_sai1_sdo0>; }; +&saradc { + vref-supply = <&vcc_1v8>; + status = "okay"; +}; + &tsadc { status = "okay"; };