1*d2912cb1SThomas Gleixner// SPDX-License-Identifier: GPL-2.0-only 25fa2daaaSVineet Gupta/* 35fa2daaaSVineet Gupta * Copyright (C) 2014, 2015 Synopsys, Inc. (www.synopsys.com) 45fa2daaaSVineet Gupta */ 55fa2daaaSVineet Gupta 65fa2daaaSVineet Gupta/* 75fa2daaaSVineet Gupta * Device tree for AXC003 CPU card: HS38x2 (Dual Core) with IDU intc 85fa2daaaSVineet Gupta */ 95fa2daaaSVineet Gupta 102e8cd938SVineet Gupta/include/ "skeleton_hs_idu.dtsi" 112e8cd938SVineet Gupta 125fa2daaaSVineet Gupta/ { 135fa2daaaSVineet Gupta compatible = "snps,arc"; 14f862b315SEugeniy Paltsev #address-cells = <2>; 15f862b315SEugeniy Paltsev #size-cells = <2>; 165fa2daaaSVineet Gupta 175fa2daaaSVineet Gupta cpu_card { 185fa2daaaSVineet Gupta compatible = "simple-bus"; 195fa2daaaSVineet Gupta #address-cells = <1>; 205fa2daaaSVineet Gupta #size-cells = <1>; 215fa2daaaSVineet Gupta 22f862b315SEugeniy Paltsev ranges = <0x00000000 0x0 0xf0000000 0x10000000>; 235fa2daaaSVineet Gupta 24f6a09bacSEugeniy Paltsev input_clk: input-clk { 25b3d6aba8SVineet Gupta #clock-cells = <0>; 26b3d6aba8SVineet Gupta compatible = "fixed-clock"; 27f6a09bacSEugeniy Paltsev clock-frequency = <33333333>; 28f6a09bacSEugeniy Paltsev }; 29f6a09bacSEugeniy Paltsev 30f6a09bacSEugeniy Paltsev core_clk: core-clk@80 { 31f6a09bacSEugeniy Paltsev compatible = "snps,axs10x-arc-pll-clock"; 32f6a09bacSEugeniy Paltsev reg = <0x80 0x10>, <0x100 0x10>; 33f6a09bacSEugeniy Paltsev #clock-cells = <0>; 34f6a09bacSEugeniy Paltsev clocks = <&input_clk>; 35fbd1cec5SEugeniy Paltsev 36fbd1cec5SEugeniy Paltsev /* 37fbd1cec5SEugeniy Paltsev * Set initial core pll output frequency to 100MHz. 38fbd1cec5SEugeniy Paltsev * It will be applied at the core pll driver probing 39fbd1cec5SEugeniy Paltsev * on early boot. 40fbd1cec5SEugeniy Paltsev */ 41fbd1cec5SEugeniy Paltsev assigned-clocks = <&core_clk>; 42fbd1cec5SEugeniy Paltsev assigned-clock-rates = <100000000>; 43b3d6aba8SVineet Gupta }; 44b3d6aba8SVineet Gupta 459ba7648cSVineet Gupta core_intc: archs-intc@cpu { 465fa2daaaSVineet Gupta compatible = "snps,archs-intc"; 475fa2daaaSVineet Gupta interrupt-controller; 485fa2daaaSVineet Gupta #interrupt-cells = <1>; 495fa2daaaSVineet Gupta }; 505fa2daaaSVineet Gupta 515fa2daaaSVineet Gupta idu_intc: idu-interrupt-controller { 525fa2daaaSVineet Gupta compatible = "snps,archs-idu-intc"; 535fa2daaaSVineet Gupta interrupt-controller; 549ba7648cSVineet Gupta interrupt-parent = <&core_intc>; 55ec69b269SYuriy Kolerov #interrupt-cells = <1>; 565fa2daaaSVineet Gupta }; 575fa2daaaSVineet Gupta 585fa2daaaSVineet Gupta /* 595fa2daaaSVineet Gupta * this GPIO block ORs all interrupts on CPU card (creg,..) 605fa2daaaSVineet Gupta * to uplink only 1 IRQ to ARC core intc 615fa2daaaSVineet Gupta */ 62ef4c54c3SAlexey Brodkin dw-apb-gpio@2000 { 635fa2daaaSVineet Gupta compatible = "snps,dw-apb-gpio"; 645fa2daaaSVineet Gupta reg = < 0x2000 0x80 >; 655fa2daaaSVineet Gupta #address-cells = <1>; 665fa2daaaSVineet Gupta #size-cells = <0>; 675fa2daaaSVineet Gupta 685fa2daaaSVineet Gupta ictl_intc: gpio-controller@0 { 695fa2daaaSVineet Gupta compatible = "snps,dw-apb-gpio-port"; 705fa2daaaSVineet Gupta gpio-controller; 715fa2daaaSVineet Gupta #gpio-cells = <2>; 725fa2daaaSVineet Gupta snps,nr-gpios = <30>; 735fa2daaaSVineet Gupta reg = <0>; 745fa2daaaSVineet Gupta interrupt-controller; 755fa2daaaSVineet Gupta #interrupt-cells = <2>; 765fa2daaaSVineet Gupta interrupt-parent = <&idu_intc>; 77ec69b269SYuriy Kolerov interrupts = <1>; 785fa2daaaSVineet Gupta }; 795fa2daaaSVineet Gupta }; 805fa2daaaSVineet Gupta 81ef4c54c3SAlexey Brodkin debug_uart: dw-apb-uart@5000 { 825fa2daaaSVineet Gupta compatible = "snps,dw-apb-uart"; 835fa2daaaSVineet Gupta reg = <0x5000 0x100>; 845fa2daaaSVineet Gupta clock-frequency = <33333000>; 855fa2daaaSVineet Gupta interrupt-parent = <&ictl_intc>; 865fa2daaaSVineet Gupta interrupts = <2 4>; 875fa2daaaSVineet Gupta baud = <115200>; 885fa2daaaSVineet Gupta reg-shift = <2>; 895fa2daaaSVineet Gupta reg-io-width = <4>; 905fa2daaaSVineet Gupta }; 915fa2daaaSVineet Gupta 925fa2daaaSVineet Gupta arcpct0: pct { 935fa2daaaSVineet Gupta compatible = "snps,archs-pct"; 945fa2daaaSVineet Gupta #interrupt-cells = <1>; 959ba7648cSVineet Gupta interrupt-parent = <&core_intc>; 965fa2daaaSVineet Gupta interrupts = <20>; 975fa2daaaSVineet Gupta }; 985fa2daaaSVineet Gupta }; 995fa2daaaSVineet Gupta 1005fa2daaaSVineet Gupta /* 101678c8110SEugeniy Paltsev * Mark DMA peripherals connected via IOC port as dma-coherent. We do 102678c8110SEugeniy Paltsev * it via overlay because peripherals defined in axs10x_mb.dtsi are 103678c8110SEugeniy Paltsev * used for both AXS101 and AXS103 boards and only AXS103 has IOC (so 104678c8110SEugeniy Paltsev * only AXS103 board has HW-coherent DMA peripherals) 105678c8110SEugeniy Paltsev * We don't need to mark pgu@17000 as dma-coherent because it uses 106678c8110SEugeniy Paltsev * external DMA buffer located outside of IOC aperture. 107678c8110SEugeniy Paltsev */ 108678c8110SEugeniy Paltsev axs10x_mb { 109ef4c54c3SAlexey Brodkin ethernet@18000 { 110678c8110SEugeniy Paltsev dma-coherent; 111678c8110SEugeniy Paltsev }; 112678c8110SEugeniy Paltsev 113ef4c54c3SAlexey Brodkin ehci@40000 { 114678c8110SEugeniy Paltsev dma-coherent; 115678c8110SEugeniy Paltsev }; 116678c8110SEugeniy Paltsev 117ef4c54c3SAlexey Brodkin ohci@60000 { 118678c8110SEugeniy Paltsev dma-coherent; 119678c8110SEugeniy Paltsev }; 120678c8110SEugeniy Paltsev 121ef4c54c3SAlexey Brodkin mmc@15000 { 122678c8110SEugeniy Paltsev dma-coherent; 123678c8110SEugeniy Paltsev }; 124678c8110SEugeniy Paltsev }; 125678c8110SEugeniy Paltsev 126678c8110SEugeniy Paltsev /* 1275fa2daaaSVineet Gupta * This INTC is actually connected to DW APB GPIO 1285fa2daaaSVineet Gupta * which acts as a wire between MB INTC and CPU INTC. 1295fa2daaaSVineet Gupta * GPIO INTC is configured in platform init code 1305fa2daaaSVineet Gupta * and here we mimic direct connection from MB INTC to 1315fa2daaaSVineet Gupta * CPU INTC, thus we set "interrupts = <0 1>" instead of 1325fa2daaaSVineet Gupta * "interrupts = <12>" 1335fa2daaaSVineet Gupta * 1345fa2daaaSVineet Gupta * This intc actually resides on MB, but we move it here to 1355fa2daaaSVineet Gupta * avoid duplicating the MB dtsi file given that IRQ from 1365fa2daaaSVineet Gupta * this intc to cpu intc are different for axs101 and axs103 1375fa2daaaSVineet Gupta */ 138ef4c54c3SAlexey Brodkin mb_intc: dw-apb-ictl@e0012000 { 1395fa2daaaSVineet Gupta #interrupt-cells = <1>; 1405fa2daaaSVineet Gupta compatible = "snps,dw-apb-ictl"; 141f862b315SEugeniy Paltsev reg = < 0x0 0xe0012000 0x0 0x200 >; 1425fa2daaaSVineet Gupta interrupt-controller; 1435fa2daaaSVineet Gupta interrupt-parent = <&idu_intc>; 144ec69b269SYuriy Kolerov interrupts = <0>; 1455fa2daaaSVineet Gupta }; 1465fa2daaaSVineet Gupta 1475fa2daaaSVineet Gupta memory { 1485fa2daaaSVineet Gupta device_type = "memory"; 1499ed68785SEugeniy Paltsev /* CONFIG_LINUX_RAM_BASE needs to match low mem start */ 150f862b315SEugeniy Paltsev reg = <0x0 0x80000000 0x0 0x20000000 /* 512 MiB low mem */ 151f862b315SEugeniy Paltsev 0x1 0xc0000000 0x0 0x40000000>; /* 1 GiB highmem */ 1525fa2daaaSVineet Gupta }; 153cb2ad5e5SAlexey Brodkin 154cb2ad5e5SAlexey Brodkin reserved-memory { 155f862b315SEugeniy Paltsev #address-cells = <2>; 156f862b315SEugeniy Paltsev #size-cells = <2>; 157cb2ad5e5SAlexey Brodkin ranges; 158cb2ad5e5SAlexey Brodkin /* 159ef4c54c3SAlexey Brodkin * Move frame buffer out of IOC aperture (0x8z-0xaz). 160cb2ad5e5SAlexey Brodkin */ 161cb2ad5e5SAlexey Brodkin frame_buffer: frame_buffer@be000000 { 162cb2ad5e5SAlexey Brodkin compatible = "shared-dma-pool"; 163f862b315SEugeniy Paltsev reg = <0x0 0xbe000000 0x0 0x2000000>; 164cb2ad5e5SAlexey Brodkin no-map; 165cb2ad5e5SAlexey Brodkin }; 166cb2ad5e5SAlexey Brodkin }; 1675fa2daaaSVineet Gupta}; 168