blob: f784c50675c6c5c70445836c4f808ecf70ce69b7 [file] [log] [blame]
Bin Meng8d6ed122015-02-02 22:35:28 +08001/*
2 * Copyright (C) 2015, Bin Meng <bmeng.cn@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0+
5 */
6
7/dts-v1/;
8
Bin Mengcdffd3b2015-02-05 23:42:28 +08009#include <dt-bindings/mrc/quark.h>
Bin Mengef9e9f92015-05-25 22:35:06 +080010#include <dt-bindings/interrupt-router/intel-irq.h>
Bin Mengcdffd3b2015-02-05 23:42:28 +080011
Bin Meng8d6ed122015-02-02 22:35:28 +080012/include/ "skeleton.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 Meng38de0202015-11-13 00:11:22 -080032 tsc-timer {
33 clock-frequency = <400000000>;
34 };
35
Bin Mengcdffd3b2015-02-05 23:42:28 +080036 mrc {
37 compatible = "intel,quark-mrc";
38 flags = <MRC_FLAG_SCRAMBLE_EN>;
39 dram-width = <DRAM_WIDTH_X8>;
40 dram-speed = <DRAM_FREQ_800>;
41 dram-type = <DRAM_TYPE_DDR3>;
42 rank-mask = <DRAM_RANK(0)>;
43 chan-mask = <DRAM_CHANNEL(0)>;
44 chan-width = <DRAM_CHANNEL_WIDTH_X16>;
45 addr-mode = <DRAM_ADDR_MODE0>;
46 refresh-rate = <DRAM_REFRESH_RATE_785US>;
47 sr-temp-range = <DRAM_SRT_RANGE_NORMAL>;
48 ron-value = <DRAM_RON_34OHM>;
49 rtt-nom-value = <DRAM_RTT_NOM_120OHM>;
50 rd-odt-value = <DRAM_RD_ODT_OFF>;
51 dram-density = <DRAM_DENSITY_1G>;
52 dram-cl = <6>;
53 dram-ras = <0x0000927c>;
54 dram-wtr = <0x00002710>;
55 dram-rrd = <0x00002710>;
56 dram-faw = <0x00009c40>;
57 };
58
Bin Meng8d6ed122015-02-02 22:35:28 +080059 pci {
60 #address-cells = <3>;
61 #size-cells = <2>;
Bin Meng51395ba2015-09-03 05:37:26 -070062 compatible = "pci-x86";
63 u-boot,dm-pre-reloc;
64 ranges = <0x02000000 0x0 0x90000000 0x90000000 0 0x20000000
65 0x42000000 0x0 0xb0000000 0xb0000000 0 0x20000000
66 0x01000000 0x0 0x2000 0x2000 0 0xe000>;
Bin Meng8d6ed122015-02-02 22:35:28 +080067
68 pciuart0: uart@14,5 {
69 compatible = "pci8086,0936.00",
70 "pci8086,0936",
71 "pciclass,070002",
72 "pciclass,0700",
Bin Meng20e9e162015-12-07 05:28:13 -080073 "ns16550";
Bin Meng51395ba2015-09-03 05:37:26 -070074 u-boot,dm-pre-reloc;
Bin Meng8d6ed122015-02-02 22:35:28 +080075 reg = <0x0000a500 0x0 0x0 0x0 0x0
76 0x0200a510 0x0 0x0 0x0 0x0>;
77 reg-shift = <2>;
78 clock-frequency = <44236800>;
79 current-speed = <115200>;
80 };
Bin Mengef9e9f92015-05-25 22:35:06 +080081
Simon Glass32761632016-01-18 20:19:21 -070082 pch@1f,0 {
Bin Mengef9e9f92015-05-25 22:35:06 +080083 reg = <0x0000f800 0 0 0 0>;
Simon Glass32761632016-01-18 20:19:21 -070084 compatible = "intel,pch7";
Bin Meng6e916cc2016-02-01 01:40:47 -080085 #address-cells = <1>;
86 #size-cells = <1>;
Bin Meng9c124322015-09-09 23:20:28 -070087
Simon Glass32761632016-01-18 20:19:21 -070088 irq-router {
Simon Glass1a44e882016-01-19 21:32:30 -070089 compatible = "intel,quark-irq-router";
Simon Glass32761632016-01-18 20:19:21 -070090 intel,pirq-config = "pci";
Bin Meng0651f622016-05-07 07:46:15 -070091 intel,actl-addr = <0x58>;
Simon Glass32761632016-01-18 20:19:21 -070092 intel,pirq-link = <0x60 8>;
93 intel,pirq-mask = <0xdef8>;
94 intel,pirq-routing = <
95 PCI_BDF(0, 20, 0) INTA PIRQE
96 PCI_BDF(0, 20, 1) INTB PIRQF
97 PCI_BDF(0, 20, 2) INTC PIRQG
98 PCI_BDF(0, 20, 3) INTD PIRQH
99 PCI_BDF(0, 20, 4) INTA PIRQE
100 PCI_BDF(0, 20, 5) INTB PIRQF
101 PCI_BDF(0, 20, 6) INTC PIRQG
102 PCI_BDF(0, 20, 7) INTD PIRQH
103 PCI_BDF(0, 21, 0) INTA PIRQE
104 PCI_BDF(0, 21, 1) INTB PIRQF
105 PCI_BDF(0, 21, 2) INTC PIRQG
106 PCI_BDF(0, 23, 0) INTA PIRQA
107 PCI_BDF(0, 23, 1) INTB PIRQB
108
109 /* PCIe root ports downstream interrupts */
110 PCI_BDF(1, 0, 0) INTA PIRQA
111 PCI_BDF(1, 0, 0) INTB PIRQB
112 PCI_BDF(1, 0, 0) INTC PIRQC
113 PCI_BDF(1, 0, 0) INTD PIRQD
114 PCI_BDF(2, 0, 0) INTA PIRQB
115 PCI_BDF(2, 0, 0) INTB PIRQC
116 PCI_BDF(2, 0, 0) INTC PIRQD
117 PCI_BDF(2, 0, 0) INTD PIRQA
118 >;
119 };
120
Bin Meng4f8d4e92016-01-27 00:56:34 -0800121 spi: spi {
Simon Glass32761632016-01-18 20:19:21 -0700122 #address-cells = <1>;
123 #size-cells = <0>;
Bin Mengd9406672016-02-01 01:40:37 -0800124 compatible = "intel,ich7-spi";
Simon Glass32761632016-01-18 20:19:21 -0700125 spi-flash@0 {
126 #size-cells = <1>;
127 #address-cells = <1>;
128 reg = <0>;
129 compatible = "winbond,w25q64",
130 "spi-flash";
131 memory-map = <0xff800000 0x00800000>;
132 rw-mrc-cache {
133 label = "rw-mrc-cache";
134 reg = <0x00010000 0x00010000>;
135 };
136 };
137 };
Bin Meng8d6ed122015-02-02 22:35:28 +0800138
Bin Meng6e916cc2016-02-01 01:40:47 -0800139 gpioa {
140 compatible = "intel,ich6-gpio";
141 u-boot,dm-pre-reloc;
142 reg = <0 0x20>;
143 bank-name = "A";
144 };
Bin Meng6af4d462015-02-04 16:26:10 +0800145
Bin Meng6e916cc2016-02-01 01:40:47 -0800146 gpiob {
147 compatible = "intel,ich6-gpio";
148 u-boot,dm-pre-reloc;
149 reg = <0x20 0x20>;
150 bank-name = "B";
151 };
152 };
Bin Meng6af4d462015-02-04 16:26:10 +0800153 };
154
Bin Meng8d6ed122015-02-02 22:35:28 +0800155};