lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Mon, 20 Jun 2022 22:42:24 -0500 From: Samuel Holland <samuel@...lland.org> To: Chen-Yu Tsai <wens@...e.org>, Lee Jones <lee.jones@...aro.org>, Linus Walleij <linus.walleij@...aro.org>, linux-gpio@...r.kernel.org Cc: devicetree@...r.kernel.org, Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>, Rob Herring <robh+dt@...nel.org>, Samuel Holland <samuel@...lland.org>, Bartosz Golaszewski <brgl@...ev.pl>, linux-kernel@...r.kernel.org Subject: [PATCH v2 4/4] ARM: dts: axp22x/axp809: Add GPIO controller nodes These PMICs all contain a GPIO controller. Now that the binding is documented, wire up the controller in the device tree. Signed-off-by: Samuel Holland <samuel@...lland.org> --- (no changes since v1) arch/arm/boot/dts/axp22x.dtsi | 18 ++++++++++++++++++ arch/arm/boot/dts/axp809.dtsi | 19 +++++++++++++++++++ 2 files changed, 37 insertions(+) diff --git a/arch/arm/boot/dts/axp22x.dtsi b/arch/arm/boot/dts/axp22x.dtsi index a020c12b2884..5c233c84be92 100644 --- a/arch/arm/boot/dts/axp22x.dtsi +++ b/arch/arm/boot/dts/axp22x.dtsi @@ -67,6 +67,24 @@ battery_power_supply: battery-power { status = "disabled"; }; + axp_gpio: gpio { + compatible = "x-powers,axp221-gpio"; + gpio-controller; + #gpio-cells = <2>; + + /omit-if-no-ref/ + gpio0_ldo: gpio0-ldo-pin { + pins = "GPIO0"; + function = "ldo"; + }; + + /omit-if-no-ref/ + gpio1_ldo: gpio1-ldo-pin { + pins = "GPIO1"; + function = "ldo"; + }; + }; + regulators { /* Default work frequency for buck regulators */ x-powers,dcdc-freq = <3000>; diff --git a/arch/arm/boot/dts/axp809.dtsi b/arch/arm/boot/dts/axp809.dtsi index ab8e5f2d9246..da92b105f3b0 100644 --- a/arch/arm/boot/dts/axp809.dtsi +++ b/arch/arm/boot/dts/axp809.dtsi @@ -50,4 +50,23 @@ &axp809 { compatible = "x-powers,axp809"; interrupt-controller; #interrupt-cells = <1>; + + axp_gpio: gpio { + compatible = "x-powers,axp809-gpio", + "x-powers,axp221-gpio"; + gpio-controller; + #gpio-cells = <2>; + + /omit-if-no-ref/ + gpio0_ldo: gpio0-ldo-pin { + pins = "GPIO0"; + function = "ldo"; + }; + + /omit-if-no-ref/ + gpio1_ldo: gpio1-ldo-pin { + pins = "GPIO1"; + function = "ldo"; + }; + }; }; -- 2.35.1
Powered by blists - more mailing lists