1ec7e5a56SThomas Petazzoni/* 2ec7e5a56SThomas Petazzoni * Copyright (C) 2016 Marvell Technology Group Ltd. 3ec7e5a56SThomas Petazzoni * 4ec7e5a56SThomas Petazzoni * This file is dual-licensed: you can use it either under the terms 5ec7e5a56SThomas Petazzoni * of the GPLv2 or the X11 license, at your option. Note that this dual 6ec7e5a56SThomas Petazzoni * licensing only applies to this file, and not this project as a 7ec7e5a56SThomas Petazzoni * whole. 8ec7e5a56SThomas Petazzoni * 9ec7e5a56SThomas Petazzoni * a) This library is free software; you can redistribute it and/or 10ec7e5a56SThomas Petazzoni * modify it under the terms of the GNU General Public License as 11ec7e5a56SThomas Petazzoni * published by the Free Software Foundation; either version 2 of the 12ec7e5a56SThomas Petazzoni * License, or (at your option) any later version. 13ec7e5a56SThomas Petazzoni * 14ec7e5a56SThomas Petazzoni * This library is distributed in the hope that it will be useful, 15ec7e5a56SThomas Petazzoni * but WITHOUT ANY WARRANTY; without even the implied warranty of 16ec7e5a56SThomas Petazzoni * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17ec7e5a56SThomas Petazzoni * GNU General Public License for more details. 18ec7e5a56SThomas Petazzoni * 19ec7e5a56SThomas Petazzoni * Or, alternatively, 20ec7e5a56SThomas Petazzoni * 21ec7e5a56SThomas Petazzoni * b) Permission is hereby granted, free of charge, to any person 22ec7e5a56SThomas Petazzoni * obtaining a copy of this software and associated documentation 23ec7e5a56SThomas Petazzoni * files (the "Software"), to deal in the Software without 24ec7e5a56SThomas Petazzoni * restriction, including without limitation the rights to use, 25ec7e5a56SThomas Petazzoni * copy, modify, merge, publish, distribute, sublicense, and/or 26ec7e5a56SThomas Petazzoni * sell copies of the Software, and to permit persons to whom the 27ec7e5a56SThomas Petazzoni * Software is furnished to do so, subject to the following 28ec7e5a56SThomas Petazzoni * conditions: 29ec7e5a56SThomas Petazzoni * 30ec7e5a56SThomas Petazzoni * The above copyright notice and this permission notice shall be 31ec7e5a56SThomas Petazzoni * included in all copies or substantial portions of the Software. 32ec7e5a56SThomas Petazzoni * 33ec7e5a56SThomas Petazzoni * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 34ec7e5a56SThomas Petazzoni * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 35ec7e5a56SThomas Petazzoni * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 36ec7e5a56SThomas Petazzoni * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 37ec7e5a56SThomas Petazzoni * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 38ec7e5a56SThomas Petazzoni * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 39ec7e5a56SThomas Petazzoni * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 40ec7e5a56SThomas Petazzoni * OTHER DEALINGS IN THE SOFTWARE. 41ec7e5a56SThomas Petazzoni */ 42ec7e5a56SThomas Petazzoni 43ec7e5a56SThomas Petazzoni/* 44ec7e5a56SThomas Petazzoni * Device Tree file for Marvell Armada AP806. 45ec7e5a56SThomas Petazzoni */ 46ec7e5a56SThomas Petazzoni 47ec7e5a56SThomas Petazzoni#include <dt-bindings/interrupt-controller/arm-gic.h> 48ec7e5a56SThomas Petazzoni 49ec7e5a56SThomas Petazzoni/dts-v1/; 50ec7e5a56SThomas Petazzoni 51ec7e5a56SThomas Petazzoni/ { 52ec7e5a56SThomas Petazzoni model = "Marvell Armada AP806"; 53ec7e5a56SThomas Petazzoni compatible = "marvell,armada-ap806"; 54ec7e5a56SThomas Petazzoni #address-cells = <2>; 55ec7e5a56SThomas Petazzoni #size-cells = <2>; 56ec7e5a56SThomas Petazzoni 57ec7e5a56SThomas Petazzoni psci { 58ec7e5a56SThomas Petazzoni compatible = "arm,psci-0.2"; 59ec7e5a56SThomas Petazzoni method = "smc"; 60ec7e5a56SThomas Petazzoni }; 61ec7e5a56SThomas Petazzoni 62ec7e5a56SThomas Petazzoni 63ec7e5a56SThomas Petazzoni ap806 { 64ec7e5a56SThomas Petazzoni #address-cells = <2>; 65ec7e5a56SThomas Petazzoni #size-cells = <2>; 66ec7e5a56SThomas Petazzoni compatible = "simple-bus"; 67ec7e5a56SThomas Petazzoni interrupt-parent = <&gic>; 68ec7e5a56SThomas Petazzoni ranges; 69ec7e5a56SThomas Petazzoni 70ec7e5a56SThomas Petazzoni config-space { 71ec7e5a56SThomas Petazzoni #address-cells = <1>; 72ec7e5a56SThomas Petazzoni #size-cells = <1>; 73ec7e5a56SThomas Petazzoni compatible = "simple-bus"; 74ec7e5a56SThomas Petazzoni ranges = <0x0 0x0 0xf0000000 0x1000000>; 75ec7e5a56SThomas Petazzoni 76ec7e5a56SThomas Petazzoni gic: interrupt-controller@210000 { 77ec7e5a56SThomas Petazzoni compatible = "arm,gic-400"; 78ec7e5a56SThomas Petazzoni #interrupt-cells = <3>; 79ec7e5a56SThomas Petazzoni #address-cells = <1>; 80ec7e5a56SThomas Petazzoni #size-cells = <1>; 81ec7e5a56SThomas Petazzoni ranges; 82ec7e5a56SThomas Petazzoni interrupt-controller; 83ec7e5a56SThomas Petazzoni interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>; 84ec7e5a56SThomas Petazzoni reg = <0x210000 0x10000>, 85ec7e5a56SThomas Petazzoni <0x220000 0x20000>, 86ec7e5a56SThomas Petazzoni <0x240000 0x20000>, 87ec7e5a56SThomas Petazzoni <0x260000 0x20000>; 88ec7e5a56SThomas Petazzoni 89ec7e5a56SThomas Petazzoni gic_v2m0: v2m@280000 { 90ec7e5a56SThomas Petazzoni compatible = "arm,gic-v2m-frame"; 91ec7e5a56SThomas Petazzoni msi-controller; 92ec7e5a56SThomas Petazzoni reg = <0x280000 0x1000>; 93ec7e5a56SThomas Petazzoni arm,msi-base-spi = <160>; 94ec7e5a56SThomas Petazzoni arm,msi-num-spis = <32>; 95ec7e5a56SThomas Petazzoni }; 96ec7e5a56SThomas Petazzoni gic_v2m1: v2m@290000 { 97ec7e5a56SThomas Petazzoni compatible = "arm,gic-v2m-frame"; 98ec7e5a56SThomas Petazzoni msi-controller; 99ec7e5a56SThomas Petazzoni reg = <0x290000 0x1000>; 100ec7e5a56SThomas Petazzoni arm,msi-base-spi = <192>; 101ec7e5a56SThomas Petazzoni arm,msi-num-spis = <32>; 102ec7e5a56SThomas Petazzoni }; 103ec7e5a56SThomas Petazzoni gic_v2m2: v2m@2a0000 { 104ec7e5a56SThomas Petazzoni compatible = "arm,gic-v2m-frame"; 105ec7e5a56SThomas Petazzoni msi-controller; 106ec7e5a56SThomas Petazzoni reg = <0x2a0000 0x1000>; 107ec7e5a56SThomas Petazzoni arm,msi-base-spi = <224>; 108ec7e5a56SThomas Petazzoni arm,msi-num-spis = <32>; 109ec7e5a56SThomas Petazzoni }; 110ec7e5a56SThomas Petazzoni gic_v2m3: v2m@2b0000 { 111ec7e5a56SThomas Petazzoni compatible = "arm,gic-v2m-frame"; 112ec7e5a56SThomas Petazzoni msi-controller; 113ec7e5a56SThomas Petazzoni reg = <0x2b0000 0x1000>; 114ec7e5a56SThomas Petazzoni arm,msi-base-spi = <256>; 115ec7e5a56SThomas Petazzoni arm,msi-num-spis = <32>; 116ec7e5a56SThomas Petazzoni }; 117ec7e5a56SThomas Petazzoni }; 118ec7e5a56SThomas Petazzoni 119ec7e5a56SThomas Petazzoni timer { 120ec7e5a56SThomas Petazzoni compatible = "arm,armv8-timer"; 121ec7e5a56SThomas Petazzoni interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_EDGE_RISING)>, 122ec7e5a56SThomas Petazzoni <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_EDGE_RISING)>, 123ec7e5a56SThomas Petazzoni <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_EDGE_RISING)>, 124ec7e5a56SThomas Petazzoni <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_EDGE_RISING)>; 125ec7e5a56SThomas Petazzoni }; 126ec7e5a56SThomas Petazzoni 127ec7e5a56SThomas Petazzoni odmi: odmi@300000 { 128ec7e5a56SThomas Petazzoni compatible = "marvell,odmi-controller"; 129ec7e5a56SThomas Petazzoni interrupt-controller; 130ec7e5a56SThomas Petazzoni msi-controller; 131ec7e5a56SThomas Petazzoni marvell,odmi-frames = <4>; 132ec7e5a56SThomas Petazzoni reg = <0x300000 0x4000>, 133ec7e5a56SThomas Petazzoni <0x304000 0x4000>, 134ec7e5a56SThomas Petazzoni <0x308000 0x4000>, 135ec7e5a56SThomas Petazzoni <0x30C000 0x4000>; 136ec7e5a56SThomas Petazzoni marvell,spi-base = <128>, <136>, <144>, <152>; 137ec7e5a56SThomas Petazzoni }; 138ec7e5a56SThomas Petazzoni 139b5ebfad8SThomas Petazzoni xor0@400000 { 140b5ebfad8SThomas Petazzoni compatible = "marvell,mv-xor-v2"; 141b5ebfad8SThomas Petazzoni reg = <0x400000 0x1000>, 142b5ebfad8SThomas Petazzoni <0x410000 0x1000>; 143b5ebfad8SThomas Petazzoni msi-parent = <&gic_v2m0>; 144b5ebfad8SThomas Petazzoni dma-coherent; 145b5ebfad8SThomas Petazzoni }; 146b5ebfad8SThomas Petazzoni 147b5ebfad8SThomas Petazzoni xor1@420000 { 148b5ebfad8SThomas Petazzoni compatible = "marvell,mv-xor-v2"; 149b5ebfad8SThomas Petazzoni reg = <0x420000 0x1000>, 150b5ebfad8SThomas Petazzoni <0x430000 0x1000>; 151b5ebfad8SThomas Petazzoni msi-parent = <&gic_v2m0>; 152b5ebfad8SThomas Petazzoni dma-coherent; 153b5ebfad8SThomas Petazzoni }; 154b5ebfad8SThomas Petazzoni 155b5ebfad8SThomas Petazzoni xor2@440000 { 156b5ebfad8SThomas Petazzoni compatible = "marvell,mv-xor-v2"; 157b5ebfad8SThomas Petazzoni reg = <0x440000 0x1000>, 158b5ebfad8SThomas Petazzoni <0x450000 0x1000>; 159b5ebfad8SThomas Petazzoni msi-parent = <&gic_v2m0>; 160b5ebfad8SThomas Petazzoni dma-coherent; 161b5ebfad8SThomas Petazzoni }; 162b5ebfad8SThomas Petazzoni 163b5ebfad8SThomas Petazzoni xor3@460000 { 164b5ebfad8SThomas Petazzoni compatible = "marvell,mv-xor-v2"; 165b5ebfad8SThomas Petazzoni reg = <0x460000 0x1000>, 166b5ebfad8SThomas Petazzoni <0x470000 0x1000>; 167b5ebfad8SThomas Petazzoni msi-parent = <&gic_v2m0>; 168b5ebfad8SThomas Petazzoni dma-coherent; 169b5ebfad8SThomas Petazzoni }; 170b5ebfad8SThomas Petazzoni 171ec7e5a56SThomas Petazzoni spi0: spi@510600 { 172ec7e5a56SThomas Petazzoni compatible = "marvell,armada-380-spi"; 173ec7e5a56SThomas Petazzoni reg = <0x510600 0x50>; 174ec7e5a56SThomas Petazzoni #address-cells = <1>; 175ec7e5a56SThomas Petazzoni #size-cells = <0>; 176ec7e5a56SThomas Petazzoni cell-index = <0>; 177ec7e5a56SThomas Petazzoni interrupts = <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>; 178ec7e5a56SThomas Petazzoni clocks = <&ringclk 2>; 179ec7e5a56SThomas Petazzoni status = "disabled"; 180ec7e5a56SThomas Petazzoni }; 181ec7e5a56SThomas Petazzoni 182ec7e5a56SThomas Petazzoni i2c0: i2c@511000 { 183ec7e5a56SThomas Petazzoni compatible = "marvell,mv64xxx-i2c"; 184ec7e5a56SThomas Petazzoni reg = <0x511000 0x20>; 185ec7e5a56SThomas Petazzoni #address-cells = <1>; 186ec7e5a56SThomas Petazzoni #size-cells = <0>; 187ec7e5a56SThomas Petazzoni interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>; 188ec7e5a56SThomas Petazzoni timeout-ms = <1000>; 189ec7e5a56SThomas Petazzoni clocks = <&ringclk 2>; 190ec7e5a56SThomas Petazzoni status = "disabled"; 191ec7e5a56SThomas Petazzoni }; 192ec7e5a56SThomas Petazzoni 193ec7e5a56SThomas Petazzoni serial@512000 { 194ec7e5a56SThomas Petazzoni compatible = "snps,dw-apb-uart"; 195ec7e5a56SThomas Petazzoni reg = <0x512000 0x100>; 196ec7e5a56SThomas Petazzoni reg-shift = <2>; 197ec7e5a56SThomas Petazzoni interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>; 198ec7e5a56SThomas Petazzoni reg-io-width = <1>; 199ec7e5a56SThomas Petazzoni clocks = <&ringclk 2>; 200ec7e5a56SThomas Petazzoni status = "disabled"; 201ec7e5a56SThomas Petazzoni }; 202ec7e5a56SThomas Petazzoni 203ec7e5a56SThomas Petazzoni serial@512100 { 204ec7e5a56SThomas Petazzoni compatible = "snps,dw-apb-uart"; 205ec7e5a56SThomas Petazzoni reg = <0x512100 0x100>; 206ec7e5a56SThomas Petazzoni reg-shift = <2>; 207ec7e5a56SThomas Petazzoni interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>; 208ec7e5a56SThomas Petazzoni reg-io-width = <1>; 209ec7e5a56SThomas Petazzoni clocks = <&ringclk 2>; 210ec7e5a56SThomas Petazzoni status = "disabled"; 211ec7e5a56SThomas Petazzoni 212ec7e5a56SThomas Petazzoni }; 213ec7e5a56SThomas Petazzoni 214d2b78fb6SThomas Petazzoni dfx-server@6f8000 { 215d2b78fb6SThomas Petazzoni compatible = "simple-mfd", "syscon"; 216d2b78fb6SThomas Petazzoni reg = <0x6f8000 0x70000>; 217d2b78fb6SThomas Petazzoni 218d2b78fb6SThomas Petazzoni coreclk: clk@204 { 219d2b78fb6SThomas Petazzoni compatible = "marvell,armada-ap806-core-clock"; 220d2b78fb6SThomas Petazzoni #clock-cells = <1>; 221d2b78fb6SThomas Petazzoni clock-output-names = "ddr", "ring", "cpu"; 222d2b78fb6SThomas Petazzoni }; 223d2b78fb6SThomas Petazzoni 224d2b78fb6SThomas Petazzoni ringclk: clk@250 { 225d2b78fb6SThomas Petazzoni compatible = "marvell,armada-ap806-ring-clock"; 226d2b78fb6SThomas Petazzoni #clock-cells = <1>; 227d2b78fb6SThomas Petazzoni clock-output-names = "ring-0", "ring-2", 228d2b78fb6SThomas Petazzoni "ring-3", "ring-4", 229d2b78fb6SThomas Petazzoni "ring-5"; 230d2b78fb6SThomas Petazzoni clocks = <&coreclk 1>; 231d2b78fb6SThomas Petazzoni }; 232d2b78fb6SThomas Petazzoni }; 233ec7e5a56SThomas Petazzoni }; 234ec7e5a56SThomas Petazzoni }; 235ec7e5a56SThomas Petazzoni 236ec7e5a56SThomas Petazzoni}; 237ec7e5a56SThomas Petazzoni 238