1// SPDX-License-Identifier: (GPL-2.0 OR MIT)
2//
3// Copyright 2015 Technexion Ltd.
4//
5// Author: Wig Cheng  <wig.cheng@technexion.com>
6//	   Richard Hu <richard.hu@technexion.com>
7//	   Tapani Utriainen <tapani@technexion.com>
8/dts-v1/;
9
10#include "imx7d-pico.dtsi"
11/ {
12	model = "TechNexion PICO-IMX7D and DWARF baseboard";
13	compatible = "technexion,imx7d-pico-dwarf", "fsl,imx7d";
14
15	sound {
16		compatible = "fsl,imx-audio-sgtl5000";
17		model = "imx7d-sgtl5000";
18		audio-cpu = <&sai1>;
19		audio-codec = <&sgtl5000>;
20		audio-routing =
21			"LINE_IN", "Line In Jack",
22			"MIC_IN", "Mic Jack",
23			"Mic Jack", "Mic Bias",
24			"Headphone Jack", "HP_OUT";
25	};
26
27	sys_mclk: clock-sys-mclk {
28		compatible = "fixed-clock";
29		#clock-cells = <0>;
30		clock-frequency = <24576000>;
31	};
32};
33
34&i2c1 {
35	clock-frequency = <100000>;
36	pinctrl-names = "default";
37	pinctrl-0 = <&pinctrl_i2c1>;
38	status = "okay";
39
40	sgtl5000: audio-codec@a {
41		reg = <0x0a>;
42		compatible = "fsl,sgtl5000";
43		#sound-dai-cells = <0>;
44		clocks = <&sys_mclk>;
45		VDDA-supply = <&reg_2p5v>;
46		VDDIO-supply = <&reg_3p3v>;
47	};
48
49	pressure-sensor@60 {
50		compatible = "fsl,mpl3115";
51		reg = <0x60>;
52	};
53};
54
55&i2c4 {
56	clock-frequency = <100000>;
57	pinctrl-names = "default";
58	pinctrl-0 = <&pinctrl_i2c1>;
59	status = "okay";
60
61	pca9554: io-expander@25 {
62		compatible = "nxp,pca9554";
63		gpio-controller;
64		#gpio-cells = <2>;
65		#interrupt-cells = <2>;
66		reg = <0x25>;
67	};
68
69	touchscreen@38 {
70		compatible = "edt,edt-ft5x06";
71		reg = <0x38>;
72		pinctrl-names = "default";
73		pinctrl-0 = <&pinctrl_touchscreen>;
74		interrupt-parent = <&gpio2>;
75		interrupts = <13 IRQ_TYPE_EDGE_FALLING>;
76		reset-gpios = <&pca9554 4 GPIO_ACTIVE_LOW>;
77		touchscreen-size-x = <800>;
78		touchscreen-size-y = <480>;
79	};
80};
81
82&iomuxc {
83	pinctrl_touchscreen: touchscreengrp {
84		fsl,pins = <
85			MX7D_PAD_EPDC_DATA13__GPIO2_IO13	0x14
86		>;
87	};
88};
89