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