0001 // SPDX-License-Identifier: GPL-2.0-or-later
0002 /*
0003 * Embedded Artists LPC3250 board
0004 *
0005 * Copyright 2012 Roland Stigge <stigge@antcom.de>
0006 */
0007
0008 /dts-v1/;
0009 #include "lpc32xx.dtsi"
0010
0011 / {
0012 model = "Embedded Artists LPC3250 board based on NXP LPC3250";
0013 compatible = "ea,ea3250", "nxp,lpc3250";
0014
0015 memory@80000000 {
0016 device_type = "memory";
0017 reg = <0x80000000 0x4000000>;
0018 };
0019
0020 gpio-keys {
0021 compatible = "gpio-keys";
0022 autorepeat;
0023
0024 button {
0025 label = "Interrupt Key";
0026 linux,code = <103>;
0027 gpios = <&gpio 4 1 0>; /* GPI_P3 1 */
0028 };
0029
0030 key1 {
0031 label = "KEY1";
0032 linux,code = <1>;
0033 gpios = <&pca9532 0 0>;
0034 };
0035
0036 key2 {
0037 label = "KEY2";
0038 linux,code = <2>;
0039 gpios = <&pca9532 1 0>;
0040 };
0041
0042 key3 {
0043 label = "KEY3";
0044 linux,code = <3>;
0045 gpios = <&pca9532 2 0>;
0046 };
0047
0048 key4 {
0049 label = "KEY4";
0050 linux,code = <4>;
0051 gpios = <&pca9532 3 0>;
0052 };
0053
0054 joy0 {
0055 label = "Joystick Key 0";
0056 linux,code = <10>;
0057 gpios = <&gpio 2 0 0>; /* P2.0 */
0058 };
0059
0060 joy1 {
0061 label = "Joystick Key 1";
0062 linux,code = <11>;
0063 gpios = <&gpio 2 1 0>; /* P2.1 */
0064 };
0065
0066 joy2 {
0067 label = "Joystick Key 2";
0068 linux,code = <12>;
0069 gpios = <&gpio 2 2 0>; /* P2.2 */
0070 };
0071
0072 joy3 {
0073 label = "Joystick Key 3";
0074 linux,code = <13>;
0075 gpios = <&gpio 2 3 0>; /* P2.3 */
0076 };
0077
0078 joy4 {
0079 label = "Joystick Key 4";
0080 linux,code = <14>;
0081 gpios = <&gpio 2 4 0>; /* P2.4 */
0082 };
0083 };
0084
0085 leds {
0086 compatible = "gpio-leds";
0087
0088 /* LEDs on OEM Board */
0089
0090 led1 {
0091 gpios = <&gpio 5 14 1>; /* GPO_P3 14, GPIO 93, active low */
0092 linux,default-trigger = "timer";
0093 default-state = "off";
0094 };
0095
0096 led2 {
0097 gpios = <&gpio 2 10 1>; /* P2.10, active low */
0098 default-state = "off";
0099 };
0100
0101 led3 {
0102 gpios = <&gpio 2 11 1>; /* P2.11, active low */
0103 default-state = "off";
0104 };
0105
0106 led4 {
0107 gpios = <&gpio 2 12 1>; /* P2.12, active low */
0108 default-state = "off";
0109 };
0110
0111 /* LEDs on Base Board */
0112
0113 lede1 {
0114 gpios = <&pca9532 8 0>;
0115 default-state = "off";
0116 };
0117 lede2 {
0118 gpios = <&pca9532 9 0>;
0119 default-state = "off";
0120 };
0121 lede3 {
0122 gpios = <&pca9532 10 0>;
0123 default-state = "off";
0124 };
0125 lede4 {
0126 gpios = <&pca9532 11 0>;
0127 default-state = "off";
0128 };
0129 lede5 {
0130 gpios = <&pca9532 12 0>;
0131 default-state = "off";
0132 };
0133 lede6 {
0134 gpios = <&pca9532 13 0>;
0135 default-state = "off";
0136 };
0137 lede7 {
0138 gpios = <&pca9532 14 0>;
0139 default-state = "off";
0140 };
0141 lede8 {
0142 gpios = <&pca9532 15 0>;
0143 default-state = "off";
0144 };
0145 };
0146 };
0147
0148 /* 3-axis accelerometer X,Y,Z (or AD-IN instead of Z) */
0149 &adc {
0150 status = "okay";
0151 };
0152
0153 &i2c1 {
0154 clock-frequency = <100000>;
0155
0156 uda1380: uda1380@18 {
0157 compatible = "nxp,uda1380";
0158 reg = <0x18>;
0159 power-gpio = <&gpio 3 10 0>;
0160 reset-gpio = <&gpio 3 2 0>;
0161 dac-clk = "wspll";
0162 };
0163
0164 eeprom@50 {
0165 compatible = "atmel,24c256";
0166 reg = <0x50>;
0167 };
0168
0169 eeprom@57 {
0170 compatible = "atmel,24c64";
0171 reg = <0x57>;
0172 };
0173
0174 pca9532: pca9532@60 {
0175 compatible = "nxp,pca9532";
0176 gpio-controller;
0177 #gpio-cells = <2>;
0178 reg = <0x60>;
0179 };
0180 };
0181
0182 &i2c2 {
0183 clock-frequency = <100000>;
0184 };
0185
0186 &i2cusb {
0187 clock-frequency = <100000>;
0188
0189 isp1301: usb-transceiver@2d {
0190 compatible = "nxp,isp1301";
0191 reg = <0x2d>;
0192 };
0193 };
0194
0195 &mac {
0196 phy-mode = "rmii";
0197 use-iram;
0198 status = "okay";
0199 };
0200
0201 /* Here, choose exactly one from: ohci, usbd */
0202 &ohci /* &usbd */ {
0203 transceiver = <&isp1301>;
0204 status = "okay";
0205 };
0206
0207 &sd {
0208 wp-gpios = <&pca9532 5 0>;
0209 cd-gpios = <&pca9532 4 0>;
0210 cd-inverted;
0211 bus-width = <4>;
0212 status = "okay";
0213 };
0214
0215 /* 128MB Flash via SLC NAND controller */
0216 &slc {
0217 status = "okay";
0218
0219 nxp,wdr-clks = <14>;
0220 nxp,wwidth = <260000000>;
0221 nxp,whold = <104000000>;
0222 nxp,wsetup = <200000000>;
0223 nxp,rdr-clks = <14>;
0224 nxp,rwidth = <34666666>;
0225 nxp,rhold = <104000000>;
0226 nxp,rsetup = <200000000>;
0227 nand-on-flash-bbt;
0228 gpios = <&gpio 5 19 1>; /* GPO_P3 19, active low */
0229
0230 partitions {
0231 compatible = "fixed-partitions";
0232 #address-cells = <1>;
0233 #size-cells = <1>;
0234
0235 mtd0@0 {
0236 label = "ea3250-boot";
0237 reg = <0x00000000 0x00080000>;
0238 read-only;
0239 };
0240
0241 mtd1@80000 {
0242 label = "ea3250-uboot";
0243 reg = <0x00080000 0x000c0000>;
0244 read-only;
0245 };
0246
0247 mtd2@140000 {
0248 label = "ea3250-kernel";
0249 reg = <0x00140000 0x00400000>;
0250 };
0251
0252 mtd3@540000 {
0253 label = "ea3250-rootfs";
0254 reg = <0x00540000 0x07ac0000>;
0255 };
0256 };
0257 };
0258
0259 &uart1 {
0260 status = "okay";
0261 };
0262
0263 &uart3 {
0264 status = "okay";
0265 };
0266
0267 &uart5 {
0268 status = "okay";
0269 };
0270
0271 &uart6 {
0272 status = "okay";
0273 };