1 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
3 * MYIR Tech MYD-LPC4357 Development Board with 800x480 7" TFT panel
5 * Copyright (C) 2016-2018 Vladimir Zapolskiy <vz@mleia.com>
10 #include "lpc18xx.dtsi"
11 #include "lpc4357.dtsi"
13 #include <dt-bindings/gpio/gpio.h>
16 model = "MYIR Tech LPC4357 Development Board";
17 compatible = "myir,myd-lpc4357", "nxp,lpc4357";
20 stdout-path = "serial3:115200n8";
24 device_type = "memory";
25 reg = <0x28000000 0x2000000>;
29 compatible = "gpio-leds";
30 pinctrl-names = "default";
31 pinctrl-0 = <&led_pins>;
34 gpios = <&gpio LPC_GPIO(6,15) GPIO_ACTIVE_LOW>;
35 default-state = "off";
39 gpios = <&gpio LPC_GPIO(6,16) GPIO_ACTIVE_LOW>;
40 default-state = "off";
44 gpios = <&gpio LPC_GPIO(6,17) GPIO_ACTIVE_LOW>;
45 default-state = "off";
49 gpios = <&gpio LPC_GPIO(6,10) GPIO_ACTIVE_LOW>;
50 default-state = "off";
54 gpios = <&gpio LPC_GPIO(7,14) GPIO_ACTIVE_LOW>;
55 default-state = "off";
59 gpios = <&gpio LPC_GPIO(6,14) GPIO_ACTIVE_LOW>;
60 default-state = "off";
65 compatible = "innolux,at070tn92";
68 panel_input: endpoint {
69 remote-endpoint = <&lcdc_output>;
75 compatible = "regulator-fixed";
76 regulator-name = "vcc-supply";
77 regulator-min-microvolt = <3300000>;
78 regulator-max-microvolt = <3300000>;
82 compatible = "regulator-fixed";
83 regulator-name = "vmmc-supply";
84 regulator-min-microvolt = <3300000>;
85 regulator-max-microvolt = <3300000>;
90 can0_pins: can0-pins {
103 can1_pins: can1-pins {
118 pins = "p2_9", "p2_10", "p2_11", "p2_12",
119 "p2_13", "p1_0", "p1_1", "p1_2",
120 "p2_8", "p2_7", "p2_6", "p2_2",
121 "p2_1", "p2_0", "p6_8", "p6_7",
122 "pd_16", "pd_15", "pe_0", "pe_1",
123 "pe_2", "pe_3", "pe_4";
130 pins = "p1_7", "p1_8", "p1_9", "p1_10",
131 "p1_11", "p1_12", "p1_13", "p1_14",
132 "p5_4", "p5_5", "p5_6", "p5_7",
133 "p5_0", "p5_1", "p5_2", "p5_3";
136 input-schmitt-disable;
142 pins = "p1_6", "p1_3";
155 emc_sdram_dqm0_1_cfg {
156 pins = "p6_12", "p6_10";
162 emc_sdram_ras_cas_cfg {
163 pins = "p6_5", "p6_4";
169 emc_sdram_dycs0_cfg {
183 emc_sdram_clock_cfg {
187 input-schmitt-disable;
193 enet_rmii_pins: enet-rmii-pins {
195 pins = "p1_15", "p0_0";
198 input-schmitt-disable;
204 pins = "p1_18", "p1_20";
210 enet_rmii_rx_dv_cfg {
214 input-schmitt-disable;
222 input-schmitt-disable;
233 enet_rmii_tx_en_cfg {
244 input-schmitt-disable;
249 i2c0_pins: i2c0-pins {
251 pins = "i2c0_scl", "i2c0_sda";
257 i2c1_pins: i2c1-pins {
259 pins = "pe_15", "pe_13";
267 pins = "p4_1", "p4_4", "p4_3", "p4_2",
268 "p8_7", "p8_6", "p8_5", "p8_4",
269 "p7_5", "p4_8", "p4_10", "p4_9",
270 "p8_3", "pb_6", "pb_5", "pb_4",
271 "p7_4", "p7_3", "p7_2", "p7_1",
272 "pb_3", "pb_2", "pb_1", "pb_0";
276 lcd_vsync_en_dclk_lp_pwr_cfg {
277 pins = "p4_5", "p4_6", "p4_7", "p7_6", "p7_7";
284 pins = "pd_1", "pd_2", "pd_3", "pc_11", "pe_14", "pd_0";
290 sdmmc_pins: sdmmc-pins {
298 sdmmc_cmd_dat0_3_cfg {
299 pins = "pc_4", "pc_5", "pc_6", "pc_7", "pc_10";
302 input-schmitt-disable;
315 spifi_pins: spifi-pins {
320 input-schmitt-disable;
325 spifi_mosi_miso_sio2_sio3_cfg {
326 pins = "p3_7", "p3_6", "p3_5", "p3_4";
329 input-schmitt-disable;
341 ssp1_pins: ssp1-pins {
353 input-schmitt-disable;
372 uart0_pins: uart0-pins {
377 input-schmitt-disable;
381 uart0_clk_dir_txd_cfg {
382 pins = "pf_8", "pf_9", "pf_10";
388 uart1_pins: uart1-pins {
394 input-schmitt-disable;
398 pins = "pc_12", "pc_13";
404 uart2_pins: uart2-pins {
410 input-schmitt-disable;
420 uart3_pins: uart3-pins {
426 input-schmitt-disable;
436 usb0_pins: usb0-pins {
437 usb0_pwr_enable_cfg {
453 vref-supply = <&vcc>;
458 pinctrl-names = "default";
459 pinctrl-0 = <&can0_pins>;
462 /* Pin conflict with EMC, muxed by JP5 and JP6 */
465 pinctrl-names = "default";
466 pinctrl-0 = <&can1_pins>;
471 pinctrl-names = "default";
472 pinctrl-0 = <&emc_pins>;
475 #address-cells = <2>;
480 mpmc,memory-width = <16>;
482 mpmc,write-enable-delay = <0>;
483 mpmc,output-enable-delay = <0>;
484 mpmc,read-access-delay = <70>;
485 mpmc,page-mode-read-delay = <70>;
487 /* SST/Microchip SST39VF1601 */
489 compatible = "cfi-flash";
490 reg = <0 0 0x400000>;
497 clock-frequency = <50000000>;
502 pinctrl-names = "default";
503 pinctrl-0 = <&i2c0_pins>;
504 clock-frequency = <400000>;
509 pinctrl-names = "default";
510 pinctrl-0 = <&i2c1_pins>;
511 clock-frequency = <400000>;
519 compatible = "atmel,24c512";
526 pinctrl-names = "default";
527 pinctrl-0 = <&lcd_pins>;
529 max-memory-bandwidth = <92240000>;
532 lcdc_output: endpoint {
533 remote-endpoint = <&panel_input>;
534 arm,pl11x,tft-r0g0b0-pads = <0 8 16>;
542 pinctrl-names = "default";
543 pinctrl-0 = <&enet_rmii_pins>;
544 phy-handle = <&phy1>;
547 #address-cells = <1>;
549 compatible = "snps,dwmac-mdio";
551 phy1: ethernet-phy@1 {
559 pinctrl-names = "default";
560 pinctrl-0 = <&sdmmc_pins>;
562 vmmc-supply = <&vmmc>;
565 /* Pin conflict with SSP0, the latter is routed to J17 pin header */
568 pinctrl-names = "default";
569 pinctrl-0 = <&spifi_pins>;
571 /* Atmel AT25DF321A */
573 compatible = "jedec,spi-nor";
574 spi-max-frequency = <51000000>;
582 pinctrl-names = "default";
583 pinctrl-0 = <&ssp1_pins>;
585 cs-gpios = <&gpio LPC_GPIO(7,19) GPIO_ACTIVE_LOW>;
588 /* Routed to J17 pin header */
591 pinctrl-names = "default";
592 pinctrl-0 = <&uart0_pins>;
598 pinctrl-names = "default";
599 pinctrl-0 = <&uart1_pins>;
602 /* Routed to J17 pin header */
605 pinctrl-names = "default";
606 pinctrl-0 = <&uart2_pins>;
611 pinctrl-names = "default";
612 pinctrl-0 = <&uart3_pins>;
617 pinctrl-names = "default";
618 pinctrl-0 = <&usb0_pins>;