| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * PHYTEC phyCORE-LPC3250 board |
|---|
| 3 | 4 | * |
|---|
| 5 | + * Copyright (C) 2015-2019 Vladimir Zapolskiy <vz@mleia.com> |
|---|
| 4 | 6 | * 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 | 7 | */ |
|---|
| 13 | 8 | |
|---|
| 14 | 9 | /dts-v1/; |
|---|
| .. | .. |
|---|
| 17 | 12 | / { |
|---|
| 18 | 13 | model = "PHYTEC phyCORE-LPC3250 board based on NXP LPC3250"; |
|---|
| 19 | 14 | compatible = "phytec,phy3250", "nxp,lpc3250"; |
|---|
| 20 | | - #address-cells = <1>; |
|---|
| 21 | | - #size-cells = <1>; |
|---|
| 22 | 15 | |
|---|
| 23 | | - memory { |
|---|
| 16 | + memory@80000000 { |
|---|
| 24 | 17 | device_type = "memory"; |
|---|
| 25 | 18 | reg = <0x80000000 0x4000000>; |
|---|
| 26 | | - }; |
|---|
| 27 | | - |
|---|
| 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 | | - }; |
|---|
| 48 | | - |
|---|
| 49 | | - sd_reg: regulator@2 { |
|---|
| 50 | | - compatible = "regulator-fixed"; |
|---|
| 51 | | - regulator-name = "sd_reg"; |
|---|
| 52 | | - regulator-min-microvolt = <3300000>; |
|---|
| 53 | | - regulator-max-microvolt = <3300000>; |
|---|
| 54 | | - gpio = <&gpio 5 5 0>; |
|---|
| 55 | | - enable-active-high; |
|---|
| 56 | | - }; |
|---|
| 57 | 19 | }; |
|---|
| 58 | 20 | |
|---|
| 59 | 21 | leds { |
|---|
| .. | .. |
|---|
| 69 | 31 | linux,default-trigger = "heartbeat"; |
|---|
| 70 | 32 | }; |
|---|
| 71 | 33 | }; |
|---|
| 34 | + |
|---|
| 35 | + panel: panel { |
|---|
| 36 | + compatible = "sharp,lq035q7db03"; |
|---|
| 37 | + power-supply = <®_lcd>; |
|---|
| 38 | + |
|---|
| 39 | + port { |
|---|
| 40 | + panel_input: endpoint { |
|---|
| 41 | + remote-endpoint = <&cldc_output>; |
|---|
| 42 | + }; |
|---|
| 43 | + }; |
|---|
| 44 | + }; |
|---|
| 45 | + |
|---|
| 46 | + reg_backlight: regulator-backlight { |
|---|
| 47 | + compatible = "regulator-fixed"; |
|---|
| 48 | + regulator-name = "backlight"; |
|---|
| 49 | + regulator-min-microvolt = <1800000>; |
|---|
| 50 | + regulator-max-microvolt = <1800000>; |
|---|
| 51 | + gpio = <&gpio 5 4 0>; |
|---|
| 52 | + enable-active-high; |
|---|
| 53 | + regulator-boot-on; |
|---|
| 54 | + }; |
|---|
| 55 | + |
|---|
| 56 | + reg_lcd: regulator-lcd { |
|---|
| 57 | + compatible = "regulator-fixed"; |
|---|
| 58 | + regulator-name = "lcd"; |
|---|
| 59 | + regulator-min-microvolt = <1800000>; |
|---|
| 60 | + regulator-max-microvolt = <1800000>; |
|---|
| 61 | + gpio = <&gpio 5 0 0>; |
|---|
| 62 | + enable-active-high; |
|---|
| 63 | + regulator-boot-on; |
|---|
| 64 | + }; |
|---|
| 65 | + |
|---|
| 66 | + reg_sd: regulator-sd { |
|---|
| 67 | + compatible = "regulator-fixed"; |
|---|
| 68 | + regulator-name = "sd"; |
|---|
| 69 | + regulator-min-microvolt = <3300000>; |
|---|
| 70 | + regulator-max-microvolt = <3300000>; |
|---|
| 71 | + gpio = <&gpio 5 5 0>; |
|---|
| 72 | + enable-active-high; |
|---|
| 73 | + regulator-boot-on; |
|---|
| 74 | + }; |
|---|
| 72 | 75 | }; |
|---|
| 73 | 76 | |
|---|
| 74 | 77 | &clcd { |
|---|
| 78 | + max-memory-bandwidth = <18710000>; |
|---|
| 75 | 79 | status = "okay"; |
|---|
| 80 | + |
|---|
| 81 | + port { |
|---|
| 82 | + cldc_output: endpoint { |
|---|
| 83 | + remote-endpoint = <&panel_input>; |
|---|
| 84 | + arm,pl11x,tft-r0g0b0-pads = <0 8 16>; |
|---|
| 85 | + }; |
|---|
| 86 | + }; |
|---|
| 76 | 87 | }; |
|---|
| 77 | 88 | |
|---|
| 78 | 89 | &i2c1 { |
|---|
| .. | .. |
|---|
| 117 | 128 | &mac { |
|---|
| 118 | 129 | phy-mode = "rmii"; |
|---|
| 119 | 130 | use-iram; |
|---|
| 131 | + status = "okay"; |
|---|
| 120 | 132 | }; |
|---|
| 121 | 133 | |
|---|
| 122 | 134 | /* Here, choose exactly one from: ohci, usbd */ |
|---|
| .. | .. |
|---|
| 130 | 142 | cd-gpios = <&gpio 3 1 0>; |
|---|
| 131 | 143 | cd-inverted; |
|---|
| 132 | 144 | bus-width = <4>; |
|---|
| 133 | | - vmmc-supply = <&sd_reg>; |
|---|
| 145 | + vmmc-supply = <®_sd>; |
|---|
| 134 | 146 | status = "okay"; |
|---|
| 135 | 147 | }; |
|---|
| 136 | 148 | |
|---|
| .. | .. |
|---|
| 184 | 196 | }; |
|---|
| 185 | 197 | |
|---|
| 186 | 198 | &ssp0 { |
|---|
| 187 | | - #address-cells = <1>; |
|---|
| 188 | | - #size-cells = <0>; |
|---|
| 189 | 199 | num-cs = <1>; |
|---|
| 190 | 200 | cs-gpios = <&gpio 3 5 0>; |
|---|
| 191 | 201 | status = "okay"; |
|---|