[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250422162250.436169-2-uwu@icenowy.me>
Date: Wed, 23 Apr 2025 00:22:48 +0800
From: Icenowy Zheng <uwu@...nowy.me>
To: Emil Renner Berthing <kernel@...il.dk>,
Jianlong Huang <jianlong.huang@...rfivetech.com>,
Hal Feng <hal.feng@...rfivetech.com>,
Linus Walleij <linus.walleij@...aro.org>,
Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>
Cc: linux-gpio@...r.kernel.org,
devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org,
linux-riscv@...ts.infradead.org,
Icenowy Zheng <uwu@...nowy.me>
Subject: [RFC PATCH 1/3] dt-bindings: pinctrl: jh7110-sys: add force inputs
The internal inputs routed by the pin controller could be routed not to
any GPIOs but forced low/high in the pin controller, which is a useful
feature for some input signals (e.g. overcurrent_n pin of the USB
controller, which needs to be tied to high if not externally routed).
Add two properties to support forcing inputs to low/high.
Signed-off-by: Icenowy Zheng <uwu@...nowy.me>
---
.../bindings/pinctrl/starfive,jh7110-sys-pinctrl.yaml | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/Documentation/devicetree/bindings/pinctrl/starfive,jh7110-sys-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/starfive,jh7110-sys-pinctrl.yaml
index 222b9e240f8af..d793290afdd74 100644
--- a/Documentation/devicetree/bindings/pinctrl/starfive,jh7110-sys-pinctrl.yaml
+++ b/Documentation/devicetree/bindings/pinctrl/starfive,jh7110-sys-pinctrl.yaml
@@ -46,6 +46,16 @@ properties:
'#gpio-cells':
const: 2
+ starfive,force-low-inputs:
+ description:
+ The list of input signals forced to be low inside the SoC itself.
+ $ref: /schemas/types.yaml#/definitions/uint32-array
+
+ starfive,force-high-inputs:
+ description:
+ The list of input signals forced to be high inside the SoC itself.
+ $ref: /schemas/types.yaml#/definitions/uint32-array
+
patternProperties:
'-[0-9]+$':
type: object
--
2.49.0
Powered by blists - more mailing lists