blob: 265e0fa57a32af2ce9c05ffcf61e57d9e406b4be [file] [log] [blame]
Samuel Hollandcf3a7452022-04-27 15:31:29 -05001// SPDX-License-Identifier: GPL-2.0+ OR MIT
2// Copyright (C) 2021 Ivan Uvarov <i.uvarov@cognitivepilot.com>
3// Based on the sun8i-r40-bananapi-m2-ultra.dts, which is:
4// Copyright (C) 2017 Chen-Yu Tsai <wens@csie.org>
5// Copyright (C) 2017 Icenowy Zheng <icenowy@aosc.io>
6
7#include "sun8i-r40.dtsi"
8
9&i2c0 {
10 status = "okay";
11
12 axp22x: pmic@34 {
13 compatible = "x-powers,axp221";
14 reg = <0x34>;
15 interrupt-parent = <&nmi_intc>;
16 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
17 };
18};
19
20#include "axp22x.dtsi"
21
22&mmc2 {
23 vmmc-supply = <&reg_dcdc1>;
24 vqmmc-supply = <&reg_aldo2>;
25 bus-width = <8>;
26 non-removable;
27 status = "okay";
28};
29
30&pio {
31 pinctrl-names = "default";
32 pinctrl-0 = <&clk_out_a_pin>;
33 vcc-pa-supply = <&reg_dcdc1>;
34 vcc-pc-supply = <&reg_aldo2>;
35 vcc-pd-supply = <&reg_dcdc1>;
36 vcc-pf-supply = <&reg_dldo4>;
37 vcc-pg-supply = <&reg_dldo1>;
38};
39
40&reg_aldo2 {
41 regulator-always-on;
42 regulator-min-microvolt = <1800000>;
43 regulator-max-microvolt = <1800000>;
44 regulator-name = "vcc-pa";
45};
46
47&reg_aldo3 {
48 regulator-always-on;
49 regulator-min-microvolt = <3000000>;
50 regulator-max-microvolt = <3000000>;
51 regulator-name = "avcc";
52};
53
54&reg_dcdc1 {
55 regulator-always-on;
56 regulator-min-microvolt = <3300000>;
57 regulator-max-microvolt = <3300000>;
58 regulator-name = "vcc-3v3";
59};
60
61&reg_dcdc2 {
62 regulator-always-on;
63 regulator-min-microvolt = <1100000>;
64 regulator-max-microvolt = <1100000>;
65 regulator-name = "vdd-cpu";
66};
67
68&reg_dcdc3 {
69 regulator-always-on;
70 regulator-min-microvolt = <1100000>;
71 regulator-max-microvolt = <1100000>;
72 regulator-name = "vdd-sys";
73};
74
75&reg_dcdc5 {
76 regulator-always-on;
77 regulator-min-microvolt = <1500000>;
78 regulator-max-microvolt = <1500000>;
79 regulator-name = "vcc-dram";
80};
81
82&reg_dldo1 {
83 regulator-always-on;
84 regulator-min-microvolt = <3300000>;
85 regulator-max-microvolt = <3300000>;
86 regulator-name = "vcc-wifi-io";
87};
88
89&reg_dldo4 {
90 regulator-always-on;
91 regulator-min-microvolt = <2500000>;
92 regulator-max-microvolt = <2500000>;
93 regulator-name = "vdd2v5-sata";
94};
95
96&reg_eldo2 {
97 regulator-min-microvolt = <1200000>;
98 regulator-max-microvolt = <1200000>;
99 regulator-name = "vdd1v2-sata";
100};
101
102&reg_eldo3 {
103 regulator-min-microvolt = <2800000>;
104 regulator-max-microvolt = <2800000>;
105 regulator-name = "vcc-pe";
106};