Skip to content

Commit

Permalink
powerpc/mpc85xx: Add FSL QorIQ DPAA QMan support to device tree(s)
Browse files Browse the repository at this point in the history
Signed-off-by: Kumar Gala <[email protected]>
Signed-off-by: Geoff Thorpe <[email protected]>
Signed-off-by: Hai-Ying Wang <[email protected]>
Signed-off-by: Chunhe Lan <[email protected]>
Signed-off-by: Poonam Aggrwal <[email protected]>
[Emil Medve: Sync with the upstream binding]
Signed-off-by: Emil Medve <[email protected]>
[Scott Wood: s/fsl,qman-channel-id/cell-index]
Signed-off-by: Scott Wood <[email protected]>
Cc: Madalin-Cristian Bucur <[email protected]>
  • Loading branch information
kumargala authored and Scott Wood committed Jun 3, 2015
1 parent e9326de commit 7f6972a
Show file tree
Hide file tree
Showing 27 changed files with 995 additions and 10 deletions.
12 changes: 12 additions & 0 deletions arch/powerpc/boot/dts/b4qds.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,14 @@
size = <0 0x1000000>;
alignment = <0 0x1000000>;
};
qman_fqd: qman-fqd {
size = <0 0x400000>;
alignment = <0 0x400000>;
};
qman_pfdr: qman-pfdr {
size = <0 0x2000000>;
alignment = <0 0x2000000>;
};
};

dcsr: dcsr@f00000000 {
Expand All @@ -116,6 +124,10 @@
ranges = <0x0 0xf 0xf4000000 0x2000000>;
};

qportals: qman-portals@ff6000000 {
ranges = <0x0 0xf 0xf6000000 0x2000000>;
};

soc: soc@ffe000000 {
ranges = <0x00000000 0xf 0xfe000000 0x1000000>;
reg = <0xf 0xfe000000 0 0x00001000>;
Expand Down
69 changes: 69 additions & 0 deletions arch/powerpc/boot/dts/fsl/b4860si-post.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,75 @@
};
};

&qportals {
qportal14: qman-portal@38000 {
compatible = "fsl,qman-portal";
reg = <0x38000 0x4000>, <0x100e000 0x1000>;
interrupts = <132 0x2 0 0>;
cell-index = <0xe>;
};
qportal15: qman-portal@3c000 {
compatible = "fsl,qman-portal";
reg = <0x3c000 0x4000>, <0x100f000 0x1000>;
interrupts = <134 0x2 0 0>;
cell-index = <0xf>;
};
qportal16: qman-portal@40000 {
compatible = "fsl,qman-portal";
reg = <0x40000 0x4000>, <0x1010000 0x1000>;
interrupts = <136 0x2 0 0>;
cell-index = <0x10>;
};
qportal17: qman-portal@44000 {
compatible = "fsl,qman-portal";
reg = <0x44000 0x4000>, <0x1011000 0x1000>;
interrupts = <138 0x2 0 0>;
cell-index = <0x11>;
};
qportal18: qman-portal@48000 {
compatible = "fsl,qman-portal";
reg = <0x48000 0x4000>, <0x1012000 0x1000>;
interrupts = <140 0x2 0 0>;
cell-index = <0x12>;
};
qportal19: qman-portal@4c000 {
compatible = "fsl,qman-portal";
reg = <0x4c000 0x4000>, <0x1013000 0x1000>;
interrupts = <142 0x2 0 0>;
cell-index = <0x13>;
};
qportal20: qman-portal@50000 {
compatible = "fsl,qman-portal";
reg = <0x50000 0x4000>, <0x1014000 0x1000>;
interrupts = <144 0x2 0 0>;
cell-index = <0x14>;
};
qportal21: qman-portal@54000 {
compatible = "fsl,qman-portal";
reg = <0x54000 0x4000>, <0x1015000 0x1000>;
interrupts = <146 0x2 0 0>;
cell-index = <0x15>;
};
qportal22: qman-portal@58000 {
compatible = "fsl,qman-portal";
reg = <0x58000 0x4000>, <0x1016000 0x1000>;
interrupts = <148 0x2 0 0>;
cell-index = <0x16>;
};
qportal23: qman-portal@5c000 {
compatible = "fsl,qman-portal";
reg = <0x5c000 0x4000>, <0x1017000 0x1000>;
interrupts = <150 0x2 0 0>;
cell-index = <0x17>;
};
qportal24: qman-portal@60000 {
compatible = "fsl,qman-portal";
reg = <0x60000 0x4000>, <0x1018000 0x1000>;
interrupts = <152 0x2 0 0>;
cell-index = <0x18>;
};
};

