xref: /freebsd-src/sys/contrib/device-tree/src/arm/nxp/imx/imx7d-pico-pi.dts (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2*f126890aSEmmanuel Vadot//
3*f126890aSEmmanuel Vadot// Copyright 2017 NXP
4*f126890aSEmmanuel Vadot
5*f126890aSEmmanuel Vadot#include "imx7d-pico.dtsi"
6*f126890aSEmmanuel Vadot
7*f126890aSEmmanuel Vadot/ {
8*f126890aSEmmanuel Vadot	model = "TechNexion PICO-IMX7D Board and PI baseboard";
9*f126890aSEmmanuel Vadot	compatible = "technexion,imx7d-pico-pi", "fsl,imx7d";
10*f126890aSEmmanuel Vadot
11*f126890aSEmmanuel Vadot	leds {
12*f126890aSEmmanuel Vadot		compatible = "gpio-leds";
13*f126890aSEmmanuel Vadot		pinctrl-names = "default";
14*f126890aSEmmanuel Vadot		pinctrl-0 = <&pinctrl_gpio_leds>;
15*f126890aSEmmanuel Vadot
16*f126890aSEmmanuel Vadot		led {
17*f126890aSEmmanuel Vadot			label = "gpio-led";
18*f126890aSEmmanuel Vadot			gpios = <&gpio2 6 GPIO_ACTIVE_HIGH>;
19*f126890aSEmmanuel Vadot		};
20*f126890aSEmmanuel Vadot	};
21*f126890aSEmmanuel Vadot
22*f126890aSEmmanuel Vadot	sound {
23*f126890aSEmmanuel Vadot		compatible = "simple-audio-card";
24*f126890aSEmmanuel Vadot		simple-audio-card,name = "imx7-sgtl5000";
25*f126890aSEmmanuel Vadot		simple-audio-card,format = "i2s";
26*f126890aSEmmanuel Vadot		simple-audio-card,bitclock-master = <&dailink_master>;
27*f126890aSEmmanuel Vadot		simple-audio-card,frame-master = <&dailink_master>;
28*f126890aSEmmanuel Vadot		simple-audio-card,cpu {
29*f126890aSEmmanuel Vadot			sound-dai = <&sai1>;
30*f126890aSEmmanuel Vadot		};
31*f126890aSEmmanuel Vadot
32*f126890aSEmmanuel Vadot		dailink_master: simple-audio-card,codec {
33*f126890aSEmmanuel Vadot			sound-dai = <&sgtl5000>;
34*f126890aSEmmanuel Vadot			clocks = <&clks IMX7D_AUDIO_MCLK_ROOT_DIV>;
35*f126890aSEmmanuel Vadot		};
36*f126890aSEmmanuel Vadot	};
37*f126890aSEmmanuel Vadot};
38*f126890aSEmmanuel Vadot
39*f126890aSEmmanuel Vadot&i2c1 {
40*f126890aSEmmanuel Vadot	sgtl5000: codec@a {
41*f126890aSEmmanuel Vadot		#sound-dai-cells = <0>;
42*f126890aSEmmanuel Vadot		reg = <0x0a>;
43*f126890aSEmmanuel Vadot		compatible = "fsl,sgtl5000";
44*f126890aSEmmanuel Vadot		clocks = <&clks IMX7D_AUDIO_MCLK_ROOT_DIV>;
45*f126890aSEmmanuel Vadot		VDDA-supply = <&reg_2p5v>;
46*f126890aSEmmanuel Vadot		VDDIO-supply = <&reg_vref_1v8>;
47*f126890aSEmmanuel Vadot	};
48*f126890aSEmmanuel Vadot};
49*f126890aSEmmanuel Vadot
50*f126890aSEmmanuel Vadot&i2c4 {
51*f126890aSEmmanuel Vadot	polytouch: touchscreen@38 {
52*f126890aSEmmanuel Vadot		compatible = "edt,edt-ft5x06";
53*f126890aSEmmanuel Vadot		reg = <0x38>;
54*f126890aSEmmanuel Vadot		pinctrl-names = "default";
55*f126890aSEmmanuel Vadot		pinctrl-0 = <&pinctrl_touchscreen>;
56*f126890aSEmmanuel Vadot		interrupt-parent = <&gpio2>;
57*f126890aSEmmanuel Vadot		interrupts = <13 IRQ_TYPE_EDGE_FALLING>;
58*f126890aSEmmanuel Vadot		reset-gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
59*f126890aSEmmanuel Vadot		touchscreen-size-x = <800>;
60*f126890aSEmmanuel Vadot		touchscreen-size-y = <480>;
61*f126890aSEmmanuel Vadot	};
62*f126890aSEmmanuel Vadot};
63*f126890aSEmmanuel Vadot
64*f126890aSEmmanuel Vadot&iomuxc {
65*f126890aSEmmanuel Vadot	pinctrl-names = "default";
66*f126890aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_hog>;
67*f126890aSEmmanuel Vadot
68*f126890aSEmmanuel Vadot	pinctrl_hog: hoggrp {
69*f126890aSEmmanuel Vadot		fsl,pins = <
70*f126890aSEmmanuel Vadot			MX7D_PAD_EPDC_DATA00__GPIO2_IO0		0x14
71*f126890aSEmmanuel Vadot			MX7D_PAD_EPDC_DATA01__GPIO2_IO1		0x14
72*f126890aSEmmanuel Vadot			MX7D_PAD_EPDC_DATA02__GPIO2_IO2		0x14
73*f126890aSEmmanuel Vadot			MX7D_PAD_EPDC_DATA03__GPIO2_IO3		0x14
74*f126890aSEmmanuel Vadot			MX7D_PAD_EPDC_DATA05__GPIO2_IO5		0x14
75*f126890aSEmmanuel Vadot			MX7D_PAD_EPDC_DATA12__GPIO2_IO12	0x14
76*f126890aSEmmanuel Vadot			MX7D_PAD_EPDC_DATA07__GPIO2_IO7		0x14
77*f126890aSEmmanuel Vadot		>;
78*f126890aSEmmanuel Vadot	};
79*f126890aSEmmanuel Vadot
80*f126890aSEmmanuel Vadot	pinctrl_gpio_leds: gpioledsgrp {
81*f126890aSEmmanuel Vadot		fsl,pins = <
82*f126890aSEmmanuel Vadot			MX7D_PAD_EPDC_DATA06__GPIO2_IO6		0x14
83*f126890aSEmmanuel Vadot		>;
84*f126890aSEmmanuel Vadot	};
85*f126890aSEmmanuel Vadot
86*f126890aSEmmanuel Vadot	pinctrl_touchscreen: touchscreengrp {
87*f126890aSEmmanuel Vadot		fsl,pins = <
88*f126890aSEmmanuel Vadot			MX7D_PAD_EPDC_DATA04__GPIO2_IO4		0x14
89*f126890aSEmmanuel Vadot			MX7D_PAD_EPDC_DATA13__GPIO2_IO13	0x14
90*f126890aSEmmanuel Vadot		>;
91*f126890aSEmmanuel Vadot	};
92*f126890aSEmmanuel Vadot
93*f126890aSEmmanuel Vadot};
94