/* * BSD LICENSE * * Copyright (c) 2015 Broadcom. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * Neither the name of Broadcom Corporation nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include #include / { compatible = "brcm,ns2"; interrupt-parent = <&gic>; #address-cells = <2>; #size-cells = <2>; cpus { #address-cells = <2>; #size-cells = <0>; A57_0: cpu@0 { device_type = "cpu"; compatible = "arm,cortex-a57", "arm,armv8"; reg = <0 0>; enable-method = "psci"; next-level-cache = <&CLUSTER0_L2>; }; A57_1: cpu@1 { device_type = "cpu"; compatible = "arm,cortex-a57", "arm,armv8"; reg = <0 1>; enable-method = "psci"; next-level-cache = <&CLUSTER0_L2>; }; A57_2: cpu@2 { device_type = "cpu"; compatible = "arm,cortex-a57", "arm,armv8"; reg = <0 2>; enable-method = "psci"; next-level-cache = <&CLUSTER0_L2>; }; A57_3: cpu@3 { device_type = "cpu"; compatible = "arm,cortex-a57", "arm,armv8"; reg = <0 3>; enable-method = "psci"; next-level-cache = <&CLUSTER0_L2>; }; CLUSTER0_L2: l2-cache@000 { compatible = "cache"; }; }; psci { compatible = "arm,psci-1.0"; method = "smc"; }; timer { compatible = "arm,armv8-timer"; interrupts = , , , ; }; pmu { compatible = "arm,armv8-pmuv3"; interrupts = , , , ; interrupt-affinity = <&A57_0>, <&A57_1>, <&A57_2>, <&A57_3>; }; pcie0: pcie@20020000 { compatible = "brcm,iproc-pcie"; reg = <0 0x20020000 0 0x1000>; #interrupt-cells = <1>; interrupt-map-mask = <0 0 0 0>; interrupt-map = <0 0 0 0 &gic GIC_SPI 281 IRQ_TYPE_NONE>; linux,pci-domain = <0>; bus-range = <0x00 0xff>; #address-cells = <3>; #size-cells = <2>; device_type = "pci"; ranges = <0x83000000 0 0x00000000 0 0x00000000 0 0x20000000>; brcm,pcie-ob; brcm,pcie-ob-oarr-size; brcm,pcie-ob-axi-offset = <0x00000000>; brcm,pcie-ob-window-size = <256>; status = "disabled"; msi-parent = <&msi0>; msi0: msi@20020000 { compatible = "brcm,iproc-msi"; msi-controller; interrupt-parent = <&gic>; interrupts = , , , ; brcm,num-eq-region = <1>; brcm,num-msi-msg-region = <1>; }; }; pcie4: pcie@50020000 { compatible = "brcm,iproc-pcie"; reg = <0 0x50020000 0 0x1000>; #interrupt-cells = <1>; interrupt-map-mask = <0 0 0 0>; interrupt-map = <0 0 0 0 &gic GIC_SPI 305 IRQ_TYPE_NONE>; linux,pci-domain = <4>; bus-range = <0x00 0xff>; #address-cells = <3>; #size-cells = <2>; device_type = "pci"; ranges = <0x83000000 0 0x00000000 0 0x30000000 0 0x20000000>; brcm,pcie-ob; brcm,pcie-ob-oarr-size; brcm,pcie-ob-axi-offset = <0x30000000>; brcm,pcie-ob-window-size = <256>; status = "disabled"; msi-parent = <&msi4>; msi4: msi@50020000 { compatible = "brcm,iproc-msi"; msi-controller; interrupt-parent = <&gic>; interrupts = , , , ; }; }; soc: soc { compatible = "simple-bus"; #address-cells = <1>; #size-cells = <1>; ranges = <0 0 0 0xffffffff>; #include "ns2-clock.dtsi" dma0: dma@61360000 { compatible = "arm,pl330", "arm,primecell"; reg = <0x61360000 0x1000>; interrupts = , , , , , , , , ; #dma-cells = <1>; #dma-channels = <8>; #dma-requests = <32>; clocks = <&iprocslow>; clock-names = "apb_pclk"; }; smmu: mmu@64000000 { compatible = "arm,mmu-500"; reg = <0x64000000 0x40000>; #global-interrupts = <2>; interrupts = , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ; mmu-masters; }; pinctrl: pinctrl@6501d130 { compatible = "brcm,ns2-pinmux"; reg = <0x6501d130 0x08>, <0x660a0028 0x04>, <0x660009b0 0x40>; }; gpio_aon: gpio@65024800 { compatible = "brcm,iproc-gpio"; reg = <0x65024800 0x50>, <0x65024008 0x18>; ngpios = <6>; #gpio-cells = <2>; gpio-controller; }; gic: interrupt-controller@65210000 { compatible = "arm,gic-400"; #interrupt-cells = <3>; interrupt-controller; reg = <0x65210000 0x1000>, <0x65220000 0x1000>, <0x65240000 0x2000>, <0x65260000 0x1000>; interrupts = ; }; cci@65590000 { compatible = "arm,cci-400"; #address-cells = <1>; #size-cells = <1>; reg = <0x65590000 0x1000>; ranges = <0 0x65590000 0x10000>; pmu@9000 { compatible = "arm,cci-400-pmu,r1", "arm,cci-400-pmu"; reg = <0x9000 0x4000>; interrupts = , , , , , ; }; }; mdio_mux_iproc: mdio-mux@6602023c { compatible = "brcm,mdio-mux-iproc"; reg = <0x6602023c 0x14>; #address-cells = <1>; #size-cells = <0>; mdio@0 { reg = <0x0>; #address-cells = <1>; #size-cells = <0>; pci_phy0: pci-phy@0 { compatible = "brcm,ns2-pcie-phy"; reg = <0x0>; #phy-cells = <0>; status = "disabled"; }; }; mdio@7 { reg = <0x7>; #address-cells = <1>; #size-cells = <0>; pci_phy1: pci-phy@0 { compatible = "brcm,ns2-pcie-phy"; reg = <0x0>; #phy-cells = <0>; status = "disabled"; }; }; mdio@10 { reg = <0x10>; #address-cells = <1>; #size-cells = <0>; }; }; timer0: timer@66030000 { compatible = "arm,sp804", "arm,primecell"; reg = <0x66030000 0x1000>; interrupts = ; clocks = <&iprocslow>, <&iprocslow>, <&iprocslow>; clock-names = "timer1", "timer2", "apb_pclk"; }; timer1: timer@66040000 { compatible = "arm,sp804", "arm,primecell"; reg = <0x66040000 0x1000>; interrupts = ; clocks = <&iprocslow>, <&iprocslow>, <&iprocslow>; clock-names = "timer1", "timer2", "apb_pclk"; }; timer2: timer@66050000 { compatible = "arm,sp804", "arm,primecell"; reg = <0x66050000 0x1000>; interrupts = ; clocks = <&iprocslow>, <&iprocslow>, <&iprocslow>; clock-names = "timer1", "timer2", "apb_pclk"; }; timer3: timer@66060000 { compatible = "arm,sp804", "arm,primecell"; reg = <0x66060000 0x1000>; interrupts = ; clocks = <&iprocslow>, <&iprocslow>, <&iprocslow>; clock-names = "timer1", "timer2", "apb_pclk"; }; i2c0: i2c@66080000 { compatible = "brcm,iproc-i2c"; reg = <0x66080000 0x100>; #address-cells = <1>; #size-cells = <0>; interrupts = ; clock-frequency = <100000>; status = "disabled"; }; wdt0: watchdog@66090000 { compatible = "arm,sp805", "arm,primecell"; reg = <0x66090000 0x1000>; interrupts = ; clocks = <&iprocslow>, <&iprocslow>; clock-names = "wdogclk", "apb_pclk"; }; gpio_g: gpio@660a0000 { compatible = "brcm,iproc-gpio"; reg = <0x660a0000 0x50>; ngpios = <32>; #gpio-cells = <2>; gpio-controller; interrupt-controller; interrupts = ; }; i2c1: i2c@660b0000 { compatible = "brcm,iproc-i2c"; reg = <0x660b0000 0x100>; #address-cells = <1>; #size-cells = <0>; interrupts = ; clock-frequency = <100000>; status = "disabled"; }; uart0: serial@66100000 { compatible = "snps,dw-apb-uart"; reg = <0x66100000 0x100>; interrupts = ; clocks = <&iprocslow>; reg-shift = <2>; reg-io-width = <4>; status = "disabled"; }; uart1: serial@66110000 { compatible = "snps,dw-apb-uart"; reg = <0x66110000 0x100>; interrupts = ; clocks = <&iprocslow>; reg-shift = <2>; reg-io-width = <4>; status = "disabled"; }; uart2: serial@66120000 { compatible = "snps,dw-apb-uart"; reg = <0x66120000 0x100>; interrupts = ; clocks = <&iprocslow>; reg-shift = <2>; reg-io-width = <4>; status = "disabled"; }; uart3: serial@66130000 { compatible = "snps,dw-apb-uart"; reg = <0x66130000 0x100>; interrupts = ; reg-shift = <2>; reg-io-width = <4>; clocks = <&osc>; status = "disabled"; }; ssp0: ssp@66180000 { compatible = "arm,pl022", "arm,primecell"; reg = <0x66180000 0x1000>; interrupts = ; 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 = ; 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>; }; sata_phy: sata_phy@663f0100 { compatible = "brcm,iproc-ns2-sata-phy"; reg = <0x663f0100 0x1f00>, <0x663f004c 0x10>; reg-names = "phy", "phy-ctrl"; #address-cells = <1>; #size-cells = <0>; sata_phy0: sata-phy@0 { reg = <0>; #phy-cells = <0>; status = "disabled"; }; sata_phy1: sata-phy@1 { reg = <1>; #phy-cells = <0>; status = "disabled"; }; }; sata: ahci@663f2000 { compatible = "brcm,iproc-ahci", "generic-ahci"; reg = <0x663f2000 0x1000>; reg-names = "ahci"; interrupts = ; #address-cells = <1>; #size-cells = <0>; status = "disabled"; sata0: sata-port@0 { reg = <0>; phys = <&sata_phy0>; phy-names = "sata-phy"; }; sata1: sata-port@1 { reg = <1>; phys = <&sata_phy1>; phy-names = "sata-phy"; }; }; sdio0: sdhci@66420000 { compatible = "brcm,sdhci-iproc-cygnus"; reg = <0x66420000 0x100>; interrupts = ; bus-width = <8>; clocks = <&genpll_sw BCM_NS2_GENPLL_SW_SDIO_CLK>; status = "disabled"; }; sdio1: sdhci@66430000 { compatible = "brcm,sdhci-iproc-cygnus"; reg = <0x66430000 0x100>; interrupts = ; bus-width = <8>; clocks = <&genpll_sw BCM_NS2_GENPLL_SW_SDIO_CLK>; status = "disabled"; }; nand: nand@66460000 { compatible = "brcm,nand-iproc", "brcm,brcmnand-v6.1"; reg = <0x66460000 0x600>, <0x67015408 0x600>, <0x66460f00 0x20>; reg-names = "nand", "iproc-idm", "iproc-ext"; interrupts = ; #address-cells = <1>; #size-cells = <0>; brcm,nand-has-wp; }; }; };