2 * Device tree file for Phytec phyCORE-RK3288 SoM
3 * Copyright (C) 2017 PHYTEC Messtechnik GmbH
4 * Author: Wadim Egorov <w.egorov@phytec.de>
6 * This file is dual-licensed: you can use it either under the terms
7 * of the GPL or the X11 license, at your option. Note that this dual
8 * licensing only applies to this file, and not this project as a
11 * a) This file is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License as
13 * published by the Free Software Foundation; either version 2 of the
14 * License, or (at your option) any later version.
16 * This file is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
23 * b) Permission is hereby granted, free of charge, to any person
24 * obtaining a copy of this software and associated documentation
25 * files (the "Software"), to deal in the Software without
26 * restriction, including without limitation the rights to use,
27 * copy, modify, merge, publish, distribute, sublicense, and/or
28 * sell copies of the Software, and to permit persons to whom the
29 * Software is furnished to do so, subject to the following
32 * The above copyright notice and this permission notice shall be
33 * included in all copies or substantial portions of the Software.
35 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
36 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
37 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
38 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
39 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
40 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
41 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
42 * OTHER DEALINGS IN THE SOFTWARE.
45 #include <dt-bindings/net/ti-dp83867.h>
46 #include "rk3288.dtsi"
49 model = "Phytec RK3288 phyCORE";
50 compatible = "phytec,rk3288-phycore-som", "rockchip,rk3288";
53 * Set the minimum memory size here and
54 * let the bootloader set the real size.
57 device_type = "memory";
64 eeprom0 = &i2c_eeprom_id;
67 ext_gmac: external-gmac-clock {
68 compatible = "fixed-clock";
70 clock-frequency = <125000000>;
71 clock-output-names = "ext_gmac";
75 compatible = "gpio-leds";
76 pinctrl-names = "default";
77 pinctrl-0 = <&user_led>;
81 gpios = <&gpio7 2 GPIO_ACTIVE_HIGH>;
82 linux,default-trigger = "heartbeat";
83 default-state = "keep";
87 vdd_emmc_io: vdd-emmc-io {
88 compatible = "regulator-fixed";
89 regulator-name = "vdd_emmc_io";
90 regulator-min-microvolt = <1800000>;
91 regulator-max-microvolt = <1800000>;
92 vin-supply = <&vdd_3v3_io>;
95 vdd_in_otg_out: vdd-in-otg-out {
96 compatible = "regulator-fixed";
97 regulator-name = "vdd_in_otg_out";
100 regulator-min-microvolt = <5000000>;
101 regulator-max-microvolt = <5000000>;
104 vdd_misc_1v8: vdd-misc-1v8 {
105 compatible = "regulator-fixed";
106 regulator-name = "vdd_misc_1v8";
109 regulator-min-microvolt = <1800000>;
110 regulator-max-microvolt = <1800000>;
115 cpu0-supply = <&vdd_cpu>;
141 pinctrl-names = "default";
142 pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_pwr &emmc_bus8>;
143 vmmc-supply = <&vdd_3v3_io>;
144 vqmmc-supply = <&vdd_emmc_io>;
148 assigned-clocks = <&cru SCLK_MAC>;
149 assigned-clock-parents = <&ext_gmac>;
150 clock_in_out = "input";
151 pinctrl-names = "default";
152 pinctrl-0 = <&rgmii_pins &phy_rst &phy_int>;
153 phy-handle = <&phy0>;
154 phy-supply = <&vdd_eth_2v5>;
155 phy-mode = "rgmii-id";
156 snps,reset-active-low;
157 snps,reset-delays-us = <0 10000 1000000>;
158 snps,reset-gpio = <&gpio4 8 GPIO_ACTIVE_HIGH>;
163 compatible = "snps,dwmac-mdio";
164 #address-cells = <1>;
167 phy0: ethernet-phy@0 {
168 compatible = "ethernet-phy-ieee802.3-c22";
170 interrupt-parent = <&gpio4>;
171 interrupts = <2 IRQ_TYPE_EDGE_FALLING>;
172 ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
173 ti,tx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
174 ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
175 enet-phy-lane-no-swap;
181 ddc-i2c-bus = <&i2c5>;
185 audio-supply = <&vdd_3v3_io>;
186 bb-supply = <&vdd_3v3_io>;
187 dvp-supply = <&vdd_3v3_io>;
188 flash0-supply = <&vdd_emmc_io>;
189 flash1-supply = <&vdd_misc_1v8>;
190 gpio1830-supply = <&vdd_3v3_io>;
191 gpio30-supply = <&vdd_3v3_io>;
192 lcdc-supply = <&vdd_3v3_io>;
193 sdcard-supply = <&vdd_io_sd>;
194 wifi-supply = <&vdd_3v3_io>;
200 clock-frequency = <400000>;
204 compatible = "rockchip,rk818";
206 interrupt-parent = <&gpio0>;
207 interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
208 pinctrl-names = "default";
209 pinctrl-0 = <&pmic_int>;
210 rockchip,system-power-controller;
214 vcc1-supply = <&vdd_sys>;
215 vcc2-supply = <&vdd_sys>;
216 vcc3-supply = <&vdd_sys>;
217 vcc4-supply = <&vdd_sys>;
218 boost-supply = <&vdd_in_otg_out>;
219 vcc6-supply = <&vdd_sys>;
220 vcc7-supply = <&vdd_misc_1v8>;
221 vcc8-supply = <&vdd_misc_1v8>;
222 vcc9-supply = <&vdd_3v3_io>;
223 vddio-supply = <&vdd_3v3_io>;
227 regulator-name = "vdd_log";
230 regulator-min-microvolt = <1100000>;
231 regulator-max-microvolt = <1100000>;
232 regulator-state-mem {
233 regulator-off-in-suspend;
238 regulator-name = "vdd_gpu";
241 regulator-min-microvolt = <800000>;
242 regulator-max-microvolt = <1250000>;
243 regulator-state-mem {
244 regulator-on-in-suspend;
245 regulator-suspend-microvolt = <1000000>;
250 regulator-name = "vcc_ddr";
253 regulator-state-mem {
254 regulator-on-in-suspend;
258 vdd_3v3_io: DCDC_REG4 {
259 regulator-name = "vdd_3v3_io";
262 regulator-min-microvolt = <3300000>;
263 regulator-max-microvolt = <3300000>;
264 regulator-state-mem {
265 regulator-on-in-suspend;
266 regulator-suspend-microvolt = <3300000>;
270 vdd_sys: DCDC_BOOST {
271 regulator-name = "vdd_sys";
274 regulator-min-microvolt = <5000000>;
275 regulator-max-microvolt = <5000000>;
276 regulator-state-mem {
277 regulator-on-in-suspend;
278 regulator-suspend-microvolt = <5000000>;
284 regulator-name = "vdd_sd";
287 regulator-state-mem {
288 regulator-off-in-suspend;
293 vdd_eth_2v5: LDO_REG2 {
294 regulator-name = "vdd_eth_2v5";
297 regulator-min-microvolt = <2500000>;
298 regulator-max-microvolt = <2500000>;
299 regulator-state-mem {
300 regulator-on-in-suspend;
301 regulator-suspend-microvolt = <2500000>;
307 regulator-name = "vdd_1v0";
310 regulator-min-microvolt = <1000000>;
311 regulator-max-microvolt = <1000000>;
312 regulator-state-mem {
313 regulator-on-in-suspend;
314 regulator-suspend-microvolt = <1000000>;
319 vdd_1v8_lcd_ldo: LDO_REG4 {
320 regulator-name = "vdd_1v8_lcd_ldo";
323 regulator-min-microvolt = <1800000>;
324 regulator-max-microvolt = <1800000>;
325 regulator-state-mem {
326 regulator-on-in-suspend;
327 regulator-suspend-microvolt = <1800000>;
332 vdd_1v0_lcd: LDO_REG6 {
333 regulator-name = "vdd_1v0_lcd";
336 regulator-min-microvolt = <1000000>;
337 regulator-max-microvolt = <1000000>;
338 regulator-state-mem {
339 regulator-on-in-suspend;
340 regulator-suspend-microvolt = <1000000>;
345 vdd_1v8_ldo: LDO_REG7 {
346 regulator-name = "vdd_1v8_ldo";
349 regulator-min-microvolt = <1800000>;
350 regulator-max-microvolt = <1800000>;
351 regulator-state-mem {
352 regulator-off-in-suspend;
353 regulator-suspend-microvolt = <1800000>;
358 vdd_io_sd: LDO_REG9 {
359 regulator-name = "vdd_io_sd";
362 regulator-min-microvolt = <3300000>;
363 regulator-max-microvolt = <3300000>;
364 regulator-state-mem {
365 regulator-on-in-suspend;
366 regulator-suspend-microvolt = <3300000>;
373 i2c_eeprom: eeprom@50 {
374 compatible = "atmel,24c32";
379 /* M24C32-D Identification page */
380 i2c_eeprom_id: eeprom@58 {
381 compatible = "atmel,24c32";
386 vdd_cpu: regulator@60 {
387 compatible = "fcs,fan53555";
389 fcs,suspend-voltage-selector = <1>;
392 regulator-enable-ramp-delay = <300>;
393 regulator-name = "vdd_cpu";
394 regulator-min-microvolt = <800000>;
395 regulator-max-microvolt = <1430000>;
396 regulator-ramp-delay = <8000>;
397 vin-supply = <&vdd_sys>;
402 pcfg_output_high: pcfg-output-high {
408 * We run eMMC at max speed; bump up drive strength.
409 * We also have external pulls, so disable the internal ones.
412 rockchip,pins = <3 18 RK_FUNC_2 &pcfg_pull_none_12ma>;
416 rockchip,pins = <3 16 RK_FUNC_2 &pcfg_pull_none_12ma>;
419 emmc_bus8: emmc-bus8 {
420 rockchip,pins = <3 0 RK_FUNC_2 &pcfg_pull_none_12ma>,
421 <3 1 RK_FUNC_2 &pcfg_pull_none_12ma>,
422 <3 2 RK_FUNC_2 &pcfg_pull_none_12ma>,
423 <3 3 RK_FUNC_2 &pcfg_pull_none_12ma>,
424 <3 4 RK_FUNC_2 &pcfg_pull_none_12ma>,
425 <3 5 RK_FUNC_2 &pcfg_pull_none_12ma>,
426 <3 6 RK_FUNC_2 &pcfg_pull_none_12ma>,
427 <3 7 RK_FUNC_2 &pcfg_pull_none_12ma>;
433 rockchip,pins = <4 2 RK_FUNC_GPIO &pcfg_pull_up>;
437 rockchip,pins = <4 8 RK_FUNC_GPIO &pcfg_output_high>;
443 rockchip,pins = <7 2 RK_FUNC_GPIO &pcfg_output_high>;
449 rockchip,pins = <RK_GPIO0 4 RK_FUNC_GPIO &pcfg_pull_up>;
452 /* Pin for switching state between sleep and non-sleep state */
453 pmic_sleep: pmic-sleep {
454 rockchip,pins = <RK_GPIO0 0 RK_FUNC_GPIO &pcfg_pull_up>;
465 vref-supply = <&vdd_1v8_ldo>;
471 serial_flash: flash@0 {
472 compatible = "micron,n25q128a13", "jedec,spi-nor";
474 spi-max-frequency = <50000000>;
476 #address-cells = <1>;
484 rockchip,hw-tshut-mode = <0>;
485 rockchip,hw-tshut-polarity = <0>;