Skip to content

Commit

Permalink
Enable LRADC connected buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
foxnux committed Jan 6, 2020
1 parent 35035d2 commit c94a39f
Showing 1 changed file with 21 additions and 14 deletions.
35 changes: 21 additions & 14 deletions arch/arm/boot/dts/sun8i-s3-foxnux-one.dts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

/dts-v1/;
#include "sun8i-v3.dtsi"

#include "sunxi-common-regulators.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>

Expand Down Expand Up @@ -138,28 +138,35 @@
};

&lradc {
vref-supply = <&reg_vcc3v3>;
vref-supply = <&reg_vcc3v0>;
status = "okay";

button-430 {
label = "key0";
linux,code = <BTN_0>;
button@200 {
label = "Volume Up";
linux,code = <KEY_VOLUMEUP>;
channel = <0>;
voltage = <200000>;
};

button@400 {
label = "Volume Down";
linux,code = <KEY_VOLUMEDOWN>;
channel = <0>;
voltage = <430000>;
voltage = <400000>;
};

button-1060 {
label = "key1";
linux,code = <BTN_1>;
button@600 {
label = "Select";
linux,code = <KEY_SELECT>;
channel = <0>;
voltage = <1060000>;
voltage = <600000>;
};

button-1650 {
label = "key2";
linux,code = <BTN_2>;
button@800 {
label = "Start";
linux,code = <KEY_OK>;
channel = <0>;
voltage = <1650000>;
voltage = <800000>;
};
};

Expand Down

0 comments on commit c94a39f

Please sign in to comment.