From: Frank Wunderlich <linux@fw-web.de>
To: Chunfeng Yun <chunfeng.yun@mediatek.com>,
Vinod Koul <vkoul@kernel.org>,
Kishon Vijay Abraham I <kishon@kernel.org>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Matthias Brugger <matthias.bgg@gmail.com>,
AngeloGioacchino Del Regno
<angelogioacchino.delregno@collabora.com>
Cc: Frank Wunderlich <frank-w@public-files.de>,
Daniel Golle <daniel@makrotopia.org>,
Sam Shih <sam.shih@mediatek.com>,
MandyJH Liu <mandyjh.liu@mediatek.com>,
linux-arm-kernel@lists.infradead.org,
linux-mediatek@lists.infradead.org,
linux-phy@lists.infradead.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: [RFC 0/5] Add mt7988 XS-PHY
Date: Sun, 13 Apr 2025 10:58:00 +0200 [thread overview]
Message-ID: <20250413085806.8544-1-linux@fw-web.de> (raw)
From: Frank Wunderlich <frank-w@public-files.de>
Mediatek XS-Phy is a high speed phy used for pcie and usb on mt7988 platform.
It requires a topmisc power controller to switch between USB and PCI mode.
This topmisc system controller is also used by ethernet-node which is not
upstreamed yet.
---
regading syscon-fallback...i know that it should be avoided ;)
based on these commits:
ba5095ebbc7a ("mfd: syscon: Allow syscon nodes without a "syscon" compatible")
5728c92ae112 ("mfd: syscon: Restore device_node_to_regmap() for non-syscon nodes")
I tried to get it working without syscon by changing
instance->type_sw = syscon_node_to_regmap(args.np);
to
device_node_to_regmap()
then xsphy was probed sucessfully, but all pcie (not only the one with xsphy)
stopped working.
for ethernet its driver uses syscon_regmap_lookup_by_phandle which needs to
be patched in syscon driver to also use device_node_to_regmap instead of
syscon_node_to_regmap (with create=true). But have not tried this.
regarding the pcie issue when dropping the syscon compatible i would leave
this compatible, but send this patchset as RFC. Maybe anyone can solve this.
Daniel Golle (1):
phy: mediatek: xsphy: support type switch by pericfg
Frank Wunderlich (4):
dt-bindings: phy: mtk-xs-phy: Add mt7988 compatible
dt-bindings: phy: mtk-xs-phy: support type switch by pericfg
dt-bindings: power: Add binding for MediaTek MT7988 topmisc power
controller
arm64: dts: mediatek: mt7988: Add xsphy for ssusb0/pcie2
.../bindings/phy/mediatek,xsphy.yaml | 17 ++++
.../power/mediatek,power-controller.yaml | 35 +++++---
arch/arm64/boot/dts/mediatek/mt7988a.dtsi | 39 +++++++++
drivers/phy/mediatek/phy-mtk-xsphy.c | 85 ++++++++++++++++++-
4 files changed, 164 insertions(+), 12 deletions(-)
--
2.43.0
next reply other threads:[~2025-04-13 9:00 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-13 8:58 Frank Wunderlich [this message]
2025-04-13 8:58 ` [RFC 1/5] dt-bindings: phy: mtk-xs-phy: Add mt7988 compatible Frank Wunderlich
2025-04-13 8:58 ` [RFC 2/5] dt-bindings: phy: mtk-xs-phy: support type switch by pericfg Frank Wunderlich
2025-04-13 8:58 ` [RFC 3/5] dt-bindings: power: Add binding for MediaTek MT7988 topmisc power controller Frank Wunderlich
2025-04-13 10:42 ` Rob Herring (Arm)
2025-04-14 10:25 ` AngeloGioacchino Del Regno
2025-04-15 9:52 ` Frank Wunderlich
2025-04-15 9:59 ` AngeloGioacchino Del Regno
2025-04-15 11:33 ` Frank Wunderlich
2025-04-15 14:03 ` Frank Wunderlich
2025-04-15 14:12 ` AngeloGioacchino Del Regno
2025-04-13 8:58 ` [RFC 4/5] phy: mediatek: xsphy: support type switch by pericfg Frank Wunderlich
2025-04-14 10:25 ` AngeloGioacchino Del Regno
2025-04-13 8:58 ` [RFC 5/5] arm64: dts: mediatek: mt7988: Add xsphy for ssusb0/pcie2 Frank Wunderlich
2025-04-14 10:27 ` AngeloGioacchino Del Regno
2025-04-14 10:57 ` Frank Wunderlich
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=20250413085806.8544-1-linux@fw-web.de \
--to=linux@fw-web.de \
--cc=angelogioacchino.delregno@collabora.com \
--cc=chunfeng.yun@mediatek.com \
--cc=conor+dt@kernel.org \
--cc=daniel@makrotopia.org \
--cc=devicetree@vger.kernel.org \
--cc=frank-w@public-files.de \
--cc=kishon@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=linux-phy@lists.infradead.org \
--cc=mandyjh.liu@mediatek.com \
--cc=matthias.bgg@gmail.com \
--cc=robh@kernel.org \
--cc=sam.shih@mediatek.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 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).