Skip to content
Snippets Groups Projects
Commit ccbaef37 authored by Gianfranco Mariotti's avatar Gianfranco Mariotti Committed by Tobias Kahlki
Browse files

[D18][B79] split DT into SoM DT and carrier DTO

parent f73565fa
No related branches found
No related tags found
1 merge request!170[D18][B79] split DT into SoM DT and carrier DTO
......@@ -36,6 +36,7 @@ dtbo-$(CONFIG_ARCH_MXC) += \
seco-imx8mm-c61-port2-rs485.dtbo\
seco-imx8mm-c61-video-sn65dsi84.dtbo\
seco-imx8mm-c61-video-sn65dsi86.dtbo\
seco-imx8mp-d18-b79.dtbo\
seco-imx8mp-d18-hdmi.dtbo\
seco-imx8mp-d18-edp.dtbo\
seco-imx8mp-d18-lvds-fhd.dtbo\
......
/*
* Copyright 2024 SECO
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
#include <dt-bindings/clock/imx8mp-clock.h>
#include <dt-bindings/gpio/gpio.h>
/dts-v1/;
/plugin/;
/ {
model = "SECO i.MX8MPlus LPDDR4 D18 on B79 carrier board";
compatible = "fsl,imx8mp-evk", "seco,imx8mp-d18", "fsl,imx8mp";
/* __________________________________________________________________________
* | |
* | CARRIER BOARD B79 |
* |__________________________________________________________________________|
*/
fragment@0 {
target-path = "/";
__overlay__ {
reg_audio: regulator-soc-audio {
compatible = "regulator-fixed";
regulator-name = "tlv320aic32x4_supply";
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
regulator-always-on;
};
reg_audio_pwr: regulator-audio-pwr {
compatible = "regulator-fixed";
regulator-name = "audio-pwr";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
gpio = <&gpio4 29 GPIO_ACTIVE_HIGH>;
enable-active-high;
regulator-always-on;
};
};
};
fragment@1 {
target-path = "/";
__overlay__ {
sound {
status = "okay";
compatible = "simple-audio-card";
simple-audio-card,format = "i2s";
simple-audio-card,name = "tlv-audio";
simple-audio-card,frame-master = <&cpudai>;
simple-audio-card,bitclock-master = <&cpudai>;
cpudai: simple-audio-card,cpu {
sound-dai = <&sai2>;
dai-tdm-slot-num = <2>;
dai-tdm-slot-width = <16>;
};
simple-audio-card,codec {
sound-dai = <&tlvcodec 0>;
};
};
};
};
fragment@2 {
target = <&pca6416>;
__overlay__ {
tlv320_reset {
gpio-hog;
gpios = <8 GPIO_ACTIVE_HIGH>;
output-high;
};
};
};
fragment@3 {
target = <&i2c5>;
__overlay__ {
tlvcodec: tlv320aic32x4@18 {
#sound-dai-cells = <0>;
status = "okay";
compatible = "ti,tlv320aic32x4";
reg = <0x18>;
ldoin-supply = <&reg_audio>;
iov-supply = <&reg_audio>;
clocks = <&clk IMX8MP_CLK_SAI2_ROOT>;
clock-names = "mclk";
route-on-lineout;
};
};
};
};
......@@ -11,7 +11,7 @@
#include "dt-bindings/seco/ectrl_stm32.h"
/ {
model = "SECO i.MX8MPlus LPDDR4 D18 board";
model = "SECO i.MX8MPlus LPDDR4 D18 module";
compatible = "fsl,imx8mp-evk", "seco,imx8mp-d18", "fsl,imx8mp";
chosen {
......@@ -52,16 +52,6 @@
enable-active-high;
};
reg_audio_pwr: regulator-audio-pwr {
compatible = "regulator-fixed";
regulator-name = "audio-pwr";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
gpio = <&gpio4 29 GPIO_ACTIVE_HIGH>;
enable-active-high;
regulator-always-on;
};
reg_pca6416_20: regulator-pca6416-20-pwr {
compatible = "regulator-fixed";
regulator-name = "pca6416-20-pwr";
......@@ -84,14 +74,6 @@
status = "okay";
};
reg_audio: regulator-soc-audio {
compatible = "regulator-fixed";
regulator-name = "tlv320aic32x4_supply";
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
regulator-always-on;
};
osc_27m: clock_27 {
compatible = "fixed-clock";
#clock-cells = <0>;
......@@ -105,24 +87,6 @@
soundbtsco: sound-bt-sco {
};
sound {
status = "okay";
compatible = "simple-audio-card";
simple-audio-card,format = "i2s";
simple-audio-card,name = "tlv-audio";
simple-audio-card,frame-master = <&cpudai>;
simple-audio-card,bitclock-master = <&cpudai>;
cpudai: simple-audio-card,cpu {
sound-dai = <&sai2>;
dai-tdm-slot-num = <2>;
dai-tdm-slot-width = <16>;
};
simple-audio-card,codec {
sound-dai = <&tlvcodec 0>;
};
};
soundhdmi: sound-hdmi {
compatible = "fsl,imx-audio-cdnhdmi";
model = "audio-hdmi";
......@@ -492,12 +456,6 @@
gpios = <11 GPIO_ACTIVE_HIGH>;
output-low;
};
tlv320_reset {
gpio-hog;
gpios = <8 GPIO_ACTIVE_HIGH>;
output-high;
};
};
};
......@@ -506,18 +464,6 @@
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_i2c5>;
status = "okay";
tlvcodec: tlv320aic32x4@18 {
#sound-dai-cells = <0>;
status = "okay";
compatible = "ti,tlv320aic32x4";
reg = <0x18>;
ldoin-supply = <&reg_audio>;
iov-supply = <&reg_audio>;
clocks = <&clk IMX8MP_CLK_SAI2_ROOT>;
clock-names = "mclk";
route-on-lineout;
};
};
&irqsteer_hdmi {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment