diff mbox series

[v4,17/19] dts: Add sbefifo backend device tree

Message ID 20200421041655.82856-18-amitay@ozlabs.org
State Superseded
Headers show
Series Add sbefifo backend | expand

Checks

Context Check Description
snowpatch_ozlabs/apply_patch success Successfully applied on branch master (6ae2ba655ca5e24b403a33bf15dff7261d3e7052)
snowpatch_ozlabs/build-multiarch success Test build-multiarch on branch master

Commit Message

Amitay Isaacs April 21, 2020, 4:16 a.m. UTC
Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
---
 Makefile.am       |  1 +
 p9-sbefifo.dts.m4 | 86 +++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 87 insertions(+)
 create mode 100644 p9-sbefifo.dts.m4

Comments

Alistair Popple April 30, 2020, 1:38 a.m. UTC | #1
Reviewed-by: Alistair Popple <alistair@popple.id.au>

On Tuesday, 21 April 2020 2:16:53 PM AEST Amitay Isaacs wrote:
> Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
> ---
>  Makefile.am       |  1 +
>  p9-sbefifo.dts.m4 | 86 +++++++++++++++++++++++++++++++++++++++++++++++
>  2 files changed, 87 insertions(+)
>  create mode 100644 p9-sbefifo.dts.m4
> 
> diff --git a/Makefile.am b/Makefile.am
> index 10306dc..74ad99f 100644
> --- a/Makefile.am
> +++ b/Makefile.am
> @@ -80,6 +80,7 @@ endif
>  DT = fake.dts fake2.dts p8-cronus.dts p9-cronus.dts \
>       p8-fsi.dts p8-i2c.dts p8-kernel.dts \
>       p9w-fsi.dts p9r-fsi.dts p9z-fsi.dts p9-kernel.dts \
> +     p9-sbefifo.dts \
>       p8-host.dts p9-host.dts p8.dts
> 
>  DT_sources = $(DT:.dts=.dtb.S) p9.dtb.S
> diff --git a/p9-sbefifo.dts.m4 b/p9-sbefifo.dts.m4
> new file mode 100644
> index 0000000..48b3051
> --- /dev/null
> +++ b/p9-sbefifo.dts.m4
> @@ -0,0 +1,86 @@
> +/dts-v1/;
> +
> +/ {
> +	#address-cells = <0x1>;
> +	#size-cells = <0x0>;
> +
> +	fsi0: kernelfsi@0 {
> +		#address-cells = <0x2>;
> +		#size-cells = <0x1>;
> +		compatible = "ibm,kernel-fsi";
> +		reg = <0x0 0x0 0x0>;
> +		index = <0x0>;
> +		status = "mustexist";
> +		system-path = "/proc0/fsi";
> +
> +		sbefifo@2400 { /* Bogus address */
> +			reg = <0x0 0x2400 0x7>;
> +			index = <0x0>;
> +			compatible = "ibm,kernel-sbefifo";
> +			device-path = "/dev/sbefifo1";
> +
> +			sbefifo-pib {
> +				#address-cells = <0x2>;
> +				#size-cells = <0x1>;
> +				index = <0x0>;
> +				compatible = "ibm,sbefifo-pib";
> +				system-path = "/proc0/pib";
> +			};
> +
> +			sbefifo-mem {
> +				compatible = "ibm,sbefifo-mem";
> +				system-path = "/mem0";
> +			};
> +
> +			sbefifo-pba {
> +				compatible = "ibm,sbefifo-mem-pba";
> +				system-path = "/mempba0";
> +			};
> +
> +			sbefifo-chipop {
> +				compatible = "ibm,sbefifo-chipop";
> +				index = <0x0>;
> +			};
> +		};
> +
> +		hmfsi@100000 {
> +			#address-cells = <0x2>;
> +			#size-cells = <0x1>;
> +			compatible = "ibm,fsi-hmfsi";
> +			reg = <0x0 0x100000 0x8000>;
> +			port = <0x1>;
> +			index = <0x1>;
> +			system-path = "/proc1/fsi";
> +
> +			sbefifo@2400 { /* Bogus address */
> +				reg = <0x0 0x2400 0x7>;
> +				index = <0x1>;
> +				compatible = "ibm,kernel-sbefifo";
> +				device-path = "/dev/sbefifo2";
> +
> +				sbefifo-pib {
> +					#address-cells = <0x2>;
> +					#size-cells = <0x1>;
> +					index = <0x1>;
> +					compatible = "ibm,sbefifo-pib";
> +					system-path = "/proc1/pib";
> +				};
> +
> +				sbefifo-mem {
> +					compatible = "ibm,sbefifo-mem";
> +					system-path = "/mem1";
> +				};
> +
> +				sbefifo-pba {
> +					compatible = "ibm,sbefifo-mem-pba";
> +					system-path = "/mempba1";
> +				};
> +
> +				sbefifo-chipop {
> +					compatible = "ibm,sbefifo-chipop";
> +					index = <0x1>;
> +				};
> +			};
> +		};
> +	};
> +};
diff mbox series

