From: Johan Jonker <jbx6244@gmail.com>
To: heiko@sntech.de
Cc: hjc@rock-chips.com, robh+dt@kernel.org,
krzysztof.kozlowski+dt@linaro.org, gregkh@linuxfoundation.org,
airlied@gmail.com, daniel@ffwll.ch, andrzej.hajda@intel.com,
neil.armstrong@linaro.org, robert.foss@linaro.org,
Laurent.pinchart@ideasonboard.com, jonas@kwiboo.se,
jernej.skrabec@gmail.com, philippe.cornu@foss.st.com,
dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-rockchip@lists.infradead.org, linux-usb@vger.kernel.org,
linus.walleij@linaro.org, inki.dae@samsung.com,
sw0312.kim@samsung.com, kyungmin.park@samsung.com,
alim.akhtar@samsung.com, linux-samsung-soc@vger.kernel.org
Subject: [PATCH v6 08/17] dt-bindings: usb: convert fcs,fusb302.txt to yaml
Date: Thu, 22 Dec 2022 15:28:53 +0100 [thread overview]
Message-ID: <0336a3c4-4a43-c983-11d7-e2ae16187fc8@gmail.com> (raw)
In-Reply-To: <67771143-fd83-383d-41b2-68e8707134e8@gmail.com>
Convert fcs,fusb302.txt to yaml.
Changed:
Add vbus-supply property
Signed-off-by: Johan Jonker <jbx6244@gmail.com>
---
Changed V6:
Add unevaluatedProperties
Drop unused labels
---
.../devicetree/bindings/usb/fcs,fusb302.txt | 34 ----------
.../devicetree/bindings/usb/fcs,fusb302.yaml | 67 +++++++++++++++++++
2 files changed, 67 insertions(+), 34 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/usb/fcs,fusb302.txt
create mode 100644 Documentation/devicetree/bindings/usb/fcs,fusb302.yaml
diff --git a/Documentation/devicetree/bindings/usb/fcs,fusb302.txt b/Documentation/devicetree/bindings/usb/fcs,fusb302.txt
deleted file mode 100644
index 60e465429..000000000
--- a/Documentation/devicetree/bindings/usb/fcs,fusb302.txt
+++ /dev/null
@@ -1,34 +0,0 @@
-Fairchild FUSB302 Type-C Port controllers
-
-Required properties :
-- compatible : "fcs,fusb302"
-- reg : I2C slave address
-- interrupts : Interrupt specifier
-
-Required sub-node:
-- connector : The "usb-c-connector" attached to the FUSB302 IC. The bindings
- of the connector node are specified in:
-
- Documentation/devicetree/bindings/connector/usb-connector.yaml
-
-
-Example:
-
-fusb302: typec-portc@54 {
- compatible = "fcs,fusb302";
- reg = <0x54>;
- interrupt-parent = <&nmi_intc>;
- interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
-
- usb_con: connector {
- compatible = "usb-c-connector";
- label = "USB-C";
- power-role = "dual";
- try-power-role = "sink";
- source-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>;
- sink-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)
- PDO_VAR(3000, 12000, 3000)
- PDO_PPS_APDO(3000, 11000, 3000)>;
- op-sink-microwatt = <10000000>;
- };
-};
diff --git a/Documentation/devicetree/bindings/usb/fcs,fusb302.yaml b/Documentation/devicetree/bindings/usb/fcs,fusb302.yaml
new file mode 100644
index 000000000..b396ea0ab
--- /dev/null
+++ b/Documentation/devicetree/bindings/usb/fcs,fusb302.yaml
@@ -0,0 +1,67 @@
+# SPDX-License-Identifier: GPL-2.0
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/usb/fcs,fusb302.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Fairchild FUSB302 Type-C Port controller
+
+maintainers:
+ - Rob Herring <robh@kernel.org>
+
+properties:
+ compatible:
+ const: fcs,fusb302
+
+ reg:
+ maxItems: 1
+
+ interrupts:
+ maxItems: 1
+
+ vbus-supply:
+ description: VBUS power supply
+
+ connector:
+ type: object
+ $ref: /schemas/connector/usb-connector.yaml#
+ unevaluatedProperties: false
+
+required:
+ - compatible
+ - reg
+ - interrupts
+ - vbus-supply
+ - connector
+
+additionalProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/interrupt-controller/irq.h>
+ #include <dt-bindings/usb/pd.h>
+
+ i2c {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ typec-portc@54 {
+ compatible = "fcs,fusb302";
+ reg = <0x54>;
+ interrupt-parent = <&nmi_intc>;
+ interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
+ vbus-supply = <&vbus_typec>;
+
+ connector {
+ compatible = "usb-c-connector";
+ label = "USB-C";
+ power-role = "dual";
+ try-power-role = "sink";
+ source-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>;
+ sink-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)
+ PDO_VAR(3000, 12000, 3000)
+ PDO_PPS_APDO(3000, 11000, 3000)>;
+ op-sink-microwatt = <10000000>;
+ };
+ };
+ };
--
2.20.1
next prev parent reply other threads:[~2022-12-22 14:28 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-22 14:22 [PATCH v6 01/17] dt-bindings: display: rockchip: convert rockchip-lvds.txt to YAML Johan Jonker
2022-12-22 14:24 ` [PATCH v6 02/17] dt-bindings: soc: rockchip: grf: add rockchip,lvds.yaml Johan Jonker
2022-12-22 14:24 ` [PATCH v6 03/17] dt-bindings: display: dsi-controller: move clock-master property Johan Jonker
2022-12-22 19:33 ` Rob Herring
2022-12-22 14:25 ` [PATCH v6 04/17] dt-bindings: display: bridge: snps,dw-mipi-dsi: fix clock properties Johan Jonker
2022-12-22 14:26 ` [PATCH v6 05/17] dt-bindings: display: rockchip: convert dw_mipi_dsi_rockchip.txt to yaml Johan Jonker
2022-12-22 19:34 ` Rob Herring
2022-12-22 14:26 ` [PATCH v6 06/17] dt-bindings: display: bridge: convert analogix_dp.txt " Johan Jonker
2022-12-22 20:26 ` Rob Herring
2022-12-22 14:27 ` [PATCH v6 07/17] dt-bindings: display: rockchip: convert analogix_dp-rockchip.txt " Johan Jonker
2022-12-22 20:27 ` Rob Herring
2022-12-22 14:28 ` Johan Jonker [this message]
2022-12-22 20:28 ` [PATCH v6 08/17] dt-bindings: usb: convert fcs,fusb302.txt " Rob Herring
2022-12-22 14:29 ` [PATCH v6 09/17] ARM: dts: rockchip: rk3288: fix dsi node Johan Jonker
2022-12-22 14:30 ` [PATCH v6 10/17] ARM: dts: rockchip: rk3288: fix lvds node Johan Jonker
2022-12-22 14:30 ` [PATCH v6 11/17] ARM: dts: rockchip: rk3288: fix dp node Johan Jonker
2022-12-22 14:31 ` [PATCH v6 12/17] arm64: dts: rockchip: px30: fix lvds node Johan Jonker
2022-12-22 14:31 ` [PATCH v6 13/17] arm64: dts: rockchip: px30: fix dsi node Johan Jonker
2022-12-22 14:32 ` [PATCH v6 14/17] arm64: dts: rockchip: rk3399: " Johan Jonker
2022-12-22 14:32 ` [PATCH v6 15/17] arm64: dts: rockchip: rk3399: fix dp node Johan Jonker
2022-12-22 14:33 ` [PATCH v6 16/17] arm64: dts: rockchip: rename vbus-supply to phy-supply in rk3566-box-demo.dts Johan Jonker
2022-12-22 14:33 ` [PATCH v6 17/17] arm64: dts: rockchip: rk356x: remove hclk from dsi node Johan Jonker
2023-02-03 18:21 ` [PATCH v6 01/17] dt-bindings: display: rockchip: convert rockchip-lvds.txt to YAML Rob Herring
2023-02-03 19:02 ` Johan Jonker
2023-02-05 14:12 ` Heiko Stübner
2023-02-06 15:46 ` Rob Herring
2023-02-05 14:09 ` (subset) " Heiko Stuebner
2023-03-22 23:40 ` Heiko Stuebner
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=0336a3c4-4a43-c983-11d7-e2ae16187fc8@gmail.com \
--to=jbx6244@gmail.com \
--cc=Laurent.pinchart@ideasonboard.com \
--cc=airlied@gmail.com \
--cc=alim.akhtar@samsung.com \
--cc=andrzej.hajda@intel.com \
--cc=daniel@ffwll.ch \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=gregkh@linuxfoundation.org \
--cc=heiko@sntech.de \
--cc=hjc@rock-chips.com \
--cc=inki.dae@samsung.com \
--cc=jernej.skrabec@gmail.com \
--cc=jonas@kwiboo.se \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=kyungmin.park@samsung.com \
--cc=linus.walleij@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=neil.armstrong@linaro.org \
--cc=philippe.cornu@foss.st.com \
--cc=robert.foss@linaro.org \
--cc=robh+dt@kernel.org \
--cc=sw0312.kim@samsung.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;
as well as URLs for NNTP newsgroup(s).