kernel: bump 5.4 to 5.4.28
[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 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino-emmc.dts
24 +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino-emmc.dts
25 @@ -21,3 +21,7 @@
26 cap-mmc-hw-reset;
27 status = "okay";
28 };
29 +
30 +&pio {
31 + vcc-pc-supply = <&reg_eldo1>;
32 +};
33 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts
34 +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts
35 @@ -163,6 +163,23 @@
36 status = "okay";
37 };
38
39 +&pio {
40 + vcc-pc-supply = <&reg_dcdc1>;
41 + vcc-pd-supply = <&reg_dcdc1>;
42 + vcc-pe-supply = <&reg_aldo1>;
43 + vcc-pg-supply = <&reg_dldo4>;
44 +};
45 +
46 +&r_pio {
47 + /*
48 + * FIXME: We can't add that supply for now since it would
49 + * create a circular dependency between pinctrl, the regulator
50 + * and the RSB Bus.
51 + *
52 + * vcc-pl-supply = <&reg_aldo2>;
53 + */
54 +};
55 +
56 &r_rsb {
57 status = "okay";
58