Skip to content
Snippets Groups Projects
Commit deedafdf authored by Dietmar Muscholik's avatar Dietmar Muscholik
Browse files

[E39][MV] add modular vision

parent a85a697c
Branches
No related tags found
2 merge requests!307Draft: Add driver for STM32,!211[B79] fix some regulators, disable postcode
# SPDX-License-Identifier: GPL-2.0 # SPDX-License-Identifier: GPL-2.0
dtb-y += seco-maury-csm_b79-c3007054491027a.dtb dtb-y += seco-maury-csm_b79-c3007054491027a.dtb
dtb-y += seco-maury-mv.dtb
/*
* Copyright 2024 SECO Northern Europe GmbH
*/
#ifndef MV_DTSI
#define MV_DTSI
/ {
// reg_audio: regulator-soc-audio {
// compatible = "regulator-fixed";
// regulator-name = "tas2505_supply";
// regulator-min-microvolt = <1800000>;
// regulator-max-microvolt = <1800000>;
// regulator-always-on;
// };
// 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>;
// };
// };
/*
reg_5p0: 5p0 {
compatible = "regulator-fixed";
regulator-name = "5P0";
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
regulator-always-on;
};
reg_5p0_sw: 5v_sw {
compatible = "regulator-fixed";
regulator-name = "5P0_SW";
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
vin-supply = <&reg_5p0>;
//regulator-always-on;
};
*/
/*
reg_3v3: 3v3 {
compatible = "regulator-fixed";
regulator-name = "3P3";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
regulator-always-on;
};
*/
reg_1p8: 1p8 {
compatible = "regulator-fixed";
regulator-name = "1P8";
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
regulator-always-on;
};
/*
reg_24v: 24v {
compatible = "regulator-fixed";
regulator-name = "24P0_FILT";
regulator-min-microvolt = <24000000>;
regulator-max-microvolt = <24000000>;
regulator-always-on;
};
reg_3v3_sdcard: 3v3-sdcard {
compatible = "regulator-fixed";
regulator-name = "3V3_SCDARD";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
vin-supply = <&reg_3v3>;
// gpio = <&pio 4 GPIO_ACTIVE_HIGH>; // Enabled in maury DT
//enable-active-high;
};
reg_usb0_vcc: usb0-vcc {
compatible = "regulator-fixed";
regulator-name = "USB0_VCC";
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
vin-supply = <&reg_5v_sw>;
//gpio = <&stm32 20 GPIO_ACTIVE_HIGH>;
//enable-active-high;
};
reg_usb1_vcc: usb1-vcc {
compatible = "regulator-fixed";
regulator-name = "USB-C_VCC";
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
vin-supply = <&reg_5v_sw>;
//gpio = <&stm32 21 GPIO_ACTIVE_HIGH>;
//enable-active-high;
};
reg_usb2_vcc: usb2-vcc {
compatible = "regulator-fixed";
regulator-name = "USB2_VCC";
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
vin-supply = <&reg_5v_sw>;
regulator-always-on;
};
*/
simple-audio {
compatible = "simple-audio-card";
simple-audio-card,format = "i2s";
simple-audio-card,frame-master = <&cpudai>;
simple-audio-card,bitclock-master = <&cpudai>;
simple-audio-card,name = "tas2505-audio";
status = "okay";
cpudai: simple-audio-card,cpu {
sound-dai = <&sai1>;
dai-tdm-slot-num = <2>;
dai-tdm-slot-width = <32>;
};
simple-audio-card,codec {
sound-dai = <&audiocodec>;
};
};
};
&lpi2c3 {
// tlvcodec: tas2505@18 {
// #sound-dai-cells = <0>;
// status = "okay";
// compatible = "ti,tas2505";
// reg = <0x18>;
// ldoin-supply = <&reg_audio>;
// iov-supply = <&reg_audio>;
// av-supply = <&reg_audio>;
// dv-supply = <&reg_audio>;
// clocks = <&clk IMX8MP_CLK_SAI2_ROOT>;
// clock-names = "mclk";
// route-on-lineout;
// };
/*
gpio_expander: gpio-expander@43 {
compatible = "psc,pi4io";
reg = <0x43>;
interrupt-controller;
interrupt-parent = <&stm32>;
interrupts = <STM32_IRQ_GPIO4 IRQ_TYPE_EDGE_FALLING>;
#interrupt-cells = <2>;
gpio-controller;
#gpio-cells = <2>;
reset-gpios = <&stm32 39 GPIO_ACTIVE_LOW>;
status = "okay";
};
temp: lm75b@48 {
compatible = "national,lm75b";
reg = <0x48>;
vs-supply = <&reg_3v3>;
};
eeprom: 24c64@50 {
compatible = "atmel,24c64";
reg = <0x50>;
pagesize = <32>;
vs-supply = <&reg_1v8>;
};
*/
audiocodec: tas2505@18 {
compatible = "ti,tas2505";
reg = <0x18>;
#sound-dai-cells = <0>;
clocks = <&clk_16m>;
clock-names = "mclk";
av-supply = <&reg_1p8>;
dv-supply = <&reg_1p8>;
iov-supply = <&reg_1p8>;
//ldoin-supply = <&reg_5p0_sw>;
status = "okay";
};
};
&eeprom_e39 {
// on the baseboard there is a 2nd eeprom on the same
// bus at the same address, so we have to disable both
status="disabled";
};
&fec {
// fec, aka. enet2, aka. enet1, aka. gbe1 is unused
status="disabled";
};
&lpuart2 {
status="disabled";
};
&usbotg1 {
// usb0 is used as host
dr_mode = "host";
};
&stm32 {
// USB-A
gpio_usb0_en_oc {
gpio-hog;
gpios = <USB0_EN_OC_PIN (GPIO_OPEN_DRAIN | GPIO_ACTIVE_LOW)>;
output-low;
};
// USB-C
gpio_usb2_en_oc {
gpio-hog;
gpios = <USB2_EN_OC_PIN (GPIO_OPEN_DRAIN | GPIO_ACTIVE_LOW)>;
output-low;
};
};
&usbotg1 {
// usb0 is used as host
dr_mode = "host";
};
#endif
/dts-v1/;
#include "maury.dtsi"
#include "mv.dtsi"
// #include "umsh8596md.dtsi" // URT 7" LVDS display
/ {
model = "SECO Maury iMX93 Module on Modular Vision Baseboard";
compatible = "fsl,imx93-11x11-evk", "fsl,imx93";
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment