From: Rob Herring <robh@kernel.org>
To: Raphael Gallais-Pou <rgallaispou@gmail.com>
Cc: "Vinod Koul" <vkoul@kernel.org>,
"Kishon Vijay Abraham I" <kishon@kernel.org>,
"Krzysztof Kozlowski" <krzysztof.kozlowski+dt@linaro.org>,
"Patrice Chotard" <patrice.chotard@foss.st.com>,
linux-phy@lists.infradead.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org,
"Raphaël Gallais-Pou" <raphael.gallais.pou@gmail.com>
Subject: Re: [PATCH] dt-bindings: phy: st: convert phy-stih407-usb to DT schema
Date: Fri, 11 Aug 2023 13:27:47 -0600 [thread overview]
Message-ID: <20230811192747.GA3978164-robh@kernel.org> (raw)
In-Reply-To: <20230801205510.15713-1-rgallaispou@gmail.com>
On Tue, Aug 01, 2023 at 10:55:10PM +0200, Raphael Gallais-Pou wrote:
> From: Raphaël Gallais-Pou <raphael.gallais.pou@gmail.com>
>
> Convert the st,stih407-usb2-phy binding to DT schema format.
>
> Signed-off-by: Raphaël Gallais-Pou <raphael.gallais.pou@gmail.com>
> ---
> .../bindings/phy/phy-stih407-usb.txt | 24 -------
> .../bindings/phy/st,stih407-usb2-phy.yaml | 63 +++++++++++++++++++
> 2 files changed, 63 insertions(+), 24 deletions(-)
> delete mode 100644 Documentation/devicetree/bindings/phy/phy-stih407-usb.txt
> create mode 100644 Documentation/devicetree/bindings/phy/st,stih407-usb2-phy.yaml
>
> diff --git a/Documentation/devicetree/bindings/phy/phy-stih407-usb.txt b/Documentation/devicetree/bindings/phy/phy-stih407-usb.txt
> deleted file mode 100644
> index 35f03df00130..000000000000
> --- a/Documentation/devicetree/bindings/phy/phy-stih407-usb.txt
> +++ /dev/null
> @@ -1,24 +0,0 @@
> -ST STiH407 USB PHY controller
> -
> -This file documents the dt bindings for the usb picoPHY driver which is the PHY for both USB2 and USB3
> -host controllers (when controlling usb2/1.1 devices) available on STiH407 SoC family from STMicroelectronics.
> -
> -Required properties:
> -- compatible : should be "st,stih407-usb2-phy"
> -- st,syscfg : phandle of sysconfig bank plus integer array containing phyparam and phyctrl register offsets
> -- resets : list of phandle and reset specifier pairs. There should be two entries, one
> - for the whole phy and one for the port
> -- reset-names : list of reset signal names. Should be "global" and "port"
> -See: Documentation/devicetree/bindings/reset/st,stih407-powerdown.yaml
> -See: Documentation/devicetree/bindings/reset/reset.txt
> -
> -Example:
> -
> -usb2_picophy0: usbpicophy@f8 {
> - compatible = "st,stih407-usb2-phy";
> - #phy-cells = <0>;
> - st,syscfg = <&syscfg_core 0x100 0xf4>;
> - resets = <&softreset STIH407_PICOPHY_SOFTRESET>,
> - <&picophyreset STIH407_PICOPHY0_RESET>;
> - reset-names = "global", "port";
> -};
> diff --git a/Documentation/devicetree/bindings/phy/st,stih407-usb2-phy.yaml b/Documentation/devicetree/bindings/phy/st,stih407-usb2-phy.yaml
> new file mode 100644
> index 000000000000..1f66ceddbf81
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/phy/st,stih407-usb2-phy.yaml
> @@ -0,0 +1,63 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/phy/st,stih407-usb2-phy.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: STMicroelectronics STiH407 USB PHY controller
> +
> +maintainers:
> + - Patrice Chotard <patrice.chotard@foss.st.com>
> +
> +description:
> + The USB picoPHY driver is the PHY for both USB2 and USB3 host controllers
> + (when controlling usb2/1.1 devices) available on STiH407 SoC family from
> + STMicroelectronics.
> +
> +properties:
> + compatible:
> + const: st,stih407-usb2-phy
> +
> + st,syscfg:
> + description: Phandle to the syscfg bank
> + $ref: "/schemas/types.yaml#/definitions/uint32-array"
Drop quotes
The correct type is 'phandle-array' which is really a matrix, so you
need:
items:
- items:
- description: ...
- description: ...
- description: ...
> + items:
> + - description: phandle to syscfg
> + - description: phyparam register offset
> + - description: phyctrl register offset
> +
> + resets:
> + items:
> + - description: Phandle and reset specifier pair for the whole phy.
> + - description: Phandle and reset specifier pair for the port.
> +
> + reset-names:
> + description: List of reset signal names.
> + items:
> + - const: "global"
> + - const: "port"
Drop quotes
> +
> + "#phy-cells":
> + const: 0
> +
> +required:
> + - compatible
> + - st,syscfg
> + - resets
> + - reset-names
> + - "#phy-cells"
> +
> +additionalProperties: false
> +
> +examples:
> + - |
> + #include <dt-bindings/reset/stih407-resets.h>
> + usb2_picophy0: usbpicophy {
> + compatible = "st,stih407-usb2-phy";
> + #phy-cells = <0>;
> + st,syscfg = <&syscfg_core 0x100 0xf4>;
> + resets = <&softreset STIH407_PICOPHY_SOFTRESET>,
> + <&picophyreset STIH407_PICOPHY0_RESET>;
> + reset-names = "global", "port";
Mixed spaces and tabs.
> + };
> +...
> --
> 2.41.0
>
--
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy
WARNING: multiple messages have this Message-ID (diff)
From: Rob Herring <robh@kernel.org>
To: Raphael Gallais-Pou <rgallaispou@gmail.com>
Cc: "Vinod Koul" <vkoul@kernel.org>,
"Kishon Vijay Abraham I" <kishon@kernel.org>,
"Krzysztof Kozlowski" <krzysztof.kozlowski+dt@linaro.org>,
"Patrice Chotard" <patrice.chotard@foss.st.com>,
linux-phy@lists.infradead.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org,
"Raphaël Gallais-Pou" <raphael.gallais.pou@gmail.com>
Subject: Re: [PATCH] dt-bindings: phy: st: convert phy-stih407-usb to DT schema
Date: Fri, 11 Aug 2023 13:27:47 -0600 [thread overview]
Message-ID: <20230811192747.GA3978164-robh@kernel.org> (raw)
In-Reply-To: <20230801205510.15713-1-rgallaispou@gmail.com>
On Tue, Aug 01, 2023 at 10:55:10PM +0200, Raphael Gallais-Pou wrote:
> From: Raphaël Gallais-Pou <raphael.gallais.pou@gmail.com>
>
> Convert the st,stih407-usb2-phy binding to DT schema format.
>
> Signed-off-by: Raphaël Gallais-Pou <raphael.gallais.pou@gmail.com>
> ---
> .../bindings/phy/phy-stih407-usb.txt | 24 -------
> .../bindings/phy/st,stih407-usb2-phy.yaml | 63 +++++++++++++++++++
> 2 files changed, 63 insertions(+), 24 deletions(-)
> delete mode 100644 Documentation/devicetree/bindings/phy/phy-stih407-usb.txt
> create mode 100644 Documentation/devicetree/bindings/phy/st,stih407-usb2-phy.yaml
>
> diff --git a/Documentation/devicetree/bindings/phy/phy-stih407-usb.txt b/Documentation/devicetree/bindings/phy/phy-stih407-usb.txt
> deleted file mode 100644
> index 35f03df00130..000000000000
> --- a/Documentation/devicetree/bindings/phy/phy-stih407-usb.txt
> +++ /dev/null
> @@ -1,24 +0,0 @@
> -ST STiH407 USB PHY controller
> -
> -This file documents the dt bindings for the usb picoPHY driver which is the PHY for both USB2 and USB3
> -host controllers (when controlling usb2/1.1 devices) available on STiH407 SoC family from STMicroelectronics.
> -
> -Required properties:
> -- compatible : should be "st,stih407-usb2-phy"
> -- st,syscfg : phandle of sysconfig bank plus integer array containing phyparam and phyctrl register offsets
> -- resets : list of phandle and reset specifier pairs. There should be two entries, one
> - for the whole phy and one for the port
> -- reset-names : list of reset signal names. Should be "global" and "port"
> -See: Documentation/devicetree/bindings/reset/st,stih407-powerdown.yaml
> -See: Documentation/devicetree/bindings/reset/reset.txt
> -
> -Example:
> -
> -usb2_picophy0: usbpicophy@f8 {
> - compatible = "st,stih407-usb2-phy";
> - #phy-cells = <0>;
> - st,syscfg = <&syscfg_core 0x100 0xf4>;
> - resets = <&softreset STIH407_PICOPHY_SOFTRESET>,
> - <&picophyreset STIH407_PICOPHY0_RESET>;
> - reset-names = "global", "port";
> -};
> diff --git a/Documentation/devicetree/bindings/phy/st,stih407-usb2-phy.yaml b/Documentation/devicetree/bindings/phy/st,stih407-usb2-phy.yaml
> new file mode 100644
> index 000000000000..1f66ceddbf81
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/phy/st,stih407-usb2-phy.yaml
> @@ -0,0 +1,63 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/phy/st,stih407-usb2-phy.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: STMicroelectronics STiH407 USB PHY controller
> +
> +maintainers:
> + - Patrice Chotard <patrice.chotard@foss.st.com>
> +
> +description:
> + The USB picoPHY driver is the PHY for both USB2 and USB3 host controllers
> + (when controlling usb2/1.1 devices) available on STiH407 SoC family from
> + STMicroelectronics.
> +
> +properties:
> + compatible:
> + const: st,stih407-usb2-phy
> +
> + st,syscfg:
> + description: Phandle to the syscfg bank
> + $ref: "/schemas/types.yaml#/definitions/uint32-array"
Drop quotes
The correct type is 'phandle-array' which is really a matrix, so you
need:
items:
- items:
- description: ...
- description: ...
- description: ...
> + items:
> + - description: phandle to syscfg
> + - description: phyparam register offset
> + - description: phyctrl register offset
> +
> + resets:
> + items:
> + - description: Phandle and reset specifier pair for the whole phy.
> + - description: Phandle and reset specifier pair for the port.
> +
> + reset-names:
> + description: List of reset signal names.
> + items:
> + - const: "global"
> + - const: "port"
Drop quotes
> +
> + "#phy-cells":
> + const: 0
> +
> +required:
> + - compatible
> + - st,syscfg
> + - resets
> + - reset-names
> + - "#phy-cells"
> +
> +additionalProperties: false
> +
> +examples:
> + - |
> + #include <dt-bindings/reset/stih407-resets.h>
> + usb2_picophy0: usbpicophy {
> + compatible = "st,stih407-usb2-phy";
> + #phy-cells = <0>;
> + st,syscfg = <&syscfg_core 0x100 0xf4>;
> + resets = <&softreset STIH407_PICOPHY_SOFTRESET>,
> + <&picophyreset STIH407_PICOPHY0_RESET>;
> + reset-names = "global", "port";
Mixed spaces and tabs.
> + };
> +...
> --
> 2.41.0
>
next prev parent reply other threads:[~2023-08-11 19:27 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-01 20:55 [PATCH] dt-bindings: phy: st: convert phy-stih407-usb to DT schema Raphael Gallais-Pou
2023-08-01 20:55 ` Raphael Gallais-Pou
2023-08-11 19:27 ` Rob Herring [this message]
2023-08-11 19:27 ` Rob Herring
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=20230811192747.GA3978164-robh@kernel.org \
--to=robh@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=kishon@kernel.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-phy@lists.infradead.org \
--cc=patrice.chotard@foss.st.com \
--cc=raphael.gallais.pou@gmail.com \
--cc=rgallaispou@gmail.com \
--cc=vkoul@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.