&soc {
ddr2: memory-controller@9000 {
compatible = "fsl,qoriq-memory-controller-v4.5", "fsl,qoriq-memory-controller";
Expand Down
106 changes: 106 additions & 0 deletions arch/powerpc/boot/dts/fsl/b4si-post.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,16 @@
alloc-ranges = <0 0 0x10000 0>;
};

&qman_fqd {
compatible = "fsl,qman-fqd";
alloc-ranges = <0 0 0x10000 0>;
};

&qman_pfdr {
compatible = "fsl,qman-pfdr";
alloc-ranges = <0 0 0x10000 0>;
};

&ifc {
#address-cells = <2>;
#size-cells = <1>;
Expand Down Expand Up @@ -210,6 +220,97 @@
};
};

&qportals {
#address-cells = <0x1>;
#size-cells = <0x1>;
compatible = "simple-bus";

qportal0: qman-portal@0 {
compatible = "fsl,qman-portal";
reg = <0x0 0x4000>, <0x1000000 0x1000>;
interrupts = <104 0x2 0 0>;
cell-index = <0x0>;
};
qportal1: qman-portal@4000 {
compatible = "fsl,qman-portal";
reg = <0x4000 0x4000>, <0x1001000 0x1000>;
interrupts = <106 0x2 0 0>;
cell-index = <0x1>;
};
qportal2: qman-portal@8000 {
compatible = "fsl,qman-portal";
reg = <0x8000 0x4000>, <0x1002000 0x1000>;
interrupts = <108 0x2 0 0>;
cell-index = <0x2>;
};
qportal3: qman-portal@c000 {
compatible = "fsl,qman-portal";
reg = <0xc000 0x4000>, <0x1003000 0x1000>;
interrupts = <110 0x2 0 0>;
cell-index = <0x3>;
};
qportal4: qman-portal@10000 {
compatible = "fsl,qman-portal";
reg = <0x10000 0x4000>, <0x1004000 0x1000>;
interrupts = <112 0x2 0 0>;
cell-index = <0x4>;
};
qportal5: qman-portal@14000 {
compatible = "fsl,qman-portal";
reg = <0x14000 0x4000>, <0x1005000 0x1000>;
interrupts = <114 0x2 0 0>;
cell-index = <0x5>;
};
qportal6: qman-portal@18000 {
compatible = "fsl,qman-portal";
reg = <0x18000 0x4000>, <0x1006000 0x1000>;
interrupts = <116 0x2 0 0>;
cell-index = <0x6>;
};
qportal7: qman-portal@1c000 {
compatible = "fsl,qman-portal";
reg = <0x1c000 0x4000>, <0x1007000 0x1000>;
interrupts = <118 0x2 0 0>;
cell-index = <0x7>;
};
qportal8: qman-portal@20000 {
compatible = "fsl,qman-portal";
reg = <0x20000 0x4000>, <0x1008000 0x1000>;
interrupts = <120 0x2 0 0>;
cell-index = <0x8>;
};
qportal9: qman-portal@24000 {
compatible = "fsl,qman-portal";
reg = <0x24000 0x4000>, <0x1009000 0x1000>;
interrupts = <122 0x2 0 0>;
cell-index = <0x9>;
};
qportal10: qman-portal@28000 {
compatible = "fsl,qman-portal";
reg = <0x28000 0x4000>, <0x100a000 0x1000>;
interrupts = <124 0x2 0 0>;
cell-index = <0xa>;
};
qportal11: qman-portal@2c000 {
compatible = "fsl,qman-portal";
reg = <0x2c000 0x4000>, <0x100b000 0x1000>;
interrupts = <126 0x2 0 0>;
cell-index = <0xb>;
};
qportal12: qman-portal@30000 {
compatible = "fsl,qman-portal";
reg = <0x30000 0x4000>, <0x100c000 0x1000>;
interrupts = <128 0x2 0 0>;
cell-index = <0xc>;
};
qportal13: qman-portal@34000 {
compatible = "fsl,qman-portal";
reg = <0x34000 0x4000>, <0x100d000 0x1000>;
interrupts = <130 0x2 0 0>;
cell-index = <0xd>;
};
};

&soc {
#address-cells = <1>;
#size-cells = <1>;
Expand Down Expand Up @@ -355,6 +456,11 @@
/include/ "qoriq-duart-1.dtsi"
/include/ "qoriq-sec5.3-0.dtsi"

/include/ "qoriq-qman3.dtsi"
qman: qman@318000 {
interrupts = <16 2 1 28>;
};

/include/ "qoriq-bman1.dtsi"
bman: bman@31a000 {
interrupts = <16 2 1 29>;
Expand Down
43 changes: 43 additions & 0 deletions arch/powerpc/boot/dts/fsl/p1023si-post.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,16 @@
alloc-ranges = <0 0 0x10 0>;
};

&qman_fqd {
compatible = "fsl,qman-fqd";
alloc-ranges = <0 0 0x10 0>;
};

&qman_pfdr {
compatible = "fsl,qman-pfdr";
alloc-ranges = <0 0 0x10 0>;
};

&lbc {
#address-cells = <2>;
#size-cells = <1>;
Expand Down Expand Up @@ -102,6 +112,31 @@
};
};

