Devicetree
 help / color / mirror / Atom feed
From: Alex Elder <elder@riscstar.com>
To: "Lorenzo Bianconi" <lorenzo.bianconi@oss.qualcomm.com>,
	"Bjorn Helgaas" <bhelgaas@google.com>,
	"Lorenzo Pieralisi" <lpieralisi@kernel.org>,
	"Krzysztof Wilczyński" <kwilczynski@kernel.org>,
	"Manivannan Sadhasivam" <mani@kernel.org>,
	"Rob Herring" <robh@kernel.org>,
	"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
	"Conor Dooley" <conor+dt@kernel.org>,
	"Chaitanya Chundru" <krishna.chundru@oss.qualcomm.com>,
	"Linus Walleij" <linusw@kernel.org>,
	"Bartosz Golaszewski" <brgl@kernel.org>,
	"Bjorn Andersson" <andersson@kernel.org>,
	"Konrad Dybcio" <konradybcio@kernel.org>,
	"Michael Walle" <mwalle@kernel.org>
Cc: Daniel Thompson <daniel@riscstar.com>,
	Sushrut Shree Trivedi <sushrut.trivedi@oss.qualcomm.com>,
	linux-pci@vger.kernel.org, devicetree@vger.kernel.org,
	linux-gpio@vger.kernel.org, linux-arm-msm@vger.kernel.org
Subject: Re: [PATCH v3 1/5] dt-bindings: PCI: toshiba,tc9563: Document embedded GPIO controller
Date: Tue, 8 Sep 2026 08:27:40 -0500	[thread overview]
Message-ID: <8f6cbccf-3169-4b32-9c8b-406d53449590@riscstar.com> (raw)
In-Reply-To: <20260904-pci-tc9563-aux-v3-1-5b1449d62ba2@oss.qualcomm.com>

On 9/4/26 12:15 PM, Lorenzo Bianconi wrote:
> The TC9563 PCIe switch embeds a GPIO controller providing 37 GPIO
> lines. The controller is registered as an auxiliary device by the TC9563
> power controller and accessed through the same register map.

s/power controller/power controller driver/

On the other hand, this is a devicetree binding, which should
really focus on the hardware, not the software.  The auxiliary
device and the regmap are software constructs that aren't
hardware-related.

I think this description should focus on the fact that the
TC9563 SoC (which contains the PCIe switch) *also* has a
GPIO controller that is managed via the same I2C interface.
And that it's possible the description within the binding
should be modified that way as well.  (However please defer
to any input provided by the devicetree maintainers...)

> Describe the switch node itself as the embedded GPIO controller and

s/as the/as implementing an/

> document the per-port reset-gpios property.
> 
> Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@oss.qualcomm.com>

I will let the devicetree maintainers comment on the way you
document your properties.

					-Alex

