]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
arm64: dts: Add PL022, PL330 and SP805 DT nodes for Stingray
authorAnup Patel <anup.patel@broadcom.com>
Fri, 2 Jun 2017 06:34:34 +0000 (12:04 +0530)
committerFlorian Fainelli <f.fainelli@gmail.com>
Tue, 6 Jun 2017 02:07:19 +0000 (19:07 -0700)
We have two instance of PL022 SPI controllers, one instance of
DMA PL330, and one non-secure SP805 Watchdog on Stingray SOC.

This patch adds DT nodes for the above mentioned devices in
Stingray DT.

Signed-off-by: Anup Patel <anup.patel@broadcom.com>
Reviewed-by: Pramod KUMAR <pramod.kumar@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/stingray/bcm958742k.dts
arch/arm64/boot/dts/broadcom/stingray/stingray.dtsi

index c309cda4ad76e866dcfc42e8e53f86d0795efee6..5671669ba34876588f6fae34fd5a711686d1d038 100644 (file)
 &uart3 {
        status = "okay";
 };
+
+&ssp0 {
+       pinctrl-0 = <&spi0_pins>;
+       pinctrl-names = "default";
+       cs-gpios = <&gpio_hsls 34 0>;
+       status = "okay";
+
+       spi-flash@0 {
+               compatible = "jedec,spi-nor";
+               reg = <0>;
+               spi-max-frequency = <20000000>;
+               #address-cells = <1>;
+               #size-cells = <1>;
+       };
+};
+
+&ssp1 {
+       pinctrl-0 = <&spi1_pins>;
+       pinctrl-names = "default";
+       cs-gpios = <&gpio_hsls 96 0>;
+       status = "okay";
+
+       spi-flash@0 {
+               compatible = "jedec,spi-nor";
+               reg = <0>;
+               spi-max-frequency = <20000000>;
+               #address-cells = <1>;
+               #size-cells = <1>;
+       };
+};
index 91ba61eadf845dabc9605f499521edd353c24f88..88a617690ed1973be01e2b4a634d5899460eec89 100644 (file)
                        status = "disabled";
                };
 
+               wdt0: watchdog@000c0000 {
+                       compatible = "arm,sp805", "arm,primecell";
+                       reg = <0x000c0000 0x1000>;
+                       interrupts = <GIC_SPI 189 IRQ_TYPE_LEVEL_HIGH>;
+                       clocks = <&hsls_25m_div2_clk>, <&hsls_div4_clk>;
+                       clock-names = "wdogclk", "apb_pclk";
+               };
+
                gpio_hsls: gpio@000d0000 {
                        compatible = "brcm,iproc-gpio";
                        reg = <0x000d0000 0x864>;
                        status = "disabled";
                };
 
+               ssp0: ssp@00180000 {
+                       compatible = "arm,pl022", "arm,primecell";
+                       reg = <0x00180000 0x1000>;
+                       interrupts = <GIC_SPI 187 IRQ_TYPE_LEVEL_HIGH>;
+                       clocks = <&hsls_div2_clk>, <&hsls_div2_clk>;
+                       clock-names = "spiclk", "apb_pclk";
+                       num-cs = <1>;
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       status = "disabled";
+               };
+
+               ssp1: ssp@00190000 {
+                       compatible = "arm,pl022", "arm,primecell";
+                       reg = <0x00190000 0x1000>;
+                       interrupts = <GIC_SPI 188 IRQ_TYPE_LEVEL_HIGH>;
+                       clocks = <&hsls_div2_clk>, <&hsls_div2_clk>;
+                       clock-names = "spiclk", "apb_pclk";
+                       num-cs = <1>;
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       status = "disabled";
+               };
+
                hwrng: hwrng@00220000 {
                        compatible = "brcm,iproc-rng200";
                        reg = <0x00220000 0x28>;
                };
 
+               dma0: dma@00310000 {
+                       compatible = "arm,pl330", "arm,primecell";
+                       reg = <0x00310000 0x1000>;
+                       interrupts = <GIC_SPI 193 IRQ_TYPE_LEVEL_HIGH>,
+                                    <GIC_SPI 194 IRQ_TYPE_LEVEL_HIGH>,
+                                    <GIC_SPI 195 IRQ_TYPE_LEVEL_HIGH>,
+                                    <GIC_SPI 196 IRQ_TYPE_LEVEL_HIGH>,
+                                    <GIC_SPI 197 IRQ_TYPE_LEVEL_HIGH>,
+                                    <GIC_SPI 198 IRQ_TYPE_LEVEL_HIGH>,
+                                    <GIC_SPI 199 IRQ_TYPE_LEVEL_HIGH>,
+                                    <GIC_SPI 200 IRQ_TYPE_LEVEL_HIGH>,
+                                    <GIC_SPI 201 IRQ_TYPE_LEVEL_HIGH>;
+                       #dma-cells = <1>;
+                       #dma-channels = <8>;
+                       #dma-requests = <32>;
+                       clocks = <&hsls_div2_clk>;
+                       clock-names = "apb_pclk";
+                       iommus = <&smmu 0x6000 0x0000>;
+               };
+
                nand: nand@00360000 {
                        compatible = "brcm,nand-iproc", "brcm,brcmnand-v6.1";
                        reg = <0x00360000 0x600>,