&qportals {
#address-cells = <1>;
#size-cells = <1>;
compatible = "simple-bus";

qportal0: qman-portal@0 {
compatible = "fsl,qman-portal";
reg = <0x0 0x4000>, <0x100000 0x1000>;
interrupts = <29 2 0 0>;
cell-index = <0>;
};
qportal1: qman-portal@4000 {
compatible = "fsl,qman-portal";
reg = <0x4000 0x4000>, <0x101000 0x1000>;
interrupts = <31 2 0 0>;
cell-index = <1>;
};
qportal2: qman-portal@8000 {
compatible = "fsl,qman-portal";
reg = <0x8000 0x4000>, <0x102000 0x1000>;
interrupts = <33 2 0 0>;
cell-index = <2>;
};
};

&bportals {
#address-cells = <1>;
#size-cells = <1>;
Expand Down Expand Up @@ -248,6 +283,14 @@
/include/ "pq3-mpic.dtsi"
/include/ "pq3-mpic-timer-B.dtsi"

qman: qman@88000 {
compatible = "fsl,qman";
reg = <0x88000 0x1000>;
interrupts = <16 2 0 0>;
fsl,qman-portals = <&qportals>;
memory-region = <&qman_fqd &qman_pfdr>;
};

bman: bman@8a000 {
compatible = "fsl,bman";
reg = <0x8a000 0x1000>;
Expand Down
13 changes: 13 additions & 0 deletions arch/powerpc/boot/dts/fsl/p2041si-post.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,16 @@
alloc-ranges = <0 0 0x10 0>;
};

&qman_fqd {
compatible = "fsl,qman-fqd";
alloc-ranges = <0 0 0x10 0>;
};

&qman_pfdr {
compatible = "fsl,qman-pfdr";
alloc-ranges = <0 0 0x10 0>;
};

&lbc {
compatible = "fsl,p2041-elbc", "fsl,elbc", "simple-bus";
interrupts = <25 2 0 0>;
Expand Down Expand Up @@ -223,6 +233,8 @@

/include/ "qoriq-bman1-portals.dtsi"

/include/ "qoriq-qman1-portals.dtsi"

&soc {
#address-cells = <1>;
#size-cells = <1>;
Expand Down Expand Up @@ -415,5 +427,6 @@ crypto: crypto@300000 {
fsl,iommu-parent = <&pamu1>;
};

/include/ "qoriq-qman1.dtsi"
/include/ "qoriq-bman1.dtsi"
};
13 changes: 13 additions & 0 deletions arch/powerpc/boot/dts/fsl/p3041si-post.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,16 @@
alloc-ranges = <0 0 0x10 0>;
};

&qman_fqd {
compatible = "fsl,qman-fqd";
alloc-ranges = <0 0 0x10 0>;
};

&qman_pfdr {
compatible = "fsl,qman-pfdr";
alloc-ranges = <0 0 0x10 0>;
};

&lbc {
compatible = "fsl,p3041-elbc", "fsl,elbc", "simple-bus";
interrupts = <25 2 0 0>;
Expand Down Expand Up @@ -250,6 +260,8 @@

/include/ "qoriq-bman1-portals.dtsi"

/include/ "qoriq-qman1-portals.dtsi"

&soc {
#address-cells = <1>;
#size-cells = <1>;
Expand Down Expand Up @@ -442,5 +454,6 @@ crypto: crypto@300000 {
fsl,iommu-parent = <&pamu1>;
};

/include/ "qoriq-qman1.dtsi"
/include/ "qoriq-bman1.dtsi"
};
13 changes: 13 additions & 0 deletions arch/powerpc/boot/dts/fsl/p4080si-post.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,16 @@
alloc-ranges = <0 0 0x10 0>;
};

&qman_fqd {
compatible = "fsl,qman-fqd";
alloc-ranges = <0 0 0x10 0>;
};

&qman_pfdr {
compatible = "fsl,qman-pfdr";
alloc-ranges = <0 0 0x10 0>;
};

&lbc {
compatible = "fsl,p4080-elbc", "fsl,elbc", "simple-bus";
interrupts = <25 2 0 0>;
Expand Down Expand Up @@ -250,6 +260,8 @@

/include/ "qoriq-bman1-portals.dtsi"

/include/ "qoriq-qman1-portals.dtsi"

&soc {
#address-cells = <1>;
#size-cells = <1>;
Expand Down Expand Up @@ -498,5 +510,6 @@ crypto: crypto@300000 {
fsl,iommu-parent = <&pamu1>;
};

/include/ "qoriq-qman1.dtsi"
/include/ "qoriq-bman1.dtsi"
};
Loading

0 comments on commit 7f6972a

Please sign in to comment.