blob: 58395b5eb6b80fba5b1b9aa53c8b0f4e4a47318e [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Bin Meng5afa22a2016-02-17 00:16:25 -08002/*
3 * Copyright (C) 2016, Bin Meng <bmeng.cn@gmail.com>
Bin Meng5afa22a2016-02-17 00:16:25 -08004 */
5
6/dts-v1/;
7
Bin Meng56a33085e2018-06-12 01:26:47 -07008#include <dt-bindings/interrupt-router/intel-irq.h>
9
Bin Meng5afa22a2016-02-17 00:16:25 -080010/include/ "skeleton.dtsi"
11/include/ "serial.dtsi"
12/include/ "keyboard.dtsi"
Bin Mengaf5b8d22018-07-19 03:07:33 -070013/include/ "reset.dtsi"
Bin Meng5afa22a2016-02-17 00:16:25 -080014/include/ "rtc.dtsi"
Bin Meng5afa22a2016-02-17 00:16:25 -080015
Bin Meng8967f632021-07-28 12:00:23 +080016#include "tsc_timer.dtsi"
Simon Glassbee77f62020-11-05 06:32:17 -070017#include "smbios.dtsi"
18
Bin Meng5afa22a2016-02-17 00:16:25 -080019/ {
20 model = "Intel Cougar Canyon 2";
21 compatible = "intel,cougarcanyon2", "intel,chiefriver";
22
23 aliases {
24 spi0 = &spi0;
25 };
26
27 config {
28 silent_console = <0>;
29 };
30
31 chosen {
32 stdout-path = "/serial";
33 };
34
Bin Mengc0edfc12018-06-03 19:04:21 -070035 cpus {
36 #address-cells = <1>;
37 #size-cells = <0>;
38
39 cpu@0 {
40 device_type = "cpu";
41 compatible = "intel,core-gen3";
42 reg = <0>;
43 intel,apic-id = <0>;
44 };
45
46 cpu@1 {
47 device_type = "cpu";
48 compatible = "intel,core-gen3";
49 reg = <1>;
50 intel,apic-id = <1>;
51 };
52
53 cpu@2 {
54 device_type = "cpu";
55 compatible = "intel,core-gen3";
56 reg = <2>;
57 intel,apic-id = <2>;
58 };
59
60 cpu@3 {
61 device_type = "cpu";
62 compatible = "intel,core-gen3";
63 reg = <3>;
64 intel,apic-id = <3>;
65 };
66 };
67
Bin Meng5afa22a2016-02-17 00:16:25 -080068 microcode {
69 update@0 {
70#include "microcode/m12306a2_00000008.dtsi"
71 };
72 update@1 {
73#include "microcode/m12306a4_00000007.dtsi"
74 };
75 update@2 {
76#include "microcode/m12306a5_00000007.dtsi"
77 };
78 update@3 {
79#include "microcode/m12306a8_00000010.dtsi"
80 };
81 update@4 {
82#include "microcode/m12306a9_0000001b.dtsi"
83 };
84 };
85
86 fsp {
87 compatible = "intel,ivybridge-fsp";
88 fsp,enable-ht;
89 };
90
91 pci {
92 #address-cells = <3>;
93 #size-cells = <2>;
94 compatible = "pci-x86";
95 u-boot,dm-pre-reloc;
96 ranges = <0x02000000 0x0 0xc0000000 0xc0000000 0 0x10000000
97 0x42000000 0x0 0xd0000000 0xd0000000 0 0x10000000
98 0x01000000 0x0 0x2000 0x2000 0 0xe000>;
99
100 pch@1f,0 {
101 reg = <0x0000f800 0 0 0 0>;
102 compatible = "intel,bd82x6x";
103 u-boot,dm-pre-reloc;
104 #address-cells = <1>;
105 #size-cells = <1>;
106
Bin Meng56a33085e2018-06-12 01:26:47 -0700107 irq-router {
108 compatible = "intel,irq-router";
109 intel,pirq-config = "pci";
110 intel,actl-8bit;
111 intel,actl-addr = <0x44>;
112 intel,pirq-link = <0x60 8>;
113 intel,pirq-regmap = <
114 PIRQA 0
115 PIRQB 1
116 PIRQC 2
117 PIRQD 3
118 PIRQE 8
119 PIRQF 9
120 PIRQG 10
121 PIRQH 11
122 >;
123 intel,pirq-mask = <0xcee0>;
124 intel,pirq-routing = <
125 /* Panther Point PCI devices */
126 PCI_BDF(0, 2, 0) INTA PIRQA
127 PCI_BDF(0, 20, 0) INTA PIRQA
128 PCI_BDF(0, 22, 0) INTA PIRQA
129 PCI_BDF(0, 22, 1) INTB PIRQB
130 PCI_BDF(0, 22, 2) INTC PIRQC
131 PCI_BDF(0, 22, 3) INTD PIRQD
132 PCI_BDF(0, 25, 0) INTA PIRQA
133 PCI_BDF(0, 26, 0) INTA PIRQA
134 PCI_BDF(0, 27, 0) INTB PIRQA
135 PCI_BDF(0, 28, 0) INTA PIRQA
136 PCI_BDF(0, 28, 1) INTB PIRQB
137 PCI_BDF(0, 28, 2) INTC PIRQC
138 PCI_BDF(0, 28, 3) INTD PIRQD
139 PCI_BDF(0, 28, 4) INTA PIRQA
140 PCI_BDF(0, 28, 5) INTB PIRQB
141 PCI_BDF(0, 28, 6) INTC PIRQC
142 PCI_BDF(0, 28, 7) INTD PIRQD
143 PCI_BDF(0, 29, 0) INTA PIRQA
144 PCI_BDF(0, 31, 2) INTB PIRQB
145 PCI_BDF(0, 31, 3) INTC PIRQC
146 PCI_BDF(0, 31, 5) INTB PIRQB
147 PCI_BDF(0, 31, 6) INTC PIRQC
148 >;
149 };
150
Bin Meng5afa22a2016-02-17 00:16:25 -0800151 spi0: spi {
152 #address-cells = <1>;
153 #size-cells = <0>;
154 compatible = "intel,ich9-spi";
Bin Meng52122c82018-06-03 19:04:16 -0700155 intel,spi-lock-down;
156
Bin Meng5afa22a2016-02-17 00:16:25 -0800157 spi-flash@0 {
158 reg = <0>;
Bin Mengac54e252021-07-29 20:18:23 +0800159 m25p,fast-read;
Neil Armstrongf6625b42019-02-10 10:16:21 +0000160 compatible = "winbond,w25q64bv", "jedec,spi-nor";
Bin Meng5afa22a2016-02-17 00:16:25 -0800161 memory-map = <0xff800000 0x00800000>;
162 };
163 };
164
165 gpioa {
166 compatible = "intel,ich6-gpio";
167 u-boot,dm-pre-reloc;
168 reg = <0 0x10>;
169 bank-name = "A";
170 };
171
172 gpiob {
173 compatible = "intel,ich6-gpio";
174 u-boot,dm-pre-reloc;
175 reg = <0x30 0x10>;
176 bank-name = "B";
177 };
178
179 gpioc {
180 compatible = "intel,ich6-gpio";
181 u-boot,dm-pre-reloc;
182 reg = <0x40 0x10>;
183 bank-name = "C";
184 };
185 };
186 };
187
188};