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