1b2441318SGreg Kroah-Hartman// SPDX-License-Identifier: GPL-2.0
2e8823d26SPaul Burton/dts-v1/;
3e8823d26SPaul Burton
438ec82feSPaul Burton#include <dt-bindings/interrupt-controller/irq.h>
538ec82feSPaul Burton#include <dt-bindings/interrupt-controller/mips-gic.h>
638ec82feSPaul Burton
7e81a8c7dSPaul Burton/memreserve/ 0x00000000 0x00001000;	/* YAMON exception vectors */
8e81a8c7dSPaul Burton/memreserve/ 0x00001000 0x000ef000;	/* YAMON */
9e81a8c7dSPaul Burton/memreserve/ 0x000f0000 0x00010000;	/* PIIX4 ISA memory */
10e81a8c7dSPaul Burton
11e8823d26SPaul Burton/ {
12e8823d26SPaul Burton	#address-cells = <1>;
13e8823d26SPaul Burton	#size-cells = <1>;
14e8823d26SPaul Burton	compatible = "mti,malta";
1538ec82feSPaul Burton
1638ec82feSPaul Burton	cpu_intc: interrupt-controller {
1738ec82feSPaul Burton		compatible = "mti,cpu-interrupt-controller";
1838ec82feSPaul Burton
1938ec82feSPaul Burton		interrupt-controller;
2038ec82feSPaul Burton		#interrupt-cells = <1>;
2138ec82feSPaul Burton	};
2238ec82feSPaul Burton
2338ec82feSPaul Burton	gic: interrupt-controller@1bdc0000 {
2438ec82feSPaul Burton		compatible = "mti,gic";
2538ec82feSPaul Burton		reg = <0x1bdc0000 0x20000>;
2638ec82feSPaul Burton
2738ec82feSPaul Burton		interrupt-controller;
2838ec82feSPaul Burton		#interrupt-cells = <3>;
2938ec82feSPaul Burton
3038ec82feSPaul Burton		/*
3138ec82feSPaul Burton		 * Declare the interrupt-parent even though the mti,gic
3238ec82feSPaul Burton		 * binding doesn't require it, such that the kernel can
3338ec82feSPaul Burton		 * figure out that cpu_intc is the root interrupt
3438ec82feSPaul Burton		 * controller & should be probed first.
3538ec82feSPaul Burton		 */
3638ec82feSPaul Burton		interrupt-parent = <&cpu_intc>;
3738ec82feSPaul Burton
3838ec82feSPaul Burton		timer {
3938ec82feSPaul Burton			compatible = "mti,gic-timer";
4038ec82feSPaul Burton			interrupts = <GIC_LOCAL 1 IRQ_TYPE_NONE>;
4138ec82feSPaul Burton		};
4238ec82feSPaul Burton	};
4338ec82feSPaul Burton
4438ec82feSPaul Burton	i8259: interrupt-controller@20 {
4538ec82feSPaul Burton		compatible = "intel,i8259";
4638ec82feSPaul Burton
4738ec82feSPaul Burton		interrupt-controller;
4838ec82feSPaul Burton		#interrupt-cells = <1>;
4938ec82feSPaul Burton
5038ec82feSPaul Burton		interrupt-parent = <&gic>;
5138ec82feSPaul Burton		interrupts = <GIC_SHARED 3 IRQ_TYPE_LEVEL_HIGH>;
5238ec82feSPaul Burton	};
530a46ffa3SPaul Burton
5497af8e1cSPaul Burton	flash@1e000000 {
5597af8e1cSPaul Burton		compatible = "intel,dt28f160", "cfi-flash";
5697af8e1cSPaul Burton		reg = <0x1e000000 0x400000>;
5797af8e1cSPaul Burton		bank-width = <4>;
5897af8e1cSPaul Burton		#address-cells = <1>;
5997af8e1cSPaul Burton		#size-cells = <1>;
6097af8e1cSPaul Burton
6197af8e1cSPaul Burton		partitions {
6297af8e1cSPaul Burton			compatible = "fixed-partitions";
6397af8e1cSPaul Burton			#address-cells = <1>;
6497af8e1cSPaul Burton			#size-cells = <1>;
6597af8e1cSPaul Burton
6697af8e1cSPaul Burton			yamon@0 {
6797af8e1cSPaul Burton				label = "YAMON";
6897af8e1cSPaul Burton				reg = <0x0 0x100000>;
6997af8e1cSPaul Burton				read-only;
7097af8e1cSPaul Burton			};
7197af8e1cSPaul Burton
7297af8e1cSPaul Burton			user-fs@100000 {
7397af8e1cSPaul Burton				label = "User FS";
7497af8e1cSPaul Burton				reg = <0x100000 0x2e0000>;
7597af8e1cSPaul Burton			};
7697af8e1cSPaul Burton
7797af8e1cSPaul Burton			board-config@3e0000 {
7897af8e1cSPaul Burton				label = "Board Config";
7997af8e1cSPaul Burton				reg = <0x3e0000 0x20000>;
8097af8e1cSPaul Burton				read-only;
8197af8e1cSPaul Burton			};
8297af8e1cSPaul Burton		};
8397af8e1cSPaul Burton	};
8497af8e1cSPaul Burton
8510b6ea09SPaul Burton	fpga_regs: system-controller@1f000000 {
8610b6ea09SPaul Burton		compatible = "mti,malta-fpga", "syscon", "simple-mfd";
8710b6ea09SPaul Burton		reg = <0x1f000000 0x1000>;
8893032e31SPaul Burton		native-endian;
8910b6ea09SPaul Burton
900b003749SPaul Burton		lcd@410 {
910b003749SPaul Burton			compatible = "mti,malta-lcd";
920b003749SPaul Burton			offset = <0x410>;
930b003749SPaul Burton		};
940b003749SPaul Burton
9510b6ea09SPaul Burton		reboot {
9610b6ea09SPaul Burton			compatible = "syscon-reboot";
9710b6ea09SPaul Burton			regmap = <&fpga_regs>;
9810b6ea09SPaul Burton			offset = <0x500>;
9993032e31SPaul Burton			mask = <0x42>;
10010b6ea09SPaul Burton		};
10110b6ea09SPaul Burton	};
10210b6ea09SPaul Burton
1030a46ffa3SPaul Burton	isa {
1040a46ffa3SPaul Burton		compatible = "isa";
1050a46ffa3SPaul Burton		#address-cells = <2>;
1060a46ffa3SPaul Burton		#size-cells = <1>;
1070a46ffa3SPaul Burton		ranges = <1 0 0 0x1000>;
1080a46ffa3SPaul Burton
1090a46ffa3SPaul Burton		rtc@70 {
1100a46ffa3SPaul Burton			compatible = "motorola,mc146818";
1110a46ffa3SPaul Burton			reg = <1 0x70 0x8>;
1120a46ffa3SPaul Burton
1130a46ffa3SPaul Burton			interrupt-parent = <&i8259>;
1140a46ffa3SPaul Burton			interrupts = <8>;
1150a46ffa3SPaul Burton		};
1160a46ffa3SPaul Burton	};
117e8823d26SPaul Burton};
118