blob: 26e070fe9a589b89e8aba58b3d76a900170b4cde [file] [log] [blame]
Roland Stiggee04920d2012-04-22 12:01:19 +02001/*
2 * PHYTEC phyCORE-LPC3250 board
3 *
4 * Copyright 2012 Roland Stigge <stigge@antcom.de>
5 *
6 * The code contained herein is licensed under the GNU General Public
7 * License. You may obtain a copy of the GNU General Public License
8 * Version 2 or later at the following locations:
9 *
10 * http://www.opensource.org/licenses/gpl-license.html
11 * http://www.gnu.org/copyleft/gpl.html
12 */
13
14/dts-v1/;
Vladimir Zapolskiy1a24edd2015-10-18 00:35:50 +030015#include "lpc32xx.dtsi"
Roland Stiggee04920d2012-04-22 12:01:19 +020016
17/ {
18 model = "PHYTEC phyCORE-LPC3250 board based on NXP LPC3250";
19 compatible = "phytec,phy3250", "nxp,lpc3250";
20 #address-cells = <1>;
21 #size-cells = <1>;
22
23 memory {
24 device_type = "memory";
Vladimir Zapolskiycae59492015-10-18 00:35:54 +030025 reg = <0x80000000 0x4000000>;
Roland Stiggee04920d2012-04-22 12:01:19 +020026 };
27
Vladimir Zapolskiyf6d44342015-12-21 21:54:25 +020028 regulators {
29 backlight_reg: regulator@0 {
30 compatible = "regulator-fixed";
31 regulator-name = "backlight_reg";
32 regulator-min-microvolt = <1800000>;
33 regulator-max-microvolt = <1800000>;
34 gpio = <&gpio 5 4 0>;
35 enable-active-high;
36 regulator-boot-on;
37 };
38
39 lcd_reg: regulator@1 {
40 compatible = "regulator-fixed";
41 regulator-name = "lcd_reg";
42 regulator-min-microvolt = <1800000>;
43 regulator-max-microvolt = <1800000>;
44 gpio = <&gpio 5 0 0>;
45 enable-active-high;
46 regulator-boot-on;
47 };
Vladimir Zapolskiyd06670e2015-12-21 21:54:26 +020048
49 sd_reg: regulator@2 {
50 compatible = "regulator-fixed";
51 regulator-name = "sd_reg";
52 regulator-min-microvolt = <1800000>;
53 regulator-max-microvolt = <1800000>;
54 gpio = <&gpio 5 5 0>;
55 enable-active-high;
56 };
Vladimir Zapolskiyf6d44342015-12-21 21:54:25 +020057 };
58
Roland Stiggee04920d2012-04-22 12:01:19 +020059 ahb {
60 mac: ethernet@31060000 {
61 phy-mode = "rmii";
62 use-iram;
63 };
64
Roland Stiggee04920d2012-04-22 12:01:19 +020065 clcd@31040000 {
66 status = "okay";
67 };
68
69 /* 64MB Flash via SLC NAND controller */
70 slc: flash@20020000 {
71 status = "okay";
72 #address-cells = <1>;
73 #size-cells = <1>;
74
Roland Stigge15ab2182012-06-14 16:16:16 +020075 nxp,wdr-clks = <14>;
76 nxp,wwidth = <40000000>;
77 nxp,whold = <100000000>;
78 nxp,wsetup = <100000000>;
79 nxp,rdr-clks = <14>;
80 nxp,rwidth = <40000000>;
81 nxp,rhold = <66666666>;
82 nxp,rsetup = <100000000>;
83 nand-on-flash-bbt;
84 gpios = <&gpio 5 19 1>; /* GPO_P3 19, active low */
85
Roland Stiggee04920d2012-04-22 12:01:19 +020086 mtd0@00000000 {
87 label = "phy3250-boot";
88 reg = <0x00000000 0x00064000>;
89 read-only;
90 };
91
92 mtd1@00064000 {
93 label = "phy3250-uboot";
94 reg = <0x00064000 0x00190000>;
95 read-only;
96 };
97
98 mtd2@001f4000 {
99 label = "phy3250-ubt-prms";
100 reg = <0x001f4000 0x00010000>;
101 };
102
103 mtd3@00204000 {
104 label = "phy3250-kernel";
105 reg = <0x00204000 0x00400000>;
106 };
107
108 mtd4@00604000 {
109 label = "phy3250-rootfs";
110 reg = <0x00604000 0x039fc000>;
111 };
112 };
113
114 apb {
Roland Stiggec70426f2012-06-14 16:16:18 +0200115 uart5: serial@40090000 {
116 status = "okay";
117 };
118
119 uart3: serial@40080000 {
120 status = "okay";
121 };
122
Roland Stiggee04920d2012-04-22 12:01:19 +0200123 i2c1: i2c@400A0000 {
124 clock-frequency = <100000>;
125
126 pcf8563: rtc@51 {
127 compatible = "nxp,pcf8563";
128 reg = <0x51>;
129 };
130
131 uda1380: uda1380@18 {
132 compatible = "nxp,uda1380";
133 reg = <0x18>;
134 power-gpio = <&gpio 0x59 0>;
135 reset-gpio = <&gpio 0x51 0>;
136 dac-clk = "wspll";
137 };
138 };
139
140 i2c2: i2c@400A8000 {
141 clock-frequency = <100000>;
142 };
143
Roland Stiggee04920d2012-04-22 12:01:19 +0200144 ssp0: ssp@20084000 {
Alexandre Pereira da Silva2e0b5a32012-06-12 10:34:12 -0300145 #address-cells = <1>;
146 #size-cells = <0>;
Roland Stigge067c1822012-09-06 11:40:42 +0200147 num-cs = <1>;
Alexandre Pereira da Silva2e0b5a32012-06-12 10:34:12 -0300148 cs-gpios = <&gpio 3 5 0>;
Sylvain Lemieux9a968772016-04-20 09:20:59 -0400149 status = "okay";
Alexandre Pereira da Silva2e0b5a32012-06-12 10:34:12 -0300150
Roland Stiggee04920d2012-04-22 12:01:19 +0200151 eeprom: at25@0 {
Alexandre Pereira da Silva2e0b5a32012-06-12 10:34:12 -0300152 pl022,interface = <0>;
Alexandre Pereira da Silva2e0b5a32012-06-12 10:34:12 -0300153 pl022,com-mode = <0>;
154 pl022,rx-level-trig = <1>;
155 pl022,tx-level-trig = <1>;
156 pl022,ctrl-len = <11>;
157 pl022,wait-state = <0>;
158 pl022,duplex = <0>;
159
160 at25,byte-len = <0x8000>;
161 at25,addr-mode = <2>;
162 at25,page-size = <64>;
163
Roland Stiggee04920d2012-04-22 12:01:19 +0200164 compatible = "atmel,at25";
Alexandre Pereira da Silva2e0b5a32012-06-12 10:34:12 -0300165 reg = <0>;
166 spi-max-frequency = <5000000>;
Roland Stiggee04920d2012-04-22 12:01:19 +0200167 };
168 };
Roland Stigge2c7fa282012-06-14 16:16:18 +0200169
170 sd@20098000 {
171 wp-gpios = <&gpio 3 0 0>;
172 cd-gpios = <&gpio 3 1 0>;
173 cd-inverted;
174 bus-width = <4>;
Vladimir Zapolskiyd06670e2015-12-21 21:54:26 +0200175 vmmc-supply = <&sd_reg>;
Roland Stigge2c7fa282012-06-14 16:16:18 +0200176 status = "okay";
177 };
Roland Stiggee04920d2012-04-22 12:01:19 +0200178 };
179
180 fab {
Roland Stiggeac5ced92012-06-14 16:16:18 +0200181 uart2: serial@40018000 {
182 status = "okay";
183 };
184
Roland Stiggee04920d2012-04-22 12:01:19 +0200185 tsc@40048000 {
186 status = "okay";
187 };
Roland Stiggea6d1be02012-06-14 16:16:17 +0200188
189 key@40050000 {
190 status = "okay";
191 keypad,num-rows = <1>;
192 keypad,num-columns = <1>;
193 nxp,debounce-delay-ms = <3>;
194 nxp,scan-delay-ms = <34>;
195 linux,keymap = <0x00000002>;
196 };
Roland Stiggee04920d2012-04-22 12:01:19 +0200197 };
198 };
199
200 leds {
201 compatible = "gpio-leds";
202
Roland Stigge07c7e122012-09-25 10:11:41 +0200203 led0 { /* red */
204 gpios = <&gpio 5 1 0>; /* GPO_P3 1, GPIO 80, active high */
Roland Stiggee04920d2012-04-22 12:01:19 +0200205 default-state = "off";
206 };
207
Roland Stigge07c7e122012-09-25 10:11:41 +0200208 led1 { /* green */
209 gpios = <&gpio 5 14 0>; /* GPO_P3 14, GPIO 93, active high */
210 linux,default-trigger = "heartbeat";
Roland Stiggee04920d2012-04-22 12:01:19 +0200211 };
212 };
213};
Vladimir Zapolskiyaa29efb2015-10-18 00:35:57 +0300214
215/* Here, choose exactly one from: ohci, usbd */
216&ohci /* &usbd */ {
217 transceiver = <&isp1301>;
218 status = "okay";
219};
220
221&i2cusb {
222 clock-frequency = <100000>;
223
224 isp1301: usb-transceiver@2c {
225 compatible = "nxp,isp1301";
226 reg = <0x2c>;
227 };
228};