Jernej Skrabec | a54b292 | 2021-01-06 18:02:57 +0100 | [diff] [blame] | 1 | // SPDX-License-Identifier: (GPL-2.0+ OR MIT) |
| 2 | // Copyright (c) 2019 Jernej Skrabec <jernej.skrabec@siol.net> |
| 3 | |
| 4 | /dts-v1/; |
| 5 | |
| 6 | #include "sun50i-h6.dtsi" |
| 7 | #include "sun50i-h6-cpu-opp.dtsi" |
| 8 | |
| 9 | #include <dt-bindings/gpio/gpio.h> |
| 10 | |
| 11 | / { |
| 12 | model = "Tanix TX6"; |
| 13 | compatible = "oranth,tanix-tx6", "allwinner,sun50i-h6"; |
| 14 | |
| 15 | aliases { |
| 16 | serial0 = &uart0; |
| 17 | }; |
| 18 | |
| 19 | chosen { |
| 20 | stdout-path = "serial0:115200n8"; |
| 21 | }; |
| 22 | |
| 23 | connector { |
| 24 | compatible = "hdmi-connector"; |
| 25 | ddc-en-gpios = <&pio 7 2 GPIO_ACTIVE_HIGH>; /* PH2 */ |
| 26 | type = "a"; |
| 27 | |
| 28 | port { |
| 29 | hdmi_con_in: endpoint { |
| 30 | remote-endpoint = <&hdmi_out_con>; |
| 31 | }; |
| 32 | }; |
| 33 | }; |
| 34 | |
| 35 | reg_vcc3v3: vcc3v3 { |
| 36 | compatible = "regulator-fixed"; |
| 37 | regulator-name = "vcc3v3"; |
| 38 | regulator-min-microvolt = <3300000>; |
| 39 | regulator-max-microvolt = <3300000>; |
| 40 | }; |
| 41 | |
| 42 | reg_vdd_cpu_gpu: vdd-cpu-gpu { |
| 43 | compatible = "regulator-fixed"; |
| 44 | regulator-name = "vdd-cpu-gpu"; |
| 45 | regulator-min-microvolt = <1135000>; |
| 46 | regulator-max-microvolt = <1135000>; |
| 47 | }; |
| 48 | }; |
| 49 | |
| 50 | &cpu0 { |
| 51 | cpu-supply = <®_vdd_cpu_gpu>; |
| 52 | }; |
| 53 | |
| 54 | &de { |
| 55 | status = "okay"; |
| 56 | }; |
| 57 | |
| 58 | &dwc3 { |
| 59 | status = "okay"; |
| 60 | }; |
| 61 | |
| 62 | &ehci0 { |
| 63 | status = "okay"; |
| 64 | }; |
| 65 | |
| 66 | &ehci3 { |
| 67 | status = "okay"; |
| 68 | }; |
| 69 | |
| 70 | &gpu { |
| 71 | mali-supply = <®_vdd_cpu_gpu>; |
| 72 | status = "okay"; |
| 73 | }; |
| 74 | |
| 75 | &hdmi { |
| 76 | status = "okay"; |
| 77 | }; |
| 78 | |
| 79 | &hdmi_out { |
| 80 | hdmi_out_con: endpoint { |
| 81 | remote-endpoint = <&hdmi_con_in>; |
| 82 | }; |
| 83 | }; |
| 84 | |
| 85 | &mmc0 { |
| 86 | pinctrl-names = "default"; |
| 87 | pinctrl-0 = <&mmc0_pins>; |
| 88 | vmmc-supply = <®_vcc3v3>; |
| 89 | cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; |
| 90 | bus-width = <4>; |
| 91 | status = "okay"; |
| 92 | }; |
| 93 | |
| 94 | &ohci0 { |
| 95 | status = "okay"; |
| 96 | }; |
| 97 | |
| 98 | &ohci3 { |
| 99 | status = "okay"; |
| 100 | }; |
| 101 | |
| 102 | &r_ir { |
| 103 | linux,rc-map-name = "rc-tanix-tx5max"; |
| 104 | status = "okay"; |
| 105 | }; |
| 106 | |
| 107 | &uart0 { |
| 108 | pinctrl-names = "default"; |
| 109 | pinctrl-0 = <&uart0_ph_pins>; |
| 110 | status = "okay"; |
| 111 | }; |
| 112 | |
| 113 | &usb2otg { |
| 114 | dr_mode = "host"; |
| 115 | status = "okay"; |
| 116 | }; |
| 117 | |
| 118 | &usb2phy { |
| 119 | status = "okay"; |
| 120 | }; |
| 121 | |
| 122 | &usb3phy { |
| 123 | status = "okay"; |
| 124 | }; |