Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
Bin Meng | 8d6ed12 | 2015-02-02 22:35:28 +0800 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2015, Bin Meng <bmeng.cn@gmail.com> |
Bin Meng | 8d6ed12 | 2015-02-02 22:35:28 +0800 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | /dts-v1/; |
| 7 | |
Bin Meng | cdffd3b | 2015-02-05 23:42:28 +0800 | [diff] [blame] | 8 | #include <dt-bindings/mrc/quark.h> |
Bin Meng | ef9e9f9 | 2015-05-25 22:35:06 +0800 | [diff] [blame] | 9 | #include <dt-bindings/interrupt-router/intel-irq.h> |
Bin Meng | cdffd3b | 2015-02-05 23:42:28 +0800 | [diff] [blame] | 10 | |
Bin Meng | 8d6ed12 | 2015-02-02 22:35:28 +0800 | [diff] [blame] | 11 | /include/ "skeleton.dtsi" |
Bin Meng | af5b8d2 | 2018-07-19 03:07:33 -0700 | [diff] [blame] | 12 | /include/ "reset.dtsi" |
Bin Meng | 770fd33 | 2015-07-15 16:23:39 +0800 | [diff] [blame] | 13 | /include/ "rtc.dtsi" |
Bin Meng | 8967f63 | 2021-07-28 12:00:23 +0800 | [diff] [blame] | 14 | |
| 15 | #include "tsc_timer.dtsi" |
Bin Meng | 8d6ed12 | 2015-02-02 22:35:28 +0800 | [diff] [blame] | 16 | |
| 17 | / { |
| 18 | model = "Intel Galileo"; |
| 19 | compatible = "intel,galileo", "intel,quark"; |
| 20 | |
Bin Meng | 60ccd37 | 2015-04-15 12:00:11 +0800 | [diff] [blame] | 21 | aliases { |
Bin Meng | 4f8d4e9 | 2016-01-27 00:56:34 -0800 | [diff] [blame] | 22 | spi0 = &spi; |
Bin Meng | 60ccd37 | 2015-04-15 12:00:11 +0800 | [diff] [blame] | 23 | }; |
| 24 | |
Bin Meng | 8d6ed12 | 2015-02-02 22:35:28 +0800 | [diff] [blame] | 25 | config { |
| 26 | silent_console = <0>; |
| 27 | }; |
| 28 | |
| 29 | chosen { |
| 30 | stdout-path = &pciuart0; |
| 31 | }; |
| 32 | |
Bin Meng | ba63457 | 2016-05-22 01:45:30 -0700 | [diff] [blame] | 33 | cpus { |
| 34 | #address-cells = <1>; |
| 35 | #size-cells = <0>; |
| 36 | |
| 37 | cpu@0 { |
| 38 | device_type = "cpu"; |
| 39 | compatible = "cpu-x86"; |
| 40 | reg = <0>; |
| 41 | intel,apic-id = <0>; |
| 42 | }; |
| 43 | }; |
| 44 | |
Bin Meng | cdffd3b | 2015-02-05 23:42:28 +0800 | [diff] [blame] | 45 | mrc { |
| 46 | compatible = "intel,quark-mrc"; |
| 47 | flags = <MRC_FLAG_SCRAMBLE_EN>; |
| 48 | dram-width = <DRAM_WIDTH_X8>; |
| 49 | dram-speed = <DRAM_FREQ_800>; |
| 50 | dram-type = <DRAM_TYPE_DDR3>; |
| 51 | rank-mask = <DRAM_RANK(0)>; |
| 52 | chan-mask = <DRAM_CHANNEL(0)>; |
| 53 | chan-width = <DRAM_CHANNEL_WIDTH_X16>; |
| 54 | addr-mode = <DRAM_ADDR_MODE0>; |
| 55 | refresh-rate = <DRAM_REFRESH_RATE_785US>; |
| 56 | sr-temp-range = <DRAM_SRT_RANGE_NORMAL>; |
| 57 | ron-value = <DRAM_RON_34OHM>; |
| 58 | rtt-nom-value = <DRAM_RTT_NOM_120OHM>; |
| 59 | rd-odt-value = <DRAM_RD_ODT_OFF>; |
| 60 | dram-density = <DRAM_DENSITY_1G>; |
| 61 | dram-cl = <6>; |
| 62 | dram-ras = <0x0000927c>; |
| 63 | dram-wtr = <0x00002710>; |
| 64 | dram-rrd = <0x00002710>; |
| 65 | dram-faw = <0x00009c40>; |
| 66 | }; |
| 67 | |
Bin Meng | 8d6ed12 | 2015-02-02 22:35:28 +0800 | [diff] [blame] | 68 | pci { |
| 69 | #address-cells = <3>; |
| 70 | #size-cells = <2>; |
Bin Meng | 51395ba | 2015-09-03 05:37:26 -0700 | [diff] [blame] | 71 | compatible = "pci-x86"; |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 72 | bootph-all; |
Bin Meng | 51395ba | 2015-09-03 05:37:26 -0700 | [diff] [blame] | 73 | ranges = <0x02000000 0x0 0x90000000 0x90000000 0 0x20000000 |
| 74 | 0x42000000 0x0 0xb0000000 0xb0000000 0 0x20000000 |
| 75 | 0x01000000 0x0 0x2000 0x2000 0 0xe000>; |
Bin Meng | 8d6ed12 | 2015-02-02 22:35:28 +0800 | [diff] [blame] | 76 | |
| 77 | pciuart0: uart@14,5 { |
| 78 | compatible = "pci8086,0936.00", |
| 79 | "pci8086,0936", |
| 80 | "pciclass,070002", |
| 81 | "pciclass,0700", |
Bin Meng | 20e9e16 | 2015-12-07 05:28:13 -0800 | [diff] [blame] | 82 | "ns16550"; |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 83 | bootph-all; |
Bin Meng | 8d6ed12 | 2015-02-02 22:35:28 +0800 | [diff] [blame] | 84 | reg = <0x0000a500 0x0 0x0 0x0 0x0 |
| 85 | 0x0200a510 0x0 0x0 0x0 0x0>; |
| 86 | reg-shift = <2>; |
| 87 | clock-frequency = <44236800>; |
| 88 | current-speed = <115200>; |
| 89 | }; |
Bin Meng | ef9e9f9 | 2015-05-25 22:35:06 +0800 | [diff] [blame] | 90 | |
Simon Glass | 3276163 | 2016-01-18 20:19:21 -0700 | [diff] [blame] | 91 | pch@1f,0 { |
Bin Meng | ef9e9f9 | 2015-05-25 22:35:06 +0800 | [diff] [blame] | 92 | reg = <0x0000f800 0 0 0 0>; |
Simon Glass | 3276163 | 2016-01-18 20:19:21 -0700 | [diff] [blame] | 93 | compatible = "intel,pch7"; |
Bin Meng | 6e916cc | 2016-02-01 01:40:47 -0800 | [diff] [blame] | 94 | #address-cells = <1>; |
| 95 | #size-cells = <1>; |
Bin Meng | 9c12432 | 2015-09-09 23:20:28 -0700 | [diff] [blame] | 96 | |
Simon Glass | 3276163 | 2016-01-18 20:19:21 -0700 | [diff] [blame] | 97 | irq-router { |
Bin Meng | 0c9f594 | 2018-06-03 19:04:22 -0700 | [diff] [blame] | 98 | compatible = "intel,irq-router"; |
Simon Glass | 3276163 | 2016-01-18 20:19:21 -0700 | [diff] [blame] | 99 | intel,pirq-config = "pci"; |
Bin Meng | 0651f62 | 2016-05-07 07:46:15 -0700 | [diff] [blame] | 100 | intel,actl-addr = <0x58>; |
Simon Glass | 3276163 | 2016-01-18 20:19:21 -0700 | [diff] [blame] | 101 | intel,pirq-link = <0x60 8>; |
| 102 | intel,pirq-mask = <0xdef8>; |
| 103 | intel,pirq-routing = < |
| 104 | PCI_BDF(0, 20, 0) INTA PIRQE |
| 105 | PCI_BDF(0, 20, 1) INTB PIRQF |
| 106 | PCI_BDF(0, 20, 2) INTC PIRQG |
| 107 | PCI_BDF(0, 20, 3) INTD PIRQH |
| 108 | PCI_BDF(0, 20, 4) INTA PIRQE |
| 109 | PCI_BDF(0, 20, 5) INTB PIRQF |
| 110 | PCI_BDF(0, 20, 6) INTC PIRQG |
| 111 | PCI_BDF(0, 20, 7) INTD PIRQH |
| 112 | PCI_BDF(0, 21, 0) INTA PIRQE |
| 113 | PCI_BDF(0, 21, 1) INTB PIRQF |
| 114 | PCI_BDF(0, 21, 2) INTC PIRQG |
| 115 | PCI_BDF(0, 23, 0) INTA PIRQA |
| 116 | PCI_BDF(0, 23, 1) INTB PIRQB |
| 117 | |
| 118 | /* PCIe root ports downstream interrupts */ |
| 119 | PCI_BDF(1, 0, 0) INTA PIRQA |
| 120 | PCI_BDF(1, 0, 0) INTB PIRQB |
| 121 | PCI_BDF(1, 0, 0) INTC PIRQC |
| 122 | PCI_BDF(1, 0, 0) INTD PIRQD |
| 123 | PCI_BDF(2, 0, 0) INTA PIRQB |
| 124 | PCI_BDF(2, 0, 0) INTB PIRQC |
| 125 | PCI_BDF(2, 0, 0) INTC PIRQD |
| 126 | PCI_BDF(2, 0, 0) INTD PIRQA |
| 127 | >; |
| 128 | }; |
| 129 | |
Bin Meng | 4f8d4e9 | 2016-01-27 00:56:34 -0800 | [diff] [blame] | 130 | spi: spi { |
Simon Glass | 3276163 | 2016-01-18 20:19:21 -0700 | [diff] [blame] | 131 | #address-cells = <1>; |
| 132 | #size-cells = <0>; |
Bin Meng | d940667 | 2016-02-01 01:40:37 -0800 | [diff] [blame] | 133 | compatible = "intel,ich7-spi"; |
Simon Glass | 3276163 | 2016-01-18 20:19:21 -0700 | [diff] [blame] | 134 | spi-flash@0 { |
| 135 | #size-cells = <1>; |
| 136 | #address-cells = <1>; |
| 137 | reg = <0>; |
| 138 | compatible = "winbond,w25q64", |
Neil Armstrong | f6625b4 | 2019-02-10 10:16:21 +0000 | [diff] [blame] | 139 | "jedec,spi-nor"; |
Simon Glass | 3276163 | 2016-01-18 20:19:21 -0700 | [diff] [blame] | 140 | memory-map = <0xff800000 0x00800000>; |
| 141 | rw-mrc-cache { |
| 142 | label = "rw-mrc-cache"; |
| 143 | reg = <0x00010000 0x00010000>; |
| 144 | }; |
| 145 | }; |
| 146 | }; |
Bin Meng | 8d6ed12 | 2015-02-02 22:35:28 +0800 | [diff] [blame] | 147 | |
Bin Meng | 6e916cc | 2016-02-01 01:40:47 -0800 | [diff] [blame] | 148 | gpioa { |
| 149 | compatible = "intel,ich6-gpio"; |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 150 | bootph-all; |
Bin Meng | 6e916cc | 2016-02-01 01:40:47 -0800 | [diff] [blame] | 151 | reg = <0 0x20>; |
| 152 | bank-name = "A"; |
| 153 | }; |
Bin Meng | 6af4d46 | 2015-02-04 16:26:10 +0800 | [diff] [blame] | 154 | |
Bin Meng | 6e916cc | 2016-02-01 01:40:47 -0800 | [diff] [blame] | 155 | gpiob { |
| 156 | compatible = "intel,ich6-gpio"; |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 157 | bootph-all; |
Bin Meng | 6e916cc | 2016-02-01 01:40:47 -0800 | [diff] [blame] | 158 | reg = <0x20 0x20>; |
| 159 | bank-name = "B"; |
| 160 | }; |
| 161 | }; |
Bin Meng | 6af4d46 | 2015-02-04 16:26:10 +0800 | [diff] [blame] | 162 | }; |
| 163 | |
Simon Glass | 2db9e17 | 2020-11-05 06:32:16 -0700 | [diff] [blame] | 164 | smbios { |
| 165 | compatible = "u-boot,sysinfo-smbios"; |
| 166 | |
| 167 | /* |
| 168 | * Override the default product name U-Boot reports in the |
| 169 | * SMBIOS table, to be compatible with the Intel provided UEFI |
| 170 | * BIOS, as Linux kernel drivers |
| 171 | * (drivers/mfd/intel_quark_i2c_gpio.c and |
| 172 | * drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c) make use of |
| 173 | * it to do different board level configuration. |
| 174 | * |
| 175 | * This can be "Galileo" for GEN1 Galileo board. |
| 176 | */ |
| 177 | smbios { |
| 178 | system { |
| 179 | product = "GalileoGen2"; |
| 180 | }; |
| 181 | |
| 182 | baseboard { |
| 183 | product = "GalileoGen2"; |
| 184 | }; |
| 185 | |
| 186 | chassis { |
| 187 | product = "GalileoGen2"; |
| 188 | }; |
| 189 | }; |
| 190 | }; |
| 191 | |
Bin Meng | 8d6ed12 | 2015-02-02 22:35:28 +0800 | [diff] [blame] | 192 | }; |