ARM: dts: lan966x: add flexcom SPI nodes
[linux-2.6-microblaze.git] / arch / arm / boot / dts / lan966x.dtsi
index 7d28696..a61d394 100644 (file)
                        #size-cells = <1>;
                        ranges = <0x0 0xe0040000 0x800>;
                        status = "disabled";
+
+                       usart0: serial@200 {
+                               compatible = "atmel,at91sam9260-usart";
+                               reg = <0x200 0x200>;
+                               interrupts = <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>;
+                               dmas = <&dma0 AT91_XDMAC_DT_PERID(3)>,
+                                      <&dma0 AT91_XDMAC_DT_PERID(2)>;
+                               dma-names = "tx", "rx";
+                               clocks = <&nic_clk>;
+                               clock-names = "usart";
+                               atmel,fifo-size = <32>;
+                               status = "disabled";
+                       };
+
+                       spi0: spi@400 {
+                               compatible = "atmel,at91rm9200-spi";
+                               reg = <0x400 0x200>;
+                               interrupts = <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>;
+                               dmas = <&dma0 AT91_XDMAC_DT_PERID(3)>,
+                                      <&dma0 AT91_XDMAC_DT_PERID(2)>;
+                               dma-names = "tx", "rx";
+                               clocks = <&nic_clk>;
+                               clock-names = "spi_clk";
+                               atmel,fifo-size = <32>;
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+                               status = "disabled";
+                       };
                };
 
                flx1: flexcom@e0044000 {
                        #size-cells = <1>;
                        ranges = <0x0 0xe0044000 0x800>;
                        status = "disabled";
+
+                       usart1: serial@200 {
+                               compatible = "atmel,at91sam9260-usart";
+                               reg = <0x200 0x200>;
+                               interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>;
+                               dmas = <&dma0 AT91_XDMAC_DT_PERID(5)>,
+                                      <&dma0 AT91_XDMAC_DT_PERID(4)>;
+                               dma-names = "tx", "rx";
+                               clocks = <&nic_clk>;
+                               clock-names = "usart";
+                               atmel,fifo-size = <32>;
+                               status = "disabled";
+                       };
+
+                       spi1: spi@400 {
+                               compatible = "atmel,at91rm9200-spi";
+                               reg = <0x400 0x200>;
+                               interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>;
+                               dmas = <&dma0 AT91_XDMAC_DT_PERID(5)>,
+                                      <&dma0 AT91_XDMAC_DT_PERID(4)>;
+                               dma-names = "tx", "rx";
+                               clocks = <&nic_clk>;
+                               clock-names = "spi_clk";
+                               atmel,fifo-size = <32>;
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+                               status = "disabled";
+                       };
                };
 
                trng: rng@e0048000 {
                        compatible = "atmel,at91sam9g46-aes";
                        reg = <0xe004c000 0x100>;
                        interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>;
-                       dmas = <&dma0 AT91_XDMAC_DT_PERID(13)>,
-                              <&dma0 AT91_XDMAC_DT_PERID(12)>;
-                       dma-names = "rx", "tx";
+                       dmas = <&dma0 AT91_XDMAC_DT_PERID(12)>,
+                              <&dma0 AT91_XDMAC_DT_PERID(13)>;
+                       dma-names = "tx", "rx";
                        clocks = <&nic_clk>;
                        clock-names = "aes_clk";
                };
                        #size-cells = <1>;
                        ranges = <0x0 0xe0060000 0x800>;
                        status = "disabled";
