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