0001 // SPDX-License-Identifier: GPL-2.0
0002 /dts-v1/;
0003
0004 / {
0005 compatible = "cdns,xtensa-iss";
0006 #address-cells = <1>;
0007 #size-cells = <1>;
0008 interrupt-parent = <&pic>;
0009
0010 chosen {
0011 bootargs = "console=ttyS0,115200n8 debug";
0012 };
0013
0014 memory@0 {
0015 device_type = "memory";
0016 reg = <0x00000000 0x80000000>;
0017 };
0018
0019 cpus {
0020 #address-cells = <1>;
0021 #size-cells = <0>;
0022 cpu@0 {
0023 compatible = "cdns,xtensa-cpu";
0024 reg = <0>;
0025 clocks = <&osc>;
0026 };
0027 };
0028
0029 clocks {
0030 osc: osc {
0031 #clock-cells = <0>;
0032 compatible = "fixed-clock";
0033 clock-frequency = <40000000>;
0034 };
0035 };
0036
0037 pic: pic {
0038 compatible = "cdns,xtensa-pic";
0039 /* one cell: internal irq number,
0040 * two cells: second cell == 0: internal irq number
0041 * second cell == 1: external irq number
0042 */
0043 #address-cells = <0>;
0044 #interrupt-cells = <2>;
0045 interrupt-controller;
0046 };
0047
0048 pci {
0049 compatible = "pci-host-ecam-generic";
0050 device_type = "pci";
0051 #address-cells = <3>;
0052 #size-cells = <2>;
0053 #interrupt-cells = <0x1>;
0054
0055 bus-range = <0x0 0x3e>;
0056 reg = <0xf0100000 0x03f00000>;
0057
0058 // BUS_ADDRESS(3) CPU_PHYSICAL(1) SIZE(2)
0059 ranges = <0x01000000 0x0 0x00000000 0xf0000000 0x0 0x00010000>,
0060 <0x02000000 0x0 0xf4000000 0xf4000000 0x0 0x08000000>;
0061
0062 // PCI_DEVICE(3) INT#(1) CONTROLLER(PHANDLE) CONTROLLER_DATA(2)
0063 interrupt-map = <
0064 0x0000 0x0 0x0 0x1 &pic 0x0 0x1
0065 0x0800 0x0 0x0 0x1 &pic 0x1 0x1
0066 0x1000 0x0 0x0 0x1 &pic 0x2 0x1
0067 0x1800 0x0 0x0 0x1 &pic 0x3 0x1
0068 >;
0069
0070 interrupt-map-mask = <0x1800 0x0 0x0 0x7>;
0071 };
0072 };