^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) mvebu armada 38x comphy driver
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) ------------------------------
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) This comphy controller can be found on Marvell Armada 38x. It provides a
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) number of shared PHYs used by various interfaces (network, sata, usb,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) PCIe...).
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) Required properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) - compatible: should be "marvell,armada-380-comphy"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) - reg: should contain the comphy register location and length.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) - #address-cells: should be 1.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) - #size-cells: should be 0.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) Optional properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) - reg-names: must be "comphy" as the first name, and "conf".
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) - reg: must contain the comphy register location and length as the first
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) pair, followed by an optional configuration register address and
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) length pair.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) A sub-node is required for each comphy lane provided by the comphy.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) Required properties (child nodes):
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) - reg: comphy lane number.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) - #phy-cells : from the generic phy bindings, must be 1. Defines the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) input port to use for a given comphy lane.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) Example:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) comphy: phy@18300 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) compatible = "marvell,armada-380-comphy";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) reg-names = "comphy", "conf";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) reg = <0x18300 0x100>, <0x18460 4>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) #address-cells = <1>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) #size-cells = <0>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) cpm_comphy0: phy@0 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) reg = <0>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) #phy-cells = <1>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) cpm_comphy1: phy@1 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) reg = <1>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) #phy-cells = <1>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) };