1 // SPDX-License-Identifier: GPL-2.0+ OR MIT
2 // Copyright (C) 2021 Ivan Uvarov <i.uvarov@cognitivepilot.com>
3 // Based on the sun8i-r40-bananapi-m2-ultra.dts, which is:
4 // Copyright (C) 2017 Chen-Yu Tsai <wens@csie.org>
5 // Copyright (C) 2017 Icenowy Zheng <icenowy@aosc.io>
8 #include "sun8i-r40-feta40i.dtsi"
10 #include <dt-bindings/gpio/gpio.h>
11 #include <dt-bindings/leds/common.h>
14 model = "Forlinx OKA40i-C";
15 compatible = "forlinx,oka40i-c", "forlinx,feta40i-c", "allwinner,sun8i-r40";
23 serial5 = &uart5; /* RS485 */
28 stdout-path = "serial0:115200n8";
32 compatible = "hdmi-connector";
36 hdmi_con_in: endpoint {
37 remote-endpoint = <&hdmi_out_con>;
43 compatible = "gpio-leds";
45 led-5 { /* this is how the leds are labeled on the board */
46 gpios = <&pio 7 26 GPIO_ACTIVE_LOW>; /* PH26 */
47 color = <LED_COLOR_ID_GREEN>;
48 function = LED_FUNCTION_STATUS;
52 gpios = <&pio 8 15 GPIO_ACTIVE_LOW>; /* PI15 */
53 color = <LED_COLOR_ID_BLUE>;
54 function = LED_FUNCTION_STATUS;
59 compatible = "regulator-fixed";
60 regulator-name = "vcc5v0";
61 regulator-min-microvolt = <5000000>;
62 regulator-max-microvolt = <5000000>;
65 wifi_pwrseq: wifi_pwrseq {
66 compatible = "mmc-pwrseq-simple";
67 reset-gpios = <&pio 1 10 GPIO_ACTIVE_LOW>; // PB10 WIFI_EN
68 clocks = <&ccu CLK_OUTA>;
69 clock-names = "ext_clock";
74 ahci-supply = <®_dldo4>;
75 phy-supply = <®_eldo2>;
92 pinctrl-names = "default";
93 pinctrl-0 = <&gmac_rgmii_pins>;
95 phy-mode = "rgmii-id";
96 phy-supply = <®_dcdc1>;
101 phy1: ethernet-phy@1 {
102 compatible = "ethernet-phy-ieee802.3-c22";
112 hdmi_out_con: endpoint {
113 remote-endpoint = <&hdmi_con_in>;
122 vmmc-supply = <®_dcdc1>;
123 vqmmc-supply = <®_dcdc1>;
125 cd-gpios = <&pio 8 11 GPIO_ACTIVE_LOW>; // PI11
130 vmmc-supply = <®_dcdc1>;
131 vqmmc-supply = <®_dcdc1>;
133 cd-gpios = <&pio 8 10 GPIO_ACTIVE_LOW>; // PI10
146 regulator-min-microvolt = <3300000>;
147 regulator-max-microvolt = <3300000>;
148 regulator-name = "vcc-lcd";
152 regulator-min-microvolt = <3300000>;
153 regulator-max-microvolt = <3300000>;
154 regulator-name = "vcc-wifi";
162 pinctrl-names = "default";
163 pinctrl-0 = <&uart0_pb_pins>;
168 pinctrl-names = "default";
169 pinctrl-0 = <&uart2_pi_pins>, <&uart2_rts_cts_pi_pins>;
175 pinctrl-names = "default";
176 pinctrl-0 = <&uart3_pg_pins>, <&uart3_rts_cts_pg_pins>;
182 pinctrl-names = "default";
183 pinctrl-0 = <&uart4_pg_pins>;
188 pinctrl-names = "default";
189 pinctrl-0 = <&uart5_ph_pins>;
194 pinctrl-names = "default";
195 pinctrl-0 = <&uart7_pi_pins>;
200 usb1_vbus-supply = <®_vcc5v0>;
201 usb2_vbus-supply = <®_vcc5v0>;