aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/boot/dts
diff options
context:
space:
mode:
authorNathan Sullivan <nathan.sullivan@ni.com>2017-07-18 14:29:09 -0400
committerRalf Baechle <ralf@linux-mips.org>2017-08-29 09:21:51 -0400
commit7aacf86b75bc5523d20fd9127104384fce51ce9c (patch)
tree3347dea4690c909faab09660e221e11a6b926caf /arch/mips/boot/dts
parent0c4037b9dd8b021f6cac0c51edc8873bf10d6567 (diff)
MIPS: NI 169445 board support
Support the National Instruments 169445 board. Signed-off-by: Nathan Sullivan <nathan.sullivan@ni.com> Acked-by: Rob Herring <robh@kernel.org> Cc: devicetree@vger.kernel.org Cc: linux-mips@linux-mips.org Cc: linux-kernel@vger.kernel.org Patchwork: https://patchwork.linux-mips.org/patch/16782/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/boot/dts')
-rw-r--r--arch/mips/boot/dts/Makefile1
-rw-r--r--arch/mips/boot/dts/ni/169445.dts100
-rw-r--r--arch/mips/boot/dts/ni/Makefile7
3 files changed, 108 insertions, 0 deletions
diff --git a/arch/mips/boot/dts/Makefile b/arch/mips/boot/dts/Makefile
index b9db49203e0c..cbac26ce063e 100644
--- a/arch/mips/boot/dts/Makefile
+++ b/arch/mips/boot/dts/Makefile
@@ -5,6 +5,7 @@ dts-dirs += ingenic
5dts-dirs += lantiq 5dts-dirs += lantiq
6dts-dirs += mti 6dts-dirs += mti
7dts-dirs += netlogic 7dts-dirs += netlogic
8dts-dirs += ni
8dts-dirs += pic32 9dts-dirs += pic32
9dts-dirs += qca 10dts-dirs += qca
10dts-dirs += ralink 11dts-dirs += ralink
diff --git a/arch/mips/boot/dts/ni/169445.dts b/arch/mips/boot/dts/ni/169445.dts
new file mode 100644
index 000000000000..5389ef46c480
--- /dev/null
+++ b/arch/mips/boot/dts/ni/169445.dts
@@ -0,0 +1,100 @@
1/dts-v1/;
2
3/ {
4 #address-cells = <1>;
5 #size-cells = <1>;
6 compatible = "ni,169445";
7
8 cpus {
9 #address-cells = <1>;
10 #size-cells = <0>;
11 cpu@0 {
12 device_type = "cpu";
13 compatible = "mti,mips14KEc";
14 clocks = <&baseclk>;
15 reg = <0>;
16 };
17 };
18
19 memory@0 {
20 device_type = "memory";
21 reg = <0x0 0x10000000>;
22 };
23
24 baseclk: baseclock {
25 compatible = "fixed-clock";
26 #clock-cells = <0>;
27 clock-frequency = <50000000>;
28 };
29
30 cpu_intc: interrupt-controller {
31 #address-cells = <0>;
32 compatible = "mti,cpu-interrupt-controller";
33 interrupt-controller;
34 #interrupt-cells = <1>;
35 };
36
37 ahb@1f300000 {
38 compatible = "simple-bus";
39 #address-cells = <1>;
40 #size-cells = <1>;
41 ranges = <0x0 0x1f300000 0x80FFF>;
42
43 gpio1: gpio@10 {
44 compatible = "ni,169445-nand-gpio";
45 reg = <0x10 0x4>;
46 reg-names = "dat";
47 gpio-controller;
48 #gpio-cells = <2>;
49 };
50
51 gpio2: gpio@14 {
52 compatible = "ni,169445-nand-gpio";
53 reg = <0x14 0x4>;
54 reg-names = "dat";
55 gpio-controller;
56 #gpio-cells = <2>;
57 no-output;
58 };
59
60 nand@0 {
61 compatible = "gpio-control-nand";
62 nand-on-flash-bbt;
63 nand-ecc-mode = "soft_bch";
64 nand-ecc-step-size = <512>;
65 nand-ecc-strength = <4>;
66 reg = <0x0 4>;
67 gpios = <&gpio2 0 0>, /* rdy */
68 <&gpio1 1 0>, /* nce */
69 <&gpio1 2 0>, /* ale */
70 <&gpio1 3 0>, /* cle */
71 <&gpio1 4 0>; /* nwp */
72 };
73
74 serial@80000 {
75 compatible = "ns16550a";
76 reg = <0x80000 0x1000>;
77 interrupt-parent = <&cpu_intc>;
78 interrupts = <6>;
79 clocks = <&baseclk>;
80 reg-shift = <0>;
81 };
82
83 ethernet@40000 {
84 compatible = "snps,dwmac-4.10a";
85 interrupt-parent = <&cpu_intc>;
86 interrupts = <5>;
87 interrupt-names = "macirq";
88 reg = <0x40000 0x2000>;
89 clock-names = "stmmaceth", "pclk";
90 clocks = <&baseclk>, <&baseclk>;
91
92 phy-mode = "rgmii";
93
94 fixed-link {
95 speed = <1000>;
96 full-duplex;
97 };
98 };
99 };
100};
diff --git a/arch/mips/boot/dts/ni/Makefile b/arch/mips/boot/dts/ni/Makefile
new file mode 100644
index 000000000000..66cfdffc51c2
--- /dev/null
+++ b/arch/mips/boot/dts/ni/Makefile
@@ -0,0 +1,7 @@
1dtb-$(CONFIG_FIT_IMAGE_FDT_NI169445) += 169445.dtb
2
3# Force kbuild to make empty built-in.o if necessary
4obj- += dummy.o
5
6always := $(dtb-y)
7clean-files := *.dtb *.dtb.S