All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rayagonda Kokatanur <rayagonda.kokatanur@broadcom.com>
To: u-boot@lists.denx.de
Subject: [PATCH v1 10/15] arm: dts: ns3: add PAXB PCIe host and phy node
Date: Sun, 17 May 2020 13:49:40 +0530	[thread overview]
Message-ID: <20200517081945.21282-11-rayagonda.kokatanur@broadcom.com> (raw)
In-Reply-To: <20200517081945.21282-1-rayagonda.kokatanur@broadcom.com>

From: Srinath Mannam <srinath.mannam@broadcom.com>

Add PAXB PCIe host controller and phy node for NS3.

Signed-off-by: Srinath Mannam <srinath.mannam@broadcom.com>
Signed-off-by: Rayagonda Kokatanur <rayagonda.kokatanur@broadcom.com>
---
 arch/arm/dts/ns3-board.dts |  36 +++++++++
 arch/arm/dts/ns3.dtsi      | 158 +++++++++++++++++++++++++++++++++++++
 2 files changed, 194 insertions(+)

diff --git a/arch/arm/dts/ns3-board.dts b/arch/arm/dts/ns3-board.dts
index f8e501c225..460ed39132 100644
--- a/arch/arm/dts/ns3-board.dts
+++ b/arch/arm/dts/ns3-board.dts
@@ -67,3 +67,39 @@
 &sdio0 {
 	status = "okay";
 };
+
+&pcie0 {
+	status = "okay";
+};
+
+&pcie1 {
+	status = "okay";
+};
+
+&pcie2 {
+	status = "okay";
+};
+
+&pcie3 {
+	status = "okay";
+};
+
+&pcie4 {
+	status = "okay";
+};
+
+&pcie5 {
+	status = "okay";
+};
+
+&pcie6 {
+	status = "okay";
+};
+
+&pcie7 {
+	status = "okay";
+};
+
+&pcie8 {
+	status = "okay";
+};
diff --git a/arch/arm/dts/ns3.dtsi b/arch/arm/dts/ns3.dtsi
index adb1277471..9fd59a855e 100644
--- a/arch/arm/dts/ns3.dtsi
+++ b/arch/arm/dts/ns3.dtsi
@@ -5,6 +5,11 @@
 
 #include "skeleton64.dtsi"
 
+#define PCIE_DMA_RANGES dma-ranges = < \
+	0x43000000 0x00 0x80000000 0x00 0x80000000 0x00 0x80000000 \
+	0x43000000 0x08 0x00000000 0x08 0x00000000 0x08 0x00000000 \
+	0x43000000 0x80 0x00000000 0x80 0x00000000 0x80 0x00000000>
+
 / {
 	compatible = "brcm,ns3";
 	#address-cells = <2>;
@@ -89,4 +94,157 @@
 					<&pinmux 145 149 6>;
 		};
 	};
