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 reg = <0x40000000 0x40000000>;
30 compatible = "gpio-keys-polled";
33 poll-interval = <100>;
37 linux,input-type = <EV_SW>;
38 linux,code = <KEY_SWITCHVIDEOMODE>;
39 gpios = <&gpio GPIOH_7 GPIO_ACTIVE_LOW>;
44 linux,input-type = <EV_SW>;
45 linux,code = <KEY_SWITCHVIDEOMODE>;
46 gpios = <&gpio GPIOH_8 GPIO_ACTIVE_HIGH>;
51 linux,code = <KEY_POWER>;
52 gpios = <&gpio GPIOH_9 GPIO_ACTIVE_LOW>;
57 compatible = "gpio-poweroff";
59 * shutdown is managed by the EC (embedded micro-controller)
60 * which is configured through GPIOAO_2 (poweroff GPIO) and
61 * GPIOAO_7 (power LED, which has to go LOW as well).
63 gpios = <&gpio_ao GPIOAO_2 GPIO_ACTIVE_LOW>;
68 compatible = "gpio-leds";
71 label = "ec100:red:power";
73 * Needs to go LOW (together with the poweroff GPIO)
74 * during shutdown to allow the EC (embedded
75 * micro-controller) to shutdown the system. Setting
76 * the output to LOW signals the EC to start a
77 * "breathing"/pulsing effect until the power is fully
80 gpios = <&gpio_ao GPIOAO_7 GPIO_ACTIVE_HIGH>;
85 usb_vbus: regulator-usb-vbus {
86 compatible = "regulator-fixed";
88 regulator-name = "USB_VBUS";
90 regulator-min-microvolt = <5000000>;
91 regulator-max-microvolt = <5000000>;
93 gpio = <&gpio_ao GPIOAO_5 GPIO_ACTIVE_HIGH>;
97 vcc_5v: regulator-vcc5v {
98 compatible = "regulator-fixed";
100 regulator-name = "VCC5V";
102 regulator-min-microvolt = <5000000>;
103 regulator-max-microvolt = <5000000>;
105 gpio = <&gpio GPIODV_29 GPIO_ACTIVE_LOW>;
111 vcck: regulator-vcck {
112 compatible = "pwm-regulator";
114 regulator-name = "VCCK";
115 regulator-min-microvolt = <860000>;
116 regulator-max-microvolt = <1140000>;
118 pwms = <&pwm_cd 0 1148 0>;
119 pwm-dutycycle-range = <100 0>;
125 vcc_1v8: regulator-vcc1v8 {
126 compatible = "regulator-fixed";
128 regulator-name = "VCC1V8";
129 regulator-min-microvolt = <1800000>;
130 regulator-max-microvolt = <1800000>;
133 vcc_3v3: regulator-vcc3v3 {
134 compatible = "regulator-fixed";
136 regulator-name = "VCC3V3";
137 regulator-min-microvolt = <3300000>;
138 regulator-max-microvolt = <3300000>;
143 cpu-supply = <&vcck>;
149 pinctrl-0 = <ð_rmii_pins>;
150 pinctrl-names = "default";
152 phy-handle = <ð_phy0>;
155 snps,reset-gpio = <&gpio GPIOH_4 0>;
156 snps,reset-delays-us = <0 10000 1000000>;
157 snps,reset-active-low;
160 compatible = "snps,dwmac-mdio";
161 #address-cells = <1>;
164 eth_phy0: ethernet-phy@0 {
165 /* IC Plus IP101A/G (0x02430c54) */
173 pinctrl-0 = <&i2c_a_pins>;
174 pinctrl-names = "default";
177 compatible = "realtek,rt5640";
179 interrupt-parent = <&gpio_intc>;
180 interrupts = <13 IRQ_TYPE_EDGE_BOTH>; /* GPIOAO_13 */
181 realtek,in1-differential;
187 vref-supply = <&vcc_1v8>;
193 pinctrl-0 = <&sd_b_pins>;
194 pinctrl-names = "default";
197 sd_card_slot: slot@1 {
198 compatible = "mmc-slot";
208 cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_HIGH>;
211 vmmc-supply = <&vcc_3v3>;
217 pinctrl-0 = <&pwm_c1_pins>;
218 pinctrl-names = "default";
219 clocks = <&clkc CLKID_XTAL>;
220 clock-names = "clkin0";
223 /* exposed through the pin headers labeled "URDUG1" on the top of the PCB */
226 pinctrl-0 = <&uart_ao_a_pins>;
227 pinctrl-names = "default";
231 * connected to the Bluetooth part of the RTL8723BS SDIO wifi / Bluetooth
232 * combo chip. This is only available on the variant with 2GB RAM.
236 pinctrl-0 = <&uart_b0_pins>, <&uart_b0_cts_rts_pins>;
237 pinctrl-names = "default";
243 vbus-supply = <&usb_vbus>;