blob: d86fdc06fdd1029f0879d79d4e2f435bcd659189 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Bin Mengafee3fb2015-02-02 22:35:28 +08002/*
3 * Copyright (C) 2015, Bin Meng <bmeng.cn@gmail.com>
Bin Mengafee3fb2015-02-02 22:35:28 +08004 */
5
6/dts-v1/;
7
Bin Meng20c34112015-02-05 23:42:28 +08008#include <dt-bindings/mrc/quark.h>
Bin Meng05b98ec2015-05-25 22:35:06 +08009#include <dt-bindings/interrupt-router/intel-irq.h>
Bin Meng20c34112015-02-05 23:42:28 +080010
Bin Mengafee3fb2015-02-02 22:35:28 +080011/include/ "skeleton.dtsi"
Bin Meng93f8a312015-07-15 16:23:39 +080012/include/ "rtc.dtsi"
Bin Meng80af3982015-11-13 00:11:22 -080013/include/ "tsc_timer.dtsi"
Bin Mengafee3fb2015-02-02 22:35:28 +080014
15/ {
16 model = "Intel Galileo";
17 compatible = "intel,galileo", "intel,quark";
18
Bin Meng0a9bb482015-04-15 12:00:11 +080019 aliases {
Bin Meng81aaa3d2016-01-27 00:56:34 -080020 spi0 = &spi;
Bin Meng0a9bb482015-04-15 12:00:11 +080021 };
22
Bin Mengafee3fb2015-02-02 22:35:28 +080023 config {
24 silent_console = <0>;
25 };
26
27 chosen {
28 stdout-path = &pciuart0;
29 };
30
Bin Meng0ac8d5e2016-05-22 01:45:30 -070031 cpus {
32 #address-cells = <1>;
33 #size-cells = <0>;
34
35 cpu@0 {
36 device_type = "cpu";
37 compatible = "cpu-x86";
38 reg = <0>;
39 intel,apic-id = <0>;
40 };
41 };
42
Bin Meng80af3982015-11-13 00:11:22 -080043 tsc-timer {
44 clock-frequency = <400000000>;
45 };
46
Bin Meng20c34112015-02-05 23:42:28 +080047 mrc {
48 compatible = "intel,quark-mrc";
49 flags = <MRC_FLAG_SCRAMBLE_EN>;
50 dram-width = <DRAM_WIDTH_X8>;
51 dram-speed = <DRAM_FREQ_800>;
52 dram-type = <DRAM_TYPE_DDR3>;
53 rank-mask = <DRAM_RANK(0)>;
54 chan-mask = <DRAM_CHANNEL(0)>;
55 chan-width = <DRAM_CHANNEL_WIDTH_X16>;
56 addr-mode = <DRAM_ADDR_MODE0>;
57 refresh-rate = <DRAM_REFRESH_RATE_785US>;
58 sr-temp-range = <DRAM_SRT_RANGE_NORMAL>;
59 ron-value = <DRAM_RON_34OHM>;
60 rtt-nom-value = <DRAM_RTT_NOM_120OHM>;
61 rd-odt-value = <DRAM_RD_ODT_OFF>;
62 dram-density = <DRAM_DENSITY_1G>;
63 dram-cl = <6>;
64 dram-ras = <0x0000927c>;
65 dram-wtr = <0x00002710>;
66 dram-rrd = <0x00002710>;
67 dram-faw = <0x00009c40>;
68 };
69
Bin Mengafee3fb2015-02-02 22:35:28 +080070 pci {
71 #address-cells = <3>;
72 #size-cells = <2>;
Bin Meng31b5aeb2015-09-03 05:37:26 -070073 compatible = "pci-x86";
74 u-boot,dm-pre-reloc;
75 ranges = <0x02000000 0x0 0x90000000 0x90000000 0 0x20000000
76 0x42000000 0x0 0xb0000000 0xb0000000 0 0x20000000
77 0x01000000 0x0 0x2000 0x2000 0 0xe000>;
Bin Mengafee3fb2015-02-02 22:35:28 +080078
79 pciuart0: uart@14,5 {
80 compatible = "pci8086,0936.00",
81 "pci8086,0936",
82 "pciclass,070002",
83 "pciclass,0700",
Bin Mengc5c5c202015-12-07 05:28:13 -080084 "ns16550";
Bin Meng31b5aeb2015-09-03 05:37:26 -070085 u-boot,dm-pre-reloc;
Bin Mengafee3fb2015-02-02 22:35:28 +080086 reg = <0x0000a500 0x0 0x0 0x0 0x0
87 0x0200a510 0x0 0x0 0x0 0x0>;
88 reg-shift = <2>;
89 clock-frequency = <44236800>;
90 current-speed = <115200>;
91 };
Bin Meng05b98ec2015-05-25 22:35:06 +080092
Simon Glassf2b85ab2016-01-18 20:19:21 -070093 pch@1f,0 {
Bin Meng05b98ec2015-05-25 22:35:06 +080094 reg = <0x0000f800 0 0 0 0>;
Simon Glassf2b85ab2016-01-18 20:19:21 -070095 compatible = "intel,pch7";
Bin Meng3ddc1c72016-02-01 01:40:47 -080096 #address-cells = <1>;
97 #size-cells = <1>;
Bin Meng5bf0f7f2015-09-09 23:20:28 -070098
Simon Glassf2b85ab2016-01-18 20:19:21 -070099 irq-router {
Simon Glass117bfc72016-01-19 21:32:30 -0700100 compatible = "intel,quark-irq-router";
Simon Glassf2b85ab2016-01-18 20:19:21 -0700101 intel,pirq-config = "pci";
Bin Mengce8dd772016-05-07 07:46:15 -0700102 intel,actl-addr = <0x58>;
Simon Glassf2b85ab2016-01-18 20:19:21 -0700103 intel,pirq-link = <0x60 8>;
104 intel,pirq-mask = <0xdef8>;
105 intel,pirq-routing = <
106 PCI_BDF(0, 20, 0) INTA PIRQE
107 PCI_BDF(0, 20, 1) INTB PIRQF
108 PCI_BDF(0, 20, 2) INTC PIRQG
109 PCI_BDF(0, 20, 3) INTD PIRQH
110 PCI_BDF(0, 20, 4) INTA PIRQE
111 PCI_BDF(0, 20, 5) INTB PIRQF
112 PCI_BDF(0, 20, 6) INTC PIRQG
113 PCI_BDF(0, 20, 7) INTD PIRQH
114 PCI_BDF(0, 21, 0) INTA PIRQE
115 PCI_BDF(0, 21, 1) INTB PIRQF
116 PCI_BDF(0, 21, 2) INTC PIRQG
117 PCI_BDF(0, 23, 0) INTA PIRQA
118 PCI_BDF(0, 23, 1) INTB PIRQB
119
120 /* PCIe root ports downstream interrupts */
121 PCI_BDF(1, 0, 0) INTA PIRQA
122 PCI_BDF(1, 0, 0) INTB PIRQB
123 PCI_BDF(1, 0, 0) INTC PIRQC
124 PCI_BDF(1, 0, 0) INTD PIRQD
125 PCI_BDF(2, 0, 0) INTA PIRQB
126 PCI_BDF(2, 0, 0) INTB PIRQC
127 PCI_BDF(2, 0, 0) INTC PIRQD
128 PCI_BDF(2, 0, 0) INTD PIRQA
129 >;
130 };
131
Bin Meng81aaa3d2016-01-27 00:56:34 -0800132 spi: spi {
Simon Glassf2b85ab2016-01-18 20:19:21 -0700133 #address-cells = <1>;
134 #size-cells = <0>;
Bin Meng1f9eb592016-02-01 01:40:37 -0800135 compatible = "intel,ich7-spi";
Simon Glassf2b85ab2016-01-18 20:19:21 -0700136 spi-flash@0 {
137 #size-cells = <1>;
138 #address-cells = <1>;
139 reg = <0>;
140 compatible = "winbond,w25q64",
141 "spi-flash";
142 memory-map = <0xff800000 0x00800000>;
143 rw-mrc-cache {
144 label = "rw-mrc-cache";
145 reg = <0x00010000 0x00010000>;
146 };
147 };
148 };
Bin Meng3ddc1c72016-02-01 01:40:47 -0800149
150 gpioa {
151 compatible = "intel,ich6-gpio";
152 u-boot,dm-pre-reloc;
153 reg = <0 0x20>;
154 bank-name = "A";
155 };
156
157 gpiob {
158 compatible = "intel,ich6-gpio";
159 u-boot,dm-pre-reloc;
160 reg = <0x20 0x20>;
161 bank-name = "B";
162 };
Bin Meng05b98ec2015-05-25 22:35:06 +0800163 };
Bin Mengafee3fb2015-02-02 22:35:28 +0800164 };
165
Bin Mengafee3fb2015-02-02 22:35:28 +0800166};