| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197 |
- From 001b663ecc5f838dac143623badae0e472749d8a Mon Sep 17 00:00:00 2001
- From: Lei Wei <[email protected]>
- Date: Tue, 14 May 2024 10:53:27 +0800
- Subject: [PATCH] arm64: dts: qcom: Add IPQ9574 RDP433 port node
- There are 6 PPE MAC ports available on RDP433. The port1-port4 are
- connected with QCA8075 QUAD PHYs through UNIPHY0 PCS channel0-channel3.
- The port5 is connected with Aquantia PHY through UNIPHY1 PCS channel0
- and the port6 is connected with Aquantia PHY through UNIPHY2 PCS
- channel0.
- Change-Id: Ic16efdef2fe2cff7b1e80245619c0f82afb24cb9
- Signed-off-by: Lei Wei <[email protected]>
- ---
- arch/arm64/boot/dts/qcom/ipq9574-rdp433.dts | 167 ++++++++++++++++++++
- 1 file changed, 167 insertions(+)
- --- a/arch/arm64/boot/dts/qcom/ipq9574-rdp433.dts
- +++ b/arch/arm64/boot/dts/qcom/ipq9574-rdp433.dts
- @@ -55,6 +55,46 @@
- status = "okay";
- };
-
- +&mdio {
- + reset-gpios = <&tlmm 60 GPIO_ACTIVE_LOW>;
- + clock-frequency = <6250000>;
- + status = "okay";
- +
- + ethernet-phy-package@0 {
- + compatible = "qcom,qca8075-package";
- + #address-cells = <1>;
- + #size-cells = <0>;
- + reg = <0x10>;
- + qcom,package-mode = "qsgmii";
- +
- + phy0: ethernet-phy@10 {
- + reg = <0x10>;
- + };
- +
- + phy1: ethernet-phy@11 {
- + reg = <0x11>;
- + };
- +
- + phy2: ethernet-phy@12 {
- + reg = <0x12>;
- + };
- +
- + phy3: ethernet-phy@13 {
- + reg = <0x13>;
- + };
- + };
- +
- + phy4: ethernet-phy@8 {
- + compatible ="ethernet-phy-ieee802.3-c45";
- + reg = <8>;
- + };
- +
- + phy5: ethernet-phy@0 {
- + compatible ="ethernet-phy-ieee802.3-c45";
- + reg = <0>;
- + };
- +};
- +
- &tlmm {
-
- pcie1_default: pcie1-default-state {
- @@ -161,3 +201,130 @@
- };
- };
- };
- +
- +&qcom_ppe {
- + ethernet-ports {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + port@1 {
- + reg = <1>;
- + phy-mode = "qsgmii";
- + managed = "in-band-status";
- + phy-handle = <&phy0>;
- + pcs-handle = <&pcsuniphy0_ch0>;
- + clocks = <&nsscc NSS_CC_PORT1_MAC_CLK>,
- + <&nsscc NSS_CC_PORT1_RX_CLK>,
- + <&nsscc NSS_CC_PORT1_TX_CLK>;
- + clock-names = "port_mac",
- + "port_rx",
- + "port_tx";
- + resets = <&nsscc PORT1_MAC_ARES>,
- + <&nsscc PORT1_RX_ARES>,
- + <&nsscc PORT1_TX_ARES>;
- + reset-names = "port_mac",
- + "port_rx",
- + "port_tx";
- + };
- +
- + port@2 {
- + reg = <2>;
- + phy-mode = "qsgmii";
- + managed = "in-band-status";
- + phy-handle = <&phy1>;
- + pcs-handle = <&pcsuniphy0_ch1>;
- + clocks = <&nsscc NSS_CC_PORT2_MAC_CLK>,
- + <&nsscc NSS_CC_PORT2_RX_CLK>,
- + <&nsscc NSS_CC_PORT2_TX_CLK>;
- + clock-names = "port_mac",
- + "port_rx",
- + "port_tx";
- + resets = <&nsscc PORT2_MAC_ARES>,
- + <&nsscc PORT2_RX_ARES>,
- + <&nsscc PORT2_TX_ARES>;
- + reset-names = "port_mac",
- + "port_rx",
- + "port_tx";
- + };
- +
- + port@3 {
- + reg = <3>;
- + phy-mode = "qsgmii";
- + managed = "in-band-status";
- + phy-handle = <&phy2>;
- + pcs-handle = <&pcsuniphy0_ch2>;
- + clocks = <&nsscc NSS_CC_PORT3_MAC_CLK>,
- + <&nsscc NSS_CC_PORT3_RX_CLK>,
- + <&nsscc NSS_CC_PORT3_TX_CLK>;
- + clock-names = "port_mac",
- + "port_rx",
- + "port_tx";
- + resets = <&nsscc PORT3_MAC_ARES>,
- + <&nsscc PORT3_RX_ARES>,
- + <&nsscc PORT3_TX_ARES>;
- + reset-names = "port_mac",
- + "port_rx",
- + "port_tx";
- + };
- +
- + port@4 {
- + reg = <4>;
- + phy-mode = "qsgmii";
- + managed = "in-band-status";
- + phy-handle = <&phy3>;
- + pcs-handle = <&pcsuniphy0_ch3>;
- + clocks = <&nsscc NSS_CC_PORT4_MAC_CLK>,
- + <&nsscc NSS_CC_PORT4_RX_CLK>,
- + <&nsscc NSS_CC_PORT4_TX_CLK>;
- + clock-names = "port_mac",
- + "port_rx",
- + "port_tx";
- + resets = <&nsscc PORT4_MAC_ARES>,
- + <&nsscc PORT4_RX_ARES>,
- + <&nsscc PORT4_TX_ARES>;
- + reset-names = "port_mac",
- + "port_rx",
- + "port_tx";
- + };
- +
- + port@5 {
- + reg = <5>;
- + phy-mode = "usxgmii";
- + managed = "in-band-status";
- + phy-handle = <&phy4>;
- + pcs-handle = <&pcsuniphy1_ch0>;
- + clocks = <&nsscc NSS_CC_PORT5_MAC_CLK>,
- + <&nsscc NSS_CC_PORT5_RX_CLK>,
- + <&nsscc NSS_CC_PORT5_TX_CLK>;
- + clock-names = "port_mac",
- + "port_rx",
- + "port_tx";
- + resets = <&nsscc PORT5_MAC_ARES>,
- + <&nsscc PORT5_RX_ARES>,
- + <&nsscc PORT5_TX_ARES>;
- + reset-names = "port_mac",
- + "port_rx",
- + "port_tx";
- + };
- +
- + port@6 {
- + reg = <6>;
- + phy-mode = "usxgmii";
- + managed = "in-band-status";
- + phy-handle = <&phy5>;
- + pcs-handle = <&pcsuniphy2_ch0>;
- + clocks = <&nsscc NSS_CC_PORT6_MAC_CLK>,
- + <&nsscc NSS_CC_PORT6_RX_CLK>,
- + <&nsscc NSS_CC_PORT6_TX_CLK>;
- + clock-names = "port_mac",
- + "port_rx",
- + "port_tx";
- + resets = <&nsscc PORT6_MAC_ARES>,
- + <&nsscc PORT6_RX_ARES>,
- + <&nsscc PORT6_TX_ARES>;
- + reset-names = "port_mac",
- + "port_rx",
- + "port_tx";
- + };
- + };
- +};
|