VAR-SOM-MX8M-MINI-Rev10: Difference between revisions

From Variscite Wiki
(Created page with "<!-- Set release according to "release" parameter in URL and use RELEASE_DUNFELL_V1.1_DART-MX8M-MINI as default --> {{#vardefine:RELEASE_PARAM|{{#urlget:release}}}} <!-- --> {...")
 
No edit summary
Line 2: Line 2:
--> {{#vardefine:RELEASE_PARAM|{{#urlget:release}}}} <!--
--> {{#vardefine:RELEASE_PARAM|{{#urlget:release}}}} <!--
--> {{#lst:Yocto_Platform_Customization|{{#var:RELEASE_PARAM|RELEASE_DUNFELL_V1.1_DART-MX8M-MINI}}}} <!--
--> {{#lst:Yocto_Platform_Customization|{{#var:RELEASE_PARAM|RELEASE_DUNFELL_V1.1_DART-MX8M-MINI}}}} <!--
--> {{PageHeader|SOM Revision 1.0}} {{DocImage|category1=Yocto|category2=Android}}[[Category:Debian]][[Category:DART-MX8M-MINI]][[Category:VAR-SOM-MX8M-NANO]]__toc__
--> {{PageHeader|VAR-SOM-MX8M-MINI/NANO Revision 1.0 Support}} {{DocImage|category1=Yocto|category2=Android}}[[Category:Debian]][[Category:DART-MX8M-MINI]][[Category:VAR-SOM-MX8M-NANO]]__toc__
This tutorial shows how to adjust kernel DTS files for VAR-SOM-MX8M-MINI/VAR-SOM-MX8M-NANO Revision 1.0. This old SOM revision is not officially supported in recent Yocto versions.
This tutorial shows how to adjust kernel DTS files for VAR-SOM-MX8M-MINI/NANO Revision 1.0. This old SOM revision is not officially supported in recent Yocto versions.


= On Symphony-Board 1.4a and above =
= On Symphony-Board 1.4a and above =
{{#ifeq: {{#var:HARDWARE_NAME}} | DART-MX8M-MINI |
{{#ifeq: {{#var:HARDWARE_NAME}} | DART-MX8M-MINI |
Apply the following patch to imx8mm-var-som-symphony.dts:
<syntaxhighlight lang="diff">
<syntaxhighlight lang="diff">
--- arch/arm64/boot/dts/freescale/imx8mm-var-som-symphony.dts  2020-12-30 23:16:31.021169623 +0200
--- arch/arm64/boot/dts/freescale/imx8mm-var-som-symphony.dts  2020-12-30 23:16:31.021169623 +0200
Line 30: Line 31:
</syntaxhighlight>
</syntaxhighlight>
| {{#ifeq: {{#var:HARDWARE_NAME}} | VAR-SOM-MX8M-NANO |
| {{#ifeq: {{#var:HARDWARE_NAME}} | VAR-SOM-MX8M-NANO |
Apply the following patch to imx8mn-var-som-symphony.dts:
<syntaxhighlight lang="diff">
<syntaxhighlight lang="diff">
--- arch/arm64/boot/dts/freescale/imx8mn-var-som-symphony.dts  2020-12-30 23:34:41.160655646 +0200
--- arch/arm64/boot/dts/freescale/imx8mn-var-som-symphony.dts  2020-12-30 23:34:41.160655646 +0200
Line 56: Line 58:
= On Symphony-Board 1.4 and below =
= On Symphony-Board 1.4 and below =
{{#ifeq: {{#var:HARDWARE_NAME}} | DART-MX8M-MINI |
{{#ifeq: {{#var:HARDWARE_NAME}} | DART-MX8M-MINI |
Apply the following patch to imx8mm-var-som-symphony-legacy.dts:
<syntaxhighlight lang="diff">
<syntaxhighlight lang="diff">
--- arch/arm64/boot/dts/freescale/imx8mm-var-som-symphony-legacy.dts    2020-12-30 23:28:09.881966875 +0200
--- arch/arm64/boot/dts/freescale/imx8mm-var-som-symphony-legacy.dts    2020-12-30 23:28:09.881966875 +0200
Line 84: Line 87:
</syntaxhighlight>
</syntaxhighlight>
| {{#ifeq: {{#var:HARDWARE_NAME}} | VAR-SOM-MX8M-NANO |
| {{#ifeq: {{#var:HARDWARE_NAME}} | VAR-SOM-MX8M-NANO |
Apply the following patch to imx8mn-var-som-symphony-legacy.dts:
<syntaxhighlight lang="diff">
<syntaxhighlight lang="diff">
--- arch/arm64/boot/dts/freescale/imx8mm-var-som-symphony-legacy.dts    2020-12-30 23:28:09.881966875 +0200
--- arch/arm64/boot/dts/freescale/imx8mm-var-som-symphony-legacy.dts    2020-12-30 23:28:09.881966875 +0200

Revision as of 13:28, 10 January 2021

VAR-SOM-MX8M-MINI/NANO Revision 1.0 Support

This tutorial shows how to adjust kernel DTS files for VAR-SOM-MX8M-MINI/NANO Revision 1.0. This old SOM revision is not officially supported in recent Yocto versions.

On Symphony-Board 1.4a and above

Apply the following patch to imx8mm-var-som-symphony.dts:

--- arch/arm64/boot/dts/freescale/imx8mm-var-som-symphony.dts   2020-12-30 23:16:31.021169623 +0200
+++ arch/arm64/boot/dts/freescale/imx8mm-var-som-symphony-rev10.dts     2021-01-10 09:16:31.586865372 +0200
@@ -214,7 +214,7 @@
 
        pinctrl_usdhc2_gpio: usdhc2grpgpio {
                fsl,pins = <
-                       MX8MM_IOMUXC_GPIO1_IO10_GPIO1_IO10              0xc1
+                       MX8MM_IOMUXC_SD2_CD_B_GPIO2_IO12                0xc1
                >;
        };
 
@@ -487,7 +487,7 @@
        pinctrl-0 = <&pinctrl_usdhc2>, <&pinctrl_usdhc2_gpio>;
        pinctrl-1 = <&pinctrl_usdhc2_100mhz>, <&pinctrl_usdhc2_gpio>;
        pinctrl-2 = <&pinctrl_usdhc2_200mhz>, <&pinctrl_usdhc2_gpio>;
-       cd-gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
+       cd-gpios = <&gpio2 12 GPIO_ACTIVE_LOW>;
        bus-width = <4>;
        vmmc-supply = <&reg_usdhc2_vmmc>;
        status = "okay";

On Symphony-Board 1.4 and below

Apply the following patch to imx8mm-var-som-symphony-legacy.dts:

--- arch/arm64/boot/dts/freescale/imx8mm-var-som-symphony-legacy.dts    2020-12-30 23:28:09.881966875 +0200
+++ arch/arm64/boot/dts/freescale/imx8mm-var-som-symphony-legacy-rev10.dts      2021-01-10 09:22:13.465180492 +0200
@@ -10,7 +10,21 @@
        model = "Variscite VAR-SOM-MX8M-MINI on Symphony-Board 1.4 and below";
 };
 
-&usbotg1 {
-       /delete-property/ extcon;
+&iomuxc {
+       pinctrl_usdhc2_gpio: usdhc2grpgpio {
+               fsl,pins = <
+                       MX8MM_IOMUXC_SD2_CD_B_GPIO2_IO12        0xc1
+               >;
+       };
+
+       pinctrl_extcon: extcongrp {
+               fsl,pins = <
+                       MX8MM_IOMUXC_GPIO1_IO10_GPIO1_IO10      0x16
+               >;
+       };
+};
+
+&usdhc2 {
+       cd-gpios = <&gpio2 12 GPIO_ACTIVE_LOW>;
 };