]> Git Repo - linux.git/commitdiff
ARM: dts: qcom: add ethernet definitions to ipq8064
authorJonathan McDowell <[email protected]>
Mon, 18 May 2020 18:09:49 +0000 (19:09 +0100)
committerBjorn Andersson <[email protected]>
Fri, 29 May 2020 03:19:35 +0000 (20:19 -0700)
Plumb in the 4 IPQ8064 stmmac based ethernet interfaces.

Signed-off-by: Jonathan McDowell <[email protected]>
Link: https://lore.kernel.org/r/723344332357b5eed957443ec4a705a080fcc2da.1589824955.git.noodles@earth.li
Signed-off-by: Bjorn Andersson <[email protected]>
arch/arm/boot/dts/qcom-ipq8064.dtsi

index b912da9a3ff341df3031de5d0e44b2dd1f34c528..9c0d5510c805519220a7edbfdaf9e2352b17cc9f 100644 (file)
                        perst-gpio = <&qcom_pinmux 63 GPIO_ACTIVE_LOW>;
                };
 
+               nss_common: syscon@03000000 {
+                       compatible = "syscon";
+                       reg = <0x03000000 0x0000FFFF>;
+               };
+
+               qsgmii_csr: syscon@1bb00000 {
+                       compatible = "syscon";
+                       reg = <0x1bb00000 0x000001FF>;
+               };
+
+               stmmac_axi_setup: stmmac-axi-config {
+                       snps,wr_osr_lmt = <7>;
+                       snps,rd_osr_lmt = <7>;
+                       snps,blen = <16 0 0 0 0 0 0>;
+               };
+
+               gmac0: ethernet@37000000 {
+                       device_type = "network";
+                       compatible = "qcom,ipq806x-gmac";
+                       reg = <0x37000000 0x200000>;
+                       interrupts = <GIC_SPI 220 IRQ_TYPE_LEVEL_HIGH>;
+                       interrupt-names = "macirq";
+
+                       snps,axi-config = <&stmmac_axi_setup>;
+                       snps,pbl = <32>;
+                       snps,aal = <1>;
+
+                       qcom,nss-common = <&nss_common>;
+                       qcom,qsgmii-csr = <&qsgmii_csr>;
+
+                       clocks = <&gcc GMAC_CORE1_CLK>;
+                       clock-names = "stmmaceth";
+
+                       resets = <&gcc GMAC_CORE1_RESET>;
+                       reset-names = "stmmaceth";
+
+                       status = "disabled";
+               };
+
+               gmac1: ethernet@37200000 {
+                       device_type = "network";
+                       compatible = "qcom,ipq806x-gmac";
+                       reg = <0x37200000 0x200000>;
+                       interrupts = <GIC_SPI 223 IRQ_TYPE_LEVEL_HIGH>;
+                       interrupt-names = "macirq";
+
+                       snps,axi-config = <&stmmac_axi_setup>;
+                       snps,pbl = <32>;
+                       snps,aal = <1>;
+
+                       qcom,nss-common = <&nss_common>;
+                       qcom,qsgmii-csr = <&qsgmii_csr>;
+
+                       clocks = <&gcc GMAC_CORE2_CLK>;
+                       clock-names = "stmmaceth";
+
+                       resets = <&gcc GMAC_CORE2_RESET>;
+                       reset-names = "stmmaceth";
+
+                       status = "disabled";
+               };
+
+               gmac2: ethernet@37400000 {
+                       device_type = "network";
+                       compatible = "qcom,ipq806x-gmac";
+                       reg = <0x37400000 0x200000>;
+                       interrupts = <GIC_SPI 226 IRQ_TYPE_LEVEL_HIGH>;
+                       interrupt-names = "macirq";
+
+                       snps,axi-config = <&stmmac_axi_setup>;
+                       snps,pbl = <32>;
+                       snps,aal = <1>;
+
+                       qcom,nss-common = <&nss_common>;
+                       qcom,qsgmii-csr = <&qsgmii_csr>;
+
+                       clocks = <&gcc GMAC_CORE3_CLK>;
+                       clock-names = "stmmaceth";
+
+                       resets = <&gcc GMAC_CORE3_RESET>;
+                       reset-names = "stmmaceth";
+
+                       status = "disabled";
+               };
+
+               gmac3: ethernet@37600000 {
+                       device_type = "network";
+                       compatible = "qcom,ipq806x-gmac";
+                       reg = <0x37600000 0x200000>;
+                       interrupts = <GIC_SPI 229 IRQ_TYPE_LEVEL_HIGH>;
+                       interrupt-names = "macirq";
+
+                       snps,axi-config = <&stmmac_axi_setup>;
+                       snps,pbl = <32>;
+                       snps,aal = <1>;
+
+                       qcom,nss-common = <&nss_common>;
+                       qcom,qsgmii-csr = <&qsgmii_csr>;
+
+                       clocks = <&gcc GMAC_CORE4_CLK>;
+                       clock-names = "stmmaceth";
+
+                       resets = <&gcc GMAC_CORE4_RESET>;
+                       reset-names = "stmmaceth";
+
+                       status = "disabled";
+               };
+
                vsdcc_fixed: vsdcc-regulator {
                        compatible = "regulator-fixed";
                        regulator-name = "SDCC Power";
This page took 0.064151 seconds and 4 git commands to generate.