xref: /freebsd-src/sys/contrib/device-tree/src/arm/nxp/imx/imx7ulp-evk.dts (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0+
2*f126890aSEmmanuel Vadot/*
3*f126890aSEmmanuel Vadot * Copyright 2016 Freescale Semiconductor, Inc.
4*f126890aSEmmanuel Vadot * Copyright 2017-2018 NXP
5*f126890aSEmmanuel Vadot *   Dong Aisheng <aisheng.dong@nxp.com>
6*f126890aSEmmanuel Vadot */
7*f126890aSEmmanuel Vadot
8*f126890aSEmmanuel Vadot/dts-v1/;
9*f126890aSEmmanuel Vadot
10*f126890aSEmmanuel Vadot#include "imx7ulp.dtsi"
11*f126890aSEmmanuel Vadot
12*f126890aSEmmanuel Vadot/ {
13*f126890aSEmmanuel Vadot	model = "NXP i.MX7ULP EVK";
14*f126890aSEmmanuel Vadot	compatible = "fsl,imx7ulp-evk", "fsl,imx7ulp";
15*f126890aSEmmanuel Vadot
16*f126890aSEmmanuel Vadot	chosen {
17*f126890aSEmmanuel Vadot		stdout-path = &lpuart4;
18*f126890aSEmmanuel Vadot	};
19*f126890aSEmmanuel Vadot
20*f126890aSEmmanuel Vadot	memory@60000000 {
21*f126890aSEmmanuel Vadot		device_type = "memory";
22*f126890aSEmmanuel Vadot		reg = <0x60000000 0x40000000>;
23*f126890aSEmmanuel Vadot	};
24*f126890aSEmmanuel Vadot
25*f126890aSEmmanuel Vadot	backlight {
26*f126890aSEmmanuel Vadot		compatible = "pwm-backlight";
27*f126890aSEmmanuel Vadot		pwms = <&tpm4 1 50000 0>;
28*f126890aSEmmanuel Vadot		brightness-levels = <0 20 25 30 35 40 100>;
29*f126890aSEmmanuel Vadot		default-brightness-level = <6>;
30*f126890aSEmmanuel Vadot		status = "okay";
31*f126890aSEmmanuel Vadot	};
32*f126890aSEmmanuel Vadot
33*f126890aSEmmanuel Vadot	reg_usb_otg1_vbus: regulator-usb-otg1-vbus {
34*f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
35*f126890aSEmmanuel Vadot		pinctrl-names = "default";
36*f126890aSEmmanuel Vadot		pinctrl-0 = <&pinctrl_usbotg1_vbus>;
37*f126890aSEmmanuel Vadot		regulator-name = "usb_otg1_vbus";
38*f126890aSEmmanuel Vadot		regulator-min-microvolt = <5000000>;
39*f126890aSEmmanuel Vadot		regulator-max-microvolt = <5000000>;
40*f126890aSEmmanuel Vadot		gpio = <&gpio_ptc 0 GPIO_ACTIVE_HIGH>;
41*f126890aSEmmanuel Vadot		enable-active-high;
42*f126890aSEmmanuel Vadot	};
43*f126890aSEmmanuel Vadot
44*f126890aSEmmanuel Vadot	reg_vsd_3v3: regulator-vsd-3v3 {
45*f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
46*f126890aSEmmanuel Vadot		regulator-name = "VSD_3V3";
47*f126890aSEmmanuel Vadot		regulator-min-microvolt = <3300000>;
48*f126890aSEmmanuel Vadot		regulator-max-microvolt = <3300000>;
49*f126890aSEmmanuel Vadot		pinctrl-names = "default";
50*f126890aSEmmanuel Vadot		pinctrl-0 = <&pinctrl_usdhc0_rst>;
51*f126890aSEmmanuel Vadot		gpio = <&gpio_ptd 0 GPIO_ACTIVE_HIGH>;
52*f126890aSEmmanuel Vadot		enable-active-high;
53*f126890aSEmmanuel Vadot	};
54*f126890aSEmmanuel Vadot};
55*f126890aSEmmanuel Vadot
56*f126890aSEmmanuel Vadot&lpuart4 {
57*f126890aSEmmanuel Vadot	pinctrl-names = "default";
58*f126890aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_lpuart4>;
59*f126890aSEmmanuel Vadot	status = "okay";
60*f126890aSEmmanuel Vadot};
61*f126890aSEmmanuel Vadot
62*f126890aSEmmanuel Vadot&tpm4 {
63*f126890aSEmmanuel Vadot	pinctrl-names = "default";
64*f126890aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_pwm0>;
65*f126890aSEmmanuel Vadot	status = "okay";
66*f126890aSEmmanuel Vadot};
67*f126890aSEmmanuel Vadot
68*f126890aSEmmanuel Vadot&usbotg1 {
69*f126890aSEmmanuel Vadot	vbus-supply = <&reg_usb_otg1_vbus>;
70*f126890aSEmmanuel Vadot	pinctrl-names = "default";
71*f126890aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_usbotg1_id>;
72*f126890aSEmmanuel Vadot	srp-disable;
73*f126890aSEmmanuel Vadot	hnp-disable;
74*f126890aSEmmanuel Vadot	adp-disable;
75*f126890aSEmmanuel Vadot	disable-over-current;
76*f126890aSEmmanuel Vadot	status = "okay";
77*f126890aSEmmanuel Vadot};
78*f126890aSEmmanuel Vadot
79*f126890aSEmmanuel Vadot&usdhc0 {
80*f126890aSEmmanuel Vadot	assigned-clocks = <&pcc2 IMX7ULP_CLK_USDHC0>;
81*f126890aSEmmanuel Vadot	assigned-clock-parents = <&scg1 IMX7ULP_CLK_APLL_PFD1>;
82*f126890aSEmmanuel Vadot	pinctrl-names = "default";
83*f126890aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_usdhc0>;
84*f126890aSEmmanuel Vadot	cd-gpios = <&gpio_ptc 10 GPIO_ACTIVE_LOW>;
85*f126890aSEmmanuel Vadot	vmmc-supply = <&reg_vsd_3v3>;
86*f126890aSEmmanuel Vadot	status = "okay";
87*f126890aSEmmanuel Vadot};
88*f126890aSEmmanuel Vadot
89*f126890aSEmmanuel Vadot&iomuxc1 {
90*f126890aSEmmanuel Vadot	pinctrl_lpuart4: lpuart4grp {
91*f126890aSEmmanuel Vadot		fsl,pins = <
92*f126890aSEmmanuel Vadot			IMX7ULP_PAD_PTC3__LPUART4_RX	0x3
93*f126890aSEmmanuel Vadot			IMX7ULP_PAD_PTC2__LPUART4_TX	0x3
94*f126890aSEmmanuel Vadot		>;
95*f126890aSEmmanuel Vadot		bias-pull-up;
96*f126890aSEmmanuel Vadot	};
97*f126890aSEmmanuel Vadot
98*f126890aSEmmanuel Vadot	pinctrl_pwm0: pwm0grp {
99*f126890aSEmmanuel Vadot		fsl,pins = <
100*f126890aSEmmanuel Vadot			IMX7ULP_PAD_PTF2__TPM4_CH1	0x2
101*f126890aSEmmanuel Vadot		>;
102*f126890aSEmmanuel Vadot	};
103*f126890aSEmmanuel Vadot
104*f126890aSEmmanuel Vadot	pinctrl_usbotg1_vbus: otg1vbusgrp {
105*f126890aSEmmanuel Vadot		fsl,pins = <
106*f126890aSEmmanuel Vadot			IMX7ULP_PAD_PTC0__PTC0		0x20000
107*f126890aSEmmanuel Vadot		>;
108*f126890aSEmmanuel Vadot	};
109*f126890aSEmmanuel Vadot
110*f126890aSEmmanuel Vadot	pinctrl_usbotg1_id: otg1idgrp {
111*f126890aSEmmanuel Vadot		fsl,pins = <
112*f126890aSEmmanuel Vadot			IMX7ULP_PAD_PTC13__USB0_ID	0x10003
113*f126890aSEmmanuel Vadot		>;
114*f126890aSEmmanuel Vadot	};
115*f126890aSEmmanuel Vadot
116*f126890aSEmmanuel Vadot	pinctrl_usdhc0: usdhc0grp {
117*f126890aSEmmanuel Vadot		fsl,pins = <
118*f126890aSEmmanuel Vadot			IMX7ULP_PAD_PTD1__SDHC0_CMD	0x43
119*f126890aSEmmanuel Vadot			IMX7ULP_PAD_PTD2__SDHC0_CLK	0x40
120*f126890aSEmmanuel Vadot			IMX7ULP_PAD_PTD7__SDHC0_D3	0x43
121*f126890aSEmmanuel Vadot			IMX7ULP_PAD_PTD8__SDHC0_D2	0x43
122*f126890aSEmmanuel Vadot			IMX7ULP_PAD_PTD9__SDHC0_D1	0x43
123*f126890aSEmmanuel Vadot			IMX7ULP_PAD_PTD10__SDHC0_D0	0x43
124*f126890aSEmmanuel Vadot			IMX7ULP_PAD_PTC10__PTC10	0x3	/* CD */
125*f126890aSEmmanuel Vadot		>;
126*f126890aSEmmanuel Vadot	};
127*f126890aSEmmanuel Vadot
128*f126890aSEmmanuel Vadot	pinctrl_usdhc0_rst: usdhc0-gpio-rst-grp {
129*f126890aSEmmanuel Vadot		fsl,pins = <
130*f126890aSEmmanuel Vadot			IMX7ULP_PAD_PTD0__PTD0		0x3
131*f126890aSEmmanuel Vadot		>;
132*f126890aSEmmanuel Vadot	};
133*f126890aSEmmanuel Vadot};
134