xref: /freebsd/sys/contrib/device-tree/src/arm64/freescale/imx8mm-emcon-avari.dtsi (revision 8d13bc63c0e1d50bc9e47ac1f26329c999bfecf0)
1aa1a8ff2SEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0 OR MIT)
2c9ccf3a3SEmmanuel Vadot//
3c9ccf3a3SEmmanuel Vadot// Copyright (C) 2021 emtrion GmbH
4c9ccf3a3SEmmanuel Vadot// Author: Frank Erdrich <frank.erdrich@emtrion.com>
5c9ccf3a3SEmmanuel Vadot//
6c9ccf3a3SEmmanuel Vadot
7c9ccf3a3SEmmanuel Vadot/ {
8c9ccf3a3SEmmanuel Vadot	aliases {
9c9ccf3a3SEmmanuel Vadot		boardid = &boardID;
10c9ccf3a3SEmmanuel Vadot		mmc0 = &usdhc1;
11c9ccf3a3SEmmanuel Vadot		mmc1 = &usdhc2;
12c9ccf3a3SEmmanuel Vadot	};
13c9ccf3a3SEmmanuel Vadot
14c9ccf3a3SEmmanuel Vadot	chosen {
15c9ccf3a3SEmmanuel Vadot		stdout-path = &uart1;
16c9ccf3a3SEmmanuel Vadot	};
17c9ccf3a3SEmmanuel Vadot
18c9ccf3a3SEmmanuel Vadot	reg_wall_5p0: regulator-wall5p0 {
19c9ccf3a3SEmmanuel Vadot		compatible = "regulator-fixed";
20c9ccf3a3SEmmanuel Vadot		regulator-name = "Main-Supply";
21c9ccf3a3SEmmanuel Vadot		regulator-min-microvolt = <5000000>;
22c9ccf3a3SEmmanuel Vadot		regulator-max-microvolt = <5000000>;
23c9ccf3a3SEmmanuel Vadot		regulator-always-on;
24c9ccf3a3SEmmanuel Vadot		regulator-boot-on;
25c9ccf3a3SEmmanuel Vadot	};
26c9ccf3a3SEmmanuel Vadot
27c9ccf3a3SEmmanuel Vadot	reg_base3p3: regulator-base3p3 {
28c9ccf3a3SEmmanuel Vadot		compatible = "regulator-fixed";
29c9ccf3a3SEmmanuel Vadot		vin-supply = <&reg_wall_5p0>;
30c9ccf3a3SEmmanuel Vadot		regulator-name = "3V3-avari";
31c9ccf3a3SEmmanuel Vadot		regulator-min-microvolt = <3300000>;
32c9ccf3a3SEmmanuel Vadot		regulator-max-microvolt = <3300000>;
33c9ccf3a3SEmmanuel Vadot		regulator-always-on;
34c9ccf3a3SEmmanuel Vadot		regulator-boot-on;
35c9ccf3a3SEmmanuel Vadot	};
36c9ccf3a3SEmmanuel Vadot
37c9ccf3a3SEmmanuel Vadot	reg_base1p5: regulator-base1p5 {
38c9ccf3a3SEmmanuel Vadot		compatible = "regulator-fixed";
39c9ccf3a3SEmmanuel Vadot		vin-supply = <&reg_base3p3>;
40c9ccf3a3SEmmanuel Vadot		regulator-name = "1V5-avari";
41c9ccf3a3SEmmanuel Vadot		regulator-min-microvolt = <1500000>;
42c9ccf3a3SEmmanuel Vadot		regulator-max-microvolt = <1500000>;
43c9ccf3a3SEmmanuel Vadot		regulator-always-on;
44c9ccf3a3SEmmanuel Vadot		regulator-boot-on;
45c9ccf3a3SEmmanuel Vadot	};
46c9ccf3a3SEmmanuel Vadot
47c9ccf3a3SEmmanuel Vadot	reg_usb_otg: regulator-otgvbus {
48c9ccf3a3SEmmanuel Vadot		compatible = "regulator-fixed";
49c9ccf3a3SEmmanuel Vadot		vin-supply = <&reg_wall_5p0>;
50c9ccf3a3SEmmanuel Vadot		regulator-name = "OTG_VBUS";
51c9ccf3a3SEmmanuel Vadot		regulator-min-microvolt = <5000000>;
52c9ccf3a3SEmmanuel Vadot		regulator-max-microvolt = <5000000>;
53c9ccf3a3SEmmanuel Vadot		gpio = <&gpio1 8 GPIO_ACTIVE_LOW>;
54c9ccf3a3SEmmanuel Vadot		regulator-always-on;
55c9ccf3a3SEmmanuel Vadot	};
56c9ccf3a3SEmmanuel Vadot
57c9ccf3a3SEmmanuel Vadot	clk_codec: clock-codec {
58c9ccf3a3SEmmanuel Vadot		compatible = "fixed-clock";
59c9ccf3a3SEmmanuel Vadot		#clock-cells = <0>;
60c9ccf3a3SEmmanuel Vadot		clock-frequency = <12000000>;
61c9ccf3a3SEmmanuel Vadot	};
62c9ccf3a3SEmmanuel Vadot
63c9ccf3a3SEmmanuel Vadot	sound {
64c9ccf3a3SEmmanuel Vadot		compatible = "simple-audio-card";
65c9ccf3a3SEmmanuel Vadot		simple-audio-card,name = "SGTL5000-Card";
66c9ccf3a3SEmmanuel Vadot		simple-audio-card,format = "i2s";
67c9ccf3a3SEmmanuel Vadot		simple-audio-card,bitclock-master = <&codec_dai>;
68c9ccf3a3SEmmanuel Vadot		simple-audio-card,frame-master = <&codec_dai>;
69c9ccf3a3SEmmanuel Vadot		simple-audio-card,widgets = "Headphone", "Headphone Jack";
70c9ccf3a3SEmmanuel Vadot		simple-audio-card,routing = "Headphone Jack", "HP_OUT";
71c9ccf3a3SEmmanuel Vadot
72c9ccf3a3SEmmanuel Vadot		cpu_dai: simple-audio-card,cpu {
73c9ccf3a3SEmmanuel Vadot			sound-dai = <&sai2>;
74c9ccf3a3SEmmanuel Vadot		};
75c9ccf3a3SEmmanuel Vadot
76c9ccf3a3SEmmanuel Vadot		codec_dai: simple-audio-card,codec {
77c9ccf3a3SEmmanuel Vadot			sound-dai = <&sgtl5000>;
78c9ccf3a3SEmmanuel Vadot		};
79c9ccf3a3SEmmanuel Vadot	};
80c9ccf3a3SEmmanuel Vadot};
81c9ccf3a3SEmmanuel Vadot
82c9ccf3a3SEmmanuel Vadot&ecspi1 {
83c9ccf3a3SEmmanuel Vadot	status = "okay";
84c9ccf3a3SEmmanuel Vadot};
85c9ccf3a3SEmmanuel Vadot
86c9ccf3a3SEmmanuel Vadot&i2c2 {
87c9ccf3a3SEmmanuel Vadot	status = "okay";
88c9ccf3a3SEmmanuel Vadot};
89c9ccf3a3SEmmanuel Vadot
90c9ccf3a3SEmmanuel Vadot&i2c1 {
91c9ccf3a3SEmmanuel Vadot	clock-frequency = <100000>;
92c9ccf3a3SEmmanuel Vadot	status = "okay";
93c9ccf3a3SEmmanuel Vadot
94c9ccf3a3SEmmanuel Vadot	sgtl5000: audio-codec@a {
95c9ccf3a3SEmmanuel Vadot		compatible = "fsl,sgtl5000";
96c9ccf3a3SEmmanuel Vadot		reg = <0x0a>;
97c9ccf3a3SEmmanuel Vadot		#sound-dai-cells = <0>;
98c9ccf3a3SEmmanuel Vadot		clocks = <&clk_codec>;
99c9ccf3a3SEmmanuel Vadot		VDDA-supply = <&reg_base3p3>;
100c9ccf3a3SEmmanuel Vadot		VDDIO-supply = <&reg_base3p3>;
101c9ccf3a3SEmmanuel Vadot	};
102c9ccf3a3SEmmanuel Vadot
103c9ccf3a3SEmmanuel Vadot	boardID: gpio@3a {
104c9ccf3a3SEmmanuel Vadot		compatible = "nxp,pca8574";
105c9ccf3a3SEmmanuel Vadot		reg = <0x3a>;
106c9ccf3a3SEmmanuel Vadot		gpio-controller;
107*8d13bc63SEmmanuel Vadot		#gpio-cells = <2>;
108c9ccf3a3SEmmanuel Vadot	};
109c9ccf3a3SEmmanuel Vadot};
110c9ccf3a3SEmmanuel Vadot
111c9ccf3a3SEmmanuel Vadot&sai2 {
112c9ccf3a3SEmmanuel Vadot	status = "okay";
113c9ccf3a3SEmmanuel Vadot};
114c9ccf3a3SEmmanuel Vadot
115c9ccf3a3SEmmanuel Vadot&uart2 {
116c9ccf3a3SEmmanuel Vadot	uart-has-rtscts;
117c9ccf3a3SEmmanuel Vadot	status = "okay";
118c9ccf3a3SEmmanuel Vadot};
119c9ccf3a3SEmmanuel Vadot
120c9ccf3a3SEmmanuel Vadot&uart3 {
121c9ccf3a3SEmmanuel Vadot	status = "okay";
122c9ccf3a3SEmmanuel Vadot};
123c9ccf3a3SEmmanuel Vadot
124c9ccf3a3SEmmanuel Vadot&uart4 {
125c9ccf3a3SEmmanuel Vadot	status = "okay";
126c9ccf3a3SEmmanuel Vadot};
127c9ccf3a3SEmmanuel Vadot
128c9ccf3a3SEmmanuel Vadot&usbotg1 {
129c9ccf3a3SEmmanuel Vadot	status = "okay";
130c9ccf3a3SEmmanuel Vadot};
131c9ccf3a3SEmmanuel Vadot
132c9ccf3a3SEmmanuel Vadot&usbotg2 {
133c9ccf3a3SEmmanuel Vadot	dr_mode = "host";
134c9ccf3a3SEmmanuel Vadot	status = "disabled";
135c9ccf3a3SEmmanuel Vadot};
136c9ccf3a3SEmmanuel Vadot
137c9ccf3a3SEmmanuel Vadot&usdhc2 {
138c9ccf3a3SEmmanuel Vadot	status = "okay";
139c9ccf3a3SEmmanuel Vadot};
140