arm64: dts: Add ARM PL022 SPI DT nodes for NS2
authorAnup Patel <anup.patel@broadcom.com>
Tue, 29 Mar 2016 07:27:34 +0000 (12:57 +0530)
committerFlorian Fainelli <f.fainelli@gmail.com>
Wed, 13 Apr 2016 17:34:29 +0000 (10:34 -0700)
We have two ARM PL022 SPI instances in NS2 SoC. On NS2 SVK,
one of the ARM PL022 SPI host has Silabs si3226x slic connected
to chip-select #0 whereas second ARM PL022 SPI host has Atmel
AT25 EEPROM connected to chip-select #0.

This patch adds ARM PL022, Silabs si3226x, and Atmel AT25
DT nodes in NS2 DT and NS2 SVK DT respectively.

Signed-off-by: Anup Patel <anup.patel@broadcom.com>
Reviewed-by: Ray Jui <rjui@broadcom.com>
Reviewed-by: Scott Branden <sbranden@broadcom.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
arch/arm64/boot/dts/broadcom/ns2-svk.dts
arch/arm64/boot/dts/broadcom/ns2.dtsi

index ce0ab84e0f2da2e998c7ab210543a7e04907553c..54ca40c9f7115cdc471a240ed166ce64fc8dcbac 100644 (file)
        status = "ok";
 };
 
+&ssp0 {
+       status = "ok";
+
+       slic@0 {
+               compatible = "silabs,si3226x";
+               reg = <0>;
+               spi-max-frequency = <5000000>;
+               spi-cpha = <1>;
+               spi-cpol = <1>;
+               pl022,hierarchy = <0>;
+               pl022,interface = <0>;
+               pl022,slave-tx-disable = <0>;
+               pl022,com-mode = <0>;
+               pl022,rx-level-trig = <1>;
+               pl022,tx-level-trig = <1>;
+               pl022,ctrl-len = <11>;
+               pl022,wait-state = <0>;
+               pl022,duplex = <0>;
+       };
+};
+
+&ssp1 {
+       status = "ok";
+
+       at25@0 {
+               compatible = "atmel,at25";
+               reg = <0>;
+               spi-max-frequency = <5000000>;
+               at25,byte-len = <0x8000>;
+               at25,addr-mode = <2>;
+               at25,page-size = <64>;
+               spi-cpha = <1>;
+               spi-cpol = <1>;
+               pl022,hierarchy = <0>;
+               pl022,interface = <0>;
+               pl022,slave-tx-disable = <0>;
+               pl022,com-mode = <0>;
+               pl022,rx-level-trig = <1>;
+               pl022,tx-level-trig = <1>;
+               pl022,ctrl-len = <11>;
+               pl022,wait-state = <0>;
+               pl022,duplex = <0>;
+       };
+};
+
 &sdio0 {
        status = "ok";
 };
index 0a92a68871476541cad784d729b822e73223a769..123cd9c6a01bee35541c5f9a7c7629586d40bdc7 100644 (file)
                        status = "disabled";
                };
 
+               ssp0: ssp@66180000 {
+                       compatible = "arm,pl022", "arm,primecell";
+                       reg = <0x66180000 0x1000>;
+                       interrupts = <GIC_SPI 404 IRQ_TYPE_LEVEL_HIGH>;
+                       clocks = <&iprocslow>, <&iprocslow>;
+                       clock-names = "spiclk", "apb_pclk";
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       status = "disabled";
+               };
+
+               ssp1: ssp@66190000 {
+                       compatible = "arm,pl022", "arm,primecell";
+                       reg = <0x66190000 0x1000>;
+                       interrupts = <GIC_SPI 405 IRQ_TYPE_LEVEL_HIGH>;
+                       clocks = <&iprocslow>, <&iprocslow>;
+                       clock-names = "spiclk", "apb_pclk";
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       status = "disabled";
+               };
+
                hwrng: hwrng@66220000 {
                        compatible = "brcm,iproc-rng200";
                        reg = <0x66220000 0x28>;