Chen-Yu Tsai | 8d7da69 | 2020-01-12 23:36:13 +0800 | [diff] [blame] | 1 | // SPDX-License-Identifier: (GPL-2.0+ OR MIT) |
| 2 | // Copyright (C) 2017 Jagan Teki <jteki@openedev.com> |
Jagan Teki | 6a2214a | 2017-05-25 16:00:09 +0000 | [diff] [blame] | 3 | |
| 4 | /dts-v1/; |
| 5 | |
| 6 | #include "sun50i-h5.dtsi" |
| 7 | |
| 8 | #include <dt-bindings/gpio/gpio.h> |
| 9 | |
Jagan Teki | 6a2214a | 2017-05-25 16:00:09 +0000 | [diff] [blame] | 10 | / { |
| 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 Przywara | e237db6 | 2018-07-04 14:16:37 +0100 | [diff] [blame] | 22 | 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 Teki | 6a2214a | 2017-05-25 16:00:09 +0000 | [diff] [blame] | 33 | reg_vcc3v3: vcc3v3 { |
| 34 | compatible = "regulator-fixed"; |
| 35 | regulator-name = "vcc3v3"; |
| 36 | regulator-min-microvolt = <3300000>; |
| 37 | regulator-max-microvolt = <3300000>; |
| 38 | }; |
Andre Przywara | e237db6 | 2018-07-04 14:16:37 +0100 | [diff] [blame] | 39 | |
| 40 | wifi_pwrseq: wifi_pwrseq { |
| 41 | compatible = "mmc-pwrseq-simple"; |
Andre Przywara | e237db6 | 2018-07-04 14:16:37 +0100 | [diff] [blame] | 42 | 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 Teki | 6a2214a | 2017-05-25 16:00:09 +0000 | [diff] [blame] | 49 | }; |
| 50 | |
Andre Przywara | e237db6 | 2018-07-04 14:16:37 +0100 | [diff] [blame] | 51 | &hdmi { |
| 52 | status = "okay"; |
| 53 | }; |
| 54 | |
| 55 | &hdmi_out { |
| 56 | hdmi_out_con: endpoint { |
| 57 | remote-endpoint = <&hdmi_con_in>; |
| 58 | }; |
| 59 | }; |
| 60 | |
Jagan Teki | 6a2214a | 2017-05-25 16:00:09 +0000 | [diff] [blame] | 61 | &mmc0 { |
Jagan Teki | 6a2214a | 2017-05-25 16:00:09 +0000 | [diff] [blame] | 62 | vmmc-supply = <®_vcc3v3>; |
| 63 | bus-width = <4>; |
Andre Przywara | e237db6 | 2018-07-04 14:16:37 +0100 | [diff] [blame] | 64 | cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; |
Jagan Teki | 6a2214a | 2017-05-25 16:00:09 +0000 | [diff] [blame] | 65 | status = "okay"; |
| 66 | }; |
| 67 | |
Andre Przywara | e237db6 | 2018-07-04 14:16:37 +0100 | [diff] [blame] | 68 | &mmc1 { |
| 69 | vmmc-supply = <®_vcc3v3>; |
| 70 | vqmmc-supply = <®_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 Teki | 6a2214a | 2017-05-25 16:00:09 +0000 | [diff] [blame] | 85 | &mmc2 { |
| 86 | pinctrl-names = "default"; |
| 87 | pinctrl-0 = <&mmc2_8bit_pins>; |
| 88 | vmmc-supply = <®_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 Tsai | 8d7da69 | 2020-01-12 23:36:13 +0800 | [diff] [blame] | 97 | pinctrl-0 = <&uart0_pa_pins>; |
Jagan Teki | 6a2214a | 2017-05-25 16:00:09 +0000 | [diff] [blame] | 98 | status = "okay"; |
| 99 | }; |
Andre Przywara | e237db6 | 2018-07-04 14:16:37 +0100 | [diff] [blame] | 100 | |
| 101 | &uart1 { |
| 102 | pinctrl-names = "default"; |
| 103 | pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>; |
| 104 | status = "okay"; |
| 105 | }; |