1/* 2 * Copyright (C) 2013-15 Synopsys, Inc. (www.synopsys.com) 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License version 2 as 6 * published by the Free Software Foundation. 7 */ 8 9/* 10 * Device tree for AXC001 770D/EM6/AS221 CPU card 11 * Note that this file only supports the 770D CPU 12 */ 13 14/include/ "skeleton.dtsi" 15 16/ { 17 compatible = "snps,arc"; 18 clock-frequency = <750000000>; /* 750 MHZ */ 19 #address-cells = <1>; 20 #size-cells = <1>; 21 22 cpu_card { 23 compatible = "simple-bus"; 24 #address-cells = <1>; 25 #size-cells = <1>; 26 27 ranges = <0x00000000 0xf0000000 0x10000000>; 28 29 cpu_intc: arc700-intc@cpu { 30 compatible = "snps,arc700-intc"; 31 interrupt-controller; 32 #interrupt-cells = <1>; 33 }; 34 35 /* 36 * this GPIO block ORs all interrupts on CPU card (creg,..) 37 * to uplink only 1 IRQ to ARC core intc 38 */ 39 dw-apb-gpio@0x2000 { 40 compatible = "snps,dw-apb-gpio"; 41 reg = < 0x2000 0x80 >; 42 #address-cells = <1>; 43 #size-cells = <0>; 44 45 ictl_intc: gpio-controller@0 { 46 compatible = "snps,dw-apb-gpio-port"; 47 gpio-controller; 48 #gpio-cells = <2>; 49 snps,nr-gpios = <30>; 50 reg = <0>; 51 interrupt-controller; 52 #interrupt-cells = <2>; 53 interrupt-parent = <&cpu_intc>; 54 interrupts = <15>; 55 }; 56 }; 57 58 debug_uart: dw-apb-uart@0x5000 { 59 compatible = "snps,dw-apb-uart"; 60 reg = <0x5000 0x100>; 61 clock-frequency = <33333000>; 62 interrupt-parent = <&ictl_intc>; 63 interrupts = <19 4>; 64 baud = <115200>; 65 reg-shift = <2>; 66 reg-io-width = <4>; 67 }; 68 69 arcpmu0: pmu { 70 compatible = "snps,arc700-pct"; 71 }; 72 }; 73 74 /* 75 * This INTC is actually connected to DW APB GPIO 76 * which acts as a wire between MB INTC and CPU INTC. 77 * GPIO INTC is configured in platform init code 78 * and here we mimic direct connection from MB INTC to 79 * CPU INTC, thus we set "interrupts = <7>" instead of 80 * "interrupts = <12>" 81 * 82 * This intc actually resides on MB, but we move it here to 83 * avoid duplicating the MB dtsi file given that IRQ from 84 * this intc to cpu intc are different for axs101 and axs103 85 */ 86 mb_intc: dw-apb-ictl@0xe0012000 { 87 #interrupt-cells = <1>; 88 compatible = "snps,dw-apb-ictl"; 89 reg = < 0xe0012000 0x200 >; 90 interrupt-controller; 91 interrupt-parent = <&cpu_intc>; 92 interrupts = < 7 >; 93 }; 94 95 memory { 96 #address-cells = <1>; 97 #size-cells = <1>; 98 ranges = <0x00000000 0x80000000 0x40000000>; 99 device_type = "memory"; 100 reg = <0x80000000 0x20000000>; /* 512MiB */ 101 }; 102}; 103