blob: 3454abdd33cd5f997deb614ac50055119a21d931 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Bin Meng8d6ed122015-02-02 22:35:28 +08002/*
3 * Copyright (C) 2015, Bin Meng <bmeng.cn@gmail.com>
Bin Meng8d6ed122015-02-02 22:35:28 +08004 */
5
6/dts-v1/;
7
Bin Mengcdffd3b2015-02-05 23:42:28 +08008#include <dt-bindings/mrc/quark.h>
Bin Mengef9e9f92015-05-25 22:35:06 +08009#include <dt-bindings/interrupt-router/intel-irq.h>
Bin Mengcdffd3b2015-02-05 23:42:28 +080010
Bin Meng8d6ed122015-02-02 22:35:28 +080011/include/ "skeleton.dtsi"
Bin Meng770fd332015-07-15 16:23:39 +080012/include/ "rtc.dtsi"
Bin Meng38de0202015-11-13 00:11:22 -080013/include/ "tsc_timer.dtsi"
Bin Meng8d6ed122015-02-02 22:35:28 +080014
15/ {
16 model = "Intel Galileo";
17 compatible = "intel,galileo", "intel,quark";
18
Bin Meng60ccd372015-04-15 12:00:11 +080019 aliases {
Bin Meng4f8d4e92016-01-27 00:56:34 -080020 spi0 = &spi;
Bin Meng60ccd372015-04-15 12:00:11 +080021 };
22
Bin Meng8d6ed122015-02-02 22:35:28 +080023 config {
24 silent_console = <0>;
25 };
26
27 chosen {
28 stdout-path = &pciuart0;
29 };
30
Bin Mengba634572016-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 Meng38de0202015-11-13 00:11:22 -080043 tsc-timer {
44 clock-frequency = <400000000>;
45 };
46
Bin Mengcdffd3b2015-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 Meng8d6ed122015-02-02 22:35:28 +080070 pci {
71 #address-cells = <3>;
72 #size-cells = <2>;
Bin Meng51395ba2015-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 Meng8d6ed122015-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 Meng20e9e162015-12-07 05:28:13 -080084 "ns16550";
Bin Meng51395ba2015-09-03 05:37:26 -070085 u-boot,dm-pre-reloc;
Bin Meng8d6ed122015-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 Mengef9e9f92015-05-25 22:35:06 +080092
Simon Glass32761632016-01-18 20:19:21 -070093 pch@1f,0 {
Bin Mengef9e9f92015-05-25 22:35:06 +080094 reg = <0x0000f800 0 0 0 0>;
Simon Glass32761632016-01-18 20:19:21 -070095 compatible = "intel,pch7";
Bin Meng6e916cc2016-02-01 01:40:47 -080096 #address-cells = <1>;
97 #size-cells = <1>;
Bin Meng9c124322015-09-09 23:20:28 -070098
Simon Glass32761632016-01-18 20:19:21 -070099 irq-router {
Bin Meng0c9f5942018-06-03 19:04:22 -0700100 compatible = "intel,irq-router";
Simon Glass32761632016-01-18 20:19:21 -0700101 intel,pirq-config = "pci";
Bin Meng0651f622016-05-07 07:46:15 -0700102 intel,actl-addr = <0x58>;
Simon Glass32761632016-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 Meng4f8d4e92016-01-27 00:56:34 -0800132 spi: spi {
Simon Glass32761632016-01-18 20:19:21 -0700133 #address-cells = <1>;
134 #size-cells = <0>;
Bin Mengd9406672016-02-01 01:40:37 -0800135 compatible = "intel,ich7-spi";
Simon Glass32761632016-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 Meng8d6ed122015-02-02 22:35:28 +0800149
Bin Meng6e916cc2016-02-01 01:40:47 -0800150 gpioa {
151 compatible = "intel,ich6-gpio";
152 u-boot,dm-pre-reloc;
153 reg = <0 0x20>;
154 bank-name = "A";
155 };
Bin Meng6af4d462015-02-04 16:26:10 +0800156
Bin Meng6e916cc2016-02-01 01:40:47 -0800157 gpiob {
158 compatible = "intel,ich6-gpio";
159 u-boot,dm-pre-reloc;
160 reg = <0x20 0x20>;
161 bank-name = "B";
162 };
163 };
Bin Meng6af4d462015-02-04 16:26:10 +0800164 };
165
Bin Meng8d6ed122015-02-02 22:35:28 +0800166};