136ca3c8cSAdam Ford// SPDX-License-Identifier: (GPL-2.0 OR MIT)
236ca3c8cSAdam Ford/*
336ca3c8cSAdam Ford * Copyright 2020 Compass Electronics Group, LLC
436ca3c8cSAdam Ford */
536ca3c8cSAdam Ford
636ca3c8cSAdam Ford/dts-v1/;
736ca3c8cSAdam Ford
836ca3c8cSAdam Ford#include "imx8mn.dtsi"
936ca3c8cSAdam Ford#include "imx8mn-beacon-som.dtsi"
1036ca3c8cSAdam Ford#include "imx8mn-beacon-baseboard.dtsi"
1136ca3c8cSAdam Ford
1236ca3c8cSAdam Ford/ {
1336ca3c8cSAdam Ford	model = "Beacon EmbeddedWorks i.MX8M Nano Development Kit";
1436ca3c8cSAdam Ford	compatible = "beacon,imx8mn-beacon-kit", "fsl,imx8mn";
1536ca3c8cSAdam Ford
1636ca3c8cSAdam Ford	chosen {
1736ca3c8cSAdam Ford		stdout-path = &uart2;
1836ca3c8cSAdam Ford	};
19*1d6880ceSAdam Ford
20*1d6880ceSAdam Ford	connector {
21*1d6880ceSAdam Ford		compatible = "hdmi-connector";
22*1d6880ceSAdam Ford		type = "a";
23*1d6880ceSAdam Ford
24*1d6880ceSAdam Ford		port {
25*1d6880ceSAdam Ford			hdmi_connector_in: endpoint {
26*1d6880ceSAdam Ford				remote-endpoint = <&adv7535_out>;
27*1d6880ceSAdam Ford			};
28*1d6880ceSAdam Ford		};
29*1d6880ceSAdam Ford	};
30*1d6880ceSAdam Ford
31*1d6880ceSAdam Ford	reg_hdmi: regulator-hdmi-dvdd {
32*1d6880ceSAdam Ford		compatible = "regulator-fixed";
33*1d6880ceSAdam Ford		pinctrl-names = "default";
34*1d6880ceSAdam Ford		pinctrl-0 = <&pinctrl_reg_hdmi>;
35*1d6880ceSAdam Ford		regulator-name = "hdmi_pwr_en";
36*1d6880ceSAdam Ford		regulator-min-microvolt = <3300000>;
37*1d6880ceSAdam Ford		regulator-max-microvolt = <3300000>;
38*1d6880ceSAdam Ford		gpio = <&gpio2 11 GPIO_ACTIVE_HIGH>;
39*1d6880ceSAdam Ford		enable-active-high;
40*1d6880ceSAdam Ford		startup-delay-us = <70000>;
41*1d6880ceSAdam Ford		regulator-always-on;
42*1d6880ceSAdam Ford	};
43*1d6880ceSAdam Ford
44*1d6880ceSAdam Ford	sound-hdmi {
45*1d6880ceSAdam Ford		compatible = "simple-audio-card";
46*1d6880ceSAdam Ford		simple-audio-card,name = "sound-hdmi";
47*1d6880ceSAdam Ford		simple-audio-card,format = "i2s";
48*1d6880ceSAdam Ford
49*1d6880ceSAdam Ford		simple-audio-card,cpu {
50*1d6880ceSAdam Ford			sound-dai = <&sai5 0>;
51*1d6880ceSAdam Ford			system-clock-direction-out;
52*1d6880ceSAdam Ford		};
53*1d6880ceSAdam Ford
54*1d6880ceSAdam Ford		simple-audio-card,codec {
55*1d6880ceSAdam Ford			sound-dai = <&adv_bridge>;
56*1d6880ceSAdam Ford		};
57*1d6880ceSAdam Ford	};
58*1d6880ceSAdam Ford};
59*1d6880ceSAdam Ford
60*1d6880ceSAdam Ford&i2c2 {
61*1d6880ceSAdam Ford	adv_bridge: hdmi@3d {
62*1d6880ceSAdam Ford		compatible = "adi,adv7535";
63*1d6880ceSAdam Ford		pinctrl-names = "default";
64*1d6880ceSAdam Ford		pinctrl-0 = <&pinctrl_hdmi_bridge>;
65*1d6880ceSAdam Ford		reg = <0x3d>, <0x3c>, <0x3e>, <0x3f>;
66*1d6880ceSAdam Ford		reg-names = "main", "cec", "edid", "packet";
67*1d6880ceSAdam Ford		adi,dsi-lanes = <4>;
68*1d6880ceSAdam Ford		avdd-supply = <&reg_hdmi>;
69*1d6880ceSAdam Ford		a2vdd-supply = <&reg_hdmi>;
70*1d6880ceSAdam Ford		dvdd-supply = <&reg_hdmi>;
71*1d6880ceSAdam Ford		pvdd-supply = <&reg_hdmi>;
72*1d6880ceSAdam Ford		v1p2-supply = <&reg_hdmi>;
73*1d6880ceSAdam Ford		v3p3-supply = <&reg_hdmi>;
74*1d6880ceSAdam Ford		interrupt-parent = <&gpio1>;
75*1d6880ceSAdam Ford		interrupts = <9 IRQ_TYPE_LEVEL_LOW>;
76*1d6880ceSAdam Ford		#sound-dai-cells = <0>;
77*1d6880ceSAdam Ford
78*1d6880ceSAdam Ford		ports {
79*1d6880ceSAdam Ford			#address-cells = <1>;
80*1d6880ceSAdam Ford			#size-cells = <0>;
81*1d6880ceSAdam Ford
82*1d6880ceSAdam Ford			port@0 {
83*1d6880ceSAdam Ford				reg = <0>;
84*1d6880ceSAdam Ford
85*1d6880ceSAdam Ford				adv7535_in: endpoint {
86*1d6880ceSAdam Ford					remote-endpoint = <&dsi_out>;
87*1d6880ceSAdam Ford				};
88*1d6880ceSAdam Ford			};
89*1d6880ceSAdam Ford
90*1d6880ceSAdam Ford			port@1 {
91*1d6880ceSAdam Ford				reg = <1>;
92*1d6880ceSAdam Ford
93*1d6880ceSAdam Ford				adv7535_out: endpoint {
94*1d6880ceSAdam Ford					remote-endpoint = <&hdmi_connector_in>;
95*1d6880ceSAdam Ford				};
96*1d6880ceSAdam Ford			};
97*1d6880ceSAdam Ford		};
98*1d6880ceSAdam Ford	};
99*1d6880ceSAdam Ford};
100*1d6880ceSAdam Ford
101*1d6880ceSAdam Ford&lcdif {
102*1d6880ceSAdam Ford	assigned-clocks = <&clk IMX8MN_VIDEO_PLL1>;
103*1d6880ceSAdam Ford	assigned-clock-rates = <594000000>;
104*1d6880ceSAdam Ford	status = "okay";
105*1d6880ceSAdam Ford};
106*1d6880ceSAdam Ford
107*1d6880ceSAdam Ford&mipi_dsi {
108*1d6880ceSAdam Ford	samsung,esc-clock-frequency = <20000000>;
109*1d6880ceSAdam Ford	status = "okay";
110*1d6880ceSAdam Ford
111*1d6880ceSAdam Ford	ports {
112*1d6880ceSAdam Ford		port@1 {
113*1d6880ceSAdam Ford			reg = <1>;
114*1d6880ceSAdam Ford
115*1d6880ceSAdam Ford			dsi_out: endpoint {
116*1d6880ceSAdam Ford				remote-endpoint = <&adv7535_in>;
117*1d6880ceSAdam Ford			};
118*1d6880ceSAdam Ford		};
119*1d6880ceSAdam Ford	};
120*1d6880ceSAdam Ford};
121*1d6880ceSAdam Ford
122*1d6880ceSAdam Ford&sai5 {
123*1d6880ceSAdam Ford	pinctrl-names = "default";
124*1d6880ceSAdam Ford	pinctrl-0 = <&pinctrl_sai5>;
125*1d6880ceSAdam Ford	assigned-clocks = <&clk IMX8MN_CLK_SAI5>;
126*1d6880ceSAdam Ford	assigned-clock-parents = <&clk IMX8MN_AUDIO_PLL1_OUT>;
127*1d6880ceSAdam Ford	assigned-clock-rates = <24576000>;
128*1d6880ceSAdam Ford	#sound-dai-cells = <0>;
129*1d6880ceSAdam Ford	status = "okay";
130*1d6880ceSAdam Ford};
131*1d6880ceSAdam Ford
132*1d6880ceSAdam Ford&iomuxc {
133*1d6880ceSAdam Ford	pinctrl_hdmi_bridge: hdmibridgegrp {
134*1d6880ceSAdam Ford		fsl,pins = <
135*1d6880ceSAdam Ford			MX8MN_IOMUXC_GPIO1_IO09_GPIO1_IO9		0x19
136*1d6880ceSAdam Ford		>;
137*1d6880ceSAdam Ford	};
138*1d6880ceSAdam Ford
139*1d6880ceSAdam Ford	pinctrl_reg_hdmi: reghdmigrp {
140*1d6880ceSAdam Ford		fsl,pins = <
141*1d6880ceSAdam Ford			MX8MN_IOMUXC_SD1_STROBE_GPIO2_IO11              0x16
142*1d6880ceSAdam Ford		>;
143*1d6880ceSAdam Ford	};
144*1d6880ceSAdam Ford
145*1d6880ceSAdam Ford	pinctrl_sai5: sai5grp {
146*1d6880ceSAdam Ford		fsl,pins = <
147*1d6880ceSAdam Ford			MX8MN_IOMUXC_SAI5_RXD3_SAI5_TX_DATA0	0xd6
148*1d6880ceSAdam Ford			MX8MN_IOMUXC_SAI5_RXD2_SAI5_TX_BCLK	0xd6
149*1d6880ceSAdam Ford			MX8MN_IOMUXC_SAI5_RXD1_SAI5_TX_SYNC	0xd6
150*1d6880ceSAdam Ford		>;
151*1d6880ceSAdam Ford	};
15236ca3c8cSAdam Ford};
153