layerscape: add 64b/32b target for ls1043ardb device
[openwrt/openwrt.git] / target / linux / layerscape / patches-4.4 / 3002-dts-ls1043a-add-LS1043ARDB-board-support.patch
1 From 57d949256241fb79b669bbca0426c2d74a3dfc6e Mon Sep 17 00:00:00 2001
2 From: Shaohui Xie <Shaohui.Xie@freescale.com>
3 Date: Fri, 8 Jul 2016 10:27:39 +0800
4 Subject: [PATCH 02/70] dts/ls1043a: add LS1043ARDB board support
5
6 commit 9a6fce16a82d3412c9350b9f08eacebaa81c0a3d
7 [context adjustment]
8
9 Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com>
10 Signed-off-by: Mingkai Hu <Mingkai.Hu@freescale.com>
11 Signed-off-by: Wenbin Song <Wenbin.Song@freescale.com>
12 Signed-off-by: Hou Zhiqiang <B48286@freescale.com>
13 Signed-off-by: Mingkai Hu <mingkai.hu@nxp.com>
14 Integrated-by: Zhao Qiang <qiang.zhao@nxp.com>
15 ---
16 arch/arm64/boot/dts/freescale/Makefile | 1 +
17 arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb.dts | 117 +++++++++++++++++++++
18 2 files changed, 118 insertions(+)
19 create mode 100644 arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb.dts
20
21 --- a/arch/arm64/boot/dts/freescale/Makefile
22 +++ b/arch/arm64/boot/dts/freescale/Makefile
23 @@ -1,6 +1,7 @@
24 dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls2080a-qds.dtb
25 dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls2080a-rdb.dtb
26 dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls2080a-simu.dtb
27 +dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1043a-rdb.dtb
28
29 always := $(dtb-y)
30 subdir-y := $(dts-dirs)
31 --- /dev/null
32 +++ b/arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb.dts
33 @@ -0,0 +1,117 @@
34 +/*
35 + * Device Tree Include file for Freescale Layerscape-1043A family SoC.
36 + *
37 + * Copyright 2014-2015, Freescale Semiconductor
38 + *
39 + * Mingkai Hu <Mingkai.hu@freescale.com>
40 + *
41 + * This file is dual-licensed: you can use it either under the terms
42 + * of the GPLv2 or the X11 license, at your option. Note that this dual
43 + * licensing only applies to this file, and not this project as a
44 + * whole.
45 + *
46 + * a) This library is free software; you can redistribute it and/or
47 + * modify it under the terms of the GNU General Public License as
48 + * published by the Free Software Foundation; either version 2 of the
49 + * License, or (at your option) any later version.
50 + *
51 + * This library is distributed in the hope that it will be useful,
52 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
53 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
54 + * GNU General Public License for more details.
55 + *
56 + * Or, alternatively,
57 + *
58 + * b) Permission is hereby granted, free of charge, to any person
59 + * obtaining a copy of this software and associated documentation
60 + * files (the "Software"), to deal in the Software without
61 + * restriction, including without limitation the rights to use,
62 + * copy, modify, merge, publish, distribute, sublicense, and/or
63 + * sell copies of the Software, and to permit persons to whom the
64 + * Software is furnished to do so, subject to the following
65 + * conditions:
66 + *
67 + * The above copyright notice and this permission notice shall be
68 + * included in all copies or substantial portions of the Software.
69 + *
70 + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
71 + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
72 + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
73 + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
74 + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
75 + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
76 + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
77 + * OTHER DEALINGS IN THE SOFTWARE.
78 + */
79 +
80 +/dts-v1/;
81 +#include "fsl-ls1043a.dtsi"
82 +
83 +/ {
84 + model = "LS1043A RDB Board";
85 + compatible = "fsl,ls1043a-rdb", "fsl,ls1043a";
86 +};
87 +
88 +&i2c0 {
89 + status = "okay";
90 + ina220@40 {
91 + compatible = "ti,ina220";
92 + reg = <0x40>;
93 + shunt-resistor = <1000>;
94 + };
95 + adt7461a@4c {
96 + compatible = "adi,adt7461";
97 + reg = <0x4c>;
98 + };
99 + eeprom@56 {
100 + compatible = "at24,24c512";
101 + reg = <0x52>;
102 + };
103 + eeprom@57 {
104 + compatible = "at24,24c512";
105 + reg = <0x53>;
106 + };
107 + rtc@68 {
108 + compatible = "pericom,pt7c4338";
109 + reg = <0x68>;
110 + };
111 +};
112 +
113 +&ifc {
114 + status = "okay";
115 + #address-cells = <2>;
116 + #size-cells = <1>;
117 + /* NOR, NAND Flashes and FPGA on board */
118 + ranges = <0x0 0x0 0x0 0x60000000 0x08000000
119 + 0x1 0x0 0x0 0x7e800000 0x00010000
120 + 0x2 0x0 0x0 0x7fb00000 0x00000100>;
121 +
122 + nor@0,0 {
123 + compatible = "cfi-flash";
124 + #address-cells = <1>;
125 + #size-cells = <1>;
126 + reg = <0x0 0x0 0x8000000>;
127 + bank-width = <2>;
128 + device-width = <1>;
129 + };
130 +
131 + nand@1,0 {
132 + compatible = "fsl,ifc-nand";
133 + #address-cells = <1>;
134 + #size-cells = <1>;
135 + reg = <0x1 0x0 0x10000>;
136 + };
137 +
138 + cpld: board-control@2,0 {
139 + compatible = "fsl,ls1043ardb-cpld";
140 + reg = <0x2 0x0 0x0000100>;
141 + };
142 +};
143 +
144 +&duart0 {
145 + status = "okay";
146 +};
147 +
148 +&duart1 {
149 + status = "okay";
150 +};