xref: /linux/scripts/dtc/include-prefixes/arm/allwinner/sun8i-r40-feta40i.dtsi (revision 79790b6818e96c58fe2bffee1b418c16e64e7b80)
1724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0+ OR MIT
2724ba675SRob Herring// Copyright (C) 2021 Ivan Uvarov <i.uvarov@cognitivepilot.com>
3724ba675SRob Herring// Based on the sun8i-r40-bananapi-m2-ultra.dts, which is:
4724ba675SRob Herring//  Copyright (C) 2017 Chen-Yu Tsai <wens@csie.org>
5724ba675SRob Herring//  Copyright (C) 2017 Icenowy Zheng <icenowy@aosc.io>
6724ba675SRob Herring
7724ba675SRob Herring#include "sun8i-r40.dtsi"
8724ba675SRob Herring#include "sun8i-r40-cpu-opp.dtsi"
9724ba675SRob Herring
10724ba675SRob Herring&cpu0 {
11724ba675SRob Herring	cpu-supply = <&reg_dcdc2>;
12724ba675SRob Herring};
13724ba675SRob Herring
14724ba675SRob Herring&i2c0 {
15724ba675SRob Herring	status = "okay";
16724ba675SRob Herring
17724ba675SRob Herring	axp22x: pmic@34 {
18724ba675SRob Herring		compatible = "x-powers,axp221";
19724ba675SRob Herring		reg = <0x34>;
20724ba675SRob Herring		interrupt-parent = <&nmi_intc>;
21724ba675SRob Herring		interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
22724ba675SRob Herring	};
23724ba675SRob Herring};
24724ba675SRob Herring
25724ba675SRob Herring#include "axp22x.dtsi"
26724ba675SRob Herring
27724ba675SRob Herring&mmc2 {
28724ba675SRob Herring	vmmc-supply = <&reg_dcdc1>;
29724ba675SRob Herring	vqmmc-supply = <&reg_aldo2>;
30724ba675SRob Herring	bus-width = <8>;
31724ba675SRob Herring	non-removable;
32724ba675SRob Herring	status = "okay";
33724ba675SRob Herring};
34724ba675SRob Herring
35724ba675SRob Herring&pio {
36724ba675SRob Herring	pinctrl-names = "default";
37724ba675SRob Herring	pinctrl-0 = <&clk_out_a_pin>;
38724ba675SRob Herring	vcc-pa-supply = <&reg_dcdc1>;
39724ba675SRob Herring	vcc-pc-supply = <&reg_aldo2>;
40724ba675SRob Herring	vcc-pd-supply = <&reg_dcdc1>;
41724ba675SRob Herring	vcc-pf-supply = <&reg_dldo4>;
42724ba675SRob Herring	vcc-pg-supply = <&reg_dldo1>;
43724ba675SRob Herring};
44724ba675SRob Herring
45*6d8d1124SFuyao Kashizuku&reg_aldo1 {
46*6d8d1124SFuyao Kashizuku	regulator-always-on;
47*6d8d1124SFuyao Kashizuku	regulator-min-microvolt = <3300000>;
48*6d8d1124SFuyao Kashizuku	regulator-max-microvolt = <3300000>;
49*6d8d1124SFuyao Kashizuku	regulator-name = "vcc-3v3-tv-usb";
50*6d8d1124SFuyao Kashizuku};
51*6d8d1124SFuyao Kashizuku
52724ba675SRob Herring&reg_aldo2 {
53724ba675SRob Herring	regulator-always-on;
54724ba675SRob Herring	regulator-min-microvolt = <1800000>;
55724ba675SRob Herring	regulator-max-microvolt = <1800000>;
56724ba675SRob Herring	regulator-name = "vcc-pa";
57724ba675SRob Herring};
58724ba675SRob Herring
59724ba675SRob Herring&reg_aldo3 {
60724ba675SRob Herring	regulator-always-on;
61724ba675SRob Herring	regulator-min-microvolt = <3000000>;
62724ba675SRob Herring	regulator-max-microvolt = <3000000>;
63724ba675SRob Herring	regulator-name = "avcc";
64724ba675SRob Herring};
65724ba675SRob Herring
66724ba675SRob Herring&reg_dcdc1 {
67724ba675SRob Herring	regulator-always-on;
68724ba675SRob Herring	regulator-min-microvolt = <3300000>;
69724ba675SRob Herring	regulator-max-microvolt = <3300000>;
70724ba675SRob Herring	regulator-name = "vcc-3v3";
71724ba675SRob Herring};
72724ba675SRob Herring
73724ba675SRob Herring&reg_dcdc2 {
74724ba675SRob Herring	regulator-always-on;
75724ba675SRob Herring	regulator-min-microvolt = <1100000>;
76724ba675SRob Herring	regulator-max-microvolt = <1100000>;
77724ba675SRob Herring	regulator-name = "vdd-cpu";
78724ba675SRob Herring};
79724ba675SRob Herring
80724ba675SRob Herring&reg_dcdc3 {
81724ba675SRob Herring	regulator-always-on;
82724ba675SRob Herring	regulator-min-microvolt = <1100000>;
83724ba675SRob Herring	regulator-max-microvolt = <1100000>;
84724ba675SRob Herring	regulator-name = "vdd-sys";
85724ba675SRob Herring};
86724ba675SRob Herring
87724ba675SRob Herring&reg_dcdc5 {
88724ba675SRob Herring	regulator-always-on;
89724ba675SRob Herring	regulator-min-microvolt = <1500000>;
90724ba675SRob Herring	regulator-max-microvolt = <1500000>;
91724ba675SRob Herring	regulator-name = "vcc-dram";
92724ba675SRob Herring};
93724ba675SRob Herring
94724ba675SRob Herring&reg_dldo1 {
95724ba675SRob Herring	regulator-always-on;
96724ba675SRob Herring	regulator-min-microvolt = <3300000>;
97724ba675SRob Herring	regulator-max-microvolt = <3300000>;
98724ba675SRob Herring	regulator-name = "vcc-wifi-io";
99724ba675SRob Herring};
100724ba675SRob Herring
101724ba675SRob Herring&reg_dldo4 {
102724ba675SRob Herring	regulator-always-on;
103724ba675SRob Herring	regulator-min-microvolt = <2500000>;
104724ba675SRob Herring	regulator-max-microvolt = <2500000>;
105724ba675SRob Herring	regulator-name = "vdd2v5-sata";
106724ba675SRob Herring};
107724ba675SRob Herring
108724ba675SRob Herring&reg_eldo2 {
109724ba675SRob Herring	regulator-min-microvolt = <1200000>;
110724ba675SRob Herring	regulator-max-microvolt = <1200000>;
111724ba675SRob Herring	regulator-name = "vdd1v2-sata";
112724ba675SRob Herring};
113724ba675SRob Herring
114724ba675SRob Herring&reg_eldo3 {
115724ba675SRob Herring	regulator-min-microvolt = <2800000>;
116724ba675SRob Herring	regulator-max-microvolt = <2800000>;
117724ba675SRob Herring	regulator-name = "vcc-pe";
118724ba675SRob Herring};
119