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