From: Jisheng Zhang <jszhang@kernel.org>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Conor Dooley <conor+dt@kernel.org>,
Anand Moon <linux.amoon@gmail.com>
Cc: linux-usb@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: [PATCH] dt-bindings: usb: vialab,vl817: remove reset-gpios from required list
Date: Wed, 18 Oct 2023 00:01:58 +0800 [thread overview]
Message-ID: <20231017160158.1065-1-jszhang@kernel.org> (raw)
The "reset-gpios" is optional in real case, for example reset pin is
is hard wired to "high". And this fact is also reflected by the
devm_gpio_get_optional() calling in driver code.
Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
---
.../bindings/usb/thead,th1520-usb.yaml | 42 ++++++++++---------
.../devicetree/bindings/usb/vialab,vl817.yaml | 1 -
2 files changed, 23 insertions(+), 20 deletions(-)
diff --git a/Documentation/devicetree/bindings/usb/thead,th1520-usb.yaml b/Documentation/devicetree/bindings/usb/thead,th1520-usb.yaml
index afb618eb5013..ce1cab75f0ff 100644
--- a/Documentation/devicetree/bindings/usb/thead,th1520-usb.yaml
+++ b/Documentation/devicetree/bindings/usb/thead,th1520-usb.yaml
@@ -28,6 +28,10 @@ properties:
ranges: true
+ thead,misc-syscon:
+ $ref: /schemas/types.yaml#/definitions/phandle-array
+ description: a phandle to the misc system register controller syscon node.
+
'#address-cells':
enum: [ 1, 2 ]
@@ -51,23 +55,23 @@ additionalProperties: false
examples:
- |
-
- usb {
- compatible = "thead,th1520-usb";
- reg = <0xec03f000 0x1000>;
- clocks = <&clk 1>,
- <&clk 2>,
- <&clk 3>,
- <&clk 4>;
- clock-names = "ref", "bus_early", "phy", "suspend";
- ranges;
- #address-cells = <1>;
- #size-cells = <1>;
-
- usb@e7040000 {
- compatible = "snps,dwc3";
- reg = <0xe7040000 0x10000>;
- interrupts = <68>;
- dr_mode = "host";
- };
+ usb@ec03f000 {
+ compatible = "thead,th1520-usb";
+ reg = <0xec03f000 0x1000>;
+ thead,misc-syscon = <&misc_syscon>;
+ clocks = <&clk 1>,
+ <&clk 2>,
+ <&clk 3>,
+ <&clk 4>;
+ clock-names = "ref", "bus_early", "phy", "suspend";
+ ranges;
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ usb@e7040000 {
+ compatible = "snps,dwc3";
+ reg = <0xe7040000 0x10000>;
+ interrupts = <68>;
+ dr_mode = "host";
+ };
};
diff --git a/Documentation/devicetree/bindings/usb/vialab,vl817.yaml b/Documentation/devicetree/bindings/usb/vialab,vl817.yaml
index 76db9071b352..c815010ba9c2 100644
--- a/Documentation/devicetree/bindings/usb/vialab,vl817.yaml
+++ b/Documentation/devicetree/bindings/usb/vialab,vl817.yaml
@@ -37,7 +37,6 @@ properties:
required:
- compatible
- reg
- - reset-gpios
- vdd-supply
- peer-hub
--
2.40.1
next reply other threads:[~2023-10-17 16:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-17 16:01 Jisheng Zhang [this message]
2023-10-17 16:53 ` [PATCH] dt-bindings: usb: vialab,vl817: remove reset-gpios from required list Krzysztof Kozlowski
2023-10-18 15:00 ` Jisheng Zhang
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=20231017160158.1065-1-jszhang@kernel.org \
--to=jszhang@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=linux.amoon@gmail.com \
--cc=robh+dt@kernel.org \
/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).