Linux 5.6.13
[linux/fpc-iii.git] / arch / arm / boot / dts / imx7d-pico-pi.dts
blob70bea95c06d83f84737d13478d1d7b37dca2272d
1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2 //
3 // Copyright 2017 NXP
5 #include "imx7d-pico.dtsi"
7 / {
8         model = "TechNexion PICO-IMX7D Board and PI baseboard";
9         compatible = "technexion,imx7d-pico-pi", "fsl,imx7d";
11         leds {
12                 compatible = "gpio-leds";
13                 pinctrl-names = "default";
14                 pinctrl-0 = <&pinctrl_gpio_leds>;
16                 led {
17                         label = "gpio-led";
18                         gpios = <&gpio2 6 GPIO_ACTIVE_HIGH>;
19                 };
20         };
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                 };
32                 dailink_master: simple-audio-card,codec {
33                         sound-dai = <&sgtl5000>;
34                         clocks = <&clks IMX7D_AUDIO_MCLK_ROOT_CLK>;
35                 };
36         };
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_CLK>;
45                 VDDA-supply = <&reg_2p5v>;
46                 VDDIO-supply = <&reg_vref_1v8>;
47         };
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         };
64 &iomuxc {
65         pinctrl-names = "default";
66         pinctrl-0 = <&pinctrl_hog>;
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         };
80         pinctrl_gpio_leds: gpioledsgrp {
81                 fsl,pins = <
82                         MX7D_PAD_EPDC_DATA06__GPIO2_IO6         0x14
83                 >;
84         };
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         };