]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blob - arch/arc/boot/dts/axc003.dtsi
Merge tag 'for-linus-20170825' of git://git.infradead.org/linux-mtd
[mirror_ubuntu-artful-kernel.git] / arch / arc / boot / dts / axc003.dtsi
1 /*
2 * Copyright (C) 2014-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 AXC003 CPU card: HS38x UP configuration
11 */
12
13 /include/ "skeleton_hs.dtsi"
14
15 / {
16 compatible = "snps,arc";
17 #address-cells = <2>;
18 #size-cells = <2>;
19
20 cpu_card {
21 compatible = "simple-bus";
22 #address-cells = <1>;
23 #size-cells = <1>;
24
25 ranges = <0x00000000 0x0 0xf0000000 0x10000000>;
26
27 core_clk: core_clk {
28 #clock-cells = <0>;
29 compatible = "fixed-clock";
30 clock-frequency = <90000000>;
31 };
32
33 core_intc: archs-intc@cpu {
34 compatible = "snps,archs-intc";
35 interrupt-controller;
36 #interrupt-cells = <1>;
37 };
38
39 /*
40 * this GPIO block ORs all interrupts on CPU card (creg,..)
41 * to uplink only 1 IRQ to ARC core intc
42 */
43 dw-apb-gpio@0x2000 {
44 compatible = "snps,dw-apb-gpio";
45 reg = < 0x2000 0x80 >;
46 #address-cells = <1>;
47 #size-cells = <0>;
48
49 ictl_intc: gpio-controller@0 {
50 compatible = "snps,dw-apb-gpio-port";
51 gpio-controller;
52 #gpio-cells = <2>;
53 snps,nr-gpios = <30>;
54 reg = <0>;
55 interrupt-controller;
56 #interrupt-cells = <2>;
57 interrupt-parent = <&core_intc>;
58 interrupts = <25>;
59 };
60 };
61
62 debug_uart: dw-apb-uart@0x5000 {
63 compatible = "snps,dw-apb-uart";
64 reg = <0x5000 0x100>;
65 clock-frequency = <33333000>;
66 interrupt-parent = <&ictl_intc>;
67 interrupts = <2 4>;
68 baud = <115200>;
69 reg-shift = <2>;
70 reg-io-width = <4>;
71 };
72
73 arcpct0: pct {
74 compatible = "snps,archs-pct";
75 #interrupt-cells = <1>;
76 interrupt-parent = <&core_intc>;
77 interrupts = <20>;
78 };
79 };
80
81 /*
82 * The DW APB ICTL intc on MB is connected to CPU intc via a
83 * DT "invisible" DW APB GPIO block, configured to simply pass thru
84 * interrupts - setup accordinly in platform init (plat-axs10x/ax10x.c)
85 *
86 * So here we mimic a direct connection betwen them, ignoring the
87 * ABPG GPIO. Thus set "interrupts = <24>" (DW APB GPIO to core)
88 * instead of "interrupts = <12>" (DW APB ICTL to DW APB GPIO)
89 *
90 * This intc actually resides on MB, but we move it here to
91 * avoid duplicating the MB dtsi file given that IRQ from
92 * this intc to cpu intc are different for axs101 and axs103
93 */
94 mb_intc: dw-apb-ictl@0xe0012000 {
95 #interrupt-cells = <1>;
96 compatible = "snps,dw-apb-ictl";
97 reg = < 0x0 0xe0012000 0x0 0x200 >;
98 interrupt-controller;
99 interrupt-parent = <&core_intc>;
100 interrupts = < 24 >;
101 };
102
103 memory {
104 device_type = "memory";
105 /* CONFIG_KERNEL_RAM_BASE_ADDRESS needs to match low mem start */
106 reg = <0x0 0x80000000 0x0 0x20000000 /* 512 MiB low mem */
107 0x1 0xc0000000 0x0 0x40000000>; /* 1 GiB highmem */
108 };
109
110 reserved-memory {
111 #address-cells = <2>;
112 #size-cells = <2>;
113 ranges;
114 /*
115 * Move frame buffer out of IOC aperture (0x8z-0xAz).
116 */
117 frame_buffer: frame_buffer@be000000 {
118 compatible = "shared-dma-pool";
119 reg = <0x0 0xbe000000 0x0 0x2000000>;
120 no-map;
121 };
122 };
123 };