blob: 00fe28caac939a8c3b4bc85be8f1e1ca6edcebe8 [file] [log] [blame]
Andre Przywara8780ada2023-10-19 15:51:39 +01001// 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 {
16 phy-supply = <&reg_dldo1>;
17};
18
19&ext_rgmii_phy {
20 motorcomm,clk-out-frequency-hz = <125000000>;
21};
22
23&mmc0 {
24 /*
25 * The schematic shows the card detect pin wired up to PF6, via an
26 * inverter, but it just doesn't work.
27 */
28 broken-cd;
29 vmmc-supply = <&reg_dldo1>;
30};
31
32&r_i2c {
33 status = "okay";
34
35 axp313: pmic@36 {
36 compatible = "x-powers,axp313a";
37 reg = <0x36>;
38 #interrupt-cells = <1>;
39 interrupt-controller;
40 interrupt-parent = <&pio>;
41 interrupts = <2 9 IRQ_TYPE_LEVEL_LOW>; /* PC9 */
42
43 vin1-supply = <&reg_vcc5v>;
44 vin2-supply = <&reg_vcc5v>;
45 vin3-supply = <&reg_vcc5v>;
46
47 regulators {
48 /* Supplies VCC-PLL, so needs to be always on. */
49 reg_aldo1: aldo1 {
50 regulator-always-on;
51 regulator-min-microvolt = <1800000>;
52 regulator-max-microvolt = <1800000>;
53 regulator-name = "vcc1v8";
54 };
55
56 /* Supplies VCC-IO, so needs to be always on. */
57 reg_dldo1: dldo1 {
58 regulator-always-on;
59 regulator-min-microvolt = <3300000>;
60 regulator-max-microvolt = <3300000>;
61 regulator-name = "vcc3v3";
62 };
63
64 reg_dcdc1: dcdc1 {
65 regulator-always-on;
66 regulator-min-microvolt = <810000>;
67 regulator-max-microvolt = <990000>;
68 regulator-name = "vdd-gpu-sys";
69 };
70
71 reg_dcdc2: dcdc2 {
72 regulator-always-on;
73 regulator-min-microvolt = <810000>;
74 regulator-max-microvolt = <1100000>;
75 regulator-name = "vdd-cpu";
76 };
77
78 reg_dcdc3: dcdc3 {
79 regulator-always-on;
80 regulator-min-microvolt = <1100000>;
81 regulator-max-microvolt = <1100000>;
82 regulator-name = "vdd-dram";
83 };
84 };
85 };
86};
87
88&pio {
89 vcc-pc-supply = <&reg_dldo1>;
90 vcc-pf-supply = <&reg_dldo1>;
91 vcc-pg-supply = <&reg_aldo1>;
92 vcc-ph-supply = <&reg_dldo1>;
93 vcc-pi-supply = <&reg_dldo1>;
94};