Debian Codegraph @

arch/arm64/boot/dts/freescale/imx8mp-libra-rdk-fpsc-lvds-peb-av-10.dtsi

raw
1 // SPDX-License-Identifier: (GPL-2.0-or-later OR MIT)
2 /*
3 * Copyright (C) 2025 PHYTEC Messtechnik GmbH
4 */
5
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/clock/imx8mp-clock.h>
8 #include "imx8mp-pinfunc.h"
9
10 &{/} {
11
12 backlight_lvds1: backlight-lvds1 {
13 compatible = "pwm-backlight";
14 pinctrl-0 = <&pinctrl_lvds1>;
15 pinctrl-names = "default";
16 power-supply = <&reg_vcc_12v>;
17 status = "disabled";
18 };
19
20 panel_lvds1: panel-lvds1 {
21 backlight = <&backlight_lvds1>;
22 power-supply = <&reg_vdd_3v3>;
23 status = "disabled";
24
25 port {
26 panel1_in: endpoint {
27 remote-endpoint = <&ldb_lvds_ch1>;
28 };
29 };
30 };
31
32 reg_vcc_12v: regulator-12v {
33 compatible = "regulator-fixed";
34 regulator-always-on;
35 regulator-boot-on;
36 regulator-max-microvolt = <12000000>;
37 regulator-min-microvolt = <12000000>;
38 regulator-name = "VCC_12V";
39 };
40
41 reg_vcc_1v8_audio: regulator-1v8 {
42 compatible = "regulator-fixed";
43 regulator-always-on;
44 regulator-boot-on;
45 regulator-max-microvolt = <1800000>;
46 regulator-min-microvolt = <1800000>;
47 regulator-name = "VCC_1V8_Audio";
48 };
49
50 reg_vcc_3v3_analog: regulator-3v3 {
51 compatible = "regulator-fixed";
52 regulator-always-on;
53 regulator-boot-on;
54 regulator-max-microvolt = <3300000>;
55 regulator-min-microvolt = <3300000>;
56 regulator-name = "VCC_3V3_Analog";
57 };
58
59 sound {
60 compatible = "simple-audio-card";
61 simple-audio-card,name = "snd-peb-av-10";
62 simple-audio-card,format = "i2s";
63 simple-audio-card,bitclock-master = <&dailink_master>;
64 simple-audio-card,frame-master = <&dailink_master>;
65 simple-audio-card,mclk-fs = <32>;
66 simple-audio-card,widgets =
67 "Line", "Line In",
68 "Speaker", "Speaker",
69 "Microphone", "Microphone Jack",
70 "Headphone", "Headphone Jack";
71 simple-audio-card,routing =
72 "Speaker", "SPOP",
73 "Speaker", "SPOM",
74 "Headphone Jack", "HPLOUT",
75 "Headphone Jack", "HPROUT",
76 "LINE1L", "Line In",
77 "LINE1R", "Line In",
78 "MIC3R", "Microphone Jack",
79 "Microphone Jack", "Mic Bias";
80
81 simple-audio-card,codec {
82 sound-dai = <&codec>;
83 };
84
85 dailink_master: simple-audio-card,cpu {
86 sound-dai = <&sai5>;
87 };
88 };
89 };
90
91 &i2c5 {
92 clock-frequency = <400000>;
93 pinctrl-0 = <&pinctrl_i2c5>;
94 pinctrl-1 = <&pinctrl_i2c5_gpio>;
95 pinctrl-names = "default", "gpio";
96 scl-gpios = <&gpio3 21 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
97 sda-gpios = <&gpio5 4 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
98 #address-cells = <1>;
99 #size-cells = <0>;
100 status = "okay";
101
102 codec: audio-codec@18 {
103 compatible = "ti,tlv320aic3007";
104 reg = <0x18>;
105 pinctrl-0 = <&pinctrl_tlv320>;
106 pinctrl-names = "default";
107 #sound-dai-cells = <0>;
108 ai3x-gpio-func = <0xd 0x0>;
109 ai3x-micbias-vg = <2>;
110 AVDD-supply = <&reg_vcc_3v3_analog>;
111 DRVDD-supply = <&reg_vcc_3v3_analog>;
112 DVDD-supply = <&reg_vcc_1v8_audio>;
113 IOVDD-supply = <&reg_vdd_3v3>;
114 };
115
116 eeprom@57 {
117 compatible = "atmel,24c32";
118 reg = <0x57>;
119 pagesize = <32>;
120 vcc-supply = <&reg_vdd_3v3>;
121 };
122 };
123
124 &ldb_lvds_ch1 {
125 remote-endpoint = <&panel1_in>;
126 };
127
128 &pwm2 {
129 pinctrl-0 = <&pinctrl_pwm2>;
130 pinctrl-names = "default";
131 };
132
133 &sai5 {
134 pinctrl-0 = <&pinctrl_sai5>;
135 pinctrl-names = "default";
136 assigned-clocks = <&clk IMX8MP_CLK_SAI5>;
137 assigned-clock-parents = <&clk IMX8MP_AUDIO_PLL1_OUT>;
138 assigned-clock-rates = <12288000>;
139 clocks = <&audio_blk_ctrl IMX8MP_CLK_AUDIOMIX_SAI5_IPG>,
140 <&clk IMX8MP_CLK_DUMMY>,
141 <&audio_blk_ctrl IMX8MP_CLK_AUDIOMIX_SAI5_MCLK1>,
142 <&clk IMX8MP_CLK_DUMMY>,
143 <&clk IMX8MP_CLK_DUMMY>,
144 <&clk IMX8MP_AUDIO_PLL1_OUT>,
145 <&clk IMX8MP_AUDIO_PLL2_OUT>;
146 clock-names = "bus", "mclk0", "mclk1", "mclk2", "mclk3", "pll8k",
147 "pll11k";
148 #sound-dai-cells = <0>;
149 fsl,sai-mclk-direction-output;
150 fsl,sai-synchronous-rx;
151 status = "okay";
152 };
153
154 &iomuxc {
155 pinctrl_i2c5: i2c5grp {
156 fsl,pins = <
157 MX8MP_IOMUXC_SAI5_RXD0__I2C5_SCL 0x400001c2
158 MX8MP_IOMUXC_SPDIF_RX__I2C5_SDA 0x400001c2
159 >;
160 };
161
162 pinctrl_i2c5_gpio: i2c5gpiogrp {
163 fsl,pins = <
164 MX8MP_IOMUXC_SAI5_RXD0__GPIO3_IO21 0x1e2
165 MX8MP_IOMUXC_SPDIF_RX__GPIO5_IO04 0x1e2
166 >;
167 };
168
169 pinctrl_lvds1: lvds1grp {
170 fsl,pins = <
171 MX8MP_IOMUXC_SAI3_RXFS__GPIO4_IO28 0x12
172 >;
173 };
174
175 pinctrl_pwm2: pwm2grp {
176 fsl,pins = <
177 MX8MP_IOMUXC_GPIO1_IO09__PWM2_OUT 0x12
178 >;
179 };
180
181 pinctrl_sai5: sai5grp {
182 fsl,pins = <
183 MX8MP_IOMUXC_SAI2_RXD0__AUDIOMIX_SAI5_TX_DATA00 0xd6
184 MX8MP_IOMUXC_SAI3_RXD__AUDIOMIX_SAI5_RX_DATA00 0xd6
185 MX8MP_IOMUXC_SAI5_MCLK__AUDIOMIX_SAI5_MCLK 0xd6
186 MX8MP_IOMUXC_SAI5_RXD1__AUDIOMIX_SAI5_TX_SYNC 0xd6
187 MX8MP_IOMUXC_SAI5_RXD2__AUDIOMIX_SAI5_TX_BCLK 0xd6
188 >;
189 };
190
191 pinctrl_tlv320: tlv320grp {
192 fsl,pins = <
193 MX8MP_IOMUXC_SAI3_RXC__GPIO4_IO29 0x16
194 >;
195 };
196 };