xref: /freebsd-src/sys/contrib/device-tree/src/arm/nxp/imx/imx6ul-pico-pi.dts (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0 OR MIT)
2*f126890aSEmmanuel Vadot//
3*f126890aSEmmanuel Vadot// Copyright 2015 Technexion Ltd.
4*f126890aSEmmanuel Vadot//
5*f126890aSEmmanuel Vadot// Author: Wig Cheng  <wig.cheng@technexion.com>
6*f126890aSEmmanuel Vadot//	   Richard Hu <richard.hu@technexion.com>
7*f126890aSEmmanuel Vadot//	   Tapani Utriainen <tapani@technexion.com>
8*f126890aSEmmanuel Vadot/dts-v1/;
9*f126890aSEmmanuel Vadot
10*f126890aSEmmanuel Vadot#include "imx6ul-pico.dtsi"
11*f126890aSEmmanuel Vadot/ {
12*f126890aSEmmanuel Vadot	model = "TechNexion PICO-IMX6UL and PI baseboard";
13*f126890aSEmmanuel Vadot	compatible = "technexion,imx6ul-pico-pi", "fsl,imx6ul";
14*f126890aSEmmanuel Vadot
15*f126890aSEmmanuel Vadot	leds {
16*f126890aSEmmanuel Vadot		compatible = "gpio-leds";
17*f126890aSEmmanuel Vadot		pinctrl-names = "default";
18*f126890aSEmmanuel Vadot		pinctrl-0 = <&pinctrl_gpio_leds>;
19*f126890aSEmmanuel Vadot
20*f126890aSEmmanuel Vadot		led {
21*f126890aSEmmanuel Vadot			label = "gpio-led";
22*f126890aSEmmanuel Vadot			gpios = <&gpio4 20 GPIO_ACTIVE_HIGH>;
23*f126890aSEmmanuel Vadot		};
24*f126890aSEmmanuel Vadot	};
25*f126890aSEmmanuel Vadot
26*f126890aSEmmanuel Vadot	sound {
27*f126890aSEmmanuel Vadot		compatible = "fsl,imx-audio-sgtl5000";
28*f126890aSEmmanuel Vadot		model = "imx6ul-sgtl5000";
29*f126890aSEmmanuel Vadot		audio-cpu = <&sai1>;
30*f126890aSEmmanuel Vadot		audio-codec = <&sgtl5000>;
31*f126890aSEmmanuel Vadot		audio-routing =
32*f126890aSEmmanuel Vadot			"LINE_IN", "Line In Jack",
33*f126890aSEmmanuel Vadot			"MIC_IN", "Mic Jack",
34*f126890aSEmmanuel Vadot			"Mic Jack", "Mic Bias",
35*f126890aSEmmanuel Vadot			"Headphone Jack", "HP_OUT";
36*f126890aSEmmanuel Vadot	};
37*f126890aSEmmanuel Vadot
38*f126890aSEmmanuel Vadot	sys_mclk: clock-sys-mclk {
39*f126890aSEmmanuel Vadot		compatible = "fixed-clock";
40*f126890aSEmmanuel Vadot		#clock-cells = <0>;
41*f126890aSEmmanuel Vadot		clock-frequency = <24576000>;
42*f126890aSEmmanuel Vadot	};
43*f126890aSEmmanuel Vadot};
44*f126890aSEmmanuel Vadot
45*f126890aSEmmanuel Vadot&i2c2 {
46*f126890aSEmmanuel Vadot	clock-frequency = <100000>;
47*f126890aSEmmanuel Vadot	pinctrl-names = "default";
48*f126890aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_i2c2>;
49*f126890aSEmmanuel Vadot	status = "okay";
50*f126890aSEmmanuel Vadot
51*f126890aSEmmanuel Vadot	sgtl5000: codec@a {
52*f126890aSEmmanuel Vadot		reg = <0x0a>;
53*f126890aSEmmanuel Vadot		compatible = "fsl,sgtl5000";
54*f126890aSEmmanuel Vadot		clocks = <&sys_mclk>;
55*f126890aSEmmanuel Vadot		VDDA-supply = <&reg_2p5v>;
56*f126890aSEmmanuel Vadot		VDDIO-supply = <&reg_3p3v>;
57*f126890aSEmmanuel Vadot	};
58*f126890aSEmmanuel Vadot};
59*f126890aSEmmanuel Vadot
60*f126890aSEmmanuel Vadot&i2c3 {
61*f126890aSEmmanuel Vadot	clock-frequency = <100000>;
62*f126890aSEmmanuel Vadot	pinctrl-names = "default";
63*f126890aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_i2c3>;
64*f126890aSEmmanuel Vadot	status = "okay";
65*f126890aSEmmanuel Vadot
66*f126890aSEmmanuel Vadot	polytouch: touchscreen@38 {
67*f126890aSEmmanuel Vadot		compatible = "edt,edt-ft5x06";
68*f126890aSEmmanuel Vadot		reg = <0x38>;
69*f126890aSEmmanuel Vadot		interrupt-parent = <&gpio1>;
70*f126890aSEmmanuel Vadot		interrupts = <29 IRQ_TYPE_EDGE_FALLING>;
71*f126890aSEmmanuel Vadot		reset-gpios = <&gpio4 24 GPIO_ACTIVE_LOW>;
72*f126890aSEmmanuel Vadot		touchscreen-size-x = <800>;
73*f126890aSEmmanuel Vadot		touchscreen-size-y = <480>;
74*f126890aSEmmanuel Vadot	};
75*f126890aSEmmanuel Vadot};
76*f126890aSEmmanuel Vadot
77*f126890aSEmmanuel Vadot&iomuxc {
78*f126890aSEmmanuel Vadot	pinctrl-names = "default";
79*f126890aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_hog>;
80*f126890aSEmmanuel Vadot
81*f126890aSEmmanuel Vadot	pinctrl_hog: hoggrp {
82*f126890aSEmmanuel Vadot		fsl,pins = <
83*f126890aSEmmanuel Vadot			MX6UL_PAD_CSI_VSYNC__GPIO4_IO19		0x10b0
84*f126890aSEmmanuel Vadot			MX6UL_PAD_CSI_DATA00__GPIO4_IO21	0x10b0
85*f126890aSEmmanuel Vadot			MX6UL_PAD_CSI_DATA01__GPIO4_IO22	0x10b0
86*f126890aSEmmanuel Vadot			MX6UL_PAD_CSI_DATA02__GPIO4_IO23	0x10b0
87*f126890aSEmmanuel Vadot			MX6UL_PAD_UART1_CTS_B__GPIO1_IO18	0x10b0
88*f126890aSEmmanuel Vadot			MX6UL_PAD_SNVS_TAMPER2__GPIO5_IO02	0x10b0
89*f126890aSEmmanuel Vadot		>;
90*f126890aSEmmanuel Vadot	};
91*f126890aSEmmanuel Vadot
92*f126890aSEmmanuel Vadot	pinctrl_gpio_leds: gpioledsgrp {
93*f126890aSEmmanuel Vadot		fsl,pins = <
94*f126890aSEmmanuel Vadot			MX6UL_PAD_CSI_HSYNC__GPIO4_IO20		0x10b0
95*f126890aSEmmanuel Vadot		>;
96*f126890aSEmmanuel Vadot	};
97*f126890aSEmmanuel Vadot};
98