[PATCH 12/16] dt-bindings: phy: stm32: adapt usb2phy as syscon child on stm32mp25

Fabrice Gasnier <[email protected]>
Newsgroups org.infradead.lists.linux-phy,org.infradead.lists.linux-arm-kernel,org.kernel.vger.linux-devicetree,org.kernel.vger.linux-kernel,org.kernel.vger.linux-usb
Message-ID <20260821-ucpd-host-fusb340-v7-2-rfc-v1-12-c5e27cbc0795@foss.st.com>
Adapt stm32-usb2phy since transition to syscon child node on stm32mp25.
This is a temporary update, as it depends on Marek's series [1]. This
should be dropped in later series revision.
It's a precursor to validate further DT addition on USB and Type-C.

Allow usb2phy to be a child node with reg and unit address.
It replaces the st,syscfg phandle.
Also adapt the example, e.g. stm32mp25-usb2phy1 address, clock and reset.

[1] https://lore.kernel.org/linux-phy/[email protected]/

Signed-off-by: Fabrice Gasnier <[email protected]>
---
 .../devicetree/bindings/phy/st,stm32-usb2phy.yaml    | 20 +++++++-------------
 1 file changed, 7 insertions(+), 13 deletions(-)

diff --git a/Documentation/devicetree/bindings/phy/st,stm32-usb2phy.yaml b/Documentation/devicetree/bindings/phy/st,stm32-usb2phy.yaml
index ab6c943af9a2..3e8f57a46db3 100644
--- a/Documentation/devicetree/bindings/phy/st,stm32-usb2phy.yaml
+++ b/Documentation/devicetree/bindings/phy/st,stm32-usb2phy.yaml
@@ -23,6 +23,8 @@ properties:
       - st,stm32mp25-usb2phy1
       - st,stm32mp25-usb2phy2
 
+  reg: true
+
   "#phy-cells":
     const: 0
 
@@ -35,24 +37,16 @@ properties:
   vdd33-supply:
     description: Phandle to regulator providing 3V3 power supply to the USB2 HS PHY
 
-  st,syscfg:
-    $ref: /schemas/types.yaml#/definitions/phandle-array
-    description: Phandle to system configuration controller.
-    items:
-      - items:
-          - description: phandle to syscfg
-          - description: USB2PHY control offset within syscfg
-
   "#clock-cells":
     const: 1
 
 required:
   - compatible
+  - reg
   - "#clock-cells"
   - "#phy-cells"
   - clocks
   - resets
-  - st,syscfg
   - vdd33-supply
 
 additionalProperties: false
@@ -62,12 +56,12 @@ examples:
     #include <dt-bindings/clock/st,stm32mp25-rcc.h>
     #include <dt-bindings/reset/st,stm32mp25-rcc.h>
 
-    usb2_phy2: usb-phy {
+    usb2_phy2: phy@2400 {
         compatible = "st,stm32mp25-usb2phy1";
+        reg = <0x2400 0x24>;
         #clock-cells = <1>;
         #phy-cells = <0>;
-        clocks = <&rcc CK_KER_USB2PHY2>;
-        resets = <&rcc USB2PHY2_R>;
-        st,syscfg = <&syscfg 0x2800>;
+        clocks = <&rcc CK_KER_USB2PHY1>;
+        resets = <&rcc USB2PHY1_R>;
         vdd33-supply = <&vdd33usb>;
     };

-- 
2.43.0


-- 
linux-phy mailing list
[email protected]
https://lists.infradead.org/mailman/listinfo/linux-phy
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.