[net-next RFC PATCH v2 1/3] dt-bindings: net: dsa: Add Airoha AN8855 Gigabit Switch documentation
Andrew Lunn
andrew at lunn.ch
Wed Oct 23 10:08:57 PDT 2024
> + airoha,base_smi_address:
> + $ref: /schemas/types.yaml#/definitions/uint32
> + description:
> + Configure and change the base switch PHY address to a new address on
> + the bus.
> + On reset, the switch PHY address is ALWAYS 1.
> + default: 1
> + maximum: 31
Given that this is a 5 port switch, what happens if i pick a value
greater than 31 - 5 ?
Do you have a real use case for this? A board which requires the PHYs
get shifted from the default of 1? Vendors have all sorts of bells and
whistles which we never use. If its not needed, i would not add it,
until it is actually needed, if ever.
> + mdio:
> + $ref: /schemas/net/mdio.yaml#
> + unevaluatedProperties: false
> + description:
> + Define the relative address of the internal PHY for each port.
> +
> + Each reg for the PHY is relative to the switch base PHY address.
Which is not the usual meaning of reg.
> + mdio {
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + internal_phy0: phy at 0 {
> + reg = <0>;
So given that airoha,base_smi_address defaults to 1, this is actually
address 1 on the MDIO bus?
Andrew
More information about the linux-arm-kernel
mailing list