1bf2150b9SStefan Roese/* 2bf2150b9SStefan Roese * Copyright (C) 2016 Marvell Technology Group Ltd. 3bf2150b9SStefan Roese * 4bf2150b9SStefan Roese * This file is dual-licensed: you can use it either under the terms 5bf2150b9SStefan Roese * of the GPLv2 or the X11 license, at your option. Note that this dual 6bf2150b9SStefan Roese * licensing only applies to this file, and not this project as a 7bf2150b9SStefan Roese * whole. 8bf2150b9SStefan Roese * 9bf2150b9SStefan Roese * a) This library is free software; you can redistribute it and/or 10bf2150b9SStefan Roese * modify it under the terms of the GNU General Public License as 11bf2150b9SStefan Roese * published by the Free Software Foundation; either version 2 of the 12bf2150b9SStefan Roese * License, or (at your option) any later version. 13bf2150b9SStefan Roese * 14bf2150b9SStefan Roese * This library is distributed in the hope that it will be useful, 15bf2150b9SStefan Roese * but WITHOUT ANY WARRANTY; without even the implied warranty of 16bf2150b9SStefan Roese * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17bf2150b9SStefan Roese * GNU General Public License for more details. 18bf2150b9SStefan Roese * 19bf2150b9SStefan Roese * Or, alternatively, 20bf2150b9SStefan Roese * 21bf2150b9SStefan Roese * b) Permission is hereby granted, free of charge, to any person 22bf2150b9SStefan Roese * obtaining a copy of this software and associated documentation 23bf2150b9SStefan Roese * files (the "Software"), to deal in the Software without 24bf2150b9SStefan Roese * restriction, including without limitation the rights to use, 25bf2150b9SStefan Roese * copy, modify, merge, publish, distribute, sublicense, and/or 26bf2150b9SStefan Roese * sell copies of the Software, and to permit persons to whom the 27bf2150b9SStefan Roese * Software is furnished to do so, subject to the following 28bf2150b9SStefan Roese * conditions: 29bf2150b9SStefan Roese * 30bf2150b9SStefan Roese * The above copyright notice and this permission notice shall be 31bf2150b9SStefan Roese * included in all copies or substantial portions of the Software. 32bf2150b9SStefan Roese * 33bf2150b9SStefan Roese * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 34bf2150b9SStefan Roese * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 35bf2150b9SStefan Roese * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 36bf2150b9SStefan Roese * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 37bf2150b9SStefan Roese * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 38bf2150b9SStefan Roese * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 39bf2150b9SStefan Roese * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 40bf2150b9SStefan Roese * OTHER DEALINGS IN THE SOFTWARE. 41bf2150b9SStefan Roese */ 42bf2150b9SStefan Roese 43bf2150b9SStefan Roese/* 44bf2150b9SStefan Roese * Device Tree file for Marvell Armada CP110 Slave. 45bf2150b9SStefan Roese */ 46bf2150b9SStefan Roese 47acbdc8e8SStefan Roese#include <dt-bindings/comphy/comphy_data.h> 48acbdc8e8SStefan Roese 49bf2150b9SStefan Roese/ { 50bf2150b9SStefan Roese cp110-slave { 51bf2150b9SStefan Roese #address-cells = <2>; 52bf2150b9SStefan Roese #size-cells = <2>; 53bf2150b9SStefan Roese compatible = "simple-bus"; 54bf2150b9SStefan Roese interrupt-parent = <&gic>; 55bf2150b9SStefan Roese ranges; 56bf2150b9SStefan Roese 57bf2150b9SStefan Roese config-space { 58bf2150b9SStefan Roese #address-cells = <1>; 59bf2150b9SStefan Roese #size-cells = <1>; 60bf2150b9SStefan Roese compatible = "simple-bus"; 61bf2150b9SStefan Roese interrupt-parent = <&gic>; 62bf2150b9SStefan Roese ranges = <0x0 0x0 0xf4000000 0x2000000>; 63bf2150b9SStefan Roese 64a6555ebeSThomas Petazzoni cps_ethernet: ethernet@0 { 65a6555ebeSThomas Petazzoni compatible = "marvell,armada-7k-pp22"; 66a6555ebeSThomas Petazzoni reg = <0x0 0x100000>, <0x129000 0xb000>; 67a6555ebeSThomas Petazzoni clocks = <&cps_syscon0 1 3>, <&cps_syscon0 1 9>, <&cps_syscon0 1 5>; 68a6555ebeSThomas Petazzoni clock-names = "pp_clk", "gop_clk", "mg_clk"; 69a6555ebeSThomas Petazzoni status = "disabled"; 70a6555ebeSThomas Petazzoni dma-coherent; 71a6555ebeSThomas Petazzoni 72a6555ebeSThomas Petazzoni cps_eth0: eth0 { 73a6555ebeSThomas Petazzoni interrupts = <GIC_SPI 261 IRQ_TYPE_LEVEL_HIGH>; 74a6555ebeSThomas Petazzoni port-id = <0>; 75a6555ebeSThomas Petazzoni gop-port-id = <0>; 76a6555ebeSThomas Petazzoni status = "disabled"; 77a6555ebeSThomas Petazzoni }; 78a6555ebeSThomas Petazzoni 79a6555ebeSThomas Petazzoni cps_eth1: eth1 { 80a6555ebeSThomas Petazzoni interrupts = <GIC_SPI 262 IRQ_TYPE_LEVEL_HIGH>; 81a6555ebeSThomas Petazzoni port-id = <1>; 82a6555ebeSThomas Petazzoni gop-port-id = <2>; 83a6555ebeSThomas Petazzoni status = "disabled"; 84a6555ebeSThomas Petazzoni }; 85a6555ebeSThomas Petazzoni 86a6555ebeSThomas Petazzoni cps_eth2: eth2 { 87a6555ebeSThomas Petazzoni interrupts = <GIC_SPI 263 IRQ_TYPE_LEVEL_HIGH>; 88a6555ebeSThomas Petazzoni port-id = <2>; 89a6555ebeSThomas Petazzoni gop-port-id = <3>; 90a6555ebeSThomas Petazzoni status = "disabled"; 91a6555ebeSThomas Petazzoni }; 92a6555ebeSThomas Petazzoni }; 93a6555ebeSThomas Petazzoni 94a6555ebeSThomas Petazzoni cps_mdio: mdio@12a200 { 95a6555ebeSThomas Petazzoni #address-cells = <1>; 96a6555ebeSThomas Petazzoni #size-cells = <0>; 97a6555ebeSThomas Petazzoni compatible = "marvell,orion-mdio"; 98a6555ebeSThomas Petazzoni reg = <0x12a200 0x10>; 99a6555ebeSThomas Petazzoni }; 100a6555ebeSThomas Petazzoni 101bf2150b9SStefan Roese cps_syscon0: system-controller@440000 { 102bf2150b9SStefan Roese compatible = "marvell,cp110-system-controller0", 103bf2150b9SStefan Roese "syscon"; 104bf2150b9SStefan Roese reg = <0x440000 0x1000>; 105bf2150b9SStefan Roese #clock-cells = <2>; 106bf2150b9SStefan Roese core-clock-output-names = 107bf2150b9SStefan Roese "cps-apll", "cps-ppv2-core", "cps-eip", 108bf2150b9SStefan Roese "cps-core", "cps-nand-core"; 109bf2150b9SStefan Roese gate-clock-output-names = 110bf2150b9SStefan Roese "cps-audio", "cps-communit", "cps-nand", 111bf2150b9SStefan Roese "cps-ppv2", "cps-sdio", "cps-mg-domain", 112bf2150b9SStefan Roese "cps-mg-core", "cps-xor1", "cps-xor0", 113bf2150b9SStefan Roese "cps-gop-dp", "none", "cps-pcie_x10", 114bf2150b9SStefan Roese "cps-pcie_x11", "cps-pcie_x4", "cps-pcie-xor", 115bf2150b9SStefan Roese "cps-sata", "cps-sata-usb", "cps-main", 116bf2150b9SStefan Roese "cps-sd-mmc", "none", "none", 117bf2150b9SStefan Roese "cps-slow-io", "cps-usb3h0", "cps-usb3h1", 118bf2150b9SStefan Roese "cps-usb3dev", "cps-eip150", "cps-eip197"; 119bf2150b9SStefan Roese }; 120bf2150b9SStefan Roese 121f99386c5SKonstantin Porotchkin cps_pinctl: cps-pinctl@440000 { 122f99386c5SKonstantin Porotchkin compatible = "marvell,mvebu-pinctrl", 123f99386c5SKonstantin Porotchkin "marvell,a80x0-cp1-pinctrl"; 124f99386c5SKonstantin Porotchkin bank-name ="cp1-110"; 125f99386c5SKonstantin Porotchkin reg = <0x440000 0x20>; 126f99386c5SKonstantin Porotchkin pin-count = <63>; 127f99386c5SKonstantin Porotchkin max-func = <0xf>; 128f99386c5SKonstantin Porotchkin 129f99386c5SKonstantin Porotchkin cps_ge1_rgmii_pins: cps-ge-rgmii-pins-0 { 130f99386c5SKonstantin Porotchkin marvell,pins = < 0 1 2 3 4 5 6 7 131f99386c5SKonstantin Porotchkin 8 9 10 11 >; 132f99386c5SKonstantin Porotchkin marvell,function = <3>; 133f99386c5SKonstantin Porotchkin }; 134f99386c5SKonstantin Porotchkin cps_spi1_pins: cps-spi-pins-1 { 135f99386c5SKonstantin Porotchkin marvell,pins = < 13 14 15 16 >; 136f99386c5SKonstantin Porotchkin marvell,function = <3>; 137f99386c5SKonstantin Porotchkin }; 138f99386c5SKonstantin Porotchkin }; 139f99386c5SKonstantin Porotchkin 140995a9f42SKonstantin Porotchkin cps_gpio0: gpio@440100 { 141995a9f42SKonstantin Porotchkin compatible = "marvell,orion-gpio"; 142995a9f42SKonstantin Porotchkin reg = <0x440100 0x40>; 143995a9f42SKonstantin Porotchkin ngpios = <32>; 144995a9f42SKonstantin Porotchkin gpiobase = <20>; 145995a9f42SKonstantin Porotchkin gpio-controller; 146995a9f42SKonstantin Porotchkin #gpio-cells = <2>; 147995a9f42SKonstantin Porotchkin }; 148995a9f42SKonstantin Porotchkin 149995a9f42SKonstantin Porotchkin cps_gpio1: gpio@440140 { 150995a9f42SKonstantin Porotchkin compatible = "marvell,orion-gpio"; 151995a9f42SKonstantin Porotchkin reg = <0x440140 0x40>; 152995a9f42SKonstantin Porotchkin ngpios = <31>; 153995a9f42SKonstantin Porotchkin gpiobase = <52>; 154995a9f42SKonstantin Porotchkin gpio-controller; 155995a9f42SKonstantin Porotchkin #gpio-cells = <2>; 156995a9f42SKonstantin Porotchkin }; 157995a9f42SKonstantin Porotchkin 158bf2150b9SStefan Roese cps_sata0: sata@540000 { 159bf2150b9SStefan Roese compatible = "marvell,armada-8k-ahci"; 160bf2150b9SStefan Roese reg = <0x540000 0x30000>; 161bf2150b9SStefan Roese interrupts = <GIC_SPI 287 IRQ_TYPE_LEVEL_HIGH>; 162bf2150b9SStefan Roese clocks = <&cps_syscon0 1 15>; 163bf2150b9SStefan Roese status = "disabled"; 164bf2150b9SStefan Roese }; 165bf2150b9SStefan Roese 166bf2150b9SStefan Roese cps_usb3_0: usb3@500000 { 167bf2150b9SStefan Roese compatible = "marvell,armada-8k-xhci", 168bf2150b9SStefan Roese "generic-xhci"; 169bf2150b9SStefan Roese reg = <0x500000 0x4000>; 170bf2150b9SStefan Roese dma-coherent; 171bf2150b9SStefan Roese interrupts = <GIC_SPI 286 IRQ_TYPE_LEVEL_HIGH>; 172bf2150b9SStefan Roese clocks = <&cps_syscon0 1 22>; 173bf2150b9SStefan Roese status = "disabled"; 174bf2150b9SStefan Roese }; 175bf2150b9SStefan Roese 176bf2150b9SStefan Roese cps_usb3_1: usb3@510000 { 177bf2150b9SStefan Roese compatible = "marvell,armada-8k-xhci", 178bf2150b9SStefan Roese "generic-xhci"; 179bf2150b9SStefan Roese reg = <0x510000 0x4000>; 180bf2150b9SStefan Roese dma-coherent; 181bf2150b9SStefan Roese interrupts = <GIC_SPI 285 IRQ_TYPE_LEVEL_HIGH>; 182bf2150b9SStefan Roese clocks = <&cps_syscon0 1 23>; 183bf2150b9SStefan Roese status = "disabled"; 184bf2150b9SStefan Roese }; 185bf2150b9SStefan Roese 186bf2150b9SStefan Roese cps_xor0: xor@6a0000 { 187bf2150b9SStefan Roese compatible = "marvell,armada-7k-xor", "marvell,xor-v2"; 188bf2150b9SStefan Roese reg = <0x6a0000 0x1000>, 189bf2150b9SStefan Roese <0x6b0000 0x1000>; 190bf2150b9SStefan Roese dma-coherent; 191bf2150b9SStefan Roese msi-parent = <&gic_v2m0>; 192bf2150b9SStefan Roese clocks = <&cps_syscon0 1 8>; 193bf2150b9SStefan Roese }; 194bf2150b9SStefan Roese 195bf2150b9SStefan Roese cps_xor1: xor@6c0000 { 196bf2150b9SStefan Roese compatible = "marvell,armada-7k-xor", "marvell,xor-v2"; 197bf2150b9SStefan Roese reg = <0x6c0000 0x1000>, 198bf2150b9SStefan Roese <0x6d0000 0x1000>; 199bf2150b9SStefan Roese dma-coherent; 200bf2150b9SStefan Roese msi-parent = <&gic_v2m0>; 201bf2150b9SStefan Roese clocks = <&cps_syscon0 1 7>; 202bf2150b9SStefan Roese }; 203bf2150b9SStefan Roese 204bf2150b9SStefan Roese cps_spi0: spi@700600 { 205bf2150b9SStefan Roese compatible = "marvell,armada-380-spi"; 206bf2150b9SStefan Roese reg = <0x700600 0x50>; 207bf2150b9SStefan Roese #address-cells = <0x1>; 208bf2150b9SStefan Roese #size-cells = <0x0>; 209bf2150b9SStefan Roese cell-index = <1>; 210bf2150b9SStefan Roese clocks = <&cps_syscon0 0 3>; 211bf2150b9SStefan Roese status = "disabled"; 212bf2150b9SStefan Roese }; 213bf2150b9SStefan Roese 214bf2150b9SStefan Roese cps_spi1: spi@700680 { 215bf2150b9SStefan Roese compatible = "marvell,armada-380-spi"; 216bf2150b9SStefan Roese reg = <0x700680 0x50>; 217bf2150b9SStefan Roese #address-cells = <1>; 218bf2150b9SStefan Roese #size-cells = <0>; 219bf2150b9SStefan Roese cell-index = <2>; 220bf2150b9SStefan Roese clocks = <&cps_syscon0 1 21>; 221bf2150b9SStefan Roese status = "disabled"; 222bf2150b9SStefan Roese }; 223bf2150b9SStefan Roese 224bf2150b9SStefan Roese cps_i2c0: i2c@701000 { 225bf2150b9SStefan Roese compatible = "marvell,mv78230-i2c"; 226bf2150b9SStefan Roese reg = <0x701000 0x20>; 227bf2150b9SStefan Roese #address-cells = <1>; 228bf2150b9SStefan Roese #size-cells = <0>; 229bf2150b9SStefan Roese interrupts = <GIC_SPI 310 IRQ_TYPE_LEVEL_HIGH>; 230bf2150b9SStefan Roese clocks = <&cps_syscon0 1 21>; 231bf2150b9SStefan Roese status = "disabled"; 232bf2150b9SStefan Roese }; 233bf2150b9SStefan Roese 234bf2150b9SStefan Roese cps_i2c1: i2c@701100 { 235bf2150b9SStefan Roese compatible = "marvell,mv78230-i2c"; 236bf2150b9SStefan Roese reg = <0x701100 0x20>; 237bf2150b9SStefan Roese #address-cells = <1>; 238bf2150b9SStefan Roese #size-cells = <0>; 239bf2150b9SStefan Roese interrupts = <GIC_SPI 311 IRQ_TYPE_LEVEL_HIGH>; 240bf2150b9SStefan Roese clocks = <&cps_syscon0 1 21>; 241bf2150b9SStefan Roese status = "disabled"; 242bf2150b9SStefan Roese }; 243acbdc8e8SStefan Roese 244acbdc8e8SStefan Roese cps_comphy: comphy@441000 { 245acbdc8e8SStefan Roese compatible = "marvell,mvebu-comphy", "marvell,comphy-cp110"; 246acbdc8e8SStefan Roese reg = <0x441000 0x8>, 247acbdc8e8SStefan Roese <0x120000 0x8>; 248acbdc8e8SStefan Roese mux-bitcount = <4>; 249acbdc8e8SStefan Roese max-lanes = <6>; 250acbdc8e8SStefan Roese }; 251acbdc8e8SStefan Roese 252acbdc8e8SStefan Roese cps_utmi0: utmi@580000 { 253acbdc8e8SStefan Roese compatible = "marvell,mvebu-utmi-2.6.0"; 254acbdc8e8SStefan Roese reg = <0x580000 0x1000>, /* utmi-unit */ 255acbdc8e8SStefan Roese <0x440420 0x4>, /* usb-cfg */ 256acbdc8e8SStefan Roese <0x440440 0x4>; /* utmi-cfg */ 257*e89acc4bSStefan Roese utmi-port = <UTMI_PHY_TO_USB3_HOST0>; 258acbdc8e8SStefan Roese status = "disabled"; 259acbdc8e8SStefan Roese }; 260bf2150b9SStefan Roese }; 261bf2150b9SStefan Roese 262bf2150b9SStefan Roese cps_pcie0: pcie@f4600000 { 263bf2150b9SStefan Roese compatible = "marvell,armada8k-pcie", "snps,dw-pcie"; 264bf2150b9SStefan Roese reg = <0 0xf4600000 0 0x10000>, 265bf2150b9SStefan Roese <0 0xfaf00000 0 0x80000>; 266bf2150b9SStefan Roese reg-names = "ctrl", "config"; 267bf2150b9SStefan Roese #address-cells = <3>; 268bf2150b9SStefan Roese #size-cells = <2>; 269bf2150b9SStefan Roese #interrupt-cells = <1>; 270bf2150b9SStefan Roese device_type = "pci"; 271bf2150b9SStefan Roese dma-coherent; 272bf2150b9SStefan Roese msi-parent = <&gic_v2m0>; 273bf2150b9SStefan Roese 274bf2150b9SStefan Roese bus-range = <0 0xff>; 275bf2150b9SStefan Roese ranges = 276bf2150b9SStefan Roese /* downstream I/O */ 277bf2150b9SStefan Roese <0x81000000 0 0xfd000000 0 0xfd000000 0 0x10000 278bf2150b9SStefan Roese /* non-prefetchable memory */ 279bf2150b9SStefan Roese 0x82000000 0 0xfa000000 0 0xfa000000 0 0xf00000>; 280bf2150b9SStefan Roese interrupt-map-mask = <0 0 0 0>; 281bf2150b9SStefan Roese interrupt-map = <0 0 0 0 &gic 0 GIC_SPI 256 IRQ_TYPE_LEVEL_HIGH>; 282bf2150b9SStefan Roese interrupts = <GIC_SPI 256 IRQ_TYPE_LEVEL_HIGH>; 283bf2150b9SStefan Roese num-lanes = <1>; 284bf2150b9SStefan Roese clocks = <&cps_syscon0 1 13>; 285bf2150b9SStefan Roese status = "disabled"; 286bf2150b9SStefan Roese }; 287bf2150b9SStefan Roese 288bf2150b9SStefan Roese cps_pcie1: pcie@f4620000 { 289bf2150b9SStefan Roese compatible = "marvell,armada8k-pcie", "snps,dw-pcie"; 290bf2150b9SStefan Roese reg = <0 0xf4620000 0 0x10000>, 291bf2150b9SStefan Roese <0 0xfbf00000 0 0x80000>; 292bf2150b9SStefan Roese reg-names = "ctrl", "config"; 293bf2150b9SStefan Roese #address-cells = <3>; 294bf2150b9SStefan Roese #size-cells = <2>; 295bf2150b9SStefan Roese #interrupt-cells = <1>; 296bf2150b9SStefan Roese device_type = "pci"; 297bf2150b9SStefan Roese dma-coherent; 298bf2150b9SStefan Roese msi-parent = <&gic_v2m0>; 299bf2150b9SStefan Roese 300bf2150b9SStefan Roese bus-range = <0 0xff>; 301bf2150b9SStefan Roese ranges = 302bf2150b9SStefan Roese /* downstream I/O */ 303bf2150b9SStefan Roese <0x81000000 0 0xfd010000 0 0xfd010000 0 0x10000 304bf2150b9SStefan Roese /* non-prefetchable memory */ 305bf2150b9SStefan Roese 0x82000000 0 0xfb000000 0 0xfb000000 0 0xf00000>; 306bf2150b9SStefan Roese interrupt-map-mask = <0 0 0 0>; 307bf2150b9SStefan Roese interrupt-map = <0 0 0 0 &gic 0 GIC_SPI 258 IRQ_TYPE_LEVEL_HIGH>; 308bf2150b9SStefan Roese interrupts = <GIC_SPI 258 IRQ_TYPE_LEVEL_HIGH>; 309bf2150b9SStefan Roese 310bf2150b9SStefan Roese num-lanes = <1>; 311bf2150b9SStefan Roese clocks = <&cps_syscon0 1 11>; 312bf2150b9SStefan Roese status = "disabled"; 313bf2150b9SStefan Roese }; 314bf2150b9SStefan Roese 315bf2150b9SStefan Roese cps_pcie2: pcie@f4640000 { 316bf2150b9SStefan Roese compatible = "marvell,armada8k-pcie", "snps,dw-pcie"; 317bf2150b9SStefan Roese reg = <0 0xf4640000 0 0x10000>, 318bf2150b9SStefan Roese <0 0xfcf00000 0 0x80000>; 319bf2150b9SStefan Roese reg-names = "ctrl", "config"; 320bf2150b9SStefan Roese #address-cells = <3>; 321bf2150b9SStefan Roese #size-cells = <2>; 322bf2150b9SStefan Roese #interrupt-cells = <1>; 323bf2150b9SStefan Roese device_type = "pci"; 324bf2150b9SStefan Roese dma-coherent; 325bf2150b9SStefan Roese msi-parent = <&gic_v2m0>; 326bf2150b9SStefan Roese 327bf2150b9SStefan Roese bus-range = <0 0xff>; 328bf2150b9SStefan Roese ranges = 329bf2150b9SStefan Roese /* downstream I/O */ 330bf2150b9SStefan Roese <0x81000000 0 0xfd020000 0 0xfd020000 0 0x10000 331bf2150b9SStefan Roese /* non-prefetchable memory */ 332bf2150b9SStefan Roese 0x82000000 0 0xfc000000 0 0xfc000000 0 0xf00000>; 333bf2150b9SStefan Roese interrupt-map-mask = <0 0 0 0>; 334bf2150b9SStefan Roese interrupt-map = <0 0 0 0 &gic 0 GIC_SPI 257 IRQ_TYPE_LEVEL_HIGH>; 335bf2150b9SStefan Roese interrupts = <GIC_SPI 257 IRQ_TYPE_LEVEL_HIGH>; 336bf2150b9SStefan Roese 337bf2150b9SStefan Roese num-lanes = <1>; 338bf2150b9SStefan Roese clocks = <&cps_syscon0 1 12>; 339bf2150b9SStefan Roese status = "disabled"; 340bf2150b9SStefan Roese }; 341bf2150b9SStefan Roese }; 342bf2150b9SStefan Roese}; 343