[PATCH v6 1/2] dt-bindings: phy: airoha: Document support for AN7583 Gen3 PCIe PHY
sashiko-bot at kernel.org
sashiko-bot at kernel.org
Tue Nov 24 14:57:10 PST 2026
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 at 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 at 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
More information about the linux-phy
mailing list