+
+                       usart2: serial@200 {
+                               compatible = "atmel,at91sam9260-usart";
+                               reg = <0x200 0x200>;
+                               interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
+                               dmas = <&dma0 AT91_XDMAC_DT_PERID(7)>,
+                                      <&dma0 AT91_XDMAC_DT_PERID(6)>;
+                               dma-names = "tx", "rx";
+                               clocks = <&nic_clk>;
+                               clock-names = "usart";
+                               atmel,fifo-size = <32>;
+                               status = "disabled";
+                       };
+
+                       spi2: spi@400 {
+                               compatible = "atmel,at91rm9200-spi";
+                               reg = <0x400 0x200>;
+                               interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
+                               dmas = <&dma0 AT91_XDMAC_DT_PERID(7)>,
+                                      <&dma0 AT91_XDMAC_DT_PERID(6)>;
+                               dma-names = "tx", "rx";
+                               clocks = <&nic_clk>;
+                               clock-names = "spi_clk";
+                               atmel,fifo-size = <32>;
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+                               status = "disabled";
+                       };
                };
 
                flx3: flexcom@e0064000 {
                                compatible = "atmel,at91sam9260-usart";
                                reg = <0x200 0x200>;
                                interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>;
+                               dmas = <&dma0 AT91_XDMAC_DT_PERID(9)>,
+                                      <&dma0 AT91_XDMAC_DT_PERID(8)>;
+                               dma-names = "tx", "rx";
                                clocks = <&nic_clk>;
                                clock-names = "usart";
                                atmel,fifo-size = <32>;
                                status = "disabled";
                        };
+
+                       spi3: spi@400 {
+                               compatible = "atmel,at91rm9200-spi";
+                               reg = <0x400 0x200>;
+                               interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>;
+                               dmas = <&dma0 AT91_XDMAC_DT_PERID(9)>,
+                                      <&dma0 AT91_XDMAC_DT_PERID(8)>;
+                               dma-names = "tx", "rx";
+                               clocks = <&nic_clk>;
+                               clock-names = "spi_clk";
+                               atmel,fifo-size = <32>;
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+                               status = "disabled";
+                       };
                };
 
                dma0: dma-controller@e0068000 {
                        #size-cells = <1>;
                        ranges = <0x0 0xe0070000 0x800>;
                        status = "disabled";
+
+                       usart4: serial@200 {
+                               compatible = "atmel,at91sam9260-usart";
+                               reg = <0x200 0x200>;
+                               interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>;
+                               dmas = <&dma0 AT91_XDMAC_DT_PERID(11)>,
+                                      <&dma0 AT91_XDMAC_DT_PERID(10)>;
+                               dma-names = "tx", "rx";
+                               clocks = <&nic_clk>;
+                               clock-names = "usart";
+                               atmel,fifo-size = <32>;
+                               status = "disabled";
+                       };
+
+                       spi4: spi@400 {
+                               compatible = "atmel,at91rm9200-spi";
+                               reg = <0x400 0x200>;
+                               interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>;
+                               dmas = <&dma0 AT91_XDMAC_DT_PERID(11)>,
+                                      <&dma0 AT91_XDMAC_DT_PERID(10)>;
+                               dma-names = "tx", "rx";
+                               clocks = <&nic_clk>;
+                               clock-names = "spi_clk";
+                               atmel,fifo-size = <32>;
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+                               status = "disabled";
+                       };
                };
 
                timer0: timer@e008c000 {
                        #interrupt-cells = <2>;
                };
 
+               sgpio: gpio@e2004190 {
+                       compatible = "microchip,sparx5-sgpio";
+                       reg = <0xe2004190 0x118>;
+                       clocks = <&sys_clk>;
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       status = "disabled";
+
+                       sgpio_in: gpio@0 {
+                               compatible = "microchip,sparx5-sgpio-bank";
+                               reg = <0>;
+                               gpio-controller;
+                               #gpio-cells = <3>;
+                               interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
+                               interrupt-controller;
+                               #interrupt-cells = <3>;
+                       };
+
+                       sgpio_out: gpio@1 {
+                               compatible = "microchip,sparx5-sgpio-bank";
+                               reg = <1>;
+                               gpio-controller;
+                               #gpio-cells = <3>;
+                       };
+               };
+
                gic: interrupt-controller@e8c11000 {
                        compatible = "arm,gic-400", "arm,cortex-a7-gic";
                        #interrupt-cells = <3>;