1f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-or-later OR MIT 2f126890aSEmmanuel Vadot/* 3f126890aSEmmanuel Vadot * Copyright 2021 4f126890aSEmmanuel Vadot * Lukasz Majewski, DENX Software Engineering, lukma@denx.de 5f126890aSEmmanuel Vadot */ 6f126890aSEmmanuel Vadot 7f126890aSEmmanuel Vadot/dts-v1/; 8f126890aSEmmanuel Vadot#include "imx28.dtsi" 9f126890aSEmmanuel Vadot 10f126890aSEmmanuel Vadot/ { 11f126890aSEmmanuel Vadot aliases { 12f126890aSEmmanuel Vadot spi2 = &ssp3; 13f126890aSEmmanuel Vadot }; 14f126890aSEmmanuel Vadot 15f126890aSEmmanuel Vadot chosen { 16f126890aSEmmanuel Vadot bootargs = "root=/dev/mmcblk0p2 rootfstype=ext4 ro rootwait console=ttyAMA0,115200 panic=1"; 17f126890aSEmmanuel Vadot }; 18f126890aSEmmanuel Vadot 19f126890aSEmmanuel Vadot memory@40000000 { 20f126890aSEmmanuel Vadot reg = <0x40000000 0x08000000>; 218d13bc63SEmmanuel Vadot device_type = "memory"; 22f126890aSEmmanuel Vadot }; 23f126890aSEmmanuel Vadot 24f126890aSEmmanuel Vadot reg_3v3: regulator-reg-3v3 { 25f126890aSEmmanuel Vadot compatible = "regulator-fixed"; 26f126890aSEmmanuel Vadot regulator-name = "3V3"; 27f126890aSEmmanuel Vadot regulator-min-microvolt = <3300000>; 28f126890aSEmmanuel Vadot regulator-max-microvolt = <3300000>; 29f126890aSEmmanuel Vadot }; 30f126890aSEmmanuel Vadot 31f126890aSEmmanuel Vadot reg_usb_5v: regulator-reg-usb-5v { 32f126890aSEmmanuel Vadot compatible = "regulator-fixed"; 33f126890aSEmmanuel Vadot regulator-name = "usb_vbus"; 34f126890aSEmmanuel Vadot regulator-min-microvolt = <5000000>; 35f126890aSEmmanuel Vadot regulator-max-microvolt = <5000000>; 36f126890aSEmmanuel Vadot }; 37f126890aSEmmanuel Vadot 38f126890aSEmmanuel Vadot reg_fec_3v3: regulator-reg-fec-3v3 { 39f126890aSEmmanuel Vadot compatible = "regulator-fixed"; 40f126890aSEmmanuel Vadot regulator-name = "fec-phy"; 41f126890aSEmmanuel Vadot regulator-min-microvolt = <3300000>; 42f126890aSEmmanuel Vadot regulator-max-microvolt = <3300000>; 43f126890aSEmmanuel Vadot }; 44f126890aSEmmanuel Vadot}; 45f126890aSEmmanuel Vadot 46f126890aSEmmanuel Vadot&duart { 47f126890aSEmmanuel Vadot pinctrl-names = "default"; 48f126890aSEmmanuel Vadot pinctrl-0 = <&duart_pins_a>; 49f126890aSEmmanuel Vadot status = "okay"; 50f126890aSEmmanuel Vadot}; 51f126890aSEmmanuel Vadot 52f126890aSEmmanuel Vadot&i2c0 { 53f126890aSEmmanuel Vadot pinctrl-names = "default"; 54f126890aSEmmanuel Vadot pinctrl-0 = <&i2c0_pins_a>; 55f126890aSEmmanuel Vadot status = "okay"; 56f126890aSEmmanuel Vadot}; 57f126890aSEmmanuel Vadot 58f126890aSEmmanuel Vadot&spi3_pins_a { 59f126890aSEmmanuel Vadot fsl,pinmux-ids = < 60f126890aSEmmanuel Vadot MX28_PAD_AUART2_RX__SSP3_D4 61f126890aSEmmanuel Vadot MX28_PAD_AUART2_TX__SSP3_D5 62f126890aSEmmanuel Vadot MX28_PAD_SSP3_SCK__SSP3_SCK 63f126890aSEmmanuel Vadot MX28_PAD_SSP3_MOSI__SSP3_CMD 64f126890aSEmmanuel Vadot MX28_PAD_SSP3_MISO__SSP3_D0 65f126890aSEmmanuel Vadot MX28_PAD_SSP3_SS0__SSP3_D3 66f126890aSEmmanuel Vadot MX28_PAD_AUART2_TX__GPIO_3_9 67f126890aSEmmanuel Vadot >; 68f126890aSEmmanuel Vadot}; 69f126890aSEmmanuel Vadot 70f126890aSEmmanuel Vadot&ssp0 { 71f126890aSEmmanuel Vadot compatible = "fsl,imx28-mmc"; 72f126890aSEmmanuel Vadot pinctrl-names = "default"; 73f126890aSEmmanuel Vadot pinctrl-0 = <&mmc0_8bit_pins_a>; 74f126890aSEmmanuel Vadot bus-width = <8>; 75f126890aSEmmanuel Vadot vmmc-supply = <®_3v3>; 76f126890aSEmmanuel Vadot non-removable; 77f126890aSEmmanuel Vadot status = "okay"; 78f126890aSEmmanuel Vadot}; 79f126890aSEmmanuel Vadot 80f126890aSEmmanuel Vadot&ssp2 { 81f126890aSEmmanuel Vadot compatible = "fsl,imx28-spi"; 82f126890aSEmmanuel Vadot pinctrl-names = "default"; 83f126890aSEmmanuel Vadot pinctrl-0 = <&spi2_pins_a>; 84f126890aSEmmanuel Vadot status = "okay"; 85f126890aSEmmanuel Vadot}; 86f126890aSEmmanuel Vadot 87f126890aSEmmanuel Vadot&ssp3 { 88f126890aSEmmanuel Vadot compatible = "fsl,imx28-spi"; 89f126890aSEmmanuel Vadot pinctrl-names = "default"; 90f126890aSEmmanuel Vadot pinctrl-0 = <&spi3_pins_a>; 91f126890aSEmmanuel Vadot status = "okay"; 92f126890aSEmmanuel Vadot 93f126890aSEmmanuel Vadot flash@0 { 94f126890aSEmmanuel Vadot compatible = "jedec,spi-nor"; 95*b2d2a78aSEmmanuel Vadot spi-max-frequency = <20000000>; 96f126890aSEmmanuel Vadot reg = <0>; 97f126890aSEmmanuel Vadot 98f126890aSEmmanuel Vadot partitions { 99f126890aSEmmanuel Vadot compatible = "fixed-partitions"; 100f126890aSEmmanuel Vadot #address-cells = <1>; 101f126890aSEmmanuel Vadot #size-cells = <1>; 102f126890aSEmmanuel Vadot 103f126890aSEmmanuel Vadot partition@0 { 104f126890aSEmmanuel Vadot label = "u-boot"; 105f126890aSEmmanuel Vadot reg = <0 0x80000>; 106f126890aSEmmanuel Vadot read-only; 107f126890aSEmmanuel Vadot }; 108f126890aSEmmanuel Vadot 109f126890aSEmmanuel Vadot partition@80000 { 110f126890aSEmmanuel Vadot label = "env0"; 111f126890aSEmmanuel Vadot reg = <0x80000 0x10000>; 112f126890aSEmmanuel Vadot }; 113f126890aSEmmanuel Vadot 114f126890aSEmmanuel Vadot partition@90000 { 115f126890aSEmmanuel Vadot label = "env1"; 116f126890aSEmmanuel Vadot reg = <0x90000 0x10000>; 117f126890aSEmmanuel Vadot }; 118f126890aSEmmanuel Vadot 119*b2d2a78aSEmmanuel Vadot partition@a0000 { 120*b2d2a78aSEmmanuel Vadot label = "rescue"; 121*b2d2a78aSEmmanuel Vadot reg = <0xa0000 0xf40000>; 122f126890aSEmmanuel Vadot }; 123f126890aSEmmanuel Vadot 124*b2d2a78aSEmmanuel Vadot partition@fe0000 { 125*b2d2a78aSEmmanuel Vadot /* 1st sector for SPL boot img source data */ 126*b2d2a78aSEmmanuel Vadot label = "spl-boot-data1"; 127*b2d2a78aSEmmanuel Vadot reg = <0xfe0000 0x10000>; 128*b2d2a78aSEmmanuel Vadot }; 129*b2d2a78aSEmmanuel Vadot 130*b2d2a78aSEmmanuel Vadot partition@ff0000 { 131*b2d2a78aSEmmanuel Vadot /* 2nd sector for SPL boot img source data */ 132*b2d2a78aSEmmanuel Vadot label = "spl-boot-data2"; 133*b2d2a78aSEmmanuel Vadot reg = <0xff0000 0x10000>; 134f126890aSEmmanuel Vadot }; 135f126890aSEmmanuel Vadot }; 136f126890aSEmmanuel Vadot }; 137f126890aSEmmanuel Vadot}; 138f126890aSEmmanuel Vadot 139f126890aSEmmanuel Vadot&usb0 { 140f126890aSEmmanuel Vadot vbus-supply = <®_usb_5v>; 141f126890aSEmmanuel Vadot pinctrl-names = "default"; 142f126890aSEmmanuel Vadot pinctrl-0 = <&usb0_pins_b>, <&usb0_id_pins_a>; 143f126890aSEmmanuel Vadot dr_mode = "host"; 144f126890aSEmmanuel Vadot status = "okay"; 145f126890aSEmmanuel Vadot}; 146f126890aSEmmanuel Vadot 147f126890aSEmmanuel Vadot&usbphy0 { 148f126890aSEmmanuel Vadot status = "okay"; 149f126890aSEmmanuel Vadot}; 150f126890aSEmmanuel Vadot 151f126890aSEmmanuel Vadot&usb1 { 152f126890aSEmmanuel Vadot vbus-supply = <®_usb_5v>; 153f126890aSEmmanuel Vadot pinctrl-names = "default"; 154f126890aSEmmanuel Vadot pinctrl-0 = <&usb1_pins_b>; 155f126890aSEmmanuel Vadot dr_mode = "host"; 156f126890aSEmmanuel Vadot status = "okay"; 157f126890aSEmmanuel Vadot}; 158f126890aSEmmanuel Vadot 159f126890aSEmmanuel Vadot&usbphy1 { 160f126890aSEmmanuel Vadot status = "okay"; 161f126890aSEmmanuel Vadot}; 162