uboot-d1: add bootloader for upcoming d1 target
[openwrt/staging/981213.git] / package / boot / uboot-d1 / patches / 0046-ARM-dts-sunxi-Add-AXP221-and-AXP809-GPIO-nodes.patch
1 From 9e34036e651528df9575c2ffb38d78ae1f613481 Mon Sep 17 00:00:00 2001
2 From: Samuel Holland <samuel@sholland.org>
3 Date: Sat, 21 Aug 2021 17:11:54 -0500
4 Subject: [PATCH 46/90] ARM: dts: sunxi: Add AXP221 and AXP809 GPIO nodes
5
6 These PMICs each have two GPIO pins, and are supported by the axp_gpio
7 driver. In order to convert the axp_gpio driver to probe using the
8 device tree, the corresponding device tree nodes must be present. Add
9 them, following the same binding as the AXP209 and AXP813.
10
11 Signed-off-by: Samuel Holland <samuel@sholland.org>
12 ---
13 arch/arm/dts/axp22x.dtsi | 6 ++++++
14 arch/arm/dts/axp809.dtsi | 7 +++++++
15 2 files changed, 13 insertions(+)
16
17 --- a/arch/arm/dts/axp22x.dtsi
18 +++ b/arch/arm/dts/axp22x.dtsi
19 @@ -67,6 +67,12 @@
20 status = "disabled";
21 };
22
23 + axp_gpio: gpio {
24 + compatible = "x-powers,axp221-gpio";
25 + gpio-controller;
26 + #gpio-cells = <2>;
27 + };
28 +
29 regulators {
30 /* Default work frequency for buck regulators */
31 x-powers,dcdc-freq = <3000>;
32 --- a/arch/arm/dts/axp809.dtsi
33 +++ b/arch/arm/dts/axp809.dtsi
34 @@ -50,4 +50,11 @@
35 compatible = "x-powers,axp809";
36 interrupt-controller;
37 #interrupt-cells = <1>;
38 +
39 + axp_gpio: gpio {
40 + compatible = "x-powers,axp809-gpio",
41 + "x-powers,axp221-gpio";
42 + gpio-controller;
43 + #gpio-cells = <2>;
44 + };
45 };