1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (c) 2017 Martin Blumenstingl <martin.blumenstingl@googlemail.com>.
8 #include <dt-bindings/input/input.h>
10 #include "meson-gxl-s905x-p212.dtsi"
13 compatible = "khadas,vim", "amlogic,s905x", "amlogic,meson-gxl";
17 compatible = "adc-keys";
18 io-channels = <&saradc 0>;
19 io-channel-names = "buttons";
20 keyup-threshold-microvolt = <1710000>;
24 linux,code = <KEY_FN>;
25 press-threshold-microvolt = <10000>;
35 compatible = "gpio-keys-polled";
36 poll-interval = <100>;
40 linux,code = <KEY_POWER>;
41 gpios = <&gpio_ao GPIOAO_2 GPIO_ACTIVE_LOW>;
46 compatible = "pwm-leds";
49 label = "vim:red:power";
50 pwms = <&pwm_AO_ab 1 7812500 0>;
51 max-brightness = <255>;
52 linux,default-trigger = "default-on";
57 compatible = "hdmi-connector";
61 hdmi_connector_in: endpoint {
62 remote-endpoint = <&hdmi_tx_tmds_out>;
70 pinctrl-0 = <&ao_cec_pins>;
71 pinctrl-names = "default";
72 hdmi-phandle = <&hdmi_tx>;
77 pinctrl-0 = <&hdmi_hpd_pins>, <&hdmi_i2c_pins>;
78 pinctrl-names = "default";
79 hdmi-supply = <&hdmi_5v>;
83 hdmi_tx_tmds_out: endpoint {
84 remote-endpoint = <&hdmi_connector_in>;
90 pinctrl-0 = <&i2c_a_pins>;
91 pinctrl-names = "default";
96 pinctrl-0 = <&i2c_b_pins>;
97 pinctrl-names = "default";
100 /* has to be enabled manually when a battery is connected: */
102 compatible = "haoyu,hym8563";
105 clock-frequency = <32768>;
106 clock-output-names = "xin32k";
111 linux,rc-map-name = "rc-khadas";
115 gpio-line-names = "UART TX",
130 gpio-line-names = /* Bank GPIOZ */
131 "", "", "", "", "", "", "",
132 "", "", "", "", "", "", "",
136 "HDMI HPD", "HDMI SDA", "HDMI SCL",
137 "HDMI_5V_EN", "SPDIF",
144 "eMMC D0", "eMMC D1", "eMMC D2", "eMMC D3",
145 "eMMC D4", "eMMC D5", "eMMC D6", "eMMC D7",
146 "eMMC Clk", "eMMC Reset", "eMMC CMD",
147 "", "BOOT_MODE", "", "", "eMMC Data Strobe",
149 "SDCard D1", "SDCard D0", "SDCard CLK", "SDCard CMD",
150 "SDCard D3", "SDCard D2", "SDCard Det",
152 "", "", "", "", "", "", "", "", "", "", "", "",
153 "", "", "", "", "", "", "", "", "", "", "", "",
154 "I2C A SDA", "I2C A SCK", "I2C B SDA", "I2C B SCK",
155 "VCCK Regulator", "VDDEE Regulator",
157 "WIFI SDIO D0", "WIFI SDIO D1", "WIFI SDIO D2",
158 "WIFI SDIO D3", "WIFI SDIO CLK", "WIFI SDIO CMD",
159 "WIFI Power Enable", "WIFI WAKE HOST",
160 "Bluetooth PCM DOUT", "Bluetooth PCM DIN",
161 "Bluetooth PCM SYNC", "Bluetooth PCM CLK",
162 "Bluetooth UART TX", "Bluetooth UART RX",
163 "Bluetooth UART CTS", "Bluetooth UART RTS",
164 "WIFI 32K", "Bluetooth Enable",
165 "Bluetooth WAKE HOST",
167 "", "J9 Header Pin39";
172 pinctrl-0 = <&pwm_ao_a_3_pins>, <&pwm_ao_b_pins>;
173 pinctrl-names = "default";
174 clocks = <&xtal> , <&xtal>;
175 clock-names = "clkin0", "clkin1" ;
179 pinctrl-0 = <&pwm_e_pins>, <&pwm_f_clk_pins>;
185 compatible = "brcm,bcm4329-fmac";
191 compatible = "brcm,bcm43438-bt";
192 shutdown-gpios = <&gpio GPIOX_17 GPIO_ACTIVE_HIGH>;
193 max-speed = <2000000>;
199 /* This is brought out on the Linux_RX (18) and Linux_TX (19) pins: */
204 /* This is brought out on the UART_RX_AO_B (15) and UART_TX_AO_B (16) pins: */
207 pinctrl-0 = <&uart_ao_b_pins>;
208 pinctrl-names = "default";