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

Alistair Popple alistair at popple.id.au
Thu Apr 30 11:38:16 AEST 2020


Reviewed-by: Alistair Popple <alistair at popple.id.au>

On Tuesday, 21 April 2020 2:16:53 PM AEST Amitay Isaacs wrote:
> Signed-off-by: Amitay Isaacs <amitay at 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 at 0 {
> +		#address-cells = <0x2>;
> +		#size-cells = <0x1>;
> +		compatible = "ibm,kernel-fsi";
> +		reg = <0x0 0x0 0x0>;
> +		index = <0x0>;
> +		status = "mustexist";
> +		system-path = "/proc0/fsi";
> +
> +		sbefifo at 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 at 100000 {
> +			#address-cells = <0x2>;
> +			#size-cells = <0x1>;
> +			compatible = "ibm,fsi-hmfsi";
> +			reg = <0x0 0x100000 0x8000>;
> +			port = <0x1>;
> +			index = <0x1>;
> +			system-path = "/proc1/fsi";
> +
> +			sbefifo at 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>;
> +				};
> +			};
> +		};
> +	};
> +};






More information about the Pdbg mailing list