0001 // SPDX-License-Identifier: GPL-2.0+
0002 /*
0003 * Copyright 2016 Freescale Semiconductor, Inc.
0004 * Copyright 2017-2018 NXP
0005 * Dong Aisheng <aisheng.dong@nxp.com>
0006 */
0007
0008 /dts-v1/;
0009
0010 #include "imx7ulp.dtsi"
0011
0012 / {
0013 model = "NXP i.MX7ULP EVK";
0014 compatible = "fsl,imx7ulp-evk", "fsl,imx7ulp";
0015
0016 chosen {
0017 stdout-path = &lpuart4;
0018 };
0019
0020 memory@60000000 {
0021 device_type = "memory";
0022 reg = <0x60000000 0x40000000>;
0023 };
0024
0025 backlight {
0026 compatible = "pwm-backlight";
0027 pwms = <&tpm4 1 50000 0>;
0028 brightness-levels = <0 20 25 30 35 40 100>;
0029 default-brightness-level = <6>;
0030 status = "okay";
0031 };
0032
0033 reg_usb_otg1_vbus: regulator-usb-otg1-vbus {
0034 compatible = "regulator-fixed";
0035 pinctrl-names = "default";
0036 pinctrl-0 = <&pinctrl_usbotg1_vbus>;
0037 regulator-name = "usb_otg1_vbus";
0038 regulator-min-microvolt = <5000000>;
0039 regulator-max-microvolt = <5000000>;
0040 gpio = <&gpio_ptc 0 GPIO_ACTIVE_HIGH>;
0041 enable-active-high;
0042 };
0043
0044 reg_vsd_3v3: regulator-vsd-3v3 {
0045 compatible = "regulator-fixed";
0046 regulator-name = "VSD_3V3";
0047 regulator-min-microvolt = <3300000>;
0048 regulator-max-microvolt = <3300000>;
0049 pinctrl-names = "default";
0050 pinctrl-0 = <&pinctrl_usdhc0_rst>;
0051 gpio = <&gpio_ptd 0 GPIO_ACTIVE_HIGH>;
0052 enable-active-high;
0053 };
0054 };
0055
0056 &lpuart4 {
0057 pinctrl-names = "default";
0058 pinctrl-0 = <&pinctrl_lpuart4>;
0059 status = "okay";
0060 };
0061
0062 &tpm4 {
0063 pinctrl-names = "default";
0064 pinctrl-0 = <&pinctrl_pwm0>;
0065 status = "okay";
0066 };
0067
0068 &usbotg1 {
0069 vbus-supply = <®_usb_otg1_vbus>;
0070 pinctrl-names = "default";
0071 pinctrl-0 = <&pinctrl_usbotg1_id>;
0072 srp-disable;
0073 hnp-disable;
0074 adp-disable;
0075 disable-over-current;
0076 status = "okay";
0077 };
0078
0079 &usdhc0 {
0080 assigned-clocks = <&pcc2 IMX7ULP_CLK_USDHC0>;
0081 assigned-clock-parents = <&scg1 IMX7ULP_CLK_APLL_PFD1>;
0082 pinctrl-names = "default";
0083 pinctrl-0 = <&pinctrl_usdhc0>;
0084 cd-gpios = <&gpio_ptc 10 GPIO_ACTIVE_LOW>;
0085 vmmc-supply = <®_vsd_3v3>;
0086 status = "okay";
0087 };
0088
0089 &iomuxc1 {
0090 pinctrl_lpuart4: lpuart4grp {
0091 fsl,pins = <
0092 IMX7ULP_PAD_PTC3__LPUART4_RX 0x3
0093 IMX7ULP_PAD_PTC2__LPUART4_TX 0x3
0094 >;
0095 bias-pull-up;
0096 };
0097
0098 pinctrl_pwm0: pwm0grp {
0099 fsl,pins = <
0100 IMX7ULP_PAD_PTF2__TPM4_CH1 0x2
0101 >;
0102 };
0103
0104 pinctrl_usbotg1_vbus: otg1vbusgrp {
0105 fsl,pins = <
0106 IMX7ULP_PAD_PTC0__PTC0 0x20000
0107 >;
0108 };
0109
0110 pinctrl_usbotg1_id: otg1idgrp {
0111 fsl,pins = <
0112 IMX7ULP_PAD_PTC13__USB0_ID 0x10003
0113 >;
0114 };
0115
0116 pinctrl_usdhc0: usdhc0grp {
0117 fsl,pins = <
0118 IMX7ULP_PAD_PTD1__SDHC0_CMD 0x43
0119 IMX7ULP_PAD_PTD2__SDHC0_CLK 0x40
0120 IMX7ULP_PAD_PTD7__SDHC0_D3 0x43
0121 IMX7ULP_PAD_PTD8__SDHC0_D2 0x43
0122 IMX7ULP_PAD_PTD9__SDHC0_D1 0x43
0123 IMX7ULP_PAD_PTD10__SDHC0_D0 0x43
0124 IMX7ULP_PAD_PTC10__PTC10 0x3 /* CD */
0125 >;
0126 };
0127
0128 pinctrl_usdhc0_rst: usdhc0-gpio-rst-grp {
0129 fsl,pins = <
0130 IMX7ULP_PAD_PTD0__PTD0 0x3
0131 >;
0132 };
0133 };