0001 /*
0002 * CIAA NXP LPC4337 (http://www.proyecto-ciaa.com.ar)
0003 *
0004 * Copyright (C) 2015 VanguardiaSur - www.vanguardiasur.com.ar
0005 *
0006 * This code is released using a dual license strategy: BSD/GPL
0007 * You can choose the licence that better fits your requirements.
0008 *
0009 * Released under the terms of 3-clause BSD License
0010 * Released under the terms of GNU General Public License Version 2.0
0011 */
0012 /dts-v1/;
0013
0014 #include "lpc18xx.dtsi"
0015 #include "lpc4357.dtsi"
0016
0017 #include "dt-bindings/gpio/gpio.h"
0018
0019 / {
0020 model = "CIAA NXP LPC4337";
0021 compatible = "ciaa,lpc4337", "nxp,lpc4337", "nxp,lpc4350";
0022
0023 aliases {
0024 serial0 = &uart2;
0025 serial1 = &uart3;
0026 };
0027
0028 chosen {
0029 bootargs = "console=ttyS0,115200 earlyprintk";
0030 stdout-path = &uart2;
0031 };
0032
0033 memory@28000000 {
0034 device_type = "memory";
0035 reg = <0x28000000 0x0800000>; /* 8 MB */
0036 };
0037 };
0038
0039 &pinctrl {
0040 enet_rmii_pins: enet-rmii-pins {
0041 enet_rmii_rxd_cfg {
0042 pins = "p1_15", "p0_0";
0043 function = "enet";
0044 slew-rate = <1>;
0045 bias-disable;
0046 input-enable;
0047 input-schmitt-disable;
0048 };
0049
0050 enet_rmii_txd_cfg {
0051 pins = "p1_18", "p1_20";
0052 function = "enet";
0053 slew-rate = <1>;
0054 bias-disable;
0055 input-enable;
0056 input-schmitt-disable;
0057 };
0058
0059 enet_rmii_rx_dv_cfg {
0060 pins = "p1_16";
0061 function = "enet";
0062 bias-disable;
0063 input-enable;
0064 input-schmitt-disable;
0065 };
0066
0067 enet_rmii_tx_en_cfg {
0068 pins = "p0_1";
0069 function = "enet";
0070 bias-disable;
0071 input-enable;
0072 input-schmitt-disable;
0073 };
0074
0075 enet_ref_clk_cfg {
0076 pins = "p1_19";
0077 function = "enet";
0078 slew-rate = <1>;
0079 bias-disable;
0080 input-enable;
0081 input-schmitt-disable;
0082 };
0083
0084 enet_mdio_cfg {
0085 pins = "p1_17";
0086 function = "enet";
0087 bias-disable;
0088 input-enable;
0089 input-schmitt-disable;
0090 };
0091
0092 enet_mdc_cfg {
0093 pins = "p7_7";
0094 function = "enet";
0095 slew-rate = <1>;
0096 bias-disable;
0097 input-enable;
0098 input-schmitt-disable;
0099 };
0100 };
0101
0102 i2c0_pins: i2c0-pins {
0103 i2c0_pins_cfg {
0104 pins = "i2c0_scl", "i2c0_sda";
0105 function = "i2c0";
0106 input-enable;
0107 };
0108 };
0109
0110 ssp_pins: ssp-pins {
0111 ssp1_cs {
0112 pins = "p6_7";
0113 function = "gpio";
0114 bias-pull-up;
0115 bias-disable;
0116 };
0117
0118 ssp1_miso_mosi {
0119 pins = "p1_3", "p1_4";
0120 function = "ssp1";
0121 slew-rate = <1>;
0122 bias-pull-down;
0123 input-enable;
0124 input-schmitt-disable;
0125 };
0126
0127 ssp1_sck {
0128 pins = "pf_4";
0129 function = "ssp1";
0130 slew-rate = <1>;
0131 bias-disable;
0132 };
0133 };
0134
0135 uart2_pins: uart2-pins {
0136 uart2_rx_cfg {
0137 pins = "p7_2";
0138 function = "uart2";
0139 bias-disable;
0140 input-enable;
0141 };
0142
0143 uart2_tx_cfg {
0144 pins = "p7_1";
0145 function = "uart2";
0146 bias-disable;
0147 };
0148 };
0149
0150 uart3_pins: uart3-pins {
0151 uart3_rx_cfg {
0152 pins = "p2_4";
0153 function = "uart3";
0154 bias-disable;
0155 input-enable;
0156 };
0157
0158 uart3_tx_cfg {
0159 pins = "p2_3";
0160 function = "uart3";
0161 bias-disable;
0162 };
0163 };
0164 };
0165
0166 &enet_tx_clk {
0167 clock-frequency = <50000000>;
0168 };
0169
0170 &i2c0 {
0171 status = "okay";
0172 pinctrl-names = "default";
0173 pinctrl-0 = <&i2c0_pins>;
0174 clock-frequency = <400000>;
0175
0176 eeprom@50 {
0177 compatible = "microchip,24c512", "atmel,24c512";
0178 reg = <0x50>;
0179 };
0180
0181 eeprom@51 {
0182 compatible = "microchip,24c02", "atmel,24c02";
0183 reg = <0x51>;
0184 };
0185
0186 eeprom@54 {
0187 compatible = "microchip,24c512", "atmel,24c512";
0188 reg = <0x54>;
0189 };
0190 };
0191
0192 &mac {
0193 status = "okay";
0194 phy-mode = "rmii";
0195 pinctrl-names = "default";
0196 pinctrl-0 = <&enet_rmii_pins>;
0197 };
0198
0199 &sct_pwm {
0200 status = "okay";
0201 };
0202
0203 &ssp1 {
0204 status = "okay";
0205 pinctrl-names = "default";
0206 pinctrl-0 = <&ssp_pins>;
0207 cs-gpios = <&gpio LPC_GPIO(5,15) GPIO_ACTIVE_HIGH>;
0208 num-cs = <1>;
0209 };
0210
0211 &uart2 {
0212 status = "okay";
0213 pinctrl-names = "default";
0214 pinctrl-0 = <&uart2_pins>;
0215 };
0216
0217 &uart3 {
0218 status = "okay";
0219 pinctrl-names = "default";
0220 pinctrl-0 = <&uart3_pins>;
0221 };