blob: f263e391e24cbb6c44d569cf284dde74020f58ac [file] [log] [blame]
Joris Offouga7c748932019-04-04 14:00:52 +02001// 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>;
Marcel Ziswiler2f96d4d2022-07-21 15:27:34 +020034 clocks = <&clks IMX7D_AUDIO_MCLK_ROOT_DIV>;
Joris Offouga7c748932019-04-04 14:00:52 +020035 };
36 };
37};
38
39&i2c1 {
40 sgtl5000: codec@a {
41 #sound-dai-cells = <0>;
42 reg = <0x0a>;
43 compatible = "fsl,sgtl5000";
Marcel Ziswiler2f96d4d2022-07-21 15:27:34 +020044 clocks = <&clks IMX7D_AUDIO_MCLK_ROOT_DIV>;
Joris Offouga7c748932019-04-04 14:00:52 +020045 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&iomuxc {
65 pinctrl-names = "default";
66 pinctrl-0 = <&pinctrl_hog>;
67
68 pinctrl_hog: hoggrp {
69 fsl,pins = <
70 MX7D_PAD_EPDC_DATA00__GPIO2_IO0 0x14
71 MX7D_PAD_EPDC_DATA01__GPIO2_IO1 0x14
72 MX7D_PAD_EPDC_DATA02__GPIO2_IO2 0x14
73 MX7D_PAD_EPDC_DATA03__GPIO2_IO3 0x14
74 MX7D_PAD_EPDC_DATA05__GPIO2_IO5 0x14
75 MX7D_PAD_EPDC_DATA12__GPIO2_IO12 0x14
76 MX7D_PAD_EPDC_DATA07__GPIO2_IO7 0x14
77 >;
78 };
79
80 pinctrl_gpio_leds: gpioledsgrp {
81 fsl,pins = <
82 MX7D_PAD_EPDC_DATA06__GPIO2_IO6 0x14
83 >;
84 };
85
86 pinctrl_touchscreen: touchscreengrp {
87 fsl,pins = <
88 MX7D_PAD_EPDC_DATA04__GPIO2_IO4 0x14
89 MX7D_PAD_EPDC_DATA13__GPIO2_IO13 0x14
90 >;
91 };
92
Marcel Ziswiler2f96d4d2022-07-21 15:27:34 +020093};