Patch

diff --git a/Makefile.am b/Makefile.am
index 10306dc..74ad99f 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -80,6 +80,7 @@  endif
 DT = fake.dts fake2.dts p8-cronus.dts p9-cronus.dts \
      p8-fsi.dts p8-i2c.dts p8-kernel.dts \
      p9w-fsi.dts p9r-fsi.dts p9z-fsi.dts p9-kernel.dts \
+     p9-sbefifo.dts \
      p8-host.dts p9-host.dts p8.dts
 
 DT_sources = $(DT:.dts=.dtb.S) p9.dtb.S
diff --git a/p9-sbefifo.dts.m4 b/p9-sbefifo.dts.m4
new file mode 100644
index 0000000..48b3051
--- /dev/null
+++ b/p9-sbefifo.dts.m4
@@ -0,0 +1,86 @@ 
+/dts-v1/;
+
+/ {
+	#address-cells = <0x1>;
+	#size-cells = <0x0>;
+
+	fsi0: kernelfsi@0 {
+		#address-cells = <0x2>;
+		#size-cells = <0x1>;
+		compatible = "ibm,kernel-fsi";
+		reg = <0x0 0x0 0x0>;
+		index = <0x0>;
+		status = "mustexist";
+		system-path = "/proc0/fsi";
+
+		sbefifo@2400 { /* Bogus address */
+			reg = <0x0 0x2400 0x7>;
+			index = <0x0>;
+			compatible = "ibm,kernel-sbefifo";
+			device-path = "/dev/sbefifo1";
+
+			sbefifo-pib {
+				#address-cells = <0x2>;
+				#size-cells = <0x1>;
+				index = <0x0>;
+				compatible = "ibm,sbefifo-pib";
+				system-path = "/proc0/pib";
+			};
+
+			sbefifo-mem {
+				compatible = "ibm,sbefifo-mem";
+				system-path = "/mem0";
+			};
+
+			sbefifo-pba {
+				compatible = "ibm,sbefifo-mem-pba";
+				system-path = "/mempba0";
+			};
+
+			sbefifo-chipop {
+				compatible = "ibm,sbefifo-chipop";
+				index = <0x0>;
+			};
+		};
+
+		hmfsi@100000 {
+			#address-cells = <0x2>;
+			#size-cells = <0x1>;
+			compatible = "ibm,fsi-hmfsi";
+			reg = <0x0 0x100000 0x8000>;
+			port = <0x1>;
+			index = <0x1>;
+			system-path = "/proc1/fsi";
+
+			sbefifo@2400 { /* Bogus address */
+				reg = <0x0 0x2400 0x7>;
+				index = <0x1>;
+				compatible = "ibm,kernel-sbefifo";
+				device-path = "/dev/sbefifo2";
+
+				sbefifo-pib {
+					#address-cells = <0x2>;
+					#size-cells = <0x1>;
+					index = <0x1>;
+					compatible = "ibm,sbefifo-pib";
+					system-path = "/proc1/pib";
+				};
+
+				sbefifo-mem {
+					compatible = "ibm,sbefifo-mem";
+					system-path = "/mem1";
+				};
+
+				sbefifo-pba {
+					compatible = "ibm,sbefifo-mem-pba";
+					system-path = "/mempba1";
+				};
+
+				sbefifo-chipop {
+					compatible = "ibm,sbefifo-chipop";
+					index = <0x1>;
+				};
+			};
+		};
+	};
+};