OSDN Git Service

arm64: dts: meson-g12a-sei510: Add ADC Key and BT support
authorNeil Armstrong <narmstrong@baylibre.com>
Mon, 25 Mar 2019 10:14:50 +0000 (11:14 +0100)
committerKevin Hilman <khilman@baylibre.com>
Tue, 16 Apr 2019 00:33:31 +0000 (17:33 -0700)
Add support for the :
- ADC Touch key
- Bluetooth Module on UART A

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Acked-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
arch/arm64/boot/dts/amlogic/meson-g12a-sei510.dts

index 43d57e2..ebdad5a 100644 (file)
@@ -7,6 +7,7 @@
 
 #include "meson-g12a.dtsi"
 #include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
 #include <dt-bindings/gpio/meson-g12a-gpio.h>
 
 / {
                serial0 = &uart_AO;
        };
 
+       adc_keys {
+               compatible = "adc-keys";
+               io-channels = <&saradc 0>;
+               io-channel-names = "buttons";
+               keyup-threshold-microvolt = <1800000>;
+
+               button-onoff {
+                       label = "On/Off";
+                       linux,code = <KEY_POWER>;
+                       press-threshold-microvolt = <1700000>;
+               };
+       };
+
        ao_5v: regulator-ao_5v {
                compatible = "regulator-fixed";
                regulator-name = "AO_5V";
                vin-supply = <&vddao_3v3>;
                regulator-always-on;
        };
+};
+
+&saradc {
+       status = "okay";
+       vref-supply = <&vddio_ao1v8>;
+};
+
+&uart_A {
+       status = "okay";
+       pinctrl-0 = <&uart_a_pins>, <&uart_a_cts_rts_pins>;
+       pinctrl-names = "default";
+       uart-has-rtscts;
 
+       bluetooth {
+               compatible = "brcm,bcm43438-bt";
+               shutdown-gpios = <&gpio GPIOX_17 GPIO_ACTIVE_HIGH>;
+       };
 };
 
 &uart_AO {