Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: phy-common-props: create a reusable "protocol-names" definition

Other properties also need to be defined per protocol than just
tx-p2p-microvolt-names. Create a common definition to avoid copying a 55
line property.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Link: https://patch.msgid.link/20260111093940.975359-3-vladimir.oltean@nxp.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Vladimir Oltean and committed by
Vinod Koul
33c79865 b7b4dcd9

+19 -15
+19 -15
Documentation/devicetree/bindings/phy/phy-common-props.yaml
··· 13 13 maintainers: 14 14 - Marek Behún <kabel@kernel.org> 15 15 16 - properties: 17 - tx-p2p-microvolt: 16 + $defs: 17 + protocol-names: 18 18 description: 19 - Transmit amplitude voltages in microvolts, peak-to-peak. If this property 20 - contains multiple values for various PHY modes, the 21 - 'tx-p2p-microvolt-names' property must be provided and contain 22 - corresponding mode names. 23 - 24 - tx-p2p-microvolt-names: 25 - description: | 26 - Names of the modes corresponding to voltages in the 'tx-p2p-microvolt' 27 - property. Required only if multiple voltages are provided. 28 - 29 - If a value of 'default' is provided, the system should use it for any PHY 30 - mode that is otherwise not defined here. If 'default' is not provided, the 31 - system should use manufacturer default value. 19 + Names of the PHY modes. If a value of 'default' is provided, the system 20 + should use it for any PHY mode that is otherwise not defined here. If 21 + 'default' is not provided, the system should use manufacturer default value. 32 22 minItems: 1 33 23 maxItems: 16 34 24 items: ··· 78 88 - mipi-dphy 79 89 - mipi-dphy-univ 80 90 - mipi-dphy-v2.5-univ 91 + 92 + properties: 93 + tx-p2p-microvolt: 94 + description: 95 + Transmit amplitude voltages in microvolts, peak-to-peak. If this property 96 + contains multiple values for various PHY modes, the 97 + 'tx-p2p-microvolt-names' property must be provided and contain 98 + corresponding mode names. 99 + 100 + tx-p2p-microvolt-names: 101 + description: 102 + Names of the modes corresponding to voltages in the 'tx-p2p-microvolt' 103 + property. Required only if multiple voltages are provided. 104 + $ref: "#/$defs/protocol-names" 81 105 82 106 dependencies: 83 107 tx-p2p-microvolt-names: [ tx-p2p-microvolt ]