Linux-PHY Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH RFC v3 0/5] phy: hisi-inno-phy: add support for hi3798mv200-usb2-phy
@ 2024-02-19 21:27 Yang Xiwen via B4 Relay
  2024-02-19 21:27 ` [PATCH RFC v3 1/5] dt-bindings: phy: hisi-inno-usb2: convert to YAML Yang Xiwen via B4 Relay
                   ` (4 more replies)
  0 siblings, 5 replies; 31+ messages in thread
From: Yang Xiwen via B4 Relay @ 2024-02-19 21:27 UTC (permalink / raw)
  To: Vinod Koul, Kishon Vijay Abraham I, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Jiancheng Xue, Shawn Guo,
	Philipp Zabel
  Cc: linux-phy, devicetree, linux-kernel, Kishon Vijay Abraham I,
	David Yang, Yang Xiwen

This should be considered a dirty hack. The proper solution would be
extracting write_reg logic to a separate regmap driver. Leaving only
"write BIT(2) to address 0x6" to the PHY driver.

The initial commit is already doing things wrong. The following patches
adding hi3798mv100 support is also very confusing. The name of the
enumeration "PHY_TYPE_x" is very misleading as if it's the phy which is
different across SoCs. But actually it's the bus (i.e. how to write to a
given address) which is different, not the PHY.

Signed-off-by: Yang Xiwen <forbidden405@outlook.com>
---
Changes in v3:
- address a few binding issue mistakenly missing in v2 (Krzysztof Kozlowski)
  - add msg about hi3798mv100 being added to compatible list
  - remove minItems for compatible
  - remove | for reg:
- fix existing dts (hi3798cv200.dtsi) due to binding change.
- Link to v2: https://lore.kernel.org/r/20240217-inno-phy-v2-0-3bf7e87b0e9e@outlook.com

Changes in v2:
- rewrite commit msg to show why hisilicon,hi3798mv100-usb2-phy is added during YAML convertion.
- split required: to multiple line
- add allOf to wrap if:
- remove perictrl wrapper and the second phy in the example
- tested the binding both for mv200 and cv200 dts. fix some silly errors.
- remove Pengcheng Li from To:
Above all are suggested by Krzysztof
- use reset_control_array_* APIs to ensure all resets are controlled
- Link to v1: https://lore.kernel.org/r/20240216-inno-phy-v1-0-1ab912f0533f@outlook.com

---
Yang Xiwen (5):
      dt-bindings: phy: hisi-inno-usb2: convert to YAML
      arm64: dts: hi3798cv200: add hisilicon,inno-usb2-phy to compatible list
      phy: hisilicon: hisi-inno-phy: enable clocks for every ports
      phy: hisilicon: hisi-inno-phy: add support for Hi3798MV200 INNO PHY
      dt-bindings: phy: hisi-inno-usb2: add compatible of hisilicon,hi3798mv200-usb2-phy

 .../bindings/phy/hisilicon,inno-usb2-phy.yaml      | 123 +++++++++++++++++++++
 .../devicetree/bindings/phy/phy-hisi-inno-usb2.txt |  71 ------------
 arch/arm64/boot/dts/hisilicon/hi3798cv200.dtsi     |   6 +-
 drivers/phy/hisilicon/phy-hisi-inno-usb2.c         |  69 +++++++-----
 4 files changed, 169 insertions(+), 100 deletions(-)
---
base-commit: 8d3dea210042f54b952b481838c1e7dfc4ec751d
change-id: 20240216-inno-phy-a2d872f6b74b

Best regards,
-- 
Yang Xiwen <forbidden405@outlook.com>


-- 
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy

^ permalink raw reply	[flat|nested] 31+ messages in thread

end of thread, other threads:[~2024-02-21 12:53 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-19 21:27 [PATCH RFC v3 0/5] phy: hisi-inno-phy: add support for hi3798mv200-usb2-phy Yang Xiwen via B4 Relay
2024-02-19 21:27 ` [PATCH RFC v3 1/5] dt-bindings: phy: hisi-inno-usb2: convert to YAML Yang Xiwen via B4 Relay
2024-02-19 21:30   ` Krzysztof Kozlowski
2024-02-19 21:33     ` Yang Xiwen
2024-02-19 21:36       ` Krzysztof Kozlowski
2024-02-19 21:50         ` Yang Xiwen
2024-02-19 21:32   ` Krzysztof Kozlowski
2024-02-19 21:35     ` Yang Xiwen
2024-02-19 21:37       ` Krzysztof Kozlowski
2024-02-19 21:49         ` Yang Xiwen
2024-02-20  8:16           ` Krzysztof Kozlowski
2024-02-20 10:40             ` Yang Xiwen
2024-02-20 11:41               ` Krzysztof Kozlowski
2024-02-20 11:43                 ` Krzysztof Kozlowski
2024-02-20 12:12                   ` Yang Xiwen
2024-02-21  8:22                     ` Krzysztof Kozlowski
2024-02-21  8:25                       ` Krzysztof Kozlowski
2024-02-21 11:15                         ` Yang Xiwen
2024-02-21 10:05                       ` Yang Xiwen
2024-02-21  8:23                   ` Krzysztof Kozlowski
2024-02-19 22:33   ` Rob Herring
2024-02-19 21:27 ` [PATCH RFC v3 2/5] arm64: dts: hi3798cv200: add hisilicon,inno-usb2-phy to compatible list Yang Xiwen via B4 Relay
2024-02-19 21:28 ` [PATCH RFC v3 3/5] phy: hisilicon: hisi-inno-phy: enable clocks for every ports Yang Xiwen via B4 Relay
2024-02-19 21:28 ` [PATCH RFC v3 4/5] phy: hisilicon: hisi-inno-phy: add support for Hi3798MV200 INNO PHY Yang Xiwen via B4 Relay
2024-02-19 21:34   ` Krzysztof Kozlowski
2024-02-19 21:37     ` Yang Xiwen
2024-02-21 12:53   ` Philipp Zabel
2024-02-19 21:28 ` [PATCH RFC v3 5/5] dt-bindings: phy: hisi-inno-usb2: add compatible of hisilicon,hi3798mv200-usb2-phy Yang Xiwen via B4 Relay
2024-02-19 21:35   ` Krzysztof Kozlowski
2024-02-20  8:18   ` Krzysztof Kozlowski
2024-02-20  9:25     ` Yang Xiwen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox