Andre Przywara | 8780ada | 2023-10-19 15:51:39 +0100 | [diff] [blame] | 1 | // SPDX-License-Identifier: (GPL-2.0+ OR MIT) |
| 2 | /* |
| 3 | * Copyright (C) 2023 Arm Ltd. |
| 4 | */ |
| 5 | |
| 6 | /dts-v1/; |
| 7 | |
| 8 | #include "sun50i-h616-orangepi-zero.dtsi" |
| 9 | |
| 10 | / { |
| 11 | model = "OrangePi Zero3"; |
| 12 | compatible = "xunlong,orangepi-zero3", "allwinner,sun50i-h618"; |
| 13 | }; |
| 14 | |
| 15 | &emac0 { |
Chukun Pan | cedb125 | 2023-10-29 15:40:09 +0800 | [diff] [blame] | 16 | allwinner,tx-delay-ps = <700>; |
| 17 | phy-mode = "rgmii-rxid"; |
Andre Przywara | 8780ada | 2023-10-19 15:51:39 +0100 | [diff] [blame] | 18 | phy-supply = <®_dldo1>; |
| 19 | }; |
| 20 | |
| 21 | &ext_rgmii_phy { |
| 22 | motorcomm,clk-out-frequency-hz = <125000000>; |
| 23 | }; |
| 24 | |
| 25 | &mmc0 { |
| 26 | /* |
| 27 | * The schematic shows the card detect pin wired up to PF6, via an |
| 28 | * inverter, but it just doesn't work. |
| 29 | */ |
| 30 | broken-cd; |
| 31 | vmmc-supply = <®_dldo1>; |
| 32 | }; |
| 33 | |
| 34 | &r_i2c { |
| 35 | status = "okay"; |
| 36 | |
| 37 | axp313: pmic@36 { |
| 38 | compatible = "x-powers,axp313a"; |
| 39 | reg = <0x36>; |
| 40 | #interrupt-cells = <1>; |
| 41 | interrupt-controller; |
| 42 | interrupt-parent = <&pio>; |
| 43 | interrupts = <2 9 IRQ_TYPE_LEVEL_LOW>; /* PC9 */ |
| 44 | |
| 45 | vin1-supply = <®_vcc5v>; |
| 46 | vin2-supply = <®_vcc5v>; |
| 47 | vin3-supply = <®_vcc5v>; |
| 48 | |
| 49 | regulators { |
| 50 | /* Supplies VCC-PLL, so needs to be always on. */ |
| 51 | reg_aldo1: aldo1 { |
| 52 | regulator-always-on; |
| 53 | regulator-min-microvolt = <1800000>; |
| 54 | regulator-max-microvolt = <1800000>; |
| 55 | regulator-name = "vcc1v8"; |
| 56 | }; |
| 57 | |
| 58 | /* Supplies VCC-IO, so needs to be always on. */ |
| 59 | reg_dldo1: dldo1 { |
| 60 | regulator-always-on; |
| 61 | regulator-min-microvolt = <3300000>; |
| 62 | regulator-max-microvolt = <3300000>; |
| 63 | regulator-name = "vcc3v3"; |
| 64 | }; |
| 65 | |
| 66 | reg_dcdc1: dcdc1 { |
| 67 | regulator-always-on; |
| 68 | regulator-min-microvolt = <810000>; |
| 69 | regulator-max-microvolt = <990000>; |
| 70 | regulator-name = "vdd-gpu-sys"; |
| 71 | }; |
| 72 | |
| 73 | reg_dcdc2: dcdc2 { |
| 74 | regulator-always-on; |
| 75 | regulator-min-microvolt = <810000>; |
| 76 | regulator-max-microvolt = <1100000>; |
| 77 | regulator-name = "vdd-cpu"; |
| 78 | }; |
| 79 | |
| 80 | reg_dcdc3: dcdc3 { |
| 81 | regulator-always-on; |
| 82 | regulator-min-microvolt = <1100000>; |
| 83 | regulator-max-microvolt = <1100000>; |
| 84 | regulator-name = "vdd-dram"; |
| 85 | }; |
| 86 | }; |
| 87 | }; |
| 88 | }; |
| 89 | |
| 90 | &pio { |
| 91 | vcc-pc-supply = <®_dldo1>; |
| 92 | vcc-pf-supply = <®_dldo1>; |
| 93 | vcc-pg-supply = <®_aldo1>; |
| 94 | vcc-ph-supply = <®_dldo1>; |
| 95 | vcc-pi-supply = <®_dldo1>; |
| 96 | }; |