xref: /linux/arch/arm/boot/dts/nxp/imx/imx7d-pico-hobbit.dts (revision fd7d598270724cc787982ea48bbe17ad383a8b7f)
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 using Hobbit baseboard";
9	compatible = "technexion,imx7d-pico-hobbit", "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 13 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	status = "okay";
52
53	adc081c: adc@50 {
54		compatible = "ti,adc081c";
55		reg = <0x50>;
56		vref-supply = <&reg_3p3v>;
57	};
58};
59
60&ecspi3 {
61	ads7846@0 {
62		reg = <0>;
63		compatible = "ti,ads7846";
64		interrupt-parent = <&gpio2>;
65		interrupts = <7 0>;
66		spi-max-frequency = <1000000>;
67		pendown-gpio = <&gpio2 7 GPIO_ACTIVE_LOW>;
68		vcc-supply = <&reg_3p3v>;
69		ti,x-min = /bits/ 16 <0>;
70		ti,x-max = /bits/ 16 <4095>;
71		ti,y-min = /bits/ 16 <0>;
72		ti,y-max = /bits/ 16 <4095>;
73		ti,pressure-max = /bits/ 16 <1024>;
74		ti,x-plate-ohms = /bits/ 16 <90>;
75		ti,y-plate-ohms = /bits/ 16 <90>;
76		ti,debounce-max = /bits/ 16 <70>;
77		ti,debounce-tol = /bits/ 16 <3>;
78		ti,debounce-rep = /bits/ 16 <2>;
79		ti,settle-delay-usec = /bits/ 16 <150>;
80		wakeup-source;
81	};
82};
83
84&iomuxc {
85	pinctrl-names = "default";
86	pinctrl-0 = <&pinctrl_hog>;
87
88	pinctrl_hog: hoggrp {
89		fsl,pins = <
90			MX7D_PAD_EPDC_DATA00__GPIO2_IO0		0x14
91			MX7D_PAD_EPDC_DATA01__GPIO2_IO1		0x14
92			MX7D_PAD_EPDC_DATA02__GPIO2_IO2		0x14
93			MX7D_PAD_EPDC_DATA03__GPIO2_IO3		0x14
94			MX7D_PAD_EPDC_DATA05__GPIO2_IO5		0x14
95			MX7D_PAD_EPDC_DATA12__GPIO2_IO12	0x14
96			MX7D_PAD_EPDC_DATA07__GPIO2_IO7		0x14
97		>;
98	};
99
100	pinctrl_gpio_leds: gpioledsgrp {
101		fsl,pins = <
102			MX7D_PAD_EPDC_DATA13__GPIO2_IO13	0x14
103		>;
104	};
105};
106