blob: c95a68541309c88091d905644ed65957e9ba3096 [file] [log] [blame]
Chen-Yu Tsai8d7da692020-01-12 23:36:13 +08001// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2// Copyright (C) 2017 Jagan Teki <jteki@openedev.com>
Jagan Teki6a2214a2017-05-25 16:00:09 +00003
4/dts-v1/;
5
6#include "sun50i-h5.dtsi"
7
8#include <dt-bindings/gpio/gpio.h>
9
Jagan Teki6a2214a2017-05-25 16:00:09 +000010/ {
11 model = "OrangePi Zero Plus2";
12 compatible = "xunlong,orangepi-zero-plus2", "allwinner,sun50i-h5";
13
14 aliases {
15 serial0 = &uart0;
16 };
17
18 chosen {
19 stdout-path = "serial0:115200n8";
20 };
21
Andre Przywarae237db62018-07-04 14:16:37 +010022 connector {
23 compatible = "hdmi-connector";
24 type = "a";
25
26 port {
27 hdmi_con_in: endpoint {
28 remote-endpoint = <&hdmi_out_con>;
29 };
30 };
31 };
32
Jagan Teki6a2214a2017-05-25 16:00:09 +000033 reg_vcc3v3: vcc3v3 {
34 compatible = "regulator-fixed";
35 regulator-name = "vcc3v3";
36 regulator-min-microvolt = <3300000>;
37 regulator-max-microvolt = <3300000>;
38 };
Andre Przywarae237db62018-07-04 14:16:37 +010039
40 wifi_pwrseq: wifi_pwrseq {
41 compatible = "mmc-pwrseq-simple";
Andre Przywarae237db62018-07-04 14:16:37 +010042 reset-gpios = <&pio 0 9 GPIO_ACTIVE_LOW>; /* PA9 */
43 post-power-on-delay-ms = <200>;
44 };
45};
46
47&de {
48 status = "okay";
Jagan Teki6a2214a2017-05-25 16:00:09 +000049};
50
Andre Przywarae237db62018-07-04 14:16:37 +010051&hdmi {
52 status = "okay";
53};
54
55&hdmi_out {
56 hdmi_out_con: endpoint {
57 remote-endpoint = <&hdmi_con_in>;
58 };
59};
60
Jagan Teki6a2214a2017-05-25 16:00:09 +000061&mmc0 {
Jagan Teki6a2214a2017-05-25 16:00:09 +000062 vmmc-supply = <&reg_vcc3v3>;
63 bus-width = <4>;
Andre Przywarae237db62018-07-04 14:16:37 +010064 cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>;
Jagan Teki6a2214a2017-05-25 16:00:09 +000065 status = "okay";
66};
67
Andre Przywarae237db62018-07-04 14:16:37 +010068&mmc1 {
69 vmmc-supply = <&reg_vcc3v3>;
70 vqmmc-supply = <&reg_vcc3v3>;
71 mmc-pwrseq = <&wifi_pwrseq>;
72 bus-width = <4>;
73 non-removable;
74 status = "okay";
75
76 brcmf: wifi@1 {
77 reg = <1>;
78 compatible = "brcm,bcm4329-fmac";
79 interrupt-parent = <&r_pio>;
80 interrupts = <0 7 IRQ_TYPE_LEVEL_LOW>; /* PL7 */
81 interrupt-names = "host-wake";
82 };
83};
84
Jagan Teki6a2214a2017-05-25 16:00:09 +000085&mmc2 {
86 pinctrl-names = "default";
87 pinctrl-0 = <&mmc2_8bit_pins>;
88 vmmc-supply = <&reg_vcc3v3>;
89 bus-width = <8>;
90 non-removable;
91 cap-mmc-hw-reset;
92 status = "okay";
93};
94
95&uart0 {
96 pinctrl-names = "default";
Chen-Yu Tsai8d7da692020-01-12 23:36:13 +080097 pinctrl-0 = <&uart0_pa_pins>;
Jagan Teki6a2214a2017-05-25 16:00:09 +000098 status = "okay";
99};
Andre Przywarae237db62018-07-04 14:16:37 +0100100
101&uart1 {
102 pinctrl-names = "default";
103 pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>;
104 status = "okay";
105};