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