> ---
>   .../devicetree/bindings/pci/toshiba,tc9563.yaml       | 19 ++++++++++++++++++-
>   1 file changed, 18 insertions(+), 1 deletion(-)
> 
> diff --git a/Documentation/devicetree/bindings/pci/toshiba,tc9563.yaml b/Documentation/devicetree/bindings/pci/toshiba,tc9563.yaml
> index f084830c6d0c..c4cd162cb084 100644
> --- a/Documentation/devicetree/bindings/pci/toshiba,tc9563.yaml
> +++ b/Documentation/devicetree/bindings/pci/toshiba,tc9563.yaml
> @@ -31,6 +31,11 @@ properties:
>       description:
>         GPIO controlling the RESX# pin.
>   
> +  gpio-controller: true
> +
> +  '#gpio-cells':
> +    const: 2
> +
>     vdd18-supply: true
>   
>     vdd09-supply: true
> @@ -84,6 +89,11 @@ $defs:
>       type: object
>   
>       properties:
> +      reset-gpios:
> +        maxItems: 1
> +        description:
> +          GPIO controlling the reset line connected to the downstream port.
> +
>         toshiba,tx-amplitude-microvolt:
>           description:
>             Change Tx Margin setting for low power consumption.
> @@ -128,7 +138,7 @@ examples:
>               ranges;
>               bus-range = <0x01 0xff>;
>   
> -            pcie@0,0 {
> +            tc9563: pcie@0,0 {
>                   compatible = "pci1179,0623";
>   
>                   reg = <0x10000 0x0 0x0 0x0 0x0>;
> @@ -149,6 +159,9 @@ examples:
>   
>                   resx-gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
>   
> +                gpio-controller;
> +                #gpio-cells = <2>;
> +
>                   pcie@1,0 {
>                       compatible = "pciclass,0604";
>                       reg = <0x20800 0x0 0x0 0x0 0x0>;
> @@ -158,6 +171,8 @@ examples:
>                       ranges;
>                       bus-range = <0x03 0xff>;
>   
> +                    reset-gpios = <&tc9563 2 GPIO_ACTIVE_LOW>;
> +
>                       toshiba,no-dfe-support;
>                   };
>   
> @@ -170,6 +185,8 @@ examples:
>                       ranges;
>                       bus-range = <0x04 0xff>;
>   
> +                    reset-gpios = <&tc9563 3 GPIO_ACTIVE_LOW>;
> +
>                       toshiba,tx-amplitude-microvolt = <10>;
>                   };
>   
> 


  parent reply	other threads:[~2026-09-08 13:27 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-04 17:15 [PATCH v3 0/5] PCI/pwrctrl: tc9563: introduce support for embedded GPIO controller Lorenzo Bianconi
2026-09-04 17:15 ` [PATCH v3 1/5] dt-bindings: PCI: toshiba,tc9563: Document " Lorenzo Bianconi
2026-09-04 17:21   ` sashiko-bot
2026-09-04 18:32     ` Lorenzo Bianconi
2026-09-08 13:27   ` Alex Elder [this message]
2026-09-09  7:28   ` Krzysztof Kozlowski
2026-09-04 17:15 ` [PATCH v3 2/5] gpio: tc9563: Add support for the " Lorenzo Bianconi
2026-09-04 17:23   ` sashiko-bot
2026-09-04 17:15 ` [PATCH v3 3/5] PCI/pwrctrl: tc9563: Add GPIO auxiliary device support Lorenzo Bianconi
2026-09-04 17:34   ` sashiko-bot
2026-09-04 19:25     ` Lorenzo Bianconi
2026-09-08 13:27   ` Alex Elder
2026-09-04 17:15 ` [PATCH v3 4/5] PCI/pwrctrl: tc9563: Switch per-port reset to GPIO descriptor API Lorenzo Bianconi
2026-09-04 17:32   ` sashiko-bot
2026-09-08 13:27   ` Alex Elder
2026-09-04 17:15 ` [PATCH v3 5/5] arm64: dts: qcom: qcs6490-rb3gen2: Enable TC9563 embedded GPIO controller Lorenzo Bianconi
2026-09-04 17:23   ` sashiko-bot
2026-09-08 13:27   ` Alex Elder
2026-09-08 13:27 ` [PATCH v3 0/5] PCI/pwrctrl: tc9563: introduce support for " Alex Elder

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=8f6cbccf-3169-4b32-9c8b-406d53449590@riscstar.com \
    --to=elder@riscstar.com \
    --cc=andersson@kernel.org \
    --cc=bhelgaas@google.com \
    --cc=brgl@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=daniel@riscstar.com \
    --cc=devicetree@vger.kernel.org \
    --cc=konradybcio@kernel.org \
    --cc=krishna.chundru@oss.qualcomm.com \
    --cc=krzk+dt@kernel.org \
    --cc=kwilczynski@kernel.org \
    --cc=linusw@kernel.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=lorenzo.bianconi@oss.qualcomm.com \
    --cc=lpieralisi@kernel.org \
    --cc=mani@kernel.org \
    --cc=mwalle@kernel.org \
    --cc=robh@kernel.org \
    --cc=sushrut.trivedi@oss.qualcomm.com \
    /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