Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 1 | /* |
| 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 Zapolskiy | 1a24edd | 2015-10-18 00:35:50 +0300 | [diff] [blame] | 15 | #include "lpc32xx.dtsi" |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 16 | |
| 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 Zapolskiy | cae5949 | 2015-10-18 00:35:54 +0300 | [diff] [blame] | 25 | reg = <0x80000000 0x4000000>; |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 26 | }; |
| 27 | |
Vladimir Zapolskiy | f6d4434 | 2015-12-21 21:54:25 +0200 | [diff] [blame] | 28 | 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 Zapolskiy | d06670e | 2015-12-21 21:54:26 +0200 | [diff] [blame] | 48 | |
| 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 Zapolskiy | f6d4434 | 2015-12-21 21:54:25 +0200 | [diff] [blame] | 57 | }; |
| 58 | |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 59 | ahb { |
| 60 | mac: ethernet@31060000 { |
| 61 | phy-mode = "rmii"; |
| 62 | use-iram; |
| 63 | }; |
| 64 | |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 65 | 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 Stigge | 15ab218 | 2012-06-14 16:16:16 +0200 | [diff] [blame] | 75 | 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 Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 86 | 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 Stigge | c70426f | 2012-06-14 16:16:18 +0200 | [diff] [blame] | 115 | uart5: serial@40090000 { |
| 116 | status = "okay"; |
| 117 | }; |
| 118 | |
| 119 | uart3: serial@40080000 { |
| 120 | status = "okay"; |
| 121 | }; |
| 122 | |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 123 | 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 Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 144 | ssp0: ssp@20084000 { |
Alexandre Pereira da Silva | 2e0b5a3 | 2012-06-12 10:34:12 -0300 | [diff] [blame] | 145 | #address-cells = <1>; |
| 146 | #size-cells = <0>; |
Roland Stigge | 067c182 | 2012-09-06 11:40:42 +0200 | [diff] [blame] | 147 | num-cs = <1>; |
Alexandre Pereira da Silva | 2e0b5a3 | 2012-06-12 10:34:12 -0300 | [diff] [blame] | 148 | cs-gpios = <&gpio 3 5 0>; |
Sylvain Lemieux | 9a96877 | 2016-04-20 09:20:59 -0400 | [diff] [blame] | 149 | status = "okay"; |
Alexandre Pereira da Silva | 2e0b5a3 | 2012-06-12 10:34:12 -0300 | [diff] [blame] | 150 | |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 151 | eeprom: at25@0 { |
Alexandre Pereira da Silva | 2e0b5a3 | 2012-06-12 10:34:12 -0300 | [diff] [blame] | 152 | pl022,interface = <0>; |
Alexandre Pereira da Silva | 2e0b5a3 | 2012-06-12 10:34:12 -0300 | [diff] [blame] | 153 | 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 Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 164 | compatible = "atmel,at25"; |
Alexandre Pereira da Silva | 2e0b5a3 | 2012-06-12 10:34:12 -0300 | [diff] [blame] | 165 | reg = <0>; |
| 166 | spi-max-frequency = <5000000>; |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 167 | }; |
| 168 | }; |
Roland Stigge | 2c7fa28 | 2012-06-14 16:16:18 +0200 | [diff] [blame] | 169 | |
| 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 Zapolskiy | d06670e | 2015-12-21 21:54:26 +0200 | [diff] [blame] | 175 | vmmc-supply = <&sd_reg>; |
Roland Stigge | 2c7fa28 | 2012-06-14 16:16:18 +0200 | [diff] [blame] | 176 | status = "okay"; |
| 177 | }; |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 178 | }; |
| 179 | |
| 180 | fab { |
Roland Stigge | ac5ced9 | 2012-06-14 16:16:18 +0200 | [diff] [blame] | 181 | uart2: serial@40018000 { |
| 182 | status = "okay"; |
| 183 | }; |
| 184 | |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 185 | tsc@40048000 { |
| 186 | status = "okay"; |
| 187 | }; |
Roland Stigge | a6d1be0 | 2012-06-14 16:16:17 +0200 | [diff] [blame] | 188 | |
| 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 Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 197 | }; |
| 198 | }; |
| 199 | |
| 200 | leds { |
| 201 | compatible = "gpio-leds"; |
| 202 | |
Roland Stigge | 07c7e12 | 2012-09-25 10:11:41 +0200 | [diff] [blame] | 203 | led0 { /* red */ |
| 204 | gpios = <&gpio 5 1 0>; /* GPO_P3 1, GPIO 80, active high */ |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 205 | default-state = "off"; |
| 206 | }; |
| 207 | |
Roland Stigge | 07c7e12 | 2012-09-25 10:11:41 +0200 | [diff] [blame] | 208 | led1 { /* green */ |
| 209 | gpios = <&gpio 5 14 0>; /* GPO_P3 14, GPIO 93, active high */ |
| 210 | linux,default-trigger = "heartbeat"; |
Roland Stigge | e04920d | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 211 | }; |
| 212 | }; |
| 213 | }; |
Vladimir Zapolskiy | aa29efb | 2015-10-18 00:35:57 +0300 | [diff] [blame] | 214 | |
| 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 | }; |