Vineet Gupta | 5fa2daa | 2015-03-09 14:33:40 +0530 | [diff] [blame] | 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 | |
Vineet Gupta | 2e8cd93 | 2016-01-19 16:00:42 +0530 | [diff] [blame] | 13 | /include/ "skeleton_hs.dtsi" |
| 14 | |
Vineet Gupta | 5fa2daa | 2015-03-09 14:33:40 +0530 | [diff] [blame] | 15 | / { |
| 16 | compatible = "snps,arc"; |
Eugeniy Paltsev | f862b31 | 2017-06-26 14:47:25 +0300 | [diff] [blame] | 17 | #address-cells = <2>; |
| 18 | #size-cells = <2>; |
Vineet Gupta | 5fa2daa | 2015-03-09 14:33:40 +0530 | [diff] [blame] | 19 | |
| 20 | cpu_card { |
| 21 | compatible = "simple-bus"; |
| 22 | #address-cells = <1>; |
| 23 | #size-cells = <1>; |
| 24 | |
Eugeniy Paltsev | f862b31 | 2017-06-26 14:47:25 +0300 | [diff] [blame] | 25 | ranges = <0x00000000 0x0 0xf0000000 0x10000000>; |
Vineet Gupta | 5fa2daa | 2015-03-09 14:33:40 +0530 | [diff] [blame] | 26 | |
Eugeniy Paltsev | f6a09ba | 2017-08-14 19:12:11 +0300 | [diff] [blame] | 27 | input_clk: input-clk { |
Vineet Gupta | b3d6aba | 2016-01-01 18:48:40 +0530 | [diff] [blame] | 28 | #clock-cells = <0>; |
| 29 | compatible = "fixed-clock"; |
Eugeniy Paltsev | f6a09ba | 2017-08-14 19:12:11 +0300 | [diff] [blame] | 30 | clock-frequency = <33333333>; |
| 31 | }; |
| 32 | |
| 33 | core_clk: core-clk@80 { |
| 34 | compatible = "snps,axs10x-arc-pll-clock"; |
| 35 | reg = <0x80 0x10>, <0x100 0x10>; |
| 36 | #clock-cells = <0>; |
| 37 | clocks = <&input_clk>; |
Eugeniy Paltsev | fbd1cec | 2017-12-09 16:59:17 +0300 | [diff] [blame] | 38 | |
| 39 | /* |
| 40 | * Set initial core pll output frequency to 90MHz. |
| 41 | * It will be applied at the core pll driver probing |
| 42 | * on early boot. |
| 43 | */ |
| 44 | assigned-clocks = <&core_clk>; |
| 45 | assigned-clock-rates = <90000000>; |
Vineet Gupta | b3d6aba | 2016-01-01 18:48:40 +0530 | [diff] [blame] | 46 | }; |
| 47 | |
Vineet Gupta | 9ba7648 | 2016-01-28 09:57:12 +0530 | [diff] [blame] | 48 | core_intc: archs-intc@cpu { |
Vineet Gupta | 5fa2daa | 2015-03-09 14:33:40 +0530 | [diff] [blame] | 49 | compatible = "snps,archs-intc"; |
| 50 | interrupt-controller; |
| 51 | #interrupt-cells = <1>; |
| 52 | }; |
| 53 | |
| 54 | /* |
| 55 | * this GPIO block ORs all interrupts on CPU card (creg,..) |
| 56 | * to uplink only 1 IRQ to ARC core intc |
| 57 | */ |
Alexey Brodkin | ef4c54c | 2019-01-24 15:17:03 +0300 | [diff] [blame] | 58 | dw-apb-gpio@2000 { |
Vineet Gupta | 5fa2daa | 2015-03-09 14:33:40 +0530 | [diff] [blame] | 59 | compatible = "snps,dw-apb-gpio"; |
| 60 | reg = < 0x2000 0x80 >; |
| 61 | #address-cells = <1>; |
| 62 | #size-cells = <0>; |
| 63 | |
| 64 | ictl_intc: gpio-controller@0 { |
| 65 | compatible = "snps,dw-apb-gpio-port"; |
| 66 | gpio-controller; |
| 67 | #gpio-cells = <2>; |
| 68 | snps,nr-gpios = <30>; |
| 69 | reg = <0>; |
| 70 | interrupt-controller; |
| 71 | #interrupt-cells = <2>; |
Vineet Gupta | 9ba7648 | 2016-01-28 09:57:12 +0530 | [diff] [blame] | 72 | interrupt-parent = <&core_intc>; |
Vineet Gupta | 5fa2daa | 2015-03-09 14:33:40 +0530 | [diff] [blame] | 73 | interrupts = <25>; |
| 74 | }; |
| 75 | }; |
| 76 | |
Alexey Brodkin | ef4c54c | 2019-01-24 15:17:03 +0300 | [diff] [blame] | 77 | debug_uart: dw-apb-uart@5000 { |
Vineet Gupta | 5fa2daa | 2015-03-09 14:33:40 +0530 | [diff] [blame] | 78 | compatible = "snps,dw-apb-uart"; |
| 79 | reg = <0x5000 0x100>; |
| 80 | clock-frequency = <33333000>; |
| 81 | interrupt-parent = <&ictl_intc>; |
| 82 | interrupts = <2 4>; |
| 83 | baud = <115200>; |
| 84 | reg-shift = <2>; |
| 85 | reg-io-width = <4>; |
| 86 | }; |
| 87 | |
| 88 | arcpct0: pct { |
| 89 | compatible = "snps,archs-pct"; |
| 90 | #interrupt-cells = <1>; |
Vineet Gupta | 9ba7648 | 2016-01-28 09:57:12 +0530 | [diff] [blame] | 91 | interrupt-parent = <&core_intc>; |
Vineet Gupta | 5fa2daa | 2015-03-09 14:33:40 +0530 | [diff] [blame] | 92 | interrupts = <20>; |
| 93 | }; |
| 94 | }; |
| 95 | |
| 96 | /* |
Eugeniy Paltsev | 678c811 | 2018-07-30 19:26:33 +0300 | [diff] [blame] | 97 | * Mark DMA peripherals connected via IOC port as dma-coherent. We do |
| 98 | * it via overlay because peripherals defined in axs10x_mb.dtsi are |
| 99 | * used for both AXS101 and AXS103 boards and only AXS103 has IOC (so |
| 100 | * only AXS103 board has HW-coherent DMA peripherals) |
| 101 | * We don't need to mark pgu@17000 as dma-coherent because it uses |
| 102 | * external DMA buffer located outside of IOC aperture. |
| 103 | */ |
| 104 | axs10x_mb { |
Alexey Brodkin | ef4c54c | 2019-01-24 15:17:03 +0300 | [diff] [blame] | 105 | ethernet@18000 { |
Eugeniy Paltsev | 678c811 | 2018-07-30 19:26:33 +0300 | [diff] [blame] | 106 | dma-coherent; |
| 107 | }; |
| 108 | |
Alexey Brodkin | ef4c54c | 2019-01-24 15:17:03 +0300 | [diff] [blame] | 109 | ehci@40000 { |
Eugeniy Paltsev | 678c811 | 2018-07-30 19:26:33 +0300 | [diff] [blame] | 110 | dma-coherent; |
| 111 | }; |
| 112 | |
Alexey Brodkin | ef4c54c | 2019-01-24 15:17:03 +0300 | [diff] [blame] | 113 | ohci@60000 { |
Eugeniy Paltsev | 678c811 | 2018-07-30 19:26:33 +0300 | [diff] [blame] | 114 | dma-coherent; |
| 115 | }; |
| 116 | |
Alexey Brodkin | ef4c54c | 2019-01-24 15:17:03 +0300 | [diff] [blame] | 117 | mmc@15000 { |
Eugeniy Paltsev | 678c811 | 2018-07-30 19:26:33 +0300 | [diff] [blame] | 118 | dma-coherent; |
| 119 | }; |
| 120 | }; |
| 121 | |
| 122 | /* |
Vineet Gupta | 0907495 | 2015-08-19 17:23:58 +0530 | [diff] [blame] | 123 | * The DW APB ICTL intc on MB is connected to CPU intc via a |
| 124 | * DT "invisible" DW APB GPIO block, configured to simply pass thru |
| 125 | * interrupts - setup accordinly in platform init (plat-axs10x/ax10x.c) |
| 126 | * |
| 127 | * So here we mimic a direct connection betwen them, ignoring the |
| 128 | * ABPG GPIO. Thus set "interrupts = <24>" (DW APB GPIO to core) |
| 129 | * instead of "interrupts = <12>" (DW APB ICTL to DW APB GPIO) |
Vineet Gupta | 5fa2daa | 2015-03-09 14:33:40 +0530 | [diff] [blame] | 130 | * |
| 131 | * This intc actually resides on MB, but we move it here to |
| 132 | * avoid duplicating the MB dtsi file given that IRQ from |
| 133 | * this intc to cpu intc are different for axs101 and axs103 |
| 134 | */ |
Alexey Brodkin | ef4c54c | 2019-01-24 15:17:03 +0300 | [diff] [blame] | 135 | mb_intc: dw-apb-ictl@e0012000 { |
Vineet Gupta | 5fa2daa | 2015-03-09 14:33:40 +0530 | [diff] [blame] | 136 | #interrupt-cells = <1>; |
| 137 | compatible = "snps,dw-apb-ictl"; |
Eugeniy Paltsev | f862b31 | 2017-06-26 14:47:25 +0300 | [diff] [blame] | 138 | reg = < 0x0 0xe0012000 0x0 0x200 >; |
Vineet Gupta | 5fa2daa | 2015-03-09 14:33:40 +0530 | [diff] [blame] | 139 | interrupt-controller; |
Vineet Gupta | 9ba7648 | 2016-01-28 09:57:12 +0530 | [diff] [blame] | 140 | interrupt-parent = <&core_intc>; |
Vineet Gupta | 5fa2daa | 2015-03-09 14:33:40 +0530 | [diff] [blame] | 141 | interrupts = < 24 >; |
| 142 | }; |
| 143 | |
| 144 | memory { |
Vineet Gupta | 5fa2daa | 2015-03-09 14:33:40 +0530 | [diff] [blame] | 145 | device_type = "memory"; |
Eugeniy Paltsev | 9ed6878 | 2017-08-15 21:13:54 +0300 | [diff] [blame] | 146 | /* CONFIG_LINUX_RAM_BASE needs to match low mem start */ |
Eugeniy Paltsev | f862b31 | 2017-06-26 14:47:25 +0300 | [diff] [blame] | 147 | reg = <0x0 0x80000000 0x0 0x20000000 /* 512 MiB low mem */ |
| 148 | 0x1 0xc0000000 0x0 0x40000000>; /* 1 GiB highmem */ |
Vineet Gupta | 5fa2daa | 2015-03-09 14:33:40 +0530 | [diff] [blame] | 149 | }; |
Alexey Brodkin | cb2ad5e | 2016-04-27 16:59:50 +0300 | [diff] [blame] | 150 | |
| 151 | reserved-memory { |
Eugeniy Paltsev | f862b31 | 2017-06-26 14:47:25 +0300 | [diff] [blame] | 152 | #address-cells = <2>; |
| 153 | #size-cells = <2>; |
Alexey Brodkin | cb2ad5e | 2016-04-27 16:59:50 +0300 | [diff] [blame] | 154 | ranges; |
| 155 | /* |
Alexey Brodkin | ef4c54c | 2019-01-24 15:17:03 +0300 | [diff] [blame] | 156 | * Move frame buffer out of IOC aperture (0x8z-0xaz). |
Alexey Brodkin | cb2ad5e | 2016-04-27 16:59:50 +0300 | [diff] [blame] | 157 | */ |
| 158 | frame_buffer: frame_buffer@be000000 { |
| 159 | compatible = "shared-dma-pool"; |
Eugeniy Paltsev | f862b31 | 2017-06-26 14:47:25 +0300 | [diff] [blame] | 160 | reg = <0x0 0xbe000000 0x0 0x2000000>; |
Alexey Brodkin | cb2ad5e | 2016-04-27 16:59:50 +0300 | [diff] [blame] | 161 | no-map; |
| 162 | }; |
| 163 | }; |
Vineet Gupta | 5fa2daa | 2015-03-09 14:33:40 +0530 | [diff] [blame] | 164 | }; |