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";
59 compatible = "hdmi-connector";
63 hdmi_connector_in: endpoint {
64 remote-endpoint = <&hdmi_tx_tmds_out>;
72 pinctrl-0 = <&ao_cec_pins>;
73 pinctrl-names = "default";
74 hdmi-phandle = <&hdmi_tx>;
79 pinctrl-0 = <&hdmi_hpd_pins>, <&hdmi_i2c_pins>;
80 pinctrl-names = "default";
84 hdmi_tx_tmds_out: endpoint {
85 remote-endpoint = <&hdmi_connector_in>;
91 pinctrl-0 = <&i2c_a_pins>;
92 pinctrl-names = "default";
97 pinctrl-0 = <&i2c_b_pins>;
98 pinctrl-names = "default";
101 /* has to be enabled manually when a battery is connected: */
103 compatible = "haoyu,hym8563";
106 clock-frequency = <32768>;
107 clock-output-names = "xin32k";
112 linux,rc-map-name = "rc-geekbox";
116 gpio-line-names = "UART TX",
131 gpio-line-names = /* Bank GPIOZ */
132 "", "", "", "", "", "", "",
133 "", "", "", "", "", "", "",
137 "HDMI HPD", "HDMI SDA", "HDMI SCL",
138 "HDMI_5V_EN", "SPDIF",
145 "eMMC D0", "eMMC D1", "eMMC D2", "eMMC D3",
146 "eMMC D4", "eMMC D5", "eMMC D6", "eMMC D7",
147 "eMMC Clk", "eMMC Reset", "eMMC CMD",
148 "", "BOOT_MODE", "", "", "eMMC Data Strobe",
150 "SDCard D1", "SDCard D0", "SDCard CLK", "SDCard CMD",
151 "SDCard D3", "SDCard D2", "SDCard Det",
153 "", "", "", "", "", "", "", "", "", "", "", "",
154 "", "", "", "", "", "", "", "", "", "", "", "",
155 "I2C A SDA", "I2C A SCK", "I2C B SDA", "I2C B SCK",
156 "VCCK Regulator", "VDDEE Regulator",
158 "WIFI SDIO D0", "WIFI SDIO D1", "WIFI SDIO D2",
159 "WIFI SDIO D3", "WIFI SDIO CLK", "WIFI SDIO CMD",
160 "WIFI Power Enable", "WIFI WAKE HOST",
161 "Bluetooth PCM DOUT", "Bluetooth PCM DIN",
162 "Bluetooth PCM SYNC", "Bluetooth PCM CLK",
163 "Bluetooth UART TX", "Bluetooth UART RX",
164 "Bluetooth UART CTS", "Bluetooth UART RTS",
165 "WIFI 32K", "Bluetooth Enable",
166 "Bluetooth WAKE HOST",
168 "", "J9 Header Pin39";
173 pinctrl-0 = <&pwm_ao_a_3_pins>, <&pwm_ao_b_pins>;
174 pinctrl-names = "default";
175 clocks = <&xtal> , <&xtal>;
176 clock-names = "clkin0", "clkin1" ;
180 pinctrl-0 = <&pwm_e_pins>, <&pwm_f_clk_pins>;
186 compatible = "brcm,bcm4329-fmac";
190 /* This is brought out on the Linux_RX (18) and Linux_TX (19) pins: */
195 /* This is brought out on the UART_RX_AO_B (15) and UART_TX_AO_B (16) pins: */
198 pinctrl-0 = <&uart_ao_b_pins>;
199 pinctrl-names = "default";