1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2 // Copyright (c) 2019 Jernej Skrabec <jernej.sk 2 // Copyright (c) 2019 Jernej Skrabec <jernej.skrabec@siol.net> 3 3 4 /dts-v1/; 4 /dts-v1/; 5 5 6 #include "sun50i-h6.dtsi" 6 #include "sun50i-h6.dtsi" 7 #include "sun50i-h6-cpu-opp.dtsi" 7 #include "sun50i-h6-cpu-opp.dtsi" 8 8 9 #include <dt-bindings/gpio/gpio.h> 9 #include <dt-bindings/gpio/gpio.h> 10 10 11 / { 11 / { 12 aliases { 12 aliases { 13 serial0 = &uart0; 13 serial0 = &uart0; 14 }; 14 }; 15 15 16 chosen { 16 chosen { 17 stdout-path = "serial0:115200n 17 stdout-path = "serial0:115200n8"; 18 }; 18 }; 19 19 20 connector { 20 connector { 21 compatible = "hdmi-connector"; 21 compatible = "hdmi-connector"; 22 ddc-en-gpios = <&pio 7 2 GPIO_ 22 ddc-en-gpios = <&pio 7 2 GPIO_ACTIVE_HIGH>; /* PH2 */ 23 type = "a"; 23 type = "a"; 24 24 25 port { 25 port { 26 hdmi_con_in: endpoint 26 hdmi_con_in: endpoint { 27 remote-endpoin 27 remote-endpoint = <&hdmi_out_con>; 28 }; 28 }; 29 }; 29 }; 30 }; 30 }; 31 31 32 /* used for FD650 LED display driver * 32 /* used for FD650 LED display driver */ 33 i2c { 33 i2c { 34 compatible = "i2c-gpio"; 34 compatible = "i2c-gpio"; 35 sda-gpios = <&pio 7 6 (GPIO_AC 35 sda-gpios = <&pio 7 6 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>; /* PH6 */ 36 scl-gpios = <&pio 7 5 (GPIO_AC 36 scl-gpios = <&pio 7 5 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>; /* PH5 */ 37 i2c-gpio,delay-us = <5>; 37 i2c-gpio,delay-us = <5>; 38 }; 38 }; 39 39 40 reg_vcc1v8: regulator-vcc1v8 { 40 reg_vcc1v8: regulator-vcc1v8 { 41 compatible = "regulator-fixed" 41 compatible = "regulator-fixed"; 42 regulator-name = "vcc1v8"; 42 regulator-name = "vcc1v8"; 43 regulator-min-microvolt = <180 43 regulator-min-microvolt = <1800000>; 44 regulator-max-microvolt = <180 44 regulator-max-microvolt = <1800000>; 45 }; 45 }; 46 46 47 reg_vcc3v3: regulator-vcc3v3 { 47 reg_vcc3v3: regulator-vcc3v3 { 48 compatible = "regulator-fixed" 48 compatible = "regulator-fixed"; 49 regulator-name = "vcc3v3"; 49 regulator-name = "vcc3v3"; 50 regulator-min-microvolt = <330 50 regulator-min-microvolt = <3300000>; 51 regulator-max-microvolt = <330 51 regulator-max-microvolt = <3300000>; 52 }; 52 }; 53 53 54 reg_vdd_cpu_gpu: regulator-vdd-cpu-gpu 54 reg_vdd_cpu_gpu: regulator-vdd-cpu-gpu { 55 compatible = "regulator-fixed" 55 compatible = "regulator-fixed"; 56 regulator-name = "vdd-cpu-gpu" 56 regulator-name = "vdd-cpu-gpu"; 57 regulator-min-microvolt = <113 57 regulator-min-microvolt = <1135000>; 58 regulator-max-microvolt = <113 58 regulator-max-microvolt = <1135000>; 59 }; 59 }; 60 60 61 sound-spdif { 61 sound-spdif { 62 compatible = "simple-audio-car 62 compatible = "simple-audio-card"; 63 simple-audio-card,name = "sun5 63 simple-audio-card,name = "sun50i-h6-spdif"; 64 64 65 simple-audio-card,cpu { 65 simple-audio-card,cpu { 66 sound-dai = <&spdif>; 66 sound-dai = <&spdif>; 67 }; 67 }; 68 68 69 simple-audio-card,codec { 69 simple-audio-card,codec { 70 sound-dai = <&spdif_ou 70 sound-dai = <&spdif_out>; 71 }; 71 }; 72 }; 72 }; 73 73 74 spdif_out: spdif-out { 74 spdif_out: spdif-out { 75 #sound-dai-cells = <0>; 75 #sound-dai-cells = <0>; 76 compatible = "linux,spdif-dit" 76 compatible = "linux,spdif-dit"; 77 }; 77 }; 78 78 79 wifi_pwrseq: wifi-pwrseq { 79 wifi_pwrseq: wifi-pwrseq { 80 compatible = "mmc-pwrseq-simpl 80 compatible = "mmc-pwrseq-simple"; 81 clocks = <&rtc CLK_OSC32K_FANO 81 clocks = <&rtc CLK_OSC32K_FANOUT>; 82 clock-names = "ext_clock"; 82 clock-names = "ext_clock"; 83 reset-gpios = <&r_pio 1 3 GPIO 83 reset-gpios = <&r_pio 1 3 GPIO_ACTIVE_LOW>; /* PM3 */ 84 }; 84 }; 85 }; 85 }; 86 86 87 &cpu0 { 87 &cpu0 { 88 cpu-supply = <®_vdd_cpu_gpu>; 88 cpu-supply = <®_vdd_cpu_gpu>; 89 }; 89 }; 90 90 91 &de { 91 &de { 92 status = "okay"; 92 status = "okay"; 93 }; 93 }; 94 94 95 &dwc3 { 95 &dwc3 { 96 status = "okay"; 96 status = "okay"; 97 }; 97 }; 98 98 99 &ehci0 { 99 &ehci0 { 100 status = "okay"; 100 status = "okay"; 101 }; 101 }; 102 102 103 &ehci3 { 103 &ehci3 { 104 status = "okay"; 104 status = "okay"; 105 }; 105 }; 106 106 107 &gpu { 107 &gpu { 108 mali-supply = <®_vdd_cpu_gpu>; 108 mali-supply = <®_vdd_cpu_gpu>; 109 status = "okay"; 109 status = "okay"; 110 }; 110 }; 111 111 112 &hdmi { 112 &hdmi { 113 status = "okay"; 113 status = "okay"; 114 }; 114 }; 115 115 116 &hdmi_out { 116 &hdmi_out { 117 hdmi_out_con: endpoint { 117 hdmi_out_con: endpoint { 118 remote-endpoint = <&hdmi_con_i 118 remote-endpoint = <&hdmi_con_in>; 119 }; 119 }; 120 }; 120 }; 121 121 122 &mmc0 { 122 &mmc0 { 123 pinctrl-names = "default"; 123 pinctrl-names = "default"; 124 pinctrl-0 = <&mmc0_pins>; 124 pinctrl-0 = <&mmc0_pins>; 125 vmmc-supply = <®_vcc3v3>; 125 vmmc-supply = <®_vcc3v3>; 126 cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; 126 cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; 127 bus-width = <4>; 127 bus-width = <4>; 128 status = "okay"; 128 status = "okay"; 129 }; 129 }; 130 130 131 &mmc1 { 131 &mmc1 { 132 vmmc-supply = <®_vcc3v3>; 132 vmmc-supply = <®_vcc3v3>; 133 vqmmc-supply = <®_vcc1v8>; 133 vqmmc-supply = <®_vcc1v8>; 134 mmc-pwrseq = <&wifi_pwrseq>; 134 mmc-pwrseq = <&wifi_pwrseq>; 135 bus-width = <4>; 135 bus-width = <4>; 136 non-removable; 136 non-removable; 137 status = "okay"; 137 status = "okay"; 138 }; 138 }; 139 139 140 &mmc2 { 140 &mmc2 { 141 vmmc-supply = <®_vcc3v3>; 141 vmmc-supply = <®_vcc3v3>; 142 vqmmc-supply = <®_vcc1v8>; 142 vqmmc-supply = <®_vcc1v8>; 143 bus-width = <8>; 143 bus-width = <8>; 144 non-removable; 144 non-removable; 145 cap-mmc-hw-reset; 145 cap-mmc-hw-reset; 146 mmc-hs200-1_8v; 146 mmc-hs200-1_8v; 147 status = "okay"; 147 status = "okay"; 148 }; 148 }; 149 149 150 &ohci0 { 150 &ohci0 { 151 status = "okay"; 151 status = "okay"; 152 }; 152 }; 153 153 154 &ohci3 { 154 &ohci3 { 155 status = "okay"; 155 status = "okay"; 156 }; 156 }; 157 157 158 &pio { 158 &pio { 159 vcc-pc-supply = <®_vcc1v8>; 159 vcc-pc-supply = <®_vcc1v8>; 160 vcc-pd-supply = <®_vcc3v3>; 160 vcc-pd-supply = <®_vcc3v3>; 161 vcc-pg-supply = <®_vcc1v8>; 161 vcc-pg-supply = <®_vcc1v8>; 162 }; 162 }; 163 163 164 &r_ir { 164 &r_ir { 165 status = "okay"; 165 status = "okay"; 166 }; 166 }; 167 167 168 &spdif { 168 &spdif { 169 pinctrl-names = "default"; 169 pinctrl-names = "default"; 170 pinctrl-0 = <&spdif_tx_pin>; 170 pinctrl-0 = <&spdif_tx_pin>; 171 status = "okay"; 171 status = "okay"; 172 }; 172 }; 173 173 174 &uart0 { 174 &uart0 { 175 pinctrl-names = "default"; 175 pinctrl-names = "default"; 176 pinctrl-0 = <&uart0_ph_pins>; 176 pinctrl-0 = <&uart0_ph_pins>; 177 status = "okay"; 177 status = "okay"; 178 }; 178 }; 179 179 180 &usb2otg { 180 &usb2otg { 181 dr_mode = "host"; 181 dr_mode = "host"; 182 status = "okay"; 182 status = "okay"; 183 }; 183 }; 184 184 185 &usb2phy { 185 &usb2phy { 186 status = "okay"; 186 status = "okay"; 187 }; 187 }; 188 188 189 &usb3phy { 189 &usb3phy { 190 status = "okay"; 190 status = "okay"; 191 }; 191 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.