1f126890aSEmmanuel Vadot/* 2f126890aSEmmanuel Vadot * Embedded Artist LPC4357 Developer's Kit 3f126890aSEmmanuel Vadot * 4f126890aSEmmanuel Vadot * Copyright 2015 Joachim Eastwood <manabian@gmail.com> 5f126890aSEmmanuel Vadot * 6f126890aSEmmanuel Vadot * This code is released using a dual license strategy: BSD/GPL 7f126890aSEmmanuel Vadot * You can choose the licence that better fits your requirements. 8f126890aSEmmanuel Vadot * 9f126890aSEmmanuel Vadot * Released under the terms of 3-clause BSD License 10f126890aSEmmanuel Vadot * Released under the terms of GNU General Public License Version 2.0 11f126890aSEmmanuel Vadot * 12f126890aSEmmanuel Vadot */ 13f126890aSEmmanuel Vadot/dts-v1/; 14f126890aSEmmanuel Vadot 15f126890aSEmmanuel Vadot#include "lpc18xx.dtsi" 16f126890aSEmmanuel Vadot#include "lpc4357.dtsi" 17f126890aSEmmanuel Vadot 18f126890aSEmmanuel Vadot#include "dt-bindings/input/input.h" 19f126890aSEmmanuel Vadot#include "dt-bindings/gpio/gpio.h" 20f126890aSEmmanuel Vadot 21f126890aSEmmanuel Vadot/ { 22f126890aSEmmanuel Vadot model = "Embedded Artists' LPC4357 Developer's Kit"; 23f126890aSEmmanuel Vadot compatible = "ea,lpc4357-developers-kit", "nxp,lpc4357", "nxp,lpc4350"; 24f126890aSEmmanuel Vadot 25f126890aSEmmanuel Vadot aliases { 26f126890aSEmmanuel Vadot serial0 = &uart0; 27f126890aSEmmanuel Vadot serial1 = &uart1; 28f126890aSEmmanuel Vadot serial2 = &uart2; 29f126890aSEmmanuel Vadot serial3 = &uart3; 30f126890aSEmmanuel Vadot }; 31f126890aSEmmanuel Vadot 32f126890aSEmmanuel Vadot chosen { 33f126890aSEmmanuel Vadot stdout-path = &uart0; 34f126890aSEmmanuel Vadot }; 35f126890aSEmmanuel Vadot 36f126890aSEmmanuel Vadot memory@28000000 { 37f126890aSEmmanuel Vadot device_type = "memory"; 38f126890aSEmmanuel Vadot reg = <0x28000000 0x2000000>; /* 32 MB */ 39f126890aSEmmanuel Vadot }; 40f126890aSEmmanuel Vadot 41f126890aSEmmanuel Vadot vcc: vcc_fixed { 42f126890aSEmmanuel Vadot compatible = "regulator-fixed"; 43f126890aSEmmanuel Vadot regulator-name = "3v3-supply"; 44f126890aSEmmanuel Vadot regulator-min-microvolt = <3300000>; 45f126890aSEmmanuel Vadot regulator-max-microvolt = <3300000>; 46f126890aSEmmanuel Vadot }; 47f126890aSEmmanuel Vadot 48f126890aSEmmanuel Vadot /* vmmc is controlled by sdmmc host internally */ 49f126890aSEmmanuel Vadot vmmc: vmmc_fixed { 50f126890aSEmmanuel Vadot compatible = "regulator-fixed"; 51f126890aSEmmanuel Vadot regulator-name = "vmmc-supply"; 52f126890aSEmmanuel Vadot regulator-min-microvolt = <3300000>; 53f126890aSEmmanuel Vadot regulator-max-microvolt = <3300000>; 54f126890aSEmmanuel Vadot }; 55f126890aSEmmanuel Vadot 56f126890aSEmmanuel Vadot gpio_joystick { 57f126890aSEmmanuel Vadot compatible = "gpio-keys-polled"; 58f126890aSEmmanuel Vadot pinctrl-names = "default"; 59f126890aSEmmanuel Vadot pinctrl-0 = <&gpio_joystick_pins>; 60f126890aSEmmanuel Vadot poll-interval = <100>; 61f126890aSEmmanuel Vadot autorepeat; 62f126890aSEmmanuel Vadot 63f126890aSEmmanuel Vadot button0 { 64f126890aSEmmanuel Vadot label = "joy_enter"; 65f126890aSEmmanuel Vadot linux,code = <KEY_ENTER>; 66f126890aSEmmanuel Vadot gpios = <&gpio LPC_GPIO(4,8) GPIO_ACTIVE_LOW>; 67f126890aSEmmanuel Vadot }; 68f126890aSEmmanuel Vadot 69f126890aSEmmanuel Vadot button1 { 70f126890aSEmmanuel Vadot label = "joy_left"; 71f126890aSEmmanuel Vadot linux,code = <KEY_LEFT>; 72f126890aSEmmanuel Vadot gpios = <&gpio LPC_GPIO(4,9) GPIO_ACTIVE_LOW>; 73f126890aSEmmanuel Vadot }; 74f126890aSEmmanuel Vadot 75f126890aSEmmanuel Vadot button2 { 76f126890aSEmmanuel Vadot label = "joy_up"; 77f126890aSEmmanuel Vadot linux,code = <KEY_UP>; 78f126890aSEmmanuel Vadot gpios = <&gpio LPC_GPIO(4,10) GPIO_ACTIVE_LOW>; 79f126890aSEmmanuel Vadot }; 80f126890aSEmmanuel Vadot 81f126890aSEmmanuel Vadot button3 { 82f126890aSEmmanuel Vadot label = "joy_right"; 83f126890aSEmmanuel Vadot linux,code = <KEY_RIGHT>; 84f126890aSEmmanuel Vadot gpios = <&gpio LPC_GPIO(4,12) GPIO_ACTIVE_LOW>; 85f126890aSEmmanuel Vadot }; 86f126890aSEmmanuel Vadot 87f126890aSEmmanuel Vadot button4 { 88f126890aSEmmanuel Vadot label = "joy_down"; 89f126890aSEmmanuel Vadot linux,code = <KEY_DOWN>; 90f126890aSEmmanuel Vadot gpios = <&gpio LPC_GPIO(4,13) GPIO_ACTIVE_LOW>; 91f126890aSEmmanuel Vadot }; 92f126890aSEmmanuel Vadot }; 93f126890aSEmmanuel Vadot 94f126890aSEmmanuel Vadot leds_mmio { 95f126890aSEmmanuel Vadot compatible = "gpio-leds"; 96f126890aSEmmanuel Vadot 97f126890aSEmmanuel Vadot led1 { 98f126890aSEmmanuel Vadot gpios = <&mmio_leds 15 GPIO_ACTIVE_HIGH>; 99f126890aSEmmanuel Vadot linux,default-trigger = "heartbeat"; 100f126890aSEmmanuel Vadot }; 101f126890aSEmmanuel Vadot 102f126890aSEmmanuel Vadot led2 { 103f126890aSEmmanuel Vadot gpios = <&mmio_leds 14 GPIO_ACTIVE_HIGH>; 104f126890aSEmmanuel Vadot }; 105f126890aSEmmanuel Vadot 106f126890aSEmmanuel Vadot led3 { 107f126890aSEmmanuel Vadot gpios = <&mmio_leds 13 GPIO_ACTIVE_HIGH>; 108f126890aSEmmanuel Vadot }; 109f126890aSEmmanuel Vadot 110f126890aSEmmanuel Vadot led4 { 111f126890aSEmmanuel Vadot gpios = <&mmio_leds 12 GPIO_ACTIVE_HIGH>; 112f126890aSEmmanuel Vadot }; 113f126890aSEmmanuel Vadot 114f126890aSEmmanuel Vadot led5 { 115f126890aSEmmanuel Vadot gpios = <&mmio_leds 11 GPIO_ACTIVE_HIGH>; 116f126890aSEmmanuel Vadot }; 117f126890aSEmmanuel Vadot 118f126890aSEmmanuel Vadot led6 { 119f126890aSEmmanuel Vadot gpios = <&mmio_leds 10 GPIO_ACTIVE_HIGH>; 120f126890aSEmmanuel Vadot }; 121f126890aSEmmanuel Vadot 122f126890aSEmmanuel Vadot led7 { 123f126890aSEmmanuel Vadot gpios = <&mmio_leds 9 GPIO_ACTIVE_HIGH>; 124f126890aSEmmanuel Vadot }; 125f126890aSEmmanuel Vadot 126f126890aSEmmanuel Vadot led8 { 127f126890aSEmmanuel Vadot gpios = <&mmio_leds 8 GPIO_ACTIVE_HIGH>; 128f126890aSEmmanuel Vadot }; 129f126890aSEmmanuel Vadot 130f126890aSEmmanuel Vadot led9 { 131f126890aSEmmanuel Vadot gpios = <&mmio_leds 7 GPIO_ACTIVE_HIGH>; 132f126890aSEmmanuel Vadot }; 133f126890aSEmmanuel Vadot 134f126890aSEmmanuel Vadot led10 { 135f126890aSEmmanuel Vadot gpios = <&mmio_leds 6 GPIO_ACTIVE_HIGH>; 136f126890aSEmmanuel Vadot }; 137f126890aSEmmanuel Vadot 138f126890aSEmmanuel Vadot led11 { 139f126890aSEmmanuel Vadot gpios = <&mmio_leds 5 GPIO_ACTIVE_HIGH>; 140f126890aSEmmanuel Vadot }; 141f126890aSEmmanuel Vadot 142f126890aSEmmanuel Vadot led12 { 143f126890aSEmmanuel Vadot gpios = <&mmio_leds 4 GPIO_ACTIVE_HIGH>; 144f126890aSEmmanuel Vadot }; 145f126890aSEmmanuel Vadot 146f126890aSEmmanuel Vadot led13 { 147f126890aSEmmanuel Vadot gpios = <&mmio_leds 3 GPIO_ACTIVE_HIGH>; 148f126890aSEmmanuel Vadot }; 149f126890aSEmmanuel Vadot 150f126890aSEmmanuel Vadot led14 { 151f126890aSEmmanuel Vadot gpios = <&mmio_leds 2 GPIO_ACTIVE_HIGH>; 152f126890aSEmmanuel Vadot }; 153f126890aSEmmanuel Vadot 154f126890aSEmmanuel Vadot led15 { 155f126890aSEmmanuel Vadot gpios = <&mmio_leds 1 GPIO_ACTIVE_HIGH>; 156f126890aSEmmanuel Vadot }; 157f126890aSEmmanuel Vadot 158f126890aSEmmanuel Vadot led16 { 159f126890aSEmmanuel Vadot gpios = <&mmio_leds 0 GPIO_ACTIVE_HIGH>; 160f126890aSEmmanuel Vadot }; 161f126890aSEmmanuel Vadot }; 162f126890aSEmmanuel Vadot}; 163f126890aSEmmanuel Vadot 164f126890aSEmmanuel Vadot&pinctrl { 165f126890aSEmmanuel Vadot emc_pins: emc-pins { 166f126890aSEmmanuel Vadot emc_addr0_23_cfg { 167f126890aSEmmanuel Vadot pins = "p2_9", "p2_10", "p2_11", "p2_12", 168f126890aSEmmanuel Vadot "p2_13", "p1_0", "p1_1", "p1_2", 169f126890aSEmmanuel Vadot "p2_8", "p2_7", "p2_6", "p2_2", 170f126890aSEmmanuel Vadot "p2_1", "p2_0", "p6_8", "p6_7", 171f126890aSEmmanuel Vadot "pd_16", "pd_15", "pe_0", "pe_1", 172f126890aSEmmanuel Vadot "pe_2", "pe_3", "pe_4", "pa_4"; 173f126890aSEmmanuel Vadot function = "emc"; 174f126890aSEmmanuel Vadot slew-rate = <1>; 175f126890aSEmmanuel Vadot bias-disable; 176f126890aSEmmanuel Vadot input-enable; 177f126890aSEmmanuel Vadot input-schmitt-disable; 178f126890aSEmmanuel Vadot }; 179f126890aSEmmanuel Vadot 180f126890aSEmmanuel Vadot emc_data0_31_cfg { 181f126890aSEmmanuel Vadot pins = "p1_7", "p1_8", "p1_9", "p1_10", 182f126890aSEmmanuel Vadot "p1_11", "p1_12", "p1_13", "p1_14", 183f126890aSEmmanuel Vadot "p5_4", "p5_5", "p5_6", "p5_7", 184f126890aSEmmanuel Vadot "p5_0", "p5_1", "p5_2", "p5_3", 185f126890aSEmmanuel Vadot "pd_2", "pd_3", "pd_4", "pd_5", 186f126890aSEmmanuel Vadot "pd_6", "pd_7", "pd_8", "pd_9", 187f126890aSEmmanuel Vadot "pe_5", "pe_6", "pe_7", "pe_8", 188f126890aSEmmanuel Vadot "pe_9", "pe_10", "pe_11", "pe_12"; 189f126890aSEmmanuel Vadot function = "emc"; 190f126890aSEmmanuel Vadot slew-rate = <1>; 191f126890aSEmmanuel Vadot bias-disable; 192f126890aSEmmanuel Vadot input-enable; 193f126890aSEmmanuel Vadot input-schmitt-disable; 194f126890aSEmmanuel Vadot }; 195f126890aSEmmanuel Vadot 196f126890aSEmmanuel Vadot emc_we_oe_cfg { 197f126890aSEmmanuel Vadot pins = "p1_6", "p1_3"; 198f126890aSEmmanuel Vadot function = "emc"; 199f126890aSEmmanuel Vadot slew-rate = <1>; 200f126890aSEmmanuel Vadot bias-disable; 201f126890aSEmmanuel Vadot input-enable; 202f126890aSEmmanuel Vadot input-schmitt-disable; 203f126890aSEmmanuel Vadot }; 204f126890aSEmmanuel Vadot 205f126890aSEmmanuel Vadot emc_bls0_3_cfg { 206f126890aSEmmanuel Vadot pins = "p1_4", "p6_6", "pd_13", "pd_10"; 207f126890aSEmmanuel Vadot function = "emc"; 208f126890aSEmmanuel Vadot slew-rate = <1>; 209f126890aSEmmanuel Vadot bias-disable; 210f126890aSEmmanuel Vadot input-enable; 211f126890aSEmmanuel Vadot input-schmitt-disable; 212f126890aSEmmanuel Vadot }; 213f126890aSEmmanuel Vadot 214f126890aSEmmanuel Vadot emc_cs0_3_cfg { 215f126890aSEmmanuel Vadot pins = "p1_5", "p6_3", "pd_12", "pd_11"; 216f126890aSEmmanuel Vadot function = "emc"; 217f126890aSEmmanuel Vadot slew-rate = <1>; 218f126890aSEmmanuel Vadot bias-disable; 219f126890aSEmmanuel Vadot input-enable; 220f126890aSEmmanuel Vadot input-schmitt-disable; 221f126890aSEmmanuel Vadot }; 222f126890aSEmmanuel Vadot 223f126890aSEmmanuel Vadot emc_sdram_dqm0_3_cfg { 224f126890aSEmmanuel Vadot pins = "p6_12", "p6_10", "pd_0", "pe_13"; 225f126890aSEmmanuel Vadot function = "emc"; 226f126890aSEmmanuel Vadot slew-rate = <1>; 227f126890aSEmmanuel Vadot bias-disable; 228f126890aSEmmanuel Vadot input-enable; 229f126890aSEmmanuel Vadot input-schmitt-disable; 230f126890aSEmmanuel Vadot }; 231f126890aSEmmanuel Vadot 232f126890aSEmmanuel Vadot emc_sdram_ras_cas_cfg { 233f126890aSEmmanuel Vadot pins = "p6_5", "p6_4"; 234f126890aSEmmanuel Vadot function = "emc"; 235f126890aSEmmanuel Vadot slew-rate = <1>; 236f126890aSEmmanuel Vadot bias-disable; 237f126890aSEmmanuel Vadot input-enable; 238f126890aSEmmanuel Vadot input-schmitt-disable; 239f126890aSEmmanuel Vadot }; 240f126890aSEmmanuel Vadot 241f126890aSEmmanuel Vadot emc_sdram_dycs0_cfg { 242f126890aSEmmanuel Vadot pins = "p6_9"; 243f126890aSEmmanuel Vadot function = "emc"; 244f126890aSEmmanuel Vadot slew-rate = <1>; 245f126890aSEmmanuel Vadot bias-disable; 246f126890aSEmmanuel Vadot input-enable; 247f126890aSEmmanuel Vadot input-schmitt-disable; 248f126890aSEmmanuel Vadot }; 249f126890aSEmmanuel Vadot 250f126890aSEmmanuel Vadot emc_sdram_cke_cfg { 251f126890aSEmmanuel Vadot pins = "p6_11"; 252f126890aSEmmanuel Vadot function = "emc"; 253f126890aSEmmanuel Vadot slew-rate = <1>; 254f126890aSEmmanuel Vadot bias-disable; 255f126890aSEmmanuel Vadot input-enable; 256f126890aSEmmanuel Vadot input-schmitt-disable; 257f126890aSEmmanuel Vadot }; 258f126890aSEmmanuel Vadot 259f126890aSEmmanuel Vadot emc_sdram_clock_cfg { 260f126890aSEmmanuel Vadot pins = "clk0", "clk1", "clk2", "clk3"; 261f126890aSEmmanuel Vadot function = "emc"; 262f126890aSEmmanuel Vadot slew-rate = <1>; 263f126890aSEmmanuel Vadot bias-disable; 264f126890aSEmmanuel Vadot input-enable; 265f126890aSEmmanuel Vadot input-schmitt-disable; 266f126890aSEmmanuel Vadot }; 267f126890aSEmmanuel Vadot }; 268f126890aSEmmanuel Vadot 269f126890aSEmmanuel Vadot enet_rmii_pins: enet-rmii-pins { 270f126890aSEmmanuel Vadot enet_rmii_rxd_cfg { 271f126890aSEmmanuel Vadot pins = "p1_15", "p0_0"; 272f126890aSEmmanuel Vadot function = "enet"; 273f126890aSEmmanuel Vadot slew-rate = <1>; 274f126890aSEmmanuel Vadot bias-disable; 275f126890aSEmmanuel Vadot input-enable; 276f126890aSEmmanuel Vadot input-schmitt-disable; 277f126890aSEmmanuel Vadot }; 278f126890aSEmmanuel Vadot 279f126890aSEmmanuel Vadot enet_rmii_txd_cfg { 280f126890aSEmmanuel Vadot pins = "p1_18", "p1_20"; 281f126890aSEmmanuel Vadot function = "enet"; 282f126890aSEmmanuel Vadot slew-rate = <1>; 283f126890aSEmmanuel Vadot bias-disable; 284f126890aSEmmanuel Vadot input-enable; 285f126890aSEmmanuel Vadot input-schmitt-disable; 286f126890aSEmmanuel Vadot }; 287f126890aSEmmanuel Vadot 288f126890aSEmmanuel Vadot enet_rmii_rx_dv_cfg { 289f126890aSEmmanuel Vadot pins = "p1_16"; 290f126890aSEmmanuel Vadot function = "enet"; 291f126890aSEmmanuel Vadot bias-disable; 292f126890aSEmmanuel Vadot input-enable; 293f126890aSEmmanuel Vadot input-schmitt-disable; 294f126890aSEmmanuel Vadot }; 295f126890aSEmmanuel Vadot 296f126890aSEmmanuel Vadot enet_rmii_tx_en_cfg { 297f126890aSEmmanuel Vadot pins = "p0_1"; 298f126890aSEmmanuel Vadot function = "enet"; 299f126890aSEmmanuel Vadot bias-disable; 300f126890aSEmmanuel Vadot input-enable; 301f126890aSEmmanuel Vadot input-schmitt-disable; 302f126890aSEmmanuel Vadot }; 303f126890aSEmmanuel Vadot 304f126890aSEmmanuel Vadot enet_ref_clk_cfg { 305f126890aSEmmanuel Vadot pins = "p1_19"; 306f126890aSEmmanuel Vadot function = "enet"; 307f126890aSEmmanuel Vadot slew-rate = <1>; 308f126890aSEmmanuel Vadot bias-disable; 309f126890aSEmmanuel Vadot input-enable; 310f126890aSEmmanuel Vadot input-schmitt-disable; 311f126890aSEmmanuel Vadot }; 312f126890aSEmmanuel Vadot 313f126890aSEmmanuel Vadot enet_mdio_cfg { 314f126890aSEmmanuel Vadot pins = "p1_17"; 315f126890aSEmmanuel Vadot function = "enet"; 316f126890aSEmmanuel Vadot bias-disable; 317f126890aSEmmanuel Vadot input-enable; 318f126890aSEmmanuel Vadot input-schmitt-disable; 319f126890aSEmmanuel Vadot }; 320f126890aSEmmanuel Vadot 321f126890aSEmmanuel Vadot enet_mdc_cfg { 322f126890aSEmmanuel Vadot pins = "pc_1"; 323f126890aSEmmanuel Vadot function = "enet"; 324f126890aSEmmanuel Vadot slew-rate = <1>; 325f126890aSEmmanuel Vadot bias-disable; 326f126890aSEmmanuel Vadot input-enable; 327f126890aSEmmanuel Vadot input-schmitt-disable; 328f126890aSEmmanuel Vadot }; 329f126890aSEmmanuel Vadot }; 330f126890aSEmmanuel Vadot 331f126890aSEmmanuel Vadot gpio_joystick_pins: gpio-joystick-pins { 332f126890aSEmmanuel Vadot gpio_joystick_cfg { 333f126890aSEmmanuel Vadot pins = "p9_0", "p9_1", "pa_1", "pa_2", "pa_3"; 334f126890aSEmmanuel Vadot function = "gpio"; 335f126890aSEmmanuel Vadot input-enable; 336f126890aSEmmanuel Vadot bias-disable; 337f126890aSEmmanuel Vadot }; 338f126890aSEmmanuel Vadot }; 339f126890aSEmmanuel Vadot 340f126890aSEmmanuel Vadot i2c0_pins: i2c0-pins { 341f126890aSEmmanuel Vadot i2c0_pins_cfg { 342f126890aSEmmanuel Vadot pins = "i2c0_scl", "i2c0_sda"; 343f126890aSEmmanuel Vadot function = "i2c0"; 344f126890aSEmmanuel Vadot input-enable; 345f126890aSEmmanuel Vadot }; 346f126890aSEmmanuel Vadot }; 347f126890aSEmmanuel Vadot 348f126890aSEmmanuel Vadot sdmmc_pins: sdmmc-pins { 349f126890aSEmmanuel Vadot sdmmc_clk_cfg { 350f126890aSEmmanuel Vadot pins = "pc_0"; 351f126890aSEmmanuel Vadot function = "sdmmc"; 352f126890aSEmmanuel Vadot slew-rate = <1>; 353f126890aSEmmanuel Vadot bias-pull-down; 354f126890aSEmmanuel Vadot }; 355f126890aSEmmanuel Vadot 356f126890aSEmmanuel Vadot sdmmc_cmd_dat0_3_cfg { 357f126890aSEmmanuel Vadot pins = "pc_4", "pc_5", "pc_6", "pc_7", "pc_10"; 358f126890aSEmmanuel Vadot function = "sdmmc"; 359f126890aSEmmanuel Vadot slew-rate = <1>; 360f126890aSEmmanuel Vadot bias-disable; 361f126890aSEmmanuel Vadot input-enable; 362f126890aSEmmanuel Vadot input-schmitt-disable; 363f126890aSEmmanuel Vadot }; 364f126890aSEmmanuel Vadot 365f126890aSEmmanuel Vadot sdmmc_cd_cfg { 366f126890aSEmmanuel Vadot pins = "pc_8"; 367f126890aSEmmanuel Vadot function = "sdmmc"; 368f126890aSEmmanuel Vadot bias-pull-down; 369f126890aSEmmanuel Vadot input-enable; 370f126890aSEmmanuel Vadot }; 371f126890aSEmmanuel Vadot 372f126890aSEmmanuel Vadot sdmmc_pow_cfg { 373f126890aSEmmanuel Vadot pins = "pc_9"; 374f126890aSEmmanuel Vadot function = "sdmmc"; 375f126890aSEmmanuel Vadot bias-pull-down; 376f126890aSEmmanuel Vadot }; 377f126890aSEmmanuel Vadot }; 378f126890aSEmmanuel Vadot 379f126890aSEmmanuel Vadot spifi_pins: spifi-pins { 380f126890aSEmmanuel Vadot spifi_clk_cfg { 381f126890aSEmmanuel Vadot pins = "p3_3"; 382f126890aSEmmanuel Vadot function = "spifi"; 383f126890aSEmmanuel Vadot slew-rate = <1>; 384f126890aSEmmanuel Vadot bias-disable; 385f126890aSEmmanuel Vadot input-enable; 386f126890aSEmmanuel Vadot input-schmitt-disable; 387f126890aSEmmanuel Vadot }; 388f126890aSEmmanuel Vadot 389f126890aSEmmanuel Vadot spifi_mosi_miso_sio2_3_cfg { 390f126890aSEmmanuel Vadot pins = "p3_7", "p3_6", "p3_5", "p3_4"; 391f126890aSEmmanuel Vadot function = "spifi"; 392f126890aSEmmanuel Vadot slew-rate = <0>; 393f126890aSEmmanuel Vadot bias-disable; 394f126890aSEmmanuel Vadot input-enable; 395f126890aSEmmanuel Vadot input-schmitt-disable; 396f126890aSEmmanuel Vadot }; 397f126890aSEmmanuel Vadot 398f126890aSEmmanuel Vadot spifi_cs_cfg { 399f126890aSEmmanuel Vadot pins = "p3_8"; 400f126890aSEmmanuel Vadot function = "spifi"; 401f126890aSEmmanuel Vadot bias-disable; 402f126890aSEmmanuel Vadot }; 403f126890aSEmmanuel Vadot }; 404f126890aSEmmanuel Vadot 405f126890aSEmmanuel Vadot ssp0_pins: ssp0-pins { 406f126890aSEmmanuel Vadot ssp0_sck_miso_mosi { 407f126890aSEmmanuel Vadot pins = "pf_0", "pf_2", "pf_3"; 408f126890aSEmmanuel Vadot function = "ssp0"; 409f126890aSEmmanuel Vadot slew-rate = <1>; 410f126890aSEmmanuel Vadot bias-pull-down; 411f126890aSEmmanuel Vadot input-enable; 412f126890aSEmmanuel Vadot input-schmitt-disable; 413f126890aSEmmanuel Vadot }; 414f126890aSEmmanuel Vadot 415f126890aSEmmanuel Vadot ssp0_ssel { 416f126890aSEmmanuel Vadot pins = "pf_1"; 417f126890aSEmmanuel Vadot function = "ssp0"; 418f126890aSEmmanuel Vadot bias-pull-up; 419f126890aSEmmanuel Vadot }; 420f126890aSEmmanuel Vadot }; 421f126890aSEmmanuel Vadot 422f126890aSEmmanuel Vadot uart0_pins: uart0-pins { 423f126890aSEmmanuel Vadot uart0_rx_cfg { 424f126890aSEmmanuel Vadot pins = "pf_11"; 425f126890aSEmmanuel Vadot function = "uart0"; 426f126890aSEmmanuel Vadot input-schmitt-disable; 427f126890aSEmmanuel Vadot bias-disable; 428f126890aSEmmanuel Vadot input-enable; 429f126890aSEmmanuel Vadot }; 430f126890aSEmmanuel Vadot 431f126890aSEmmanuel Vadot uart0_tx_cfg { 432f126890aSEmmanuel Vadot pins = "pf_10"; 433f126890aSEmmanuel Vadot function = "uart0"; 434f126890aSEmmanuel Vadot bias-pull-down; 435f126890aSEmmanuel Vadot }; 436f126890aSEmmanuel Vadot }; 437f126890aSEmmanuel Vadot 438f126890aSEmmanuel Vadot uart3_pins: uart3-pins { 439f126890aSEmmanuel Vadot uart3_rx_cfg { 440f126890aSEmmanuel Vadot pins = "p2_4"; 441f126890aSEmmanuel Vadot function = "uart3"; 442f126890aSEmmanuel Vadot input-schmitt-disable; 443f126890aSEmmanuel Vadot bias-disable; 444f126890aSEmmanuel Vadot input-enable; 445f126890aSEmmanuel Vadot }; 446f126890aSEmmanuel Vadot 447f126890aSEmmanuel Vadot uart3_tx_cfg { 448f126890aSEmmanuel Vadot pins = "p9_3"; 449f126890aSEmmanuel Vadot function = "uart3"; 450f126890aSEmmanuel Vadot bias-pull-down; 451f126890aSEmmanuel Vadot }; 452f126890aSEmmanuel Vadot }; 453f126890aSEmmanuel Vadot 454f126890aSEmmanuel Vadot usb0_pins: usb0-pins { 455f126890aSEmmanuel Vadot usb0_pwr_enable { 456f126890aSEmmanuel Vadot pins = "p2_3"; 457f126890aSEmmanuel Vadot function = "usb0"; 458f126890aSEmmanuel Vadot }; 459f126890aSEmmanuel Vadot 460f126890aSEmmanuel Vadot usb0_pwr_fault { 461f126890aSEmmanuel Vadot pins = "p8_0"; 462f126890aSEmmanuel Vadot function = "usb0"; 463f126890aSEmmanuel Vadot bias-disable; 464f126890aSEmmanuel Vadot input-enable; 465f126890aSEmmanuel Vadot }; 466f126890aSEmmanuel Vadot }; 467f126890aSEmmanuel Vadot}; 468f126890aSEmmanuel Vadot 469f126890aSEmmanuel Vadot&adc0 { 470f126890aSEmmanuel Vadot status = "okay"; 471f126890aSEmmanuel Vadot vref-supply = <&vcc>; 472f126890aSEmmanuel Vadot}; 473f126890aSEmmanuel Vadot 474f126890aSEmmanuel Vadot&i2c0 { 475f126890aSEmmanuel Vadot status = "okay"; 476f126890aSEmmanuel Vadot pinctrl-names = "default"; 477f126890aSEmmanuel Vadot pinctrl-0 = <&i2c0_pins>; 478f126890aSEmmanuel Vadot clock-frequency = <400000>; 479f126890aSEmmanuel Vadot 480f126890aSEmmanuel Vadot mma7455@1d { 481f126890aSEmmanuel Vadot compatible = "fsl,mma7455"; 482f126890aSEmmanuel Vadot reg = <0x1d>; 483f126890aSEmmanuel Vadot }; 484f126890aSEmmanuel Vadot 485*b2d2a78aSEmmanuel Vadot temperature-sensor@48 { 486*b2d2a78aSEmmanuel Vadot compatible = "national,lm75b"; 487f126890aSEmmanuel Vadot reg = <0x48>; 488f126890aSEmmanuel Vadot }; 489f126890aSEmmanuel Vadot 490f126890aSEmmanuel Vadot eeprom@57 { 491f126890aSEmmanuel Vadot compatible = "microchip,24c64", "atmel,24c64"; 492f126890aSEmmanuel Vadot reg = <0x57>; 493f126890aSEmmanuel Vadot }; 494f126890aSEmmanuel Vadot}; 495f126890aSEmmanuel Vadot 496f126890aSEmmanuel Vadot&dac { 497f126890aSEmmanuel Vadot status = "okay"; 498f126890aSEmmanuel Vadot vref-supply = <&vcc>; 499f126890aSEmmanuel Vadot}; 500f126890aSEmmanuel Vadot 501f126890aSEmmanuel Vadot&emc { 502f126890aSEmmanuel Vadot status = "okay"; 503f126890aSEmmanuel Vadot pinctrl-names = "default"; 504f126890aSEmmanuel Vadot pinctrl-0 = <&emc_pins>; 505f126890aSEmmanuel Vadot 506f126890aSEmmanuel Vadot cs0 { 507f126890aSEmmanuel Vadot #address-cells = <2>; 508f126890aSEmmanuel Vadot #size-cells = <1>; 509f126890aSEmmanuel Vadot ranges; 510f126890aSEmmanuel Vadot 511f126890aSEmmanuel Vadot mpmc,cs = <0>; 512f126890aSEmmanuel Vadot mpmc,memory-width = <16>; 513f126890aSEmmanuel Vadot mpmc,byte-lane-low; 514f126890aSEmmanuel Vadot mpmc,write-enable-delay = <0>; 515f126890aSEmmanuel Vadot mpmc,output-enable-delay = <0>; 516f126890aSEmmanuel Vadot mpmc,read-access-delay = <70>; 517f126890aSEmmanuel Vadot mpmc,page-mode-read-delay = <70>; 518f126890aSEmmanuel Vadot 519f126890aSEmmanuel Vadot flash@0,0 { 520f126890aSEmmanuel Vadot compatible = "sst,sst39vf320", "cfi-flash"; 521f126890aSEmmanuel Vadot reg = <0 0 0x400000>; 522f126890aSEmmanuel Vadot bank-width = <2>; 523f126890aSEmmanuel Vadot #address-cells = <1>; 524f126890aSEmmanuel Vadot #size-cells = <1>; 525f126890aSEmmanuel Vadot 526f126890aSEmmanuel Vadot partition@0 { 527f126890aSEmmanuel Vadot label = "bootloader"; 528f126890aSEmmanuel Vadot reg = <0x000000 0x040000>; /* 256 KiB */ 529f126890aSEmmanuel Vadot }; 530f126890aSEmmanuel Vadot 531f126890aSEmmanuel Vadot partition@1 { 532f126890aSEmmanuel Vadot label = "kernel"; 533f126890aSEmmanuel Vadot reg = <0x040000 0x2c0000>; /* 2.75 MiB */ 534f126890aSEmmanuel Vadot }; 535f126890aSEmmanuel Vadot 536f126890aSEmmanuel Vadot partition@2 { 537f126890aSEmmanuel Vadot label = "rootfs"; 538f126890aSEmmanuel Vadot reg = <0x300000 0x100000>; /* 1 MiB */ 539f126890aSEmmanuel Vadot }; 540f126890aSEmmanuel Vadot }; 541f126890aSEmmanuel Vadot }; 542f126890aSEmmanuel Vadot 543f126890aSEmmanuel Vadot cs2 { 544f126890aSEmmanuel Vadot #address-cells = <2>; 545f126890aSEmmanuel Vadot #size-cells = <1>; 546f126890aSEmmanuel Vadot ranges; 547f126890aSEmmanuel Vadot 548f126890aSEmmanuel Vadot mpmc,cs = <2>; 549f126890aSEmmanuel Vadot mpmc,memory-width = <16>; 550f126890aSEmmanuel Vadot 551f126890aSEmmanuel Vadot mmio_leds: gpio@2,0 { 552f126890aSEmmanuel Vadot compatible = "ti,7416374"; 553f126890aSEmmanuel Vadot reg = <2 0 0x2>; 554f126890aSEmmanuel Vadot gpio-controller; 555f126890aSEmmanuel Vadot #gpio-cells = <2>; 556f126890aSEmmanuel Vadot }; 557f126890aSEmmanuel Vadot 558f126890aSEmmanuel Vadot }; 559f126890aSEmmanuel Vadot}; 560f126890aSEmmanuel Vadot 561f126890aSEmmanuel Vadot&enet_tx_clk { 562f126890aSEmmanuel Vadot clock-frequency = <50000000>; 563f126890aSEmmanuel Vadot}; 564f126890aSEmmanuel Vadot 565f126890aSEmmanuel Vadot&mac { 566f126890aSEmmanuel Vadot status = "okay"; 567f126890aSEmmanuel Vadot phy-mode = "rmii"; 568f126890aSEmmanuel Vadot pinctrl-names = "default"; 569f126890aSEmmanuel Vadot pinctrl-0 = <&enet_rmii_pins>; 570f126890aSEmmanuel Vadot}; 571f126890aSEmmanuel Vadot 572f126890aSEmmanuel Vadot&mmcsd { 573f126890aSEmmanuel Vadot status = "okay"; 574f126890aSEmmanuel Vadot bus-width = <4>; 575f126890aSEmmanuel Vadot vmmc-supply = <&vmmc>; 576f126890aSEmmanuel Vadot pinctrl-names = "default"; 577f126890aSEmmanuel Vadot pinctrl-0 = <&sdmmc_pins>; 578f126890aSEmmanuel Vadot}; 579f126890aSEmmanuel Vadot 580f126890aSEmmanuel Vadot&spifi { 581f126890aSEmmanuel Vadot status = "okay"; 582f126890aSEmmanuel Vadot pinctrl-names = "default"; 583f126890aSEmmanuel Vadot pinctrl-0 = <&spifi_pins>; 584f126890aSEmmanuel Vadot 585f126890aSEmmanuel Vadot flash { 586f126890aSEmmanuel Vadot compatible = "jedec,spi-nor"; 587f126890aSEmmanuel Vadot spi-cpol; 588f126890aSEmmanuel Vadot spi-cpha; 589f126890aSEmmanuel Vadot spi-rx-bus-width = <4>; 590f126890aSEmmanuel Vadot #address-cells = <1>; 591f126890aSEmmanuel Vadot #size-cells = <1>; 592f126890aSEmmanuel Vadot 593f126890aSEmmanuel Vadot partition@0 { 594f126890aSEmmanuel Vadot label = "data"; 595f126890aSEmmanuel Vadot reg = <0 0x200000>; 596f126890aSEmmanuel Vadot }; 597f126890aSEmmanuel Vadot }; 598f126890aSEmmanuel Vadot}; 599f126890aSEmmanuel Vadot 600f126890aSEmmanuel Vadot&ssp0 { 601f126890aSEmmanuel Vadot status = "okay"; 602f126890aSEmmanuel Vadot pinctrl-names = "default"; 603f126890aSEmmanuel Vadot pinctrl-0 = <&ssp0_pins>; 604f126890aSEmmanuel Vadot num-cs = <1>; 605f126890aSEmmanuel Vadot}; 606f126890aSEmmanuel Vadot 607f126890aSEmmanuel Vadot&uart0 { 608f126890aSEmmanuel Vadot status = "okay"; 609f126890aSEmmanuel Vadot pinctrl-names = "default"; 610f126890aSEmmanuel Vadot pinctrl-0 = <&uart0_pins>; 611f126890aSEmmanuel Vadot}; 612f126890aSEmmanuel Vadot 613f126890aSEmmanuel Vadot&uart3 { 614f126890aSEmmanuel Vadot status = "okay"; 615f126890aSEmmanuel Vadot pinctrl-names = "default"; 616f126890aSEmmanuel Vadot pinctrl-0 = <&uart3_pins>; 617f126890aSEmmanuel Vadot}; 618f126890aSEmmanuel Vadot 619f126890aSEmmanuel Vadot&usb0 { 620f126890aSEmmanuel Vadot status = "okay"; 621f126890aSEmmanuel Vadot pinctrl-names = "default"; 622f126890aSEmmanuel Vadot pinctrl-0 = <&usb0_pins>; 623f126890aSEmmanuel Vadot}; 624