2015-05-29 12:26:01 +00:00
|
|
|
From cab1f4720e82f2e17eaeed9a9ad9e4f07c742977 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Mathieu Olivari <mathieu@codeaurora.org>
|
|
|
|
Date: Mon, 11 May 2015 12:29:18 -0700
|
|
|
|
Subject: [PATCH 8/8] ARM: dts: qcom: add gmac nodes to ipq806x platforms
|
|
|
|
|
|
|
|
Signed-off-by: Mathieu Olivari <mathieu@codeaurora.org>
|
|
|
|
---
|
|
|
|
arch/arm/boot/dts/qcom-ipq8064-ap148.dts | 31 ++++++++++++
|
|
|
|
arch/arm/boot/dts/qcom-ipq8064-db149.dts | 43 ++++++++++++++++
|
|
|
|
arch/arm/boot/dts/qcom-ipq8064.dtsi | 86 ++++++++++++++++++++++++++++++++
|
|
|
|
3 files changed, 160 insertions(+)
|
|
|
|
|
|
|
|
--- a/arch/arm/boot/dts/qcom-ipq8064-ap148.dts
|
|
|
|
+++ b/arch/arm/boot/dts/qcom-ipq8064-ap148.dts
|
2015-11-21 10:54:58 +00:00
|
|
|
@@ -75,6 +75,16 @@
|
2015-05-29 12:26:01 +00:00
|
|
|
bias-disable;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
+
|
|
|
|
+ rgmii2_pins: rgmii2_pins {
|
|
|
|
+ mux {
|
|
|
|
+ pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32",
|
|
|
|
+ "gpio51", "gpio52", "gpio59", "gpio60", "gpio61", "gpio62" ;
|
|
|
|
+ function = "rgmii2";
|
|
|
|
+ drive-strength = <8>;
|
|
|
|
+ bias-disable;
|
|
|
|
+ };
|
|
|
|
+ };
|
|
|
|
};
|
|
|
|
|
|
|
|
gsbi@16300000 {
|
2016-05-21 09:18:31 +00:00
|
|
|
@@ -198,6 +208,31 @@
|
2015-05-29 12:26:01 +00:00
|
|
|
reg = <4>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
+
|
|
|
|
+ gmac1: ethernet@37200000 {
|
|
|
|
+ status = "ok";
|
|
|
|
+ phy-mode = "rgmii";
|
|
|
|
+ qcom,id = <1>;
|
|
|
|
+
|
|
|
|
+ pinctrl-0 = <&rgmii2_pins>;
|
|
|
|
+ pinctrl-names = "default";
|
2015-12-02 22:16:23 +00:00
|
|
|
+
|
|
|
|
+ fixed-link {
|
|
|
|
+ speed = <1000>;
|
|
|
|
+ full-duplex;
|
|
|
|
+ };
|
2015-05-29 12:26:01 +00:00
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ gmac2: ethernet@37400000 {
|
|
|
|
+ status = "ok";
|
|
|
|
+ phy-mode = "sgmii";
|
|
|
|
+ qcom,id = <2>;
|
|
|
|
+
|
|
|
|
+ fixed-link {
|
|
|
|
+ speed = <1000>;
|
|
|
|
+ full-duplex;
|
|
|
|
+ };
|
|
|
|
+ };
|
|
|
|
};
|
|
|
|
};
|
2015-08-07 08:36:31 +00:00
|
|
|
|
2015-05-29 12:26:01 +00:00
|
|
|
--- a/arch/arm/boot/dts/qcom-ipq8064-db149.dts
|
|
|
|
+++ b/arch/arm/boot/dts/qcom-ipq8064-db149.dts
|
2015-11-21 10:54:58 +00:00
|
|
|
@@ -48,6 +48,14 @@
|
2015-05-29 12:26:01 +00:00
|
|
|
bias-disable;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
+
|
|
|
|
+ rgmii0_pins: rgmii0_pins {
|
|
|
|
+ mux {
|
|
|
|
+ pins = "gpio2", "gpio66";
|
|
|
|
+ drive-strength = <8>;
|
|
|
|
+ bias-disable;
|
|
|
|
+ };
|
|
|
|
+ };
|
|
|
|
};
|
|
|
|
|
|
|
|
gsbi2: gsbi@12480000 {
|
2015-11-21 10:54:58 +00:00
|
|
|
@@ -189,5 +197,40 @@
|
2015-05-29 12:26:01 +00:00
|
|
|
reg = <7>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
+
|
|
|
|
+ gmac0: ethernet@37000000 {
|
|
|
|
+ status = "ok";
|
|
|
|
+ phy-mode = "rgmii";
|
|
|
|
+ qcom,id = <0>;
|
|
|
|
+ phy-handle = <&phy4>;
|
|
|
|
+
|
|
|
|
+ pinctrl-0 = <&rgmii0_pins>;
|
|
|
|
+ pinctrl-names = "default";
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ gmac1: ethernet@37200000 {
|
|
|
|
+ status = "ok";
|
|
|
|
+ phy-mode = "sgmii";
|
|
|
|
+ qcom,id = <1>;
|
|
|
|
+
|
|
|
|
+ fixed-link {
|
|
|
|
+ speed = <1000>;
|
|
|
|
+ full-duplex;
|
|
|
|
+ };
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ gmac2: ethernet@37400000 {
|
|
|
|
+ status = "ok";
|
|
|
|
+ phy-mode = "sgmii";
|
|
|
|
+ qcom,id = <2>;
|
|
|
|
+ phy-handle = <&phy6>;
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ gmac3: ethernet@37600000 {
|
|
|
|
+ status = "ok";
|
|
|
|
+ phy-mode = "sgmii";
|
|
|
|
+ qcom,id = <3>;
|
|
|
|
+ phy-handle = <&phy7>;
|
|
|
|
+ };
|
|
|
|
};
|
|
|
|
};
|
|
|
|
--- a/arch/arm/boot/dts/qcom-ipq8064.dtsi
|
|
|
|
+++ b/arch/arm/boot/dts/qcom-ipq8064.dtsi
|
2016-11-05 13:15:33 +00:00
|
|
|
@@ -904,6 +904,92 @@
|
2015-08-04 23:09:55 +00:00
|
|
|
|
2015-05-29 12:26:01 +00:00
|
|
|
status = "disabled";
|
|
|
|
};
|
2015-08-04 23:09:55 +00:00
|
|
|
+
|
2015-05-29 12:26:01 +00:00
|
|
|
+ nss_common: syscon@03000000 {
|
|
|
|
+ compatible = "syscon";
|
|
|
|
+ reg = <0x03000000 0x0000FFFF>;
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ qsgmii_csr: syscon@1bb00000 {
|
|
|
|
+ compatible = "syscon";
|
|
|
|
+ reg = <0x1bb00000 0x000001FF>;
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ gmac0: ethernet@37000000 {
|
|
|
|
+ device_type = "network";
|
|
|
|
+ compatible = "qcom,ipq806x-gmac";
|
|
|
|
+ reg = <0x37000000 0x200000>;
|
|
|
|
+ interrupts = <GIC_SPI 220 IRQ_TYPE_LEVEL_HIGH>;
|
|
|
|
+ interrupt-names = "macirq";
|
|
|
|
+
|
|
|
|
+ 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";
|
|
|
|
+
|
|
|
|
+ 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";
|
|
|
|
+
|
|
|
|
+ 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";
|
|
|
|
+
|
|
|
|
+ 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";
|
|
|
|
+ };
|
|
|
|
};
|
2015-08-17 06:17:47 +00:00
|
|
|
|
|
|
|
sfpb_mutex: sfpb-mutex {
|