summaryrefslogtreecommitdiff
path: root/yocto/overlays
diff options
context:
space:
mode:
Diffstat (limited to 'yocto/overlays')
-rwxr-xr-xyocto/overlays/mikroPhone-esp32_overlay.dts29
-rw-r--r--yocto/overlays/mikroPhone-panel_overlay.dts65
2 files changed, 71 insertions, 23 deletions
diff --git a/yocto/overlays/mikroPhone-esp32_overlay.dts b/yocto/overlays/mikroPhone-esp32_overlay.dts
new file mode 100755
index 0000000..9a6f61a
--- /dev/null
+++ b/yocto/overlays/mikroPhone-esp32_overlay.dts
@@ -0,0 +1,29 @@
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+/*
+ * Copyright 2025 Uros Majstorovic
+ */
+
+// adapted from: https://git.toradex.com/cgit/device-tree-overlays.git/tree/overlays/verdin-imx8mp_spidev_overlay.dts?h=toradex_6.6-2.2.x-imx
+// Verdin imx8mp esp32
+
+/dts-v1/;
+/plugin/;
+
+/ {
+ compatible = "toradex,verdin-imx8mp";
+};
+
+/* Verdin SPI_1 */
+&ecspi1 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ status = "okay";
+
+ esp32@0 {
+ compatible = "mikrophone,esp32";
+ reg = <0>;
+ spi-max-frequency = <20000000>;
+ rts-gpio = <&gpio4 25 0>;
+ cts-gpio = <&gpio4 28 0>;
+ };
+};
diff --git a/yocto/overlays/mikroPhone-panel_overlay.dts b/yocto/overlays/mikroPhone-panel_overlay.dts
index bee2682..aaf494c 100644
--- a/yocto/overlays/mikroPhone-panel_overlay.dts
+++ b/yocto/overlays/mikroPhone-panel_overlay.dts
@@ -19,46 +19,53 @@
};
&{/} {
- backlight_lvds_native: backlight-lvds-native {
+ backlight_lvds: backlight-lvds {
compatible = "pwm-backlight";
pinctrl-names = "default";
brightness-levels = <0 45 63 88 119 158 203 255>;
- default-brightness-level = <4>;
+ default-brightness-level = <0>;
/* Verdin PWM_1 (SODIMM 15) */
- pwms = <&pwm1 0 6666667>;
+ pwms = <&pwm1 0 6666667 0>;
};
- panel-lvds-native {
+ lvds0_panel: panel-lvds-focuslcds {
compatible = "panel-lvds";
- backlight = <&backlight_lvds_native>;
+ backlight = <&backlight_lvds>;
data-mapping = "vesa-24";
- height-mm = <110>;
width-mm = <62>;
+ height-mm = <110>;
panel-timing {
- clock-frequency = <36000000>;
+ clock-frequency = <26250000>;
+ hfront-porch = <8>;
+ hsync-len = <4>;
+ hback-porch = <8>;
hactive = <480>;
- hfront-porch = <23 60 71>;
- hsync-len = <15 40 47>;
- hback-porch = <23 60 71>;
+ vfront-porch = <7>;
+ vsync-len = <7>;
+ vback-porch = <7>;
vactive = <854>;
- vfront-porch = <5 7 10>;
- vsync-len = <6 9 12>;
- vback-porch = <5 7 10>;
hsync-active = <0>;
vsync-active = <0>;
- de-active = <0>;
- pixelclk-active = <1>; /* positive edge */
+ de-active = <1>;
+ // pixelclk-active = <0>;
};
port {
- panel_lvds_native_in: endpoint {
+ panel_lvds_in: endpoint {
remote-endpoint = <&lvds_out>;
};
};
};
+
+ dmux {
+ compatible = "mikrophone,dmux";
+ dmux-gpio = <&gpio1 1 0>;
+ ctp-dev-name = "3-005d";
+ status = "okay";
+ };
};
/* Verdin I2C_1 */
@@ -70,13 +77,11 @@
gt911@5d {
compatible = "goodix,gt911";
reg = <0x5d>;
- pinctrl-names = "default";
- pinctrl-0 = <&gpio1>;
- /* Verdin GPIO_3 (SODIMM 210) */
+ interrupts = <5 IRQ_TYPE_LEVEL_LOW>;
interrupt-parent = <&gpio1>;
- interrupts = <5 IRQ_TYPE_EDGE_FALLING>;
- /* Verdin GPIO_4 (SODIMM 212) */
- reset-gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
+ irq-gpio = <&gpio1 5 0>;
+ reset-gpio = <&gpio1 6 0>;
+ defer-init;
status = "okay";
};
};
@@ -86,11 +91,14 @@
};
&ldb {
+ #address-cells = <1>;
+ #size-cells = <0>;
status = "okay";
lvds-channel@0 {
#address-cells = <1>;
#size-cells = <0>;
+ reg = <0>;
fsl,data-mapping = "spwg";
fsl,data-width = <24>;
status = "okay";
@@ -99,7 +107,7 @@
reg = <1>;
lvds_out: endpoint {
- remote-endpoint = <&panel_lvds_native_in>;
+ remote-endpoint = <&panel_lvds_in>;
};
};
};
@@ -108,3 +116,14 @@
&ldb_phy {
status = "okay";
};
+
+&pwm1 {
+ status = "okay";
+};
+
+/*
+&media_blk_ctrl {
+ assigned-clock-rates = <500000000>, <200000000>,
+ <0>, <0>, <183750000>;
+};
+*/