|
| 1 | +// SPDX-License-Identifier: (GPL-2.0+ or MIT) |
| 2 | +/* |
| 3 | + * Copyright (C) 2018 Amarula Solutions |
| 4 | + * Author: Jagan Teki <jagan@amarulasolutions.com> |
| 5 | + */ |
| 6 | + |
| 7 | +/dts-v1/; |
| 8 | + |
| 9 | +#include "sun50i-h6.dtsi" |
| 10 | + |
| 11 | +#include <dt-bindings/gpio/gpio.h> |
| 12 | + |
| 13 | +/ { |
| 14 | + model = "OrangePi 3"; |
| 15 | + compatible = "xunlong,orangepi-3", "allwinner,sun50i-h6"; |
| 16 | + |
| 17 | + aliases { |
| 18 | + serial0 = &uart0; |
| 19 | + ethernet0 = &emac; |
| 20 | + }; |
| 21 | + |
| 22 | + chosen { |
| 23 | + stdout-path = "serial0:115200n8"; |
| 24 | + }; |
| 25 | +}; |
| 26 | + |
| 27 | +&emac { |
| 28 | + pinctrl-names = "default"; |
| 29 | + pinctrl-0 = <&ext_rgmii_pins>; |
| 30 | + phy-mode = "rgmii"; |
| 31 | + phy-handle = <&ext_rgmii_phy>; |
| 32 | + phy-supply = <®_aldo2>; |
| 33 | + allwinner,rx-delay-ps = <200>; |
| 34 | + allwinner,tx-delay-ps = <200>; |
| 35 | + status = "okay"; |
| 36 | +}; |
| 37 | + |
| 38 | +&mdio { |
| 39 | + ext_rgmii_phy: ethernet-phy@1 { |
| 40 | + compatible = "ethernet-phy-ieee802.3-c22"; |
| 41 | + reg = <1>; |
| 42 | + }; |
| 43 | +}; |
| 44 | + |
| 45 | +&mmc0 { |
| 46 | + pinctrl-names = "default"; |
| 47 | + pinctrl-0 = <&mmc0_pins>; |
| 48 | + vmmc-supply = <®_cldo1>; |
| 49 | + cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; |
| 50 | + bus-width = <4>; |
| 51 | + status = "okay"; |
| 52 | +}; |
| 53 | + |
| 54 | +&mmc2 { |
| 55 | + pinctrl-names = "default"; |
| 56 | + pinctrl-0 = <&mmc2_pins>; |
| 57 | + vmmc-supply = <®_cldo1>; |
| 58 | + non-removable; |
| 59 | + cap-mmc-hw-reset; |
| 60 | + bus-width = <8>; |
| 61 | + status = "okay"; |
| 62 | +}; |
| 63 | + |
| 64 | +&r_i2c { |
| 65 | + status = "okay"; |
| 66 | + |
| 67 | + axp805: pmic@36 { |
| 68 | + compatible = "x-powers,axp805", "x-powers,axp806"; |
| 69 | + reg = <0x36>; |
| 70 | + interrupt-parent = <&r_intc>; |
| 71 | + interrupts = <0 IRQ_TYPE_LEVEL_LOW>; |
| 72 | + interrupt-controller; |
| 73 | + #interrupt-cells = <1>; |
| 74 | + x-powers,self-working-mode; |
| 75 | + |
| 76 | + regulators { |
| 77 | + reg_aldo1: aldo1 { |
| 78 | + regulator-always-on; |
| 79 | + regulator-min-microvolt = <3300000>; |
| 80 | + regulator-max-microvolt = <3300000>; |
| 81 | + regulator-name = "vcc-pl"; |
| 82 | + }; |
| 83 | + |
| 84 | + reg_aldo2: aldo2 { |
| 85 | + regulator-min-microvolt = <3300000>; |
| 86 | + regulator-max-microvolt = <3300000>; |
| 87 | + regulator-name = "vcc-ac200"; |
| 88 | + }; |
| 89 | + |
| 90 | + reg_aldo3: aldo3 { |
| 91 | + regulator-always-on; |
| 92 | + regulator-min-microvolt = <3300000>; |
| 93 | + regulator-max-microvolt = <3300000>; |
| 94 | + regulator-name = "vcc25-dram"; |
| 95 | + }; |
| 96 | + |
| 97 | + reg_bldo1: bldo1 { |
| 98 | + regulator-always-on; |
| 99 | + regulator-min-microvolt = <1800000>; |
| 100 | + regulator-max-microvolt = <1800000>; |
| 101 | + regulator-name = "vcc-bias-pll"; |
| 102 | + }; |
| 103 | + |
| 104 | + reg_bldo2: bldo2 { |
| 105 | + regulator-always-on; |
| 106 | + regulator-min-microvolt = <1800000>; |
| 107 | + regulator-max-microvolt = <1800000>; |
| 108 | + regulator-name = "vcc-efuse-pcie-hdmi-io"; |
| 109 | + }; |
| 110 | + |
| 111 | + reg_bldo3: bldo3 { |
| 112 | + regulator-always-on; |
| 113 | + regulator-min-microvolt = <1800000>; |
| 114 | + regulator-max-microvolt = <1800000>; |
| 115 | + regulator-name = "vcc-dcxoio"; |
| 116 | + }; |
| 117 | + |
| 118 | + bldo4 { |
| 119 | + /* unused */ |
| 120 | + }; |
| 121 | + |
| 122 | + reg_cldo1: cldo1 { |
| 123 | + regulator-always-on; |
| 124 | + regulator-min-microvolt = <3300000>; |
| 125 | + regulator-max-microvolt = <3300000>; |
| 126 | + regulator-name = "vcc-3v3"; |
| 127 | + }; |
| 128 | + |
| 129 | + reg_cldo2: cldo2 { |
| 130 | + regulator-min-microvolt = <3300000>; |
| 131 | + regulator-max-microvolt = <3300000>; |
| 132 | + regulator-name = "vcc-wifi-1"; |
| 133 | + }; |
| 134 | + |
| 135 | + reg_cldo3: cldo3 { |
| 136 | + regulator-min-microvolt = <3300000>; |
| 137 | + regulator-max-microvolt = <3300000>; |
| 138 | + regulator-name = "vcc-wifi-2"; |
| 139 | + }; |
| 140 | + |
| 141 | + reg_dcdca: dcdca { |
| 142 | + regulator-always-on; |
| 143 | + regulator-min-microvolt = <810000>; |
| 144 | + regulator-max-microvolt = <1080000>; |
| 145 | + regulator-name = "vdd-cpu"; |
| 146 | + }; |
| 147 | + |
| 148 | + reg_dcdcc: dcdcc { |
| 149 | + regulator-min-microvolt = <810000>; |
| 150 | + regulator-max-microvolt = <1080000>; |
| 151 | + regulator-name = "vdd-gpu"; |
| 152 | + }; |
| 153 | + |
| 154 | + reg_dcdcd: dcdcd { |
| 155 | + regulator-always-on; |
| 156 | + regulator-min-microvolt = <960000>; |
| 157 | + regulator-max-microvolt = <960000>; |
| 158 | + regulator-name = "vdd-sys"; |
| 159 | + }; |
| 160 | + |
| 161 | + reg_dcdce: dcdce { |
| 162 | + regulator-always-on; |
| 163 | + regulator-min-microvolt = <1200000>; |
| 164 | + regulator-max-microvolt = <1200000>; |
| 165 | + regulator-name = "vcc-dram"; |
| 166 | + }; |
| 167 | + |
| 168 | + sw { |
| 169 | + /* unused */ |
| 170 | + }; |
| 171 | + }; |
| 172 | + }; |
| 173 | +}; |
| 174 | + |
| 175 | +&uart0 { |
| 176 | + pinctrl-names = "default"; |
| 177 | + pinctrl-0 = <&uart0_ph_pins>; |
| 178 | + status = "okay"; |
| 179 | +}; |
0 commit comments