diff options
| -rw-r--r-- | MAINTAINERS | 2 | ||||
| -rw-r--r-- | arch/mips/boot/dts/img/Makefile | 2 | ||||
| -rw-r--r-- | arch/mips/boot/dts/img/boston.dts | 224 | ||||
| -rw-r--r-- | arch/mips/configs/generic/board-boston.config | 48 | ||||
| -rw-r--r-- | arch/mips/generic/Kconfig | 12 | ||||
| -rw-r--r-- | arch/mips/generic/vmlinux.its.S | 25 |
6 files changed, 313 insertions, 0 deletions
diff --git a/MAINTAINERS b/MAINTAINERS index 5513b85dd60e..d034eb8031fa 100644 --- a/MAINTAINERS +++ b/MAINTAINERS | |||
| @@ -8509,6 +8509,8 @@ M: Paul Burton <paul.burton@imgtec.com> | |||
| 8509 | L: linux-mips@linux-mips.org | 8509 | L: linux-mips@linux-mips.org |
| 8510 | S: Maintained | 8510 | S: Maintained |
| 8511 | F: Documentation/devicetree/bindings/clock/img,boston-clock.txt | 8511 | F: Documentation/devicetree/bindings/clock/img,boston-clock.txt |
| 8512 | F: arch/mips/boot/dts/img/boston.dts | ||
| 8513 | F: arch/mips/configs/generic/board-boston.config | ||
| 8512 | F: drivers/clk/imgtec/clk-boston.c | 8514 | F: drivers/clk/imgtec/clk-boston.c |
| 8513 | F: include/dt-bindings/clock/boston-clock.h | 8515 | F: include/dt-bindings/clock/boston-clock.h |
| 8514 | 8516 | ||
diff --git a/arch/mips/boot/dts/img/Makefile b/arch/mips/boot/dts/img/Makefile index c178cf56f5b8..3d70958d0f5a 100644 --- a/arch/mips/boot/dts/img/Makefile +++ b/arch/mips/boot/dts/img/Makefile | |||
| @@ -1,3 +1,5 @@ | |||
| 1 | dtb-$(CONFIG_FIT_IMAGE_FDT_BOSTON) += boston.dtb | ||
| 2 | |||
| 1 | dtb-$(CONFIG_MACH_PISTACHIO) += pistachio_marduk.dtb | 3 | dtb-$(CONFIG_MACH_PISTACHIO) += pistachio_marduk.dtb |
| 2 | obj-$(CONFIG_MACH_PISTACHIO) += pistachio_marduk.dtb.o | 4 | obj-$(CONFIG_MACH_PISTACHIO) += pistachio_marduk.dtb.o |
| 3 | 5 | ||
diff --git a/arch/mips/boot/dts/img/boston.dts b/arch/mips/boot/dts/img/boston.dts new file mode 100644 index 000000000000..53bfa29a7093 --- /dev/null +++ b/arch/mips/boot/dts/img/boston.dts | |||
| @@ -0,0 +1,224 @@ | |||
| 1 | /dts-v1/; | ||
| 2 | |||
| 3 | #include <dt-bindings/clock/boston-clock.h> | ||
| 4 | #include <dt-bindings/gpio/gpio.h> | ||
| 5 | #include <dt-bindings/interrupt-controller/irq.h> | ||
| 6 | #include <dt-bindings/interrupt-controller/mips-gic.h> | ||
| 7 | |||
| 8 | / { | ||
| 9 | #address-cells = <1>; | ||
| 10 | #size-cells = <1>; | ||
| 11 | compatible = "img,boston"; | ||
| 12 | |||
| 13 | chosen { | ||
| 14 | stdout-path = "uart0:115200"; | ||
| 15 | }; | ||
| 16 | |||
| 17 | aliases { | ||
| 18 | uart0 = &uart0; | ||
| 19 | }; | ||
| 20 | |||
| 21 | cpus { | ||
| 22 | #address-cells = <1>; | ||
| 23 | #size-cells = <0>; | ||
| 24 | |||
| 25 | cpu@0 { | ||
| 26 | device_type = "cpu"; | ||
| 27 | compatible = "img,mips"; | ||
| 28 | reg = <0>; | ||
| 29 | clocks = <&clk_boston BOSTON_CLK_CPU>; | ||
| 30 | }; | ||
| 31 | }; | ||
| 32 | |||
| 33 | memory@0 { | ||
| 34 | device_type = "memory"; | ||
| 35 | reg = <0x00000000 0x10000000>; | ||
| 36 | }; | ||
| 37 | |||
| 38 | pci0: pci@10000000 { | ||
| 39 | compatible = "xlnx,axi-pcie-host-1.00.a"; | ||
| 40 | device_type = "pci"; | ||
| 41 | reg = <0x10000000 0x2000000>; | ||
| 42 | |||
| 43 | #address-cells = <3>; | ||
| 44 | #size-cells = <2>; | ||
| 45 | #interrupt-cells = <1>; | ||
| 46 | |||
| 47 | interrupt-parent = <&gic>; | ||
| 48 | interrupts = <GIC_SHARED 2 IRQ_TYPE_LEVEL_HIGH>; | ||
| 49 | |||
| 50 | ranges = <0x02000000 0 0x40000000 | ||
| 51 | 0x40000000 0 0x40000000>; | ||
| 52 | |||
| 53 | interrupt-map-mask = <0 0 0 7>; | ||
| 54 | interrupt-map = <0 0 0 1 &pci0_intc 1>, | ||
| 55 | <0 0 0 2 &pci0_intc 2>, | ||
| 56 | <0 0 0 3 &pci0_intc 3>, | ||
| 57 | <0 0 0 4 &pci0_intc 4>; | ||
| 58 | |||
| 59 | pci0_intc: interrupt-controller { | ||
| 60 | interrupt-controller; | ||
| 61 | #address-cells = <0>; | ||
| 62 | #interrupt-cells = <1>; | ||
| 63 | }; | ||
| 64 | }; | ||
| 65 | |||
| 66 | pci1: pci@12000000 { | ||
| 67 | compatible = "xlnx,axi-pcie-host-1.00.a"; | ||
| 68 | device_type = "pci"; | ||
| 69 | reg = <0x12000000 0x2000000>; | ||
| 70 | |||
| 71 | #address-cells = <3>; | ||
| 72 | #size-cells = <2>; | ||
| 73 | #interrupt-cells = <1>; | ||
| 74 | |||
| 75 | interrupt-parent = <&gic>; | ||
| 76 | interrupts = <GIC_SHARED 1 IRQ_TYPE_LEVEL_HIGH>; | ||
| 77 | |||
| 78 | ranges = <0x02000000 0 0x20000000 | ||
| 79 | 0x20000000 0 0x20000000>; | ||
| 80 | |||
| 81 | interrupt-map-mask = <0 0 0 7>; | ||
| 82 | interrupt-map = <0 0 0 1 &pci1_intc 1>, | ||
| 83 | <0 0 0 2 &pci1_intc 2>, | ||
| 84 | <0 0 0 3 &pci1_intc 3>, | ||
| 85 | <0 0 0 4 &pci1_intc 4>; | ||
| 86 | |||
| 87 | pci1_intc: interrupt-controller { | ||
| 88 | interrupt-controller; | ||
| 89 | #address-cells = <0>; | ||
| 90 | #interrupt-cells = <1>; | ||
| 91 | }; | ||
| 92 | }; | ||
| 93 | |||
| 94 | pci2: pci@14000000 { | ||
| 95 | compatible = "xlnx,axi-pcie-host-1.00.a"; | ||
| 96 | device_type = "pci"; | ||
| 97 | reg = <0x14000000 0x2000000>; | ||
| 98 | |||
| 99 | #address-cells = <3>; | ||
| 100 | #size-cells = <2>; | ||
| 101 | #interrupt-cells = <1>; | ||
| 102 | |||
| 103 | interrupt-parent = <&gic>; | ||
| 104 | interrupts = <GIC_SHARED 0 IRQ_TYPE_LEVEL_HIGH>; | ||
| 105 | |||
| 106 | ranges = <0x02000000 0 0x16000000 | ||
| 107 | 0x16000000 0 0x100000>; | ||
| 108 | |||
| 109 | interrupt-map-mask = <0 0 0 7>; | ||
| 110 | interrupt-map = <0 0 0 1 &pci2_intc 1>, | ||
| 111 | <0 0 0 2 &pci2_intc 2>, | ||
| 112 | <0 0 0 3 &pci2_intc 3>, | ||
| 113 | <0 0 0 4 &pci2_intc 4>; | ||
| 114 | |||
| 115 | pci2_intc: interrupt-controller { | ||
| 116 | interrupt-controller; | ||
| 117 | #address-cells = <0>; | ||
| 118 | #interrupt-cells = <1>; | ||
| 119 | }; | ||
| 120 | |||
| 121 | pci2_root@0,0,0 { | ||
| 122 | compatible = "pci10ee,7021"; | ||
| 123 | reg = <0x00000000 0 0 0 0>; | ||
| 124 | |||
| 125 | #address-cells = <3>; | ||
| 126 | #size-cells = <2>; | ||
| 127 | #interrupt-cells = <1>; | ||
| 128 | |||
| 129 | eg20t_bridge@1,0,0 { | ||
| 130 | compatible = "pci8086,8800"; | ||
| 131 | reg = <0x00010000 0 0 0 0>; | ||
| 132 | |||
| 133 | #address-cells = <3>; | ||
| 134 | #size-cells = <2>; | ||
| 135 | #interrupt-cells = <1>; | ||
| 136 | |||
| 137 | eg20t_mac@2,0,1 { | ||
| 138 | compatible = "pci8086,8802"; | ||
| 139 | reg = <0x00020100 0 0 0 0>; | ||
| 140 | phy-reset-gpios = <&eg20t_gpio 6 | ||
| 141 | GPIO_ACTIVE_LOW>; | ||
| 142 | }; | ||
| 143 | |||
| 144 | eg20t_gpio: eg20t_gpio@2,0,2 { | ||
| 145 | compatible = "pci8086,8803"; | ||
| 146 | reg = <0x00020200 0 0 0 0>; | ||
| 147 | |||
| 148 | gpio-controller; | ||
| 149 | #gpio-cells = <2>; | ||
| 150 | }; | ||
| 151 | |||
| 152 | eg20t_i2c@2,12,2 { | ||
| 153 | compatible = "pci8086,8817"; | ||
| 154 | reg = <0x00026200 0 0 0 0>; | ||
| 155 | |||
| 156 | #address-cells = <1>; | ||
| 157 | #size-cells = <0>; | ||
| 158 | |||
| 159 | rtc@0x68 { | ||
| 160 | compatible = "st,m41t81s"; | ||
| 161 | reg = <0x68>; | ||
| 162 | }; | ||
| 163 | }; | ||
| 164 | }; | ||
| 165 | }; | ||
| 166 | }; | ||
| 167 | |||
| 168 | gic: interrupt-controller@16120000 { | ||
| 169 | compatible = "mti,gic"; | ||
| 170 | reg = <0x16120000 0x20000>; | ||
| 171 | |||
| 172 | interrupt-controller; | ||
| 173 | #interrupt-cells = <3>; | ||
| 174 | |||
| 175 | timer { | ||
| 176 | compatible = "mti,gic-timer"; | ||
| 177 | interrupts = <GIC_LOCAL 1 IRQ_TYPE_NONE>; | ||
| 178 | clocks = <&clk_boston BOSTON_CLK_CPU>; | ||
| 179 | }; | ||
| 180 | }; | ||
| 181 | |||
| 182 | cdmm@16140000 { | ||
| 183 | compatible = "mti,mips-cdmm"; | ||
| 184 | reg = <0x16140000 0x8000>; | ||
| 185 | }; | ||
| 186 | |||
| 187 | cpc@16200000 { | ||
| 188 | compatible = "mti,mips-cpc"; | ||
| 189 | reg = <0x16200000 0x8000>; | ||
| 190 | }; | ||
| 191 | |||
| 192 | plat_regs: system-controller@17ffd000 { | ||
| 193 | compatible = "img,boston-platform-regs", "syscon"; | ||
| 194 | reg = <0x17ffd000 0x1000>; | ||
| 195 | |||
| 196 | clk_boston: clock { | ||
| 197 | compatible = "img,boston-clock"; | ||
| 198 | #clock-cells = <1>; | ||
| 199 | }; | ||
| 200 | }; | ||
| 201 | |||
| 202 | reboot: syscon-reboot { | ||
| 203 | compatible = "syscon-reboot"; | ||
| 204 | regmap = <&plat_regs>; | ||
| 205 | offset = <0x10>; | ||
| 206 | mask = <0x10>; | ||
| 207 | }; | ||
| 208 | |||
| 209 | uart0: uart@17ffe000 { | ||
| 210 | compatible = "ns16550a"; | ||
| 211 | reg = <0x17ffe000 0x1000>; | ||
| 212 | reg-shift = <2>; | ||
| 213 | |||
| 214 | interrupt-parent = <&gic>; | ||
| 215 | interrupts = <GIC_SHARED 3 IRQ_TYPE_LEVEL_HIGH>; | ||
| 216 | |||
| 217 | clocks = <&clk_boston BOSTON_CLK_SYS>; | ||
| 218 | }; | ||
| 219 | |||
| 220 | lcd: lcd@17fff000 { | ||
| 221 | compatible = "img,boston-lcd"; | ||
| 222 | reg = <0x17fff000 0x8>; | ||
| 223 | }; | ||
| 224 | }; | ||
diff --git a/arch/mips/configs/generic/board-boston.config b/arch/mips/configs/generic/board-boston.config new file mode 100644 index 000000000000..19560a45b683 --- /dev/null +++ b/arch/mips/configs/generic/board-boston.config | |||
| @@ -0,0 +1,48 @@ | |||
| 1 | CONFIG_FIT_IMAGE_FDT_BOSTON=y | ||
| 2 | |||
| 3 | CONFIG_ATA=y | ||
| 4 | CONFIG_SATA_AHCI=y | ||
| 5 | CONFIG_SCSI=y | ||
| 6 | CONFIG_BLK_DEV_SD=y | ||
| 7 | |||
| 8 | CONFIG_AUXDISPLAY=y | ||
| 9 | CONFIG_IMG_ASCII_LCD=y | ||
| 10 | |||
| 11 | CONFIG_COMMON_CLK_BOSTON=y | ||
| 12 | |||
| 13 | CONFIG_DMADEVICES=y | ||
| 14 | CONFIG_PCH_DMA=y | ||
| 15 | |||
| 16 | CONFIG_GPIOLIB=y | ||
| 17 | CONFIG_GPIO_SYSFS=y | ||
| 18 | CONFIG_GPIO_PCH=y | ||
| 19 | |||
| 20 | CONFIG_I2C=y | ||
| 21 | CONFIG_I2C_EG20T=y | ||
| 22 | |||
| 23 | CONFIG_MMC=y | ||
| 24 | CONFIG_MMC_SDHCI=y | ||
| 25 | CONFIG_MMC_SDHCI_PCI=y | ||
| 26 | |||
| 27 | CONFIG_NETDEVICES=y | ||
| 28 | CONFIG_PCH_GBE=y | ||
| 29 | |||
| 30 | CONFIG_PCI=y | ||
| 31 | CONFIG_PCI_MSI=y | ||
| 32 | CONFIG_PCIE_XILINX=y | ||
| 33 | |||
| 34 | CONFIG_PCH_PHUB=y | ||
| 35 | |||
| 36 | CONFIG_RTC_CLASS=y | ||
| 37 | CONFIG_RTC_DRV_M41T80=y | ||
| 38 | |||
| 39 | CONFIG_SERIAL_8250=y | ||
| 40 | CONFIG_SERIAL_8250_CONSOLE=y | ||
| 41 | CONFIG_SERIAL_OF_PLATFORM=y | ||
| 42 | |||
| 43 | CONFIG_SPI=y | ||
| 44 | CONFIG_SPI_TOPCLIFF_PCH=y | ||
| 45 | |||
| 46 | CONFIG_USB=y | ||
| 47 | CONFIG_USB_EHCI_HCD=y | ||
| 48 | CONFIG_USB_OHCI_HCD=y | ||
diff --git a/arch/mips/generic/Kconfig b/arch/mips/generic/Kconfig index 446b7c68133d..51ffbbaddee2 100644 --- a/arch/mips/generic/Kconfig +++ b/arch/mips/generic/Kconfig | |||
| @@ -16,6 +16,8 @@ config YAMON_DT_SHIM | |||
| 16 | and you wish to include code which helps translate various | 16 | and you wish to include code which helps translate various |
| 17 | YAMON-provided environment variables into a device tree properties. | 17 | YAMON-provided environment variables into a device tree properties. |
| 18 | 18 | ||
| 19 | comment "Legacy (non-UHI/non-FIT) Boards" | ||
| 20 | |||
| 19 | config LEGACY_BOARD_SEAD3 | 21 | config LEGACY_BOARD_SEAD3 |
| 20 | bool "Support MIPS SEAD-3 boards" | 22 | bool "Support MIPS SEAD-3 boards" |
| 21 | select LEGACY_BOARDS | 23 | select LEGACY_BOARDS |
| @@ -24,4 +26,14 @@ config LEGACY_BOARD_SEAD3 | |||
| 24 | Enable this to include support for booting on MIPS SEAD-3 FPGA-based | 26 | Enable this to include support for booting on MIPS SEAD-3 FPGA-based |
| 25 | development boards, which boot using a legacy boot protocol. | 27 | development boards, which boot using a legacy boot protocol. |
| 26 | 28 | ||
| 29 | comment "FIT/UHI Boards" | ||
| 30 | |||
| 31 | config FIT_IMAGE_FDT_BOSTON | ||
| 32 | bool "Include FDT for MIPS Boston boards" | ||
| 33 | help | ||
| 34 | Enable this to include the FDT for the MIPS Boston development board | ||
| 35 | from Imagination Technologies in the FIT kernel image. You should | ||
| 36 | enable this if you wish to boot on a MIPS Boston board, as it is | ||
| 37 | expected by the bootloader. | ||
| 38 | |||
| 27 | endif | 39 | endif |
diff --git a/arch/mips/generic/vmlinux.its.S b/arch/mips/generic/vmlinux.its.S index f67fbf1c8541..3390e2f80b80 100644 --- a/arch/mips/generic/vmlinux.its.S +++ b/arch/mips/generic/vmlinux.its.S | |||
| @@ -29,3 +29,28 @@ | |||
| 29 | }; | 29 | }; |
| 30 | }; | 30 | }; |
| 31 | }; | 31 | }; |
| 32 | |||
| 33 | #ifdef CONFIG_FIT_IMAGE_FDT_BOSTON | ||
| 34 | / { | ||
| 35 | images { | ||
| 36 | fdt@boston { | ||
| 37 | description = "img,boston Device Tree"; | ||
| 38 | data = /incbin/("boot/dts/img/boston.dtb"); | ||
| 39 | type = "flat_dt"; | ||
| 40 | arch = "mips"; | ||
| 41 | compression = "none"; | ||
| 42 | hash@0 { | ||
| 43 | algo = "sha1"; | ||
| 44 | }; | ||
| 45 | }; | ||
| 46 | }; | ||
| 47 | |||
| 48 | configurations { | ||
| 49 | conf@boston { | ||
| 50 | description = "Boston Linux kernel"; | ||
| 51 | kernel = "kernel@0"; | ||
| 52 | fdt = "fdt@boston"; | ||
| 53 | }; | ||
| 54 | }; | ||
| 55 | }; | ||
| 56 | #endif /* CONFIG_FIT_IMAGE_FDT_BOSTON */ | ||
