From: Florian Fainelli <f.fainelli@gmail.com>
To: "Ivan T. Ivanov" <iivanov@suse.de>,
linus.walleij@linaro.org, robh@kernel.org, krzk+dt@kernel.org
Cc: conor+dt@kernel.org, florian.fainelli@broadcom.com,
wahrenst@gmx.net, andrea.porta@suse.com,
linux-gpio@vger.kernel.org, devicetree@vger.kernel.org,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH 5/7] arm64: dts: broadcom: bcm2712: Add one more GPIO node
Date: Wed, 31 Jul 2024 15:11:19 -0700 [thread overview]
Message-ID: <a4fe3edd-07f9-4bfd-8a6e-c96175ddcc8d@gmail.com> (raw)
In-Reply-To: <20240731062814.215833-6-iivanov@suse.de>
On 7/30/24 23:28, Ivan T. Ivanov wrote:
> Add GPIO and related interrupt controller nodes and wire one
> of the lines to power button.
>
> Signed-off-by: Ivan T. Ivanov <iivanov@suse.de>
> ---
> .../boot/dts/broadcom/bcm2712-rpi-5-b.dts | 21 +++++++++++++++++++
> arch/arm64/boot/dts/broadcom/bcm2712.dtsi | 21 +++++++++++++++++++
> 2 files changed, 42 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b.dts b/arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b.dts
> index 8a0d20afebfe..06e926af16b7 100644
> --- a/arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b.dts
> +++ b/arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b.dts
> @@ -2,6 +2,7 @@
> /dts-v1/;
>
> #include <dt-bindings/gpio/gpio.h>
> +#include <dt-bindings/input/input.h>
> #include "bcm2712.dtsi"
>
> / {
> @@ -44,6 +45,21 @@ sd_vcc_reg: sd-vcc-reg {
> enable-active-high;
> gpios = <&gio_aon 4 GPIO_ACTIVE_HIGH>;
> };
> +
> + pwr-button {
> + compatible = "gpio-keys";
> +
> + pinctrl-names = "default";
> + pinctrl-0 = <&pwr_button_pins>;
> + status = "okay";
> +
> + pwr_key: pwr {
> + label = "pwr_button";
> + linux,code = <KEY_POWER>;
> + gpios = <&gio 20 GPIO_ACTIVE_LOW>;
> + debounce-interval = <50>;
> + };
> + };
> };
>
> /* The system UART */
> @@ -73,6 +89,11 @@ emmc_aon_cd_pins: emmc-aon-cd-pins {
> };
>
> &pinctrl {
> + pwr_button_pins: pwr-button-pins {
> + function = "gpio";
> + pins = "gpio20";
> + bias-pull-up;
> + };
>
> emmc_sd_pulls: emmc-sd-pulls {
> pins = "emmc_cmd", "emmc_dat0", "emmc_dat1", "emmc_dat2", "emmc_dat3";
> diff --git a/arch/arm64/boot/dts/broadcom/bcm2712.dtsi b/arch/arm64/boot/dts/broadcom/bcm2712.dtsi
> index 1099171cd435..39d2419ffce2 100644
> --- a/arch/arm64/boot/dts/broadcom/bcm2712.dtsi
> +++ b/arch/arm64/boot/dts/broadcom/bcm2712.dtsi
> @@ -271,6 +271,27 @@ pinctrl: pinctrl@7d504100 {
> reg = <0x7d504100 0x30>;
> };
>
> + main_irq: intc@7d508400 {
> + compatible = "brcm,bcm7271-l2-intc";
> + reg = <0x7d508400 0x10>;
> + interrupts = <GIC_SPI 244 IRQ_TYPE_LEVEL_HIGH>;
> + interrupt-controller;
> + #interrupt-cells = <1>;
> + };
> +
> + gio: gpio@7d508500 {
> + compatible = "brcm,brcmstb-gpio";
> + reg = <0x7d508500 0x40>;
> + interrupt-parent = <&main_irq>;
> + interrupts = <0>;
> + gpio-controller;
> + #gpio-cells = <2>;
> + interrupt-controller;
> + #interrupt-cells = <2>;
> + brcm,gpio-bank-widths = <32 22>;
> + brcm,gpio-direct;
Undocumented and unsupported property upstream, what does it do? Other
than that, LGTM.
--
Florian
next prev parent reply other threads:[~2024-07-31 22:11 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-31 6:28 [PATCH 0/7] Add pin control driver for BCM2712 SoC Ivan T. Ivanov
2024-07-31 6:28 ` [PATCH 1/7] dt-bindings: pinctrl: Add support for Broadcom STB pin controller Ivan T. Ivanov
2024-08-01 8:17 ` Krzysztof Kozlowski
2024-08-01 8:38 ` Ivan T. Ivanov
2024-08-01 14:19 ` Krzysztof Kozlowski
2024-08-05 9:27 ` Ivan T. Ivanov
2024-08-02 18:09 ` Stefan Wahren
2024-08-12 16:28 ` Dave Stevenson
2024-08-22 10:54 ` Stefan Wahren
2024-07-31 6:28 ` [PATCH 2/7] pinctrl: bcm: Add STB family pin controller driver Ivan T. Ivanov
2024-08-02 10:22 ` Phil Elwell
2024-08-02 18:36 ` Stefan Wahren
2024-08-05 9:13 ` Stefan Wahren
2024-07-31 6:28 ` [PATCH 3/7] arm64: dts: broadcom: Add support for BCM2712 Ivan T. Ivanov
2024-07-31 21:57 ` Florian Fainelli
2024-08-01 6:45 ` Ivan T. Ivanov
2024-07-31 6:28 ` [PATCH 4/7] arm64: dts: broadcom: bcm2712: Add pin controller nodes Ivan T. Ivanov
2024-08-02 19:16 ` Stefan Wahren
2024-07-31 6:28 ` [PATCH 5/7] arm64: dts: broadcom: bcm2712: Add one more GPIO node Ivan T. Ivanov
2024-07-31 22:11 ` Florian Fainelli [this message]
2024-08-01 7:19 ` Ivan T. Ivanov
2024-08-02 18:49 ` Stefan Wahren
2024-08-02 19:08 ` Stefan Wahren
2024-08-05 9:37 ` Ivan T. Ivanov
2024-07-31 6:28 ` [PATCH 6/7] arm64: dts: broadcom: bcm2712: Add second SDHCI controller node Ivan T. Ivanov
2024-08-02 19:01 ` Stefan Wahren
2025-05-12 13:42 ` Ivan T. Ivanov
2024-07-31 6:28 ` [PATCH 7/7] arm64: dts: broadcom: bcm2712: Add UARTA " Ivan T. Ivanov
2024-07-31 22:13 ` Florian Fainelli
2024-08-01 7:50 ` Ivan T. Ivanov
2024-08-02 19:12 ` Stefan Wahren
2024-07-31 14:25 ` [PATCH 0/7] Add pin control driver for BCM2712 SoC Rob Herring (Arm)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a4fe3edd-07f9-4bfd-8a6e-c96175ddcc8d@gmail.com \
--to=f.fainelli@gmail.com \
--cc=andrea.porta@suse.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=florian.fainelli@broadcom.com \
--cc=iivanov@suse.de \
--cc=krzk+dt@kernel.org \
--cc=linus.walleij@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-gpio@vger.kernel.org \
--cc=robh@kernel.org \
--cc=wahrenst@gmx.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).