2 * Copyright (c) 2017 Martin Blumenstingl <martin.blumenstingl@googlemail.com>.
4 * SPDX-License-Identifier: (GPL-2.0+ OR MIT)
9 #include <dt-bindings/input/input.h>
11 #include "meson-gxl-s905x-p212.dtsi"
14 compatible = "khadas,vim", "amlogic,s905x", "amlogic,meson-gxl";
18 compatible = "adc-keys";
19 io-channels = <&saradc 0>;
20 io-channel-names = "buttons";
21 keyup-threshold-microvolt = <1710000>;
25 linux,code = <KEY_FN>;
26 press-threshold-microvolt = <10000>;
35 compatible = "gpio-keys-polled";
38 poll-interval = <100>;
42 linux,code = <KEY_POWER>;
43 gpios = <&gpio_ao GPIOAO_2 GPIO_ACTIVE_LOW>;
48 compatible = "pwm-leds";
51 label = "vim:red:power";
52 pwms = <&pwm_AO_ab 1 7812500 0>;
53 max-brightness = <255>;
54 linux,default-trigger = "default-on";
61 pinctrl-0 = <&i2c_a_pins>;
62 pinctrl-names = "default";
67 pinctrl-0 = <&i2c_b_pins>;
68 pinctrl-names = "default";
71 /* has to be enabled manually when a battery is connected: */
73 compatible = "haoyu,hym8563";
76 clock-frequency = <32768>;
77 clock-output-names = "xin32k";
82 linux,rc-map-name = "rc-geekbox";
87 pinctrl-0 = <&pwm_ao_a_3_pins>, <&pwm_ao_b_pins>;
88 pinctrl-names = "default";
89 clocks = <&clkc CLKID_FCLK_DIV4>;
90 clock-names = "clkin0";
94 pinctrl-0 = <&pwm_e_pins>, <&pwm_f_clk_pins>;
100 compatible = "brcm,bcm4329-fmac";
104 /* This is brought out on the Linux_RX (18) and Linux_TX (19) pins: */
109 /* This is brought out on the UART_RX_AO_B (15) and UART_TX_AO_B (16) pins: */
112 pinctrl-0 = <&uart_ao_b_pins>;
113 pinctrl-names = "default";