1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (c) 2018 Martin Blumenstingl <martin.blumenstingl@googlemail.com>.
8 #include <dt-bindings/gpio/gpio.h>
9 #include <dt-bindings/input/input.h>
11 #include "meson8b.dtsi"
14 model = "Endless Computers Endless Mini";
15 compatible = "endless,ec100", "amlogic,meson8b";
22 stdout-path = "serial0:115200n8";
26 device_type = "memory";
27 reg = <0x40000000 0x40000000>;
31 compatible = "gpio-keys-polled";
34 poll-interval = <100>;
38 linux,input-type = <EV_SW>;
39 linux,code = <KEY_SWITCHVIDEOMODE>;
40 gpios = <&gpio GPIOH_7 GPIO_ACTIVE_LOW>;
45 linux,input-type = <EV_SW>;
46 linux,code = <KEY_SWITCHVIDEOMODE>;
47 gpios = <&gpio GPIOH_8 GPIO_ACTIVE_HIGH>;
52 linux,code = <KEY_POWER>;
53 gpios = <&gpio GPIOH_9 GPIO_ACTIVE_LOW>;
58 compatible = "gpio-poweroff";
60 * shutdown is managed by the EC (embedded micro-controller)
61 * which is configured through GPIOAO_2 (poweroff GPIO) and
62 * GPIOAO_7 (power LED, which has to go LOW as well).
64 gpios = <&gpio_ao GPIOAO_2 GPIO_ACTIVE_LOW>;
69 compatible = "iio-hwmon";
70 io-channels = <&saradc 8>;
74 compatible = "gpio-leds";
77 label = "ec100:red:power";
79 * Needs to go LOW (together with the poweroff GPIO)
80 * during shutdown to allow the EC (embedded
81 * micro-controller) to shutdown the system. Setting
82 * the output to LOW signals the EC to start a
83 * "breathing"/pulsing effect until the power is fully
86 gpios = <&gpio_ao GPIOAO_7 GPIO_ACTIVE_HIGH>;
91 rtc32k_xtal: rtc32k-xtal-clk {
92 /* X2 in the schematics */
93 compatible = "fixed-clock";
94 clock-frequency = <32768>;
95 clock-output-names = "RTC32K";
99 usb_vbus: regulator-usb-vbus {
101 * Silergy SY6288CCAC-GP 2A Power Distribution Switch.
103 compatible = "regulator-fixed";
105 regulator-name = "USB_VBUS";
107 regulator-min-microvolt = <5000000>;
108 regulator-max-microvolt = <5000000>;
110 vin-supply = <&vcc_5v>;
113 * signal name from the schematics: USB_PWR_EN
115 gpio = <&gpio_ao GPIOAO_5 GPIO_ACTIVE_HIGH>;
119 vcc_5v: regulator-vcc5v {
121 * supplied by the main power input which called PWR_5V_STB
124 compatible = "regulator-fixed";
126 regulator-name = "VCC5V";
128 regulator-min-microvolt = <5000000>;
129 regulator-max-microvolt = <5000000>;
132 * signal name from the schematics: 3V3_5V_EN
134 gpio = <&gpio GPIODV_29 GPIO_ACTIVE_LOW>;
140 vcck: regulator-vcck {
142 * Silergy SY8089AAC-GP 2A continuous, 3A peak, 1MHz
143 * Synchronous Step Down Regulator.
145 compatible = "pwm-regulator";
147 regulator-name = "VCCK";
148 regulator-min-microvolt = <860000>;
149 regulator-max-microvolt = <1140000>;
151 vin-supply = <&vcc_5v>;
153 pwms = <&pwm_cd 0 1148 0>;
154 pwm-dutycycle-range = <100 0>;
160 vcc_1v8: regulator-vcc1v8 {
162 * ABLIC S-1339D18-M5001-GP
164 compatible = "regulator-fixed";
166 regulator-name = "VCC1V8";
167 regulator-min-microvolt = <1800000>;
168 regulator-max-microvolt = <1800000>;
170 vin-supply = <&vcc_3v3>;
173 vcc_3v3: regulator-vcc3v3 {
175 * Silergy SY8089AAC-GP 2A continuous, 3A peak, 1MHz
176 * Synchronous Step Down Regulator. Also called
177 * VDDIO_AO3.3V in the schematics.
179 compatible = "regulator-fixed";
181 regulator-name = "VCC3V3";
182 regulator-min-microvolt = <3300000>;
183 regulator-max-microvolt = <3300000>;
185 vin-supply = <&vcc_5v>;
188 vcc_ddr3: regulator-vcc-ddr3 {
190 * Silergy SY8089AAC-GP 2A continuous, 3A peak, 1MHz
191 * Synchronous Step Down Regulator. Also called
192 * DDR3_1.5V in the schematics.
194 compatible = "regulator-fixed";
196 regulator-name = "VCC_DDR3_1V5";
197 regulator-min-microvolt = <1500000>;
198 regulator-max-microvolt = <1500000>;
200 vin-supply = <&vcc_5v>;
206 vcc_rtc: regulator-vcc-rtc {
208 * Global Mixed-mode Technology Inc. G918T12U-GP
210 compatible = "regulator-fixed";
212 regulator-name = "VCC_RTC";
213 regulator-min-microvolt = <900000>;
214 regulator-max-microvolt = <900000>;
217 * When the board is powered then the input is VCC3V3,
218 * otherwise power is taken from the coin cell battery.
220 vin-supply = <&vcc_3v3>;
223 vddee: regulator-vddee {
225 * Silergy SY8089AAC-GP 2A continuous, 3A peak, 1MHz
226 * Synchronous Step Down Regulator. Also called VDDAO
227 * in a part of the schematics.
229 compatible = "pwm-regulator";
231 regulator-name = "VDDEE";
232 regulator-min-microvolt = <860000>;
233 regulator-max-microvolt = <1140000>;
235 vin-supply = <&vcc_5v>;
237 pwms = <&pwm_cd 1 1148 0>;
238 pwm-dutycycle-range = <100 0>;
246 cpu-supply = <&vcck>;
252 pinctrl-0 = <ð_rmii_pins>;
253 pinctrl-names = "default";
255 phy-handle = <ð_phy0>;
259 compatible = "snps,dwmac-mdio";
260 #address-cells = <1>;
263 eth_phy0: ethernet-phy@0 {
264 /* IC Plus IP101A/G (0x02430c54) */
267 reset-assert-us = <10000>;
268 reset-deassert-us = <10000>;
269 reset-gpios = <&gpio GPIOH_4 GPIO_ACTIVE_LOW>;
271 icplus,select-interrupt;
272 interrupt-parent = <&gpio_intc>;
274 interrupts = <17 IRQ_TYPE_LEVEL_LOW>;
281 pinctrl-0 = <&i2c_a_pins>;
282 pinctrl-names = "default";
285 compatible = "realtek,rt5640";
287 interrupt-parent = <&gpio_intc>;
288 interrupts = <13 IRQ_TYPE_EDGE_BOTH>; /* GPIOAO_13 */
289 realtek,in1-differential;
294 mali-supply = <&vddee>;
299 vref-supply = <&vcc_1v8>;
305 pinctrl-0 = <&sd_b_pins>;
306 pinctrl-names = "default";
309 sd_card_slot: slot@1 {
310 compatible = "mmc-slot";
320 cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_LOW>;
322 vmmc-supply = <&vcc_3v3>;
327 gpio-line-names = "Linux_TX", "Linux_RX",
328 "SLP_S5_N", "USB2_OC_FLAG#",
329 "HUB_RST", "USB_PWR_EN",
330 "I2S_IN", "SLP_S1_N",
331 "TCK", "TMS", "TDI", "TDO",
332 "HDMI_CEC", "5640_IRQ",
333 "MUTE", "S805_TEST#";
337 gpio-line-names = /* Bank GPIOX */
338 "WIFI_SD_D0", "WIFI_SD_D1", "WIFI_SD_D2",
339 "WIFI_SD_D3", "BTPCM_DOUT", "BTPCM_DIN",
340 "BTPCM_SYNC", "BTPCM_CLK", "WIFI_SD_CLK",
341 "WIFI_SD_CMD", "WIFI_32K", "WIFI_PWREN",
342 "UART_B_TX", "UART_B_RX", "UART_B_CTS_N",
343 "UART_B_RTS_N", "BT_EN", "WIFI_WAKE_HOST",
345 "", "", "", "", "", "", "", "", "", "",
348 "VCCK_PWM_C", "I2C_SDA_A", "I2C_SCL_A",
349 "I2C_SDA_B", "I2C_SCL_B", "VDDEE_PWM_D",
350 "VDDEE_PWM 3V3_5V_EN",
352 "HDMI_HPD", "HDMI_I2C_SDA", "HDMI_I2C_SCL",
353 "RMII_IRQ", "RMII_RST#", "RMII_TXD1",
354 "RMII_TXD0", "AV_select_1", "AV_select_2",
357 "SD_D1_B", "SD_D0_B", "SD_CLK_8726MX",
358 "SD_CMD_8726MX", "SD_D3_B", "SD_D2_B",
359 "CARD_EN_DET (CARD_DET)",
361 "NAND_D0 (EMMC)", "NAND_D1 (EMMC)",
362 "NAND_D2 (EMMC)", "NAND_D3 (EMMC)",
363 "NAND_D4 (EMMC)", "NAND_D5 (EMMC)",
364 "NAND_D6 (EMMC)", "NAND_D7 (EMMC)",
365 "NAND_CS1 (EMMC)", "NAND_CS2 iNAND_RS1 (EMMC)",
366 "NAND_nR/B iNAND_CMD (EMMC)", "NAND_ALE (EMMC)",
367 "NAND_CLE (EMMC)", "nRE_S1 NAND_nRE (EMMC)",
368 "nWE_S1 NAND_nWE (EMMC)", "", "", "SPI_CS",
370 "RMII_RXD1", "RMII_RXD0", "RMII_CRS_DV",
371 "RMII_50M_IN", "GPIODIF_4", "GPIODIF_5",
372 "RMII_TXEN", "CPUETH_25MOUT", "RMII_MDC",
378 pinctrl-0 = <&pwm_c1_pins>, <&pwm_d_pins>;
379 pinctrl-names = "default";
380 clocks = <&clkc CLKID_XTAL>, <&clkc CLKID_XTAL>;
381 clock-names = "clkin0", "clkin1";
386 clocks = <&rtc32k_xtal>;
387 vdd-supply = <&vcc_rtc>;
390 /* exposed through the pin headers labeled "URDUG1" on the top of the PCB */
393 pinctrl-0 = <&uart_ao_a_pins>;
394 pinctrl-names = "default";
398 * connected to the Bluetooth part of the RTL8723BS SDIO wifi / Bluetooth
399 * combo chip. This is only available on the variant with 2GB RAM.
403 pinctrl-0 = <&uart_b0_pins>, <&uart_b0_cts_rts_pins>;
404 pinctrl-names = "default";
410 vbus-supply = <&usb_vbus>;