diff --git a/arch/arm/boot/dts/rk3126-evb.dts b/arch/arm/boot/dts/rk3126-evb.dts index b38d493fd738..33bdd79ab565 100644 --- a/arch/arm/boot/dts/rk3126-evb.dts +++ b/arch/arm/boot/dts/rk3126-evb.dts @@ -40,6 +40,7 @@ /dts-v1/; #include +#include #include #include #include "rk3126.dtsi" @@ -49,6 +50,26 @@ model = "Rockchip RK3126 Evaluation board"; compatible = "rockchip,rk3126"; + adc-keys { + compatible = "adc-keys"; + io-channels = <&saradc 2>; + io-channel-names = "buttons"; + poll-interval = <100>; + keyup-threshold-microvolt = <3300000>; + + button-up { + label = "Volume Up"; + linux,code = ; + press-threshold-microvolt = <0>; + }; + + button-down { + label = "Volume Down"; + linux,code = ; + press-threshold-microvolt = <1650000>; + }; + }; + backlight: backlight { compatible = "pwm-backlight"; brightness-levels = < @@ -98,6 +119,15 @@ }; }; + vccadc_ref: vccadc-ref { + compatible = "regulator-fixed"; + regulator-name = "SARADC_AVDD33"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + }; + vcc_sys: vcc-sys { compatible = "regulator-fixed"; regulator-name = "vcc_sys"; @@ -384,6 +414,11 @@ status = "okay"; }; +&saradc { + status = "okay"; + vref-supply = <&vccadc_ref>; +}; + &sdmmc { cap-mmc-highspeed; supports-sd;