1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-or-later 2*f126890aSEmmanuel Vadot/* 3*f126890aSEmmanuel Vadot * Embedded Artists LPC3250 board 4*f126890aSEmmanuel Vadot * 5*f126890aSEmmanuel Vadot * Copyright 2012 Roland Stigge <stigge@antcom.de> 6*f126890aSEmmanuel Vadot */ 7*f126890aSEmmanuel Vadot 8*f126890aSEmmanuel Vadot/dts-v1/; 9*f126890aSEmmanuel Vadot#include "lpc32xx.dtsi" 10*f126890aSEmmanuel Vadot 11*f126890aSEmmanuel Vadot/ { 12*f126890aSEmmanuel Vadot model = "Embedded Artists LPC3250 board based on NXP LPC3250"; 13*f126890aSEmmanuel Vadot compatible = "ea,ea3250", "nxp,lpc3250"; 14*f126890aSEmmanuel Vadot 15*f126890aSEmmanuel Vadot memory@80000000 { 16*f126890aSEmmanuel Vadot device_type = "memory"; 17*f126890aSEmmanuel Vadot reg = <0x80000000 0x4000000>; 18*f126890aSEmmanuel Vadot }; 19*f126890aSEmmanuel Vadot 20*f126890aSEmmanuel Vadot gpio-keys { 21*f126890aSEmmanuel Vadot compatible = "gpio-keys"; 22*f126890aSEmmanuel Vadot autorepeat; 23*f126890aSEmmanuel Vadot 24*f126890aSEmmanuel Vadot button { 25*f126890aSEmmanuel Vadot label = "Interrupt Key"; 26*f126890aSEmmanuel Vadot linux,code = <103>; 27*f126890aSEmmanuel Vadot gpios = <&gpio 4 1 0>; /* GPI_P3 1 */ 28*f126890aSEmmanuel Vadot }; 29*f126890aSEmmanuel Vadot 30*f126890aSEmmanuel Vadot key1 { 31*f126890aSEmmanuel Vadot label = "KEY1"; 32*f126890aSEmmanuel Vadot linux,code = <1>; 33*f126890aSEmmanuel Vadot gpios = <&pca9532 0 0>; 34*f126890aSEmmanuel Vadot }; 35*f126890aSEmmanuel Vadot 36*f126890aSEmmanuel Vadot key2 { 37*f126890aSEmmanuel Vadot label = "KEY2"; 38*f126890aSEmmanuel Vadot linux,code = <2>; 39*f126890aSEmmanuel Vadot gpios = <&pca9532 1 0>; 40*f126890aSEmmanuel Vadot }; 41*f126890aSEmmanuel Vadot 42*f126890aSEmmanuel Vadot key3 { 43*f126890aSEmmanuel Vadot label = "KEY3"; 44*f126890aSEmmanuel Vadot linux,code = <3>; 45*f126890aSEmmanuel Vadot gpios = <&pca9532 2 0>; 46*f126890aSEmmanuel Vadot }; 47*f126890aSEmmanuel Vadot 48*f126890aSEmmanuel Vadot key4 { 49*f126890aSEmmanuel Vadot label = "KEY4"; 50*f126890aSEmmanuel Vadot linux,code = <4>; 51*f126890aSEmmanuel Vadot gpios = <&pca9532 3 0>; 52*f126890aSEmmanuel Vadot }; 53*f126890aSEmmanuel Vadot 54*f126890aSEmmanuel Vadot joy0 { 55*f126890aSEmmanuel Vadot label = "Joystick Key 0"; 56*f126890aSEmmanuel Vadot linux,code = <10>; 57*f126890aSEmmanuel Vadot gpios = <&gpio 2 0 0>; /* P2.0 */ 58*f126890aSEmmanuel Vadot }; 59*f126890aSEmmanuel Vadot 60*f126890aSEmmanuel Vadot joy1 { 61*f126890aSEmmanuel Vadot label = "Joystick Key 1"; 62*f126890aSEmmanuel Vadot linux,code = <11>; 63*f126890aSEmmanuel Vadot gpios = <&gpio 2 1 0>; /* P2.1 */ 64*f126890aSEmmanuel Vadot }; 65*f126890aSEmmanuel Vadot 66*f126890aSEmmanuel Vadot joy2 { 67*f126890aSEmmanuel Vadot label = "Joystick Key 2"; 68*f126890aSEmmanuel Vadot linux,code = <12>; 69*f126890aSEmmanuel Vadot gpios = <&gpio 2 2 0>; /* P2.2 */ 70*f126890aSEmmanuel Vadot }; 71*f126890aSEmmanuel Vadot 72*f126890aSEmmanuel Vadot joy3 { 73*f126890aSEmmanuel Vadot label = "Joystick Key 3"; 74*f126890aSEmmanuel Vadot linux,code = <13>; 75*f126890aSEmmanuel Vadot gpios = <&gpio 2 3 0>; /* P2.3 */ 76*f126890aSEmmanuel Vadot }; 77*f126890aSEmmanuel Vadot 78*f126890aSEmmanuel Vadot joy4 { 79*f126890aSEmmanuel Vadot label = "Joystick Key 4"; 80*f126890aSEmmanuel Vadot linux,code = <14>; 81*f126890aSEmmanuel Vadot gpios = <&gpio 2 4 0>; /* P2.4 */ 82*f126890aSEmmanuel Vadot }; 83*f126890aSEmmanuel Vadot }; 84*f126890aSEmmanuel Vadot 85*f126890aSEmmanuel Vadot leds { 86*f126890aSEmmanuel Vadot compatible = "gpio-leds"; 87*f126890aSEmmanuel Vadot 88*f126890aSEmmanuel Vadot /* LEDs on OEM Board */ 89*f126890aSEmmanuel Vadot 90*f126890aSEmmanuel Vadot led1 { 91*f126890aSEmmanuel Vadot gpios = <&gpio 5 14 1>; /* GPO_P3 14, GPIO 93, active low */ 92*f126890aSEmmanuel Vadot linux,default-trigger = "timer"; 93*f126890aSEmmanuel Vadot default-state = "off"; 94*f126890aSEmmanuel Vadot }; 95*f126890aSEmmanuel Vadot 96*f126890aSEmmanuel Vadot led2 { 97*f126890aSEmmanuel Vadot gpios = <&gpio 2 10 1>; /* P2.10, active low */ 98*f126890aSEmmanuel Vadot default-state = "off"; 99*f126890aSEmmanuel Vadot }; 100*f126890aSEmmanuel Vadot 101*f126890aSEmmanuel Vadot led3 { 102*f126890aSEmmanuel Vadot gpios = <&gpio 2 11 1>; /* P2.11, active low */ 103*f126890aSEmmanuel Vadot default-state = "off"; 104*f126890aSEmmanuel Vadot }; 105*f126890aSEmmanuel Vadot 106*f126890aSEmmanuel Vadot led4 { 107*f126890aSEmmanuel Vadot gpios = <&gpio 2 12 1>; /* P2.12, active low */ 108*f126890aSEmmanuel Vadot default-state = "off"; 109*f126890aSEmmanuel Vadot }; 110*f126890aSEmmanuel Vadot 111*f126890aSEmmanuel Vadot /* LEDs on Base Board */ 112*f126890aSEmmanuel Vadot 113*f126890aSEmmanuel Vadot lede1 { 114*f126890aSEmmanuel Vadot gpios = <&pca9532 8 0>; 115*f126890aSEmmanuel Vadot default-state = "off"; 116*f126890aSEmmanuel Vadot }; 117*f126890aSEmmanuel Vadot lede2 { 118*f126890aSEmmanuel Vadot gpios = <&pca9532 9 0>; 119*f126890aSEmmanuel Vadot default-state = "off"; 120*f126890aSEmmanuel Vadot }; 121*f126890aSEmmanuel Vadot lede3 { 122*f126890aSEmmanuel Vadot gpios = <&pca9532 10 0>; 123*f126890aSEmmanuel Vadot default-state = "off"; 124*f126890aSEmmanuel Vadot }; 125*f126890aSEmmanuel Vadot lede4 { 126*f126890aSEmmanuel Vadot gpios = <&pca9532 11 0>; 127*f126890aSEmmanuel Vadot default-state = "off"; 128*f126890aSEmmanuel Vadot }; 129*f126890aSEmmanuel Vadot lede5 { 130*f126890aSEmmanuel Vadot gpios = <&pca9532 12 0>; 131*f126890aSEmmanuel Vadot default-state = "off"; 132*f126890aSEmmanuel Vadot }; 133*f126890aSEmmanuel Vadot lede6 { 134*f126890aSEmmanuel Vadot gpios = <&pca9532 13 0>; 135*f126890aSEmmanuel Vadot default-state = "off"; 136*f126890aSEmmanuel Vadot }; 137*f126890aSEmmanuel Vadot lede7 { 138*f126890aSEmmanuel Vadot gpios = <&pca9532 14 0>; 139*f126890aSEmmanuel Vadot default-state = "off"; 140*f126890aSEmmanuel Vadot }; 141*f126890aSEmmanuel Vadot lede8 { 142*f126890aSEmmanuel Vadot gpios = <&pca9532 15 0>; 143*f126890aSEmmanuel Vadot default-state = "off"; 144*f126890aSEmmanuel Vadot }; 145*f126890aSEmmanuel Vadot }; 146*f126890aSEmmanuel Vadot}; 147*f126890aSEmmanuel Vadot 148*f126890aSEmmanuel Vadot/* 3-axis accelerometer X,Y,Z (or AD-IN instead of Z) */ 149*f126890aSEmmanuel Vadot&adc { 150*f126890aSEmmanuel Vadot status = "okay"; 151*f126890aSEmmanuel Vadot}; 152*f126890aSEmmanuel Vadot 153*f126890aSEmmanuel Vadot&i2c1 { 154*f126890aSEmmanuel Vadot clock-frequency = <100000>; 155*f126890aSEmmanuel Vadot 156*f126890aSEmmanuel Vadot uda1380: uda1380@18 { 157*f126890aSEmmanuel Vadot compatible = "nxp,uda1380"; 158*f126890aSEmmanuel Vadot reg = <0x18>; 159*f126890aSEmmanuel Vadot power-gpio = <&gpio 3 10 0>; 160*f126890aSEmmanuel Vadot reset-gpio = <&gpio 3 2 0>; 161*f126890aSEmmanuel Vadot dac-clk = "wspll"; 162*f126890aSEmmanuel Vadot }; 163*f126890aSEmmanuel Vadot 164*f126890aSEmmanuel Vadot eeprom@50 { 165*f126890aSEmmanuel Vadot compatible = "atmel,24c256"; 166*f126890aSEmmanuel Vadot reg = <0x50>; 167*f126890aSEmmanuel Vadot }; 168*f126890aSEmmanuel Vadot 169*f126890aSEmmanuel Vadot eeprom@57 { 170*f126890aSEmmanuel Vadot compatible = "atmel,24c64"; 171*f126890aSEmmanuel Vadot reg = <0x57>; 172*f126890aSEmmanuel Vadot }; 173*f126890aSEmmanuel Vadot 174*f126890aSEmmanuel Vadot pca9532: pca9532@60 { 175*f126890aSEmmanuel Vadot compatible = "nxp,pca9532"; 176*f126890aSEmmanuel Vadot gpio-controller; 177*f126890aSEmmanuel Vadot #gpio-cells = <2>; 178*f126890aSEmmanuel Vadot reg = <0x60>; 179*f126890aSEmmanuel Vadot }; 180*f126890aSEmmanuel Vadot}; 181*f126890aSEmmanuel Vadot 182*f126890aSEmmanuel Vadot&i2c2 { 183*f126890aSEmmanuel Vadot clock-frequency = <100000>; 184*f126890aSEmmanuel Vadot}; 185*f126890aSEmmanuel Vadot 186*f126890aSEmmanuel Vadot&i2cusb { 187*f126890aSEmmanuel Vadot clock-frequency = <100000>; 188*f126890aSEmmanuel Vadot 189*f126890aSEmmanuel Vadot isp1301: usb-transceiver@2d { 190*f126890aSEmmanuel Vadot compatible = "nxp,isp1301"; 191*f126890aSEmmanuel Vadot reg = <0x2d>; 192*f126890aSEmmanuel Vadot }; 193*f126890aSEmmanuel Vadot}; 194*f126890aSEmmanuel Vadot 195*f126890aSEmmanuel Vadot&mac { 196*f126890aSEmmanuel Vadot phy-mode = "rmii"; 197*f126890aSEmmanuel Vadot use-iram; 198*f126890aSEmmanuel Vadot status = "okay"; 199*f126890aSEmmanuel Vadot}; 200*f126890aSEmmanuel Vadot 201*f126890aSEmmanuel Vadot/* Here, choose exactly one from: ohci, usbd */ 202*f126890aSEmmanuel Vadot&ohci /* &usbd */ { 203*f126890aSEmmanuel Vadot transceiver = <&isp1301>; 204*f126890aSEmmanuel Vadot status = "okay"; 205*f126890aSEmmanuel Vadot}; 206*f126890aSEmmanuel Vadot 207*f126890aSEmmanuel Vadot&sd { 208*f126890aSEmmanuel Vadot wp-gpios = <&pca9532 5 0>; 209*f126890aSEmmanuel Vadot cd-gpios = <&pca9532 4 0>; 210*f126890aSEmmanuel Vadot cd-inverted; 211*f126890aSEmmanuel Vadot bus-width = <4>; 212*f126890aSEmmanuel Vadot status = "okay"; 213*f126890aSEmmanuel Vadot}; 214*f126890aSEmmanuel Vadot 215*f126890aSEmmanuel Vadot/* 128MB Flash via SLC NAND controller */ 216*f126890aSEmmanuel Vadot&slc { 217*f126890aSEmmanuel Vadot status = "okay"; 218*f126890aSEmmanuel Vadot 219*f126890aSEmmanuel Vadot nxp,wdr-clks = <14>; 220*f126890aSEmmanuel Vadot nxp,wwidth = <260000000>; 221*f126890aSEmmanuel Vadot nxp,whold = <104000000>; 222*f126890aSEmmanuel Vadot nxp,wsetup = <200000000>; 223*f126890aSEmmanuel Vadot nxp,rdr-clks = <14>; 224*f126890aSEmmanuel Vadot nxp,rwidth = <34666666>; 225*f126890aSEmmanuel Vadot nxp,rhold = <104000000>; 226*f126890aSEmmanuel Vadot nxp,rsetup = <200000000>; 227*f126890aSEmmanuel Vadot nand-on-flash-bbt; 228*f126890aSEmmanuel Vadot gpios = <&gpio 5 19 1>; /* GPO_P3 19, active low */ 229*f126890aSEmmanuel Vadot 230*f126890aSEmmanuel Vadot partitions { 231*f126890aSEmmanuel Vadot compatible = "fixed-partitions"; 232*f126890aSEmmanuel Vadot #address-cells = <1>; 233*f126890aSEmmanuel Vadot #size-cells = <1>; 234*f126890aSEmmanuel Vadot 235*f126890aSEmmanuel Vadot mtd0@0 { 236*f126890aSEmmanuel Vadot label = "ea3250-boot"; 237*f126890aSEmmanuel Vadot reg = <0x00000000 0x00080000>; 238*f126890aSEmmanuel Vadot read-only; 239*f126890aSEmmanuel Vadot }; 240*f126890aSEmmanuel Vadot 241*f126890aSEmmanuel Vadot mtd1@80000 { 242*f126890aSEmmanuel Vadot label = "ea3250-uboot"; 243*f126890aSEmmanuel Vadot reg = <0x00080000 0x000c0000>; 244*f126890aSEmmanuel Vadot read-only; 245*f126890aSEmmanuel Vadot }; 246*f126890aSEmmanuel Vadot 247*f126890aSEmmanuel Vadot mtd2@140000 { 248*f126890aSEmmanuel Vadot label = "ea3250-kernel"; 249*f126890aSEmmanuel Vadot reg = <0x00140000 0x00400000>; 250*f126890aSEmmanuel Vadot }; 251*f126890aSEmmanuel Vadot 252*f126890aSEmmanuel Vadot mtd3@540000 { 253*f126890aSEmmanuel Vadot label = "ea3250-rootfs"; 254*f126890aSEmmanuel Vadot reg = <0x00540000 0x07ac0000>; 255*f126890aSEmmanuel Vadot }; 256*f126890aSEmmanuel Vadot }; 257*f126890aSEmmanuel Vadot}; 258*f126890aSEmmanuel Vadot 259*f126890aSEmmanuel Vadot&uart1 { 260*f126890aSEmmanuel Vadot status = "okay"; 261*f126890aSEmmanuel Vadot}; 262*f126890aSEmmanuel Vadot 263*f126890aSEmmanuel Vadot&uart3 { 264*f126890aSEmmanuel Vadot status = "okay"; 265*f126890aSEmmanuel Vadot}; 266*f126890aSEmmanuel Vadot 267*f126890aSEmmanuel Vadot&uart5 { 268*f126890aSEmmanuel Vadot status = "okay"; 269*f126890aSEmmanuel Vadot}; 270*f126890aSEmmanuel Vadot 271*f126890aSEmmanuel Vadot&uart6 { 272*f126890aSEmmanuel Vadot status = "okay"; 273*f126890aSEmmanuel Vadot}; 274