xref: /linux/arch/arm/boot/dts/nxp/imx/imx6q-dms-ba16.dts (revision d54bcc3a3dc63bb2d8348c2e34e24bbb48fa1c22)
1724ba675SRob Herring// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2724ba675SRob Herring
3724ba675SRob Herring/dts-v1/;
4724ba675SRob Herring
5724ba675SRob Herring#include <dt-bindings/gpio/gpio.h>
6724ba675SRob Herring#include "imx6q-ba16.dtsi"
7724ba675SRob Herring
8724ba675SRob Herring/ {
9724ba675SRob Herring	model = "Advantech DMS-BA16";
10724ba675SRob Herring	compatible = "advantech,imx6q-dms-ba16", "advantech,imx6q-ba16", "fsl,imx6q";
11724ba675SRob Herring
12724ba675SRob Herring	reg_usb_otg_vbus: regulator-usbotgvbus {
13724ba675SRob Herring		compatible = "regulator-fixed";
14724ba675SRob Herring		regulator-name = "usb_otg_vbus";
15724ba675SRob Herring		regulator-min-microvolt = <5000000>;
16724ba675SRob Herring		regulator-max-microvolt = <5000000>;
17724ba675SRob Herring		pinctrl-names = "default";
18724ba675SRob Herring		pinctrl-0 = <&pinctrl_usbotgvbus>;
19724ba675SRob Herring		gpio = <&gpio4 15 GPIO_ACTIVE_HIGH>;
20724ba675SRob Herring		enable-active-high;
21724ba675SRob Herring	};
22724ba675SRob Herring
23724ba675SRob Herring	sys_mclk: clock-sys-mclk {
24724ba675SRob Herring		compatible = "fixed-clock";
25724ba675SRob Herring		#clock-cells = <0>;
26724ba675SRob Herring		clock-frequency = <22000000>;
27724ba675SRob Herring	};
28724ba675SRob Herring
29724ba675SRob Herring	sound {
30724ba675SRob Herring		compatible = "fsl,imx6q-ba16-sgtl5000",
31724ba675SRob Herring			     "fsl,imx-audio-sgtl5000";
32724ba675SRob Herring		model = "imx6q-ba16-sgtl5000";
33724ba675SRob Herring		ssi-controller = <&ssi1>;
34724ba675SRob Herring		audio-codec = <&sgtl5000>;
35724ba675SRob Herring		audio-routing =
36724ba675SRob Herring			"MIC_IN", "Mic Jack",
37724ba675SRob Herring			"Mic Jack", "Mic Bias",
38724ba675SRob Herring			"Headphone Jack", "HP_OUT";
39724ba675SRob Herring		mux-int-port = <1>;
40724ba675SRob Herring		mux-ext-port = <4>;
41724ba675SRob Herring	};
42724ba675SRob Herring};
43724ba675SRob Herring
44724ba675SRob Herring&ecspi5 {
45724ba675SRob Herring	cs-gpios = <&gpio1 17 GPIO_ACTIVE_LOW>;
46724ba675SRob Herring	pinctrl-names = "default";
47724ba675SRob Herring	pinctrl-0 = <&pinctrl_ecspi5>;
48724ba675SRob Herring	status = "okay";
49724ba675SRob Herring
50724ba675SRob Herring	m25_eeprom: flash@0 {
51724ba675SRob Herring		compatible = "atmel,at25256B", "atmel,at25";
52724ba675SRob Herring		spi-max-frequency = <20000000>;
53724ba675SRob Herring		size = <0x8000>;
54724ba675SRob Herring		pagesize = <64>;
55724ba675SRob Herring		reg = <0>;
56724ba675SRob Herring		address-width = <16>;
57724ba675SRob Herring	};
58724ba675SRob Herring};
59724ba675SRob Herring
60724ba675SRob Herring&iomuxc {
61724ba675SRob Herring	pinctrl_i2c1_gpio: i2c1gpiogrp {
62724ba675SRob Herring		fsl,pins = <
63724ba675SRob Herring			MX6QDL_PAD_CSI0_DAT8__GPIO5_IO26        0x1b0b0
64724ba675SRob Herring			MX6QDL_PAD_CSI0_DAT9__GPIO5_IO27        0x1b0b0
65724ba675SRob Herring		>;
66724ba675SRob Herring	};
67724ba675SRob Herring
68724ba675SRob Herring	pinctrl_i2c2_gpio: i2c2gpiogrp {
69724ba675SRob Herring		fsl,pins = <
70724ba675SRob Herring			MX6QDL_PAD_KEY_COL3__GPIO4_IO12 0x1b0b0
71724ba675SRob Herring			MX6QDL_PAD_KEY_ROW3__GPIO4_IO13 0x1b0b0
72724ba675SRob Herring		>;
73724ba675SRob Herring	};
74724ba675SRob Herring
75724ba675SRob Herring	pinctrl_i2c3_gpio: i2c3gpiogrp {
76724ba675SRob Herring		fsl,pins = <
77724ba675SRob Herring			MX6QDL_PAD_GPIO_3__GPIO1_IO03   0x1b0b0
78724ba675SRob Herring			MX6QDL_PAD_GPIO_6__GPIO1_IO06   0x1b0b0
79724ba675SRob Herring		>;
80724ba675SRob Herring	};
81724ba675SRob Herring
82724ba675SRob Herring	pinctrl_usbotgvbus: usbotgvbusgrp {
83724ba675SRob Herring		fsl,pins = <
84724ba675SRob Herring			MX6QDL_PAD_ENET_RX_ER__USB_OTG_ID 0x17059
85724ba675SRob Herring			MX6QDL_PAD_KEY_ROW4__GPIO4_IO15 0x000b0
86724ba675SRob Herring		>;
87724ba675SRob Herring	};
88724ba675SRob Herring};
89724ba675SRob Herring
90724ba675SRob Herring&i2c1 {
91724ba675SRob Herring	clock-frequency = <100000>;
92724ba675SRob Herring	pinctrl-names = "default";
93724ba675SRob Herring	pinctrl-0 = <&pinctrl_i2c1>;
94724ba675SRob Herring	status = "okay";
95724ba675SRob Herring
96724ba675SRob Herring	sgtl5000: codec@a {
97724ba675SRob Herring		compatible = "fsl,sgtl5000";
98724ba675SRob Herring		reg = <0x0a>;
99*d54bcc3aSFabio Estevam		#sound-dai-cells = <0>;
100724ba675SRob Herring		clocks = <&sys_mclk>;
101724ba675SRob Herring		lrclk-strength = <0x3>;
102724ba675SRob Herring		VDDA-supply = <&reg_1p8v>;
103724ba675SRob Herring		VDDIO-supply = <&reg_3p3v>;
104724ba675SRob Herring	};
105724ba675SRob Herring};
106724ba675SRob Herring
107724ba675SRob Herring&pwm2 {
108724ba675SRob Herring	pinctrl-names = "default";
109724ba675SRob Herring	pinctrl-0 = <&pinctrl_pwm2>;
110724ba675SRob Herring	status = "okay";
111724ba675SRob Herring};
112724ba675SRob Herring
113724ba675SRob Herring&sata {
114724ba675SRob Herring	fsl,no-spread-spectrum;
115724ba675SRob Herring	fsl,transmit-atten-16ths = <12>;
116724ba675SRob Herring	fsl,transmit-boost-mdB = <3330>;
117724ba675SRob Herring	fsl,transmit-level-mV = <1133>;
118724ba675SRob Herring	fsl,receive-dpll-mode = <1>;
119724ba675SRob Herring	status = "okay";
120724ba675SRob Herring};
121724ba675SRob Herring
122724ba675SRob Herring&usbotg {
123724ba675SRob Herring	vbus-supply = <&reg_usb_otg_vbus>;
124724ba675SRob Herring	pinctrl-names = "default";
125724ba675SRob Herring	pinctrl-0 = <&pinctrl_usbotg>;
126724ba675SRob Herring	dr_mode = "otg";
127724ba675SRob Herring	disable-over-current;
128724ba675SRob Herring	status = "okay";
129724ba675SRob Herring};
130724ba675SRob Herring
131724ba675SRob Herring&usdhc4 {
132724ba675SRob Herring	pinctrl-names = "default";
133724ba675SRob Herring	pinctrl-0 = <&pinctrl_usdhc4>;
134724ba675SRob Herring	bus-width = <8>;
135724ba675SRob Herring	cd-gpios = <&gpio6 11 GPIO_ACTIVE_LOW>;
136724ba675SRob Herring	no-1-8-v;
137724ba675SRob Herring	keep-power-in-suspend;
138724ba675SRob Herring	wakeup-source;
139724ba675SRob Herring	status = "okay";
140724ba675SRob Herring};
141