+
+	pcie0: pcie at 48000000 {
+		compatible = "brcm,iproc-pcie-paxb-v2";
+		reg = <0 0x48000000 0 0x4000>;
+		bus-range = <0x0 0xff>;
+		#address-cells = <3>;
+		#size-cells = <2>;
+		device_type = "pci";
+		ranges = <0x83000000 0x0 0x42000000 0x0 0x42000000 0 0x2000000>,
+			<0x43000000 0x4 0x00000000 0x4 0x00000000 0 0x80000000>;
+		brcm,pcie-ob;
+		PCIE_DMA_RANGES;
+		phys = <&pcie_phy 0>;
+		phy-names = "pcie-phy";
+		status = "disabled";
+	};
+
+	pcie1: pcie at 48004000 {
+		compatible = "brcm,iproc-pcie-paxb-v2";
+		reg = <0 0x48004000 0 0x4000>;
+		bus-range = <0x0 0xff>;
+		#address-cells = <3>;
+		#size-cells = <2>;
+		device_type = "pci";
+		ranges = <0x83000000 0x0 0x44000000 0x0 0x44000000 0 0x2000000>,
+			<0x43000000 0x4 0x80000000 0x4 0x80000000 0 0x80000000>;
+		brcm,pcie-ob;
+		PCIE_DMA_RANGES;
+		phys = <&pcie_phy 1>;
+		phy-names = "pcie-phy";
+		status = "disabled";
+	};
+
+	pcie2: pcie at 48008000 {
+		compatible = "brcm,iproc-pcie-paxb-v2";
+		reg = <0 0x48008000 0 0x4000>;
+		bus-range = <0x0 0xff>;
+		#address-cells = <3>;
+		#size-cells = <2>;
+		device_type = "pci";
+		ranges = <0x83000000 0x0 0x4a000000 0x0 0x4a000000 0 0x2000000>,
+			<0x43000000 0x5 0x00000000 0x5 0x00000000 0 0x80000000>;
+		brcm,pcie-ob;
+		PCIE_DMA_RANGES;
+		phys = <&pcie_phy 2>;
+		phy-names = "pcie-phy";
+		status = "disabled";
+	};
+
+	pcie3: pcie at 4800c000 {
+		compatible = "brcm,iproc-pcie-paxb-v2";
+		reg = <0 0x4800c000 0 0x4000>;
+		bus-range = <0x0 0xff>;
+		#address-cells = <3>;
+		#size-cells = <2>;
+		device_type = "pci";
+		brcm,pcie-ob;
+		ranges = <0x83000000 0x0 0x4c000000 0x0 0x4c000000 0 0x2000000>,
+			<0x43000000 0x5 0x80000000 0x5 0x80000000 0 0x80000000>;
+		PCIE_DMA_RANGES;
+		phys = <&pcie_phy 3>;
+		phy-names = "pcie-phy";
+		status = "disabled";
+	};
+
+	pcie4: pcie at 48010000 {
+		compatible = "brcm,iproc-pcie-paxb-v2";
+		reg = <0 0x48010000 0 0x4000>;
+		bus-range = <0x0 0xff>;
+		#address-cells = <3>;
+		#size-cells = <2>;
+		device_type = "pci";
+		brcm,pcie-ob;
+		ranges = <0x83000000 0x0 0x52000000 0x0 0x52000000 0 0x2000000>,
+			<0x43000000 0x6 0x00000000 0x6 0x00000000 0 0x80000000>;
+		PCIE_DMA_RANGES;
+		phys = <&pcie_phy 4>;
+		phy-names = "pcie-phy";
+		status = "disabled";
+	};
+
+	pcie5: pcie at 48014000 {
+		compatible = "brcm,iproc-pcie-paxb-v2";
+		reg = <0 0x48014000 0 0x4000>;
+		bus-range = <0x0 0xff>;
+		#address-cells = <3>;
+		#size-cells = <2>;
+		device_type = "pci";
+		brcm,pcie-ob;
+		ranges = <0x83000000 0x0 0x54000000 0x0 0x54000000 0 0x2000000>,
+			<0x43000000 0x6 0x80000000 0x6 0x80000000 0 0x80000000>;
+		PCIE_DMA_RANGES;
+		phys = <&pcie_phy 5>;
+		phy-names = "pcie-phy";
+		status = "disabled";
+	};
+
+	pcie6: pcie at 48018000 {
+		compatible = "brcm,iproc-pcie-paxb-v2";
+		reg = <0 0x48018000 0 0x4000>;
+		bus-range = <0x0 0xff>;
+		#address-cells = <3>;
+		#size-cells = <2>;
+		device_type = "pci";
+		brcm,pcie-ob;
+		ranges = <0x83000000 0x0 0x5a000000 0x0 0x5a000000 0 0x2000000>,
+			<0x43000000 0x7 0x00000000 0x7 0x00000000 0 0x80000000>;
+		PCIE_DMA_RANGES;
+		phys = <&pcie_phy 6>;
+		phy-names = "pcie-phy";
+		status = "disabled";
+	};
+
+	pcie7: pcie at 4801c000 {
+		compatible = "brcm,iproc-pcie-paxb-v2";
+		reg = <0 0x4801c000 0 0x4000>;
+		bus-range = <0x0 0xff>;
+		#address-cells = <3>;
+		#size-cells = <2>;
+		device_type = "pci";
+		brcm,pcie-ob;
+		ranges = <0x83000000 0x0 0x5c000000 0x0 0x5c000000 0 0x2000000>,
+			<0x43000000 0x8 0x00000000 0x8 0x00000000 0 0x80000000>;
+		PCIE_DMA_RANGES;
+		phys = <&pcie_phy 7>;
+		phy-names = "pcie-phy";
+		status = "disabled";
+	};
+
+	pcie8: pcie at 60400000 {
+		compatible = "brcm,iproc-pcie-paxc-v2";
+		reg = <0 0x60400000 0 0x1000>;
+		bus-range = <0x0 0x1>;
+		#address-cells = <3>;
+		#size-cells = <2>;
+		device_type = "pci";
+		ranges = <0x83000000 0 0x10000000 0 0x10000000 0 0x20000000>;
+		status = "disabled";
+		pci at 0,0 {
+			compatible = "pci-bridge";
+			reg = <0x0000 0 0 0 0>;
+		};
+	};
+
+	pcie_phy: phy at 0 {
+		compatible = "brcm,sr-pcie-phy";
+		reg = <0 0x40000000 0 0x200>,
+		      <0 0x6641d000 0 0x100>;
+		reg-names = "reg_base", "cdru_base";
+		#address-cells = <3>;
+		#size-cells = <2>;
+		#phy-cells = <1>;
+	};
 };
-- 
2.17.1

  parent reply	other threads:[~2020-05-17  8:19 UTC|newest]

Thread overview: 53+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-17  8:19 [PATCH v1 00/15] add basic driver support for broadcom NS3 soc Rayagonda Kokatanur
2020-05-17  8:19 ` [PATCH v1 01/15] configs: ns3: enable pinctrl driver Rayagonda Kokatanur
2020-05-25  2:14   ` Simon Glass
2020-05-17  8:19 ` [PATCH v1 02/15] dt-bindings: pinctrl: add ns3 pads definition Rayagonda Kokatanur
2020-05-25  2:14   ` Simon Glass
2020-05-17  8:19 ` [PATCH v1 03/15] arm: dts: ns3: add pinctrl node Rayagonda Kokatanur
2020-05-25  2:14   ` Simon Glass
2020-05-26 10:08     ` Rayagonda Kokatanur
2020-05-26 12:39       ` Simon Glass
2020-05-17  8:19 ` [PATCH v1 04/15] arm: dts: ns3: add gpio node Rayagonda Kokatanur
2020-05-25  2:14   ` Simon Glass
2020-06-02 14:18     ` Rayagonda Kokatanur
2020-05-17  8:19 ` [PATCH v1 05/15] configs: ns3: enable BCM IPROC mmc driver Rayagonda Kokatanur
2020-05-25  2:14   ` Simon Glass
2020-05-17  8:19 ` [PATCH v1 06/15] arm: dts: ns3: add emmc node Rayagonda Kokatanur
2020-05-25  2:14   ` Simon Glass
2020-05-17  8:19 ` [PATCH v1 07/15] configs: ns3: enable mmc commands Rayagonda Kokatanur
2020-05-25  2:14   ` Simon Glass
2020-05-17  8:19 ` [PATCH v1 08/15] arm: dts: ns3: add qspi node Rayagonda Kokatanur
2020-05-25  2:14   ` Simon Glass
2020-05-17  8:19 ` [PATCH v1 09/15] arm: dts: ns3: add i2c node Rayagonda Kokatanur
2020-05-25  2:14   ` Simon Glass
2020-05-17  8:19 ` Rayagonda Kokatanur [this message]
2020-05-25  2:14   ` [PATCH v1 10/15] arm: dts: ns3: add PAXB PCIe host and phy node Simon Glass
2020-05-17  8:19 ` [PATCH v1 11/15] configs: ns3: enable gpt commands Rayagonda Kokatanur
2020-05-25  2:14   ` Simon Glass
2020-05-17  8:19 ` [PATCH v1 12/15] configs: ns3: enable EXT4 and FAT fs support Rayagonda Kokatanur
2020-05-25  2:14   ` Simon Glass
2020-05-17  8:19 ` [PATCH v1 13/15] configs: ns3: enable sp805 watchdog driver Rayagonda Kokatanur
2020-05-25  2:14   ` Simon Glass
2020-05-17  8:19 ` [PATCH v1 14/15] arm: dts: ns3: add sp805 watchdog node Rayagonda Kokatanur
2020-05-25  2:14   ` Simon Glass
2020-05-17  8:19 ` [PATCH v1 15/15] board: ns3: start sp805 watchdog service Rayagonda Kokatanur
2020-05-25  2:15   ` Simon Glass
2020-05-18 19:16 ` [PATCH v1 00/15] add basic driver support for broadcom NS3 soc Tom Rini
2020-05-19 17:09   ` Rayagonda Kokatanur
2020-05-19 17:31     ` Tom Rini
2020-05-19 17:45       ` Rayagonda Kokatanur
2020-05-20  2:04         ` Thomas Fitzsimmons
2020-05-20  5:19           ` Rayagonda Kokatanur
2020-05-20 14:20             ` Simon Glass
2020-06-03  9:10               ` Rayagonda Kokatanur
2020-06-04  2:59                 ` Simon Glass
2020-06-04  3:16                   ` Tom Rini
2020-06-05  9:36                     ` Soeren Moch
2020-06-05 15:05                       ` Tom Rini
2020-06-05 15:47                         ` Walter Lozano
2020-06-05 18:22                           ` Tom Rini
2020-06-05 20:20                             ` Walter Lozano
2020-06-08 17:03                   ` Rayagonda Kokatanur
2020-06-08 17:12                     ` Simon Glass
2020-06-08 17:22                       ` Rayagonda Kokatanur
2020-06-07  6:54 ` dphadke

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200517081945.21282-11-rayagonda.kokatanur@broadcom.com \
    --to=rayagonda.kokatanur@broadcom.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.