From: Richard Zhu <hongxing.zhu@nxp.com>
To: vkoul@kernel.org, kishon@kernel.org, robh+dt@kernel.org,
krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org,
shawnguo@kernel.org, s.hauer@pengutronix.de, festevam@gmail.com,
l.stach@pengutronix.de, a.fatoum@pengutronix.de,
u.kleine-koenig@pengutronix.de
Cc: hongxing.zhu@nxp.com, linux-phy@lists.infradead.org,
devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, kernel@pengutronix.de,
linux-imx@nxp.com
Subject: [PATCH v1 1/3] dt-bindings: phy: Add i.MX8QM PCIe PHY binding
Date: Tue, 29 Aug 2023 14:45:32 +0800 [thread overview]
Message-ID: <1693291534-32092-2-git-send-email-hongxing.zhu@nxp.com> (raw)
In-Reply-To: <1693291534-32092-1-git-send-email-hongxing.zhu@nxp.com>
Add i.MX8QM PCIe PHY binding.
i.MX8QM HSIO(High Speed IO) module has three instances of single lane
SERDES PHYs, an instance of two lanes PCIe GEN3 controller, an
instance of single lane PCIe GEN3 controller, as well as an instance
of SATA 3.0 controller.
The HSIO module can be configured as the following different usecases.
1 - A two lanes PCIea and a single lane SATA.
2 - A single lane PCIea, a single lane PCIeb and a single lane SATA.
3 - A two lanes PCIea, a single lane PCIeb.
Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
---
.../bindings/phy/fsl,imx8-pcie-phy.yaml | 70 ++++++++++++++++++-
1 file changed, 67 insertions(+), 3 deletions(-)
diff --git a/Documentation/devicetree/bindings/phy/fsl,imx8-pcie-phy.yaml b/Documentation/devicetree/bindings/phy/fsl,imx8-pcie-phy.yaml
index 182a219387b0..764790f2b10b 100644
--- a/Documentation/devicetree/bindings/phy/fsl,imx8-pcie-phy.yaml
+++ b/Documentation/devicetree/bindings/phy/fsl,imx8-pcie-phy.yaml
@@ -17,16 +17,18 @@ properties:
enum:
- fsl,imx8mm-pcie-phy
- fsl,imx8mp-pcie-phy
+ - fsl,imx8qm-pcie-phy
reg:
maxItems: 1
clocks:
- maxItems: 1
+ minItems: 1
+ maxItems: 5
clock-names:
- items:
- - const: ref
+ minItems: 1
+ maxItems: 5
resets:
minItems: 1
@@ -70,6 +72,36 @@ properties:
description: PCIe PHY power domain (optional).
maxItems: 1
+ hsio-cfg:
+ description: |
+ Specifies the different usecases supported by the HSIO(High Speed IO)
+ module. PCIEAX2SATA means two lanes PCIea and a single lane SATA.
+ PCIEAX1PCIEBX1SATA represents a single lane PCIea, a single lane
+ PCIeb and a single lane SATA. PCIEAX2PCIEBX1 on behalf of a two
+ lanes PCIea, a single lane PCIeb.
+ Refer include/dt-bindings/phy/phy-imx8-pcie.h for the constants to
+ be used (optional).
+ $ref: /schemas/types.yaml#/definitions/uint32
+ enum: [ 1, 2, 3 ]
+
+ ctrl-csr:
+ $ref: /schemas/types.yaml#/definitions/phandle
+ description:
+ phandle to the ctrl-csr region containing the HSIO control and
+ status registers for PCIe or SATA controller (optional).
+
+ misc-csr:
+ $ref: /schemas/types.yaml#/definitions/phandle
+ description:
+ phandle to the misc-csr region containing the HSIO control and
+ status registers for misc (optional).
+
+ phy-csr:
+ $ref: /schemas/types.yaml#/definitions/phandle
+ description:
+ phandle to the phy-csr region containing the HSIO control and
+ status registers for phy (optional).
+
required:
- "#phy-cells"
- compatible
@@ -78,6 +110,38 @@ required:
- clock-names
- fsl,refclk-pad-mode
+allOf:
+ - if:
+ properties:
+ compatible:
+ enum:
+ - fsl,imx8qm-pcie-phy
+ then:
+ properties:
+ clocks:
+ minItems: 4
+ maxItems: 5
+ clock-names:
+ oneOf:
+ - items:
+ - const: pipe_pclk
+ - const: ctrl_ips_clk
+ - const: phy_ips_clk
+ - const: misc_ips_clk
+ - items:
+ - const: apb_pclk
+ - const: pipe_pclk
+ - const: ctrl_ips_clk
+ - const: phy_ips_clk
+ - const: misc_ips_clk
+ else:
+ properties:
+ clocks:
+ maxItems: 1
+ clock-names:
+ items:
+ - const: ref
+
additionalProperties: false
examples:
--
2.34.1
next prev parent reply other threads:[~2023-08-29 7:21 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-29 6:45 [PATCH v1 0/3] Add i.MX8Q PCIe PHY driver Richard Zhu
2023-08-29 6:45 ` Richard Zhu [this message]
2023-08-29 7:47 ` [PATCH v1 1/3] dt-bindings: phy: Add i.MX8QM PCIe PHY binding Krzysztof Kozlowski
2023-08-30 7:31 ` Hongxing Zhu
2023-08-30 7:37 ` Krzysztof Kozlowski
2023-08-31 6:33 ` Hongxing Zhu
2023-08-29 6:45 ` [PATCH v1 2/3] dt-bindings: phy: phy-imx8-pcie: Add binding for different usecases of i.MX8QM PCIe PHYs Richard Zhu
2023-08-29 7:49 ` Krzysztof Kozlowski
2023-08-30 7:31 ` Hongxing Zhu
2023-08-29 6:45 ` [PATCH v1 3/3] phy: freescale: imx8q-pcie: Add i.MX8Q PCIe PHY driver Richard Zhu
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=1693291534-32092-2-git-send-email-hongxing.zhu@nxp.com \
--to=hongxing.zhu@nxp.com \
--cc=a.fatoum@pengutronix.de \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=festevam@gmail.com \
--cc=kernel@pengutronix.de \
--cc=kishon@kernel.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=l.stach@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-imx@nxp.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-phy@lists.infradead.org \
--cc=robh+dt@kernel.org \
--cc=s.hauer@pengutronix.de \
--cc=shawnguo@kernel.org \
--cc=u.kleine-koenig@pengutronix.de \
--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
all inboxes | Powered by JetHome®