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