From: sashiko-bot@kernel.org
To: "Christian Marangi" <ansuelsmth@gmail.com>,
linux-phy@lists.infradead.org, devicetree@vger.kernel.org
Cc: robh@kernel.org, conor+dt@kernel.org, vkoul@kernel.org,
neil.armstrong@linaro.org, olteanv@gmail.com
Subject: Re: [PATCH v6 1/2] dt-bindings: phy: airoha: Document support for AN7583 Gen3 PCIe PHY
Date: Tue, 24 Nov 2026 22:57:10 +0000 [thread overview]
Message-ID: <sashiko-outbox-232181@kernel.org> (raw)
In-Reply-To: <20261124224318.227478-2-ansuelsmth@gmail.com>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] dt-bindings: phy: airoha: single 4-byte registers modeled as
reg blocks
--
commit 4195ba1ead4d27d20beddf043b1dfb9d83d460c7
Author: Christian Marangi <ansuelsmth@gmail.com>
dt-bindings: phy: airoha: Document support for AN7583 Gen3 PCIe PHY
This commit adds the Device Tree binding schema for the Airoha AN7583
Gen3 PCIe PHY.
> diff --git a/Documentation/devicetree/bindings/phy/airoha,an7583-pcie-gen3-phy.yaml b/Documentation/devicetree/bindings/phy/airoha,an7583-pcie-gen3-phy.yaml
> new file mode 100644
> index 0000000000000..a8ec5ac781ccc
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/phy/airoha,an7583-pcie-gen3-phy.yaml
> @@ -0,0 +1,65 @@
[ ... ]
> +properties:
> + compatible:
> + const: airoha,an7583-pcie-gen3-phy
> +
> + reg:
> + items:
> + - description: PCIE G3 analog base address
> + - description: PCIE G3 PMA base address
> + - description: PCIE detection time base address
> + - description: PCIE Rx AEQ base address
> +
> + reg-names:
> + items:
> + - const: g3-ana
> + - const: g3-pma
> + - const: xr-dtime
> + - const: rx-aeq
[ ... ]
> + phy@1fc7f000 {
> + compatible = "airoha,an7583-pcie-gen3-phy";
> + reg = <0x1fc7f000 0x1000>,
> + <0x1fc7e000 0x1000>,
> + <0x1fc30044 0x4>,
> + <0x1fc35030 0x4>;
> + reg-names = "g3-ana", "g3-pma",
> + "xr-dtime", "rx-aeq";
[Severity: Medium]
As reported by Krzysztof Kozlowski on v2 [1], should xr-dtime and rx-aeq
describe the enclosing PEXTP register block(s) instead of individual
4-byte registers?
In the companion driver header drivers/phy/airoha/phy-an7583-pcie-regs.h
(added in commit "phy: airoha: add support for AN7583 Gen3 PCIe PHY
driver"), 0x1fc30044 and 0x1fc35030 correspond to REG_PCIE_PEXTP_DIG_GLB44
(offset 0x44 in PEXTP_DIG_GLB at 0x1fc30000) and
REG_PCIE_PEXTP_DIG_LN_RX30 (offset 0x30 in PEXTP_DIG_LN_RX at
0x1fc35000). Binding two single 4-byte registers as separate reg
regions locks the DT ABI to the registers currently touched by the driver
and prevents accessing any other PEXTP digital global or lane RX
registers without changing the binding.
[1] https://lore.kernel.org/r/20260831-elastic-turquoise-puma-f032fc@quoll
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261124224318.227478-1-ansuelsmth@gmail.com?part=1
next prev parent reply other threads:[~2026-11-24 22:57 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-24 22:43 [PATCH v6 0/2] phy: airoha: add support for AN7583 PCIe PHY driver Christian Marangi
2026-11-24 22:43 ` [PATCH v6 1/2] dt-bindings: phy: airoha: Document support for AN7583 Gen3 PCIe PHY Christian Marangi
2026-11-24 22:57 ` sashiko-bot [this message]
2026-11-24 22:43 ` [PATCH v6 2/2] phy: airoha: add support for AN7583 Gen3 PCIe PHY driver Christian Marangi
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=sashiko-outbox-232181@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=ansuelsmth@gmail.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=linux-phy@lists.infradead.org \
--cc=neil.armstrong@linaro.org \
--cc=olteanv@gmail.com \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--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