sunxi: 5.4: dts: a64: olinuxino: add bank supply regulators
[openwrt/staging/hauke.git] / target / linux / sunxi / patches-5.4 / 410-v5.6-arm64-dts-allwinner-a64-olinuxino-Add-bank-supply-re.patch
1 From f0c3b29f56f0a946df4941edfe2d98e3e766c30f Mon Sep 17 00:00:00 2001
2 From: Stefan Mavrodiev <stefan@olimex.com>
3 Date: Fri, 29 Nov 2019 13:39:40 +0200
4 Subject: [PATCH] arm64: dts: allwinner: a64: olinuxino: Add bank supply
5 regulators
6
7 Allwinner A64 SoC has separate supplies for PC, PD, PE, PG and PL. This
8 patch adds regulators for them to the pinctrl node.
9
10 Exception is PL which is used by the RSB bus. To avoid circular
11 dependencies, VCC-PL is omitted.
12
13 On boards with eMMC, VCC-PC is supplied by ELDO1, instead of DCDC1.
14
15 Signed-off-by: Stefan Mavrodiev <stefan@olimex.com>
16 [Maxime: Changed the r_pio comment a bit]
17 Signed-off-by: Maxime Ripard <maxime@cerno.tech>
18 ---
19 .../dts/allwinner/sun50i-a64-olinuxino-emmc.dts | 4 ++++
20 .../boot/dts/allwinner/sun50i-a64-olinuxino.dts | 17 +++++++++++++++++
21 2 files changed, 21 insertions(+)
22
23 diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino-emmc.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino-emmc.dts
24 index 96ab0227e82d..a1629688e694 100644
25 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino-emmc.dts
26 +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino-emmc.dts
27 @@ -21,3 +21,7 @@
28 cap-mmc-hw-reset;
29 status = "okay";
30 };
31 +
32 +&pio {
33 + vcc-pc-supply = <&reg_eldo1>;
34 +};
35 diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts
36 index 01a9a52edae4..3e026a95a58a 100644
37 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts
38 +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts
39 @@ -163,6 +163,23 @@
40 status = "okay";
41 };
42
43 +&pio {
44 + vcc-pc-supply = <&reg_dcdc1>;
45 + vcc-pd-supply = <&reg_dcdc1>;
46 + vcc-pe-supply = <&reg_aldo1>;
47 + vcc-pg-supply = <&reg_dldo4>;
48 +};
49 +
50 +&r_pio {
51 + /*
52 + * FIXME: We can't add that supply for now since it would
53 + * create a circular dependency between pinctrl, the regulator
54 + * and the RSB Bus.
55 + *
56 + * vcc-pl-supply = <&reg_aldo2>;
57 + */
58 +};
59 +
60 &r_rsb {
61 status = "okay";
62