blob: 5de4568679a46d0c5a3b001d0050d45f6f34d77e [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 Mengaf5b8d22018-07-19 03:07:33 -070012/include/ "reset.dtsi"
Bin Meng770fd332015-07-15 16:23:39 +080013/include/ "rtc.dtsi"
Bin Meng38de0202015-11-13 00:11:22 -080014/include/ "tsc_timer.dtsi"
Bin Meng8d6ed122015-02-02 22:35:28 +080015
16/ {
17 model = "Intel Galileo";
18 compatible = "intel,galileo", "intel,quark";
19
Bin Meng60ccd372015-04-15 12:00:11 +080020 aliases {
Bin Meng4f8d4e92016-01-27 00:56:34 -080021 spi0 = &spi;
Bin Meng60ccd372015-04-15 12:00:11 +080022 };
23
Bin Meng8d6ed122015-02-02 22:35:28 +080024 config {
25 silent_console = <0>;
26 };
27
28 chosen {
29 stdout-path = &pciuart0;
30 };
31
Bin Mengba634572016-05-22 01:45:30 -070032 cpus {
33 #address-cells = <1>;
34 #size-cells = <0>;
35
36 cpu@0 {
37 device_type = "cpu";
38 compatible = "cpu-x86";
39 reg = <0>;
40 intel,apic-id = <0>;
41 };
42 };
43
Bin Meng38de0202015-11-13 00:11:22 -080044 tsc-timer {
45 clock-frequency = <400000000>;
46 };
47
Bin Mengcdffd3b2015-02-05 23:42:28 +080048 mrc {
49 compatible = "intel,quark-mrc";
50 flags = <MRC_FLAG_SCRAMBLE_EN>;
51 dram-width = <DRAM_WIDTH_X8>;
52 dram-speed = <DRAM_FREQ_800>;
53 dram-type = <DRAM_TYPE_DDR3>;
54 rank-mask = <DRAM_RANK(0)>;
55 chan-mask = <DRAM_CHANNEL(0)>;
56 chan-width = <DRAM_CHANNEL_WIDTH_X16>;
57 addr-mode = <DRAM_ADDR_MODE0>;
58 refresh-rate = <DRAM_REFRESH_RATE_785US>;
59 sr-temp-range = <DRAM_SRT_RANGE_NORMAL>;
60 ron-value = <DRAM_RON_34OHM>;
61 rtt-nom-value = <DRAM_RTT_NOM_120OHM>;
62 rd-odt-value = <DRAM_RD_ODT_OFF>;
63 dram-density = <DRAM_DENSITY_1G>;
64 dram-cl = <6>;
65 dram-ras = <0x0000927c>;
66 dram-wtr = <0x00002710>;
67 dram-rrd = <0x00002710>;
68 dram-faw = <0x00009c40>;
69 };
70
Bin Meng8d6ed122015-02-02 22:35:28 +080071 pci {
72 #address-cells = <3>;
73 #size-cells = <2>;
Bin Meng51395ba2015-09-03 05:37:26 -070074 compatible = "pci-x86";
75 u-boot,dm-pre-reloc;
76 ranges = <0x02000000 0x0 0x90000000 0x90000000 0 0x20000000
77 0x42000000 0x0 0xb0000000 0xb0000000 0 0x20000000
78 0x01000000 0x0 0x2000 0x2000 0 0xe000>;
Bin Meng8d6ed122015-02-02 22:35:28 +080079
80 pciuart0: uart@14,5 {
81 compatible = "pci8086,0936.00",
82 "pci8086,0936",
83 "pciclass,070002",
84 "pciclass,0700",
Bin Meng20e9e162015-12-07 05:28:13 -080085 "ns16550";
Bin Meng51395ba2015-09-03 05:37:26 -070086 u-boot,dm-pre-reloc;
Bin Meng8d6ed122015-02-02 22:35:28 +080087 reg = <0x0000a500 0x0 0x0 0x0 0x0
88 0x0200a510 0x0 0x0 0x0 0x0>;
89 reg-shift = <2>;
90 clock-frequency = <44236800>;
91 current-speed = <115200>;
92 };
Bin Mengef9e9f92015-05-25 22:35:06 +080093
Simon Glass32761632016-01-18 20:19:21 -070094 pch@1f,0 {
Bin Mengef9e9f92015-05-25 22:35:06 +080095 reg = <0x0000f800 0 0 0 0>;
Simon Glass32761632016-01-18 20:19:21 -070096 compatible = "intel,pch7";
Bin Meng6e916cc2016-02-01 01:40:47 -080097 #address-cells = <1>;
98 #size-cells = <1>;
Bin Meng9c124322015-09-09 23:20:28 -070099
Simon Glass32761632016-01-18 20:19:21 -0700100 irq-router {
Bin Meng0c9f5942018-06-03 19:04:22 -0700101 compatible = "intel,irq-router";
Simon Glass32761632016-01-18 20:19:21 -0700102 intel,pirq-config = "pci";
Bin Meng0651f622016-05-07 07:46:15 -0700103 intel,actl-addr = <0x58>;
Simon Glass32761632016-01-18 20:19:21 -0700104 intel,pirq-link = <0x60 8>;
105 intel,pirq-mask = <0xdef8>;
106 intel,pirq-routing = <
107 PCI_BDF(0, 20, 0) INTA PIRQE
108 PCI_BDF(0, 20, 1) INTB PIRQF
109 PCI_BDF(0, 20, 2) INTC PIRQG
110 PCI_BDF(0, 20, 3) INTD PIRQH
111 PCI_BDF(0, 20, 4) INTA PIRQE
112 PCI_BDF(0, 20, 5) INTB PIRQF
113 PCI_BDF(0, 20, 6) INTC PIRQG
114 PCI_BDF(0, 20, 7) INTD PIRQH
115 PCI_BDF(0, 21, 0) INTA PIRQE
116 PCI_BDF(0, 21, 1) INTB PIRQF
117 PCI_BDF(0, 21, 2) INTC PIRQG
118 PCI_BDF(0, 23, 0) INTA PIRQA
119 PCI_BDF(0, 23, 1) INTB PIRQB
120
121 /* PCIe root ports downstream interrupts */
122 PCI_BDF(1, 0, 0) INTA PIRQA
123 PCI_BDF(1, 0, 0) INTB PIRQB
124 PCI_BDF(1, 0, 0) INTC PIRQC
125 PCI_BDF(1, 0, 0) INTD PIRQD
126 PCI_BDF(2, 0, 0) INTA PIRQB
127 PCI_BDF(2, 0, 0) INTB PIRQC
128 PCI_BDF(2, 0, 0) INTC PIRQD
129 PCI_BDF(2, 0, 0) INTD PIRQA
130 >;
131 };
132
Bin Meng4f8d4e92016-01-27 00:56:34 -0800133 spi: spi {
Simon Glass32761632016-01-18 20:19:21 -0700134 #address-cells = <1>;
135 #size-cells = <0>;
Bin Mengd9406672016-02-01 01:40:37 -0800136 compatible = "intel,ich7-spi";
Simon Glass32761632016-01-18 20:19:21 -0700137 spi-flash@0 {
138 #size-cells = <1>;
139 #address-cells = <1>;
140 reg = <0>;
141 compatible = "winbond,w25q64",
Neil Armstrongf6625b42019-02-10 10:16:21 +0000142 "jedec,spi-nor";
Simon Glass32761632016-01-18 20:19:21 -0700143 memory-map = <0xff800000 0x00800000>;
144 rw-mrc-cache {
145 label = "rw-mrc-cache";
146 reg = <0x00010000 0x00010000>;
147 };
148 };
149 };
Bin Meng8d6ed122015-02-02 22:35:28 +0800150
Bin Meng6e916cc2016-02-01 01:40:47 -0800151 gpioa {
152 compatible = "intel,ich6-gpio";
153 u-boot,dm-pre-reloc;
154 reg = <0 0x20>;
155 bank-name = "A";
156 };
Bin Meng6af4d462015-02-04 16:26:10 +0800157
Bin Meng6e916cc2016-02-01 01:40:47 -0800158 gpiob {
159 compatible = "intel,ich6-gpio";
160 u-boot,dm-pre-reloc;
161 reg = <0x20 0x20>;
162 bank-name = "B";
163 };
164 };
Bin Meng6af4d462015-02-04 16:26:10 +0800165 };
166
Bin Meng8d6ed122015-02-02 22:35:28 +0800167};