[PATCH linux dev-4.10] ARM: dts: aspeed: Add devices under FSI CFAM
Andrew Jeffery
andrew at aj.id.au
Mon Jun 5 18:25:39 AEST 2017
On Mon, 2017-06-05 at 17:13 +0930, Joel Stanley wrote:
> This describes the SBE FIFO and OCC device that are attached via the FSI
> bus.
>
> As this layout is common to all existing p9 machines, we add them via a
> dtsi. This dtsi requires the 'fsi' label be present.
>
> Signed-off-by: Joel Stanley <joel at jms.id.au>
There are a number of ways we can lay out the nodes in the dtsi, but
I'll save the bikeshedding. What you have looks good to me.
Acked-by: Andrew Jeffery <andrew at aj.id.au>
> ---
> arch/arm/boot/dts/aspeed-bmc-opp-romulus.dts | 8 +++--
> arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts | 8 +++--
> arch/arm/boot/dts/ibm-power9-cfam.dtsi | 45 ++++++++++++++++++++++++
> 3 files changed, 55 insertions(+), 6 deletions(-)
> create mode 100644 arch/arm/boot/dts/ibm-power9-cfam.dtsi
>
> diff --git a/arch/arm/boot/dts/aspeed-bmc-opp-romulus.dts b/arch/arm/boot/dts/aspeed-bmc-opp-romulus.dts
> index 03cde39189c5..dd01dfaa8509 100644
> --- a/arch/arm/boot/dts/aspeed-bmc-opp-romulus.dts
> +++ b/arch/arm/boot/dts/aspeed-bmc-opp-romulus.dts
> @@ -47,10 +47,10 @@
> > };
> > };
>
> > - gpio-fsi {
> > + fsi: gpio-fsi {
> > compatible = "fsi-master-gpio", "fsi-master";
> -
> > - status = "okay";
> > + #address-cells = <2>;
> > + #size-cells = <0>;
>
> > clock-gpios = <&gpio ASPEED_GPIO(AA, 0) GPIO_ACTIVE_HIGH>;
> > data-gpios = <&gpio ASPEED_GPIO(AA, 2) GPIO_ACTIVE_HIGH>;
> @@ -70,6 +70,8 @@
> > };
> };
>
> +#include "ibm-power9-cfam.dtsi"
> +
> &fmc {
> > status = "okay";
> > flash at 0 {
> diff --git a/arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts b/arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts
> index 3001597d42d9..42b70a5d57aa 100644
> --- a/arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts
> +++ b/arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts
> @@ -63,10 +63,10 @@
> > };
> > };
>
> > - gpio-fsi {
> > + fsi: gpio-fsi {
> > compatible = "fsi-master-gpio", "fsi-master";
> -
> > - status = "okay";
> > + #address-cells = <2>;
> > + #size-cells = <0>;
>
> > clock-gpios = <&gpio ASPEED_GPIO(AA, 0) GPIO_ACTIVE_HIGH>;
> > data-gpios = <&gpio ASPEED_GPIO(E, 0) GPIO_ACTIVE_HIGH>;
> @@ -81,6 +81,8 @@
> > };
> };
>
> +#include "ibm-power9-cfam.dtsi"
> +
> &fmc {
> > status = "okay";
> > flash at 0 {
> diff --git a/arch/arm/boot/dts/ibm-power9-cfam.dtsi b/arch/arm/boot/dts/ibm-power9-cfam.dtsi
> new file mode 100644
> index 000000000000..5beb978f9f31
> --- /dev/null
> +++ b/arch/arm/boot/dts/ibm-power9-cfam.dtsi
> @@ -0,0 +1,45 @@
> +&fsi {
> > + cfam at 0,0 {
> > + reg = <0 0>;
> > + #address-cells = <1>;
> > + #size-cells = <1>;
> +
> > + sbefifo at 2400 {
> > + compatible = "ibm,p9-sbefifo";
> > + reg = <0x2400 0x400>;
> > + #address-cells = <1>;
> > + #size-cells = <0>;
> +
> > + occ at 1 {
> > + compatible = "ibm,p9-occ";
> > + reg = <1>;
> > + };
> > + };
> +
> > + hub at 3400 {
> > + compatible = "fsi-master-hub";
> > + reg = <0x3400 0x400>;
> > + #address-cells = <2>;
> > + #size-cells = <0>;
> +
> > + cfam at 1,0 {
> > + reg = <1 0>;
> > + #address-cells = <1>;
> > + #size-cells = <1>;
> +
> > + sbefifo at 2400 {
> > + compatible = "ibm,p9-sbefifo";
> > + reg = <0x2400 0x400>;
> > + #address-cells = <1>;
> > + #size-cells = <0>;
> +
> > + occ at 2 {
> > + compatible =
> > + "ibm,p9-occ";
> > + reg = <2>;
> > + };
> > + };
> > + };
> > + };
> > + };
> +};
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: This is a digitally signed message part
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20170605/f77891d7/attachment.sig>
More information about the openbmc
mailing list