arm64: dts: imx93-var-som: Add Variscite VAR-SOM-MX93
Subsystems (2)
PATCH 1/1 arm64: dts: imx93-var-som: Add Variscite VAR-SOM-MX93
Add DTSI for Variscite VAR-SOM-MX93 System on Module and DTS for Variscite VAR-SOM-MX93 on Symphony evaluation board.
This version comes with:
- NXP i.MX 93 Dual, 1.7GHz, Cortex-A55 + Cortex-M33
- 2 GB of RAM
- 16GB eMMC
- 802.11ax/ac/a/b/g/n WiFi with 5.3 Bluetooth
- CAN bus
- Audio codec
--- arch/arm64/boot/dts/freescale/Makefile | 1 + .../dts/freescale/imx93-var-som-symphony.dts | 307 +++++++++++++++++ .../boot/dts/freescale/imx93-var-som.dtsi | 312 ++++++++++++++++++ 3 files changed, 620 insertions(+) create mode 100644 arch/arm64/boot/dts/freescale/imx93-var-som-symphony.dts create mode 100644 arch/arm64/boot/dts/freescale/imx93-var-som.dtsi
arch/arm64/boot/dts/freescale/Makefile +1 -0
@@ -203,6 +203,7 @@ dtb-$(CONFIG_ARCH_MXC) += imx8ulp-evk.dtb dtb-$(CONFIG_ARCH_MXC) += imx93-11x11-evk.dtb dtb-$(CONFIG_ARCH_MXC) += imx93-tqma9352-mba93xxca.dtb dtb-$(CONFIG_ARCH_MXC) += imx93-tqma9352-mba93xxla.dtb +dtb-$(CONFIG_ARCH_MXC) += imx93-var-som-symphony.dtb imx8mm-venice-gw72xx-0x-imx219-dtbs := imx8mm-venice-gw72xx-0x.dtb imx8mm-venice-gw72xx-0x-imx219.dtbo imx8mm-venice-gw72xx-0x-rpidsi-dtbs := imx8mm-venice-gw72xx-0x.dtb imx8mm-venice-gw72xx-0x-rpidsi.dtbo
arch/arm64/boot/dts/freescale/imx93-var-som-symphony.dts new file +307 -0
307 lines not on this page · raw message
arch/arm64/boot/dts/freescale/imx93-var-som.dtsi new file +312 -0
312 lines not on this page · raw message
Signature · 1 line
2.41.0
Quoted 41 lines · Mathieu Othacehe
Add DTSI for Variscite VAR-SOM-MX93 System on Module and DTS for Variscite VAR-SOM-MX93 on Symphony evaluation board.
This version comes with:
- NXP i.MX 93 Dual, 1.7GHz, Cortex-A55 + Cortex-M33
- 2 GB of RAM
- 16GB eMMC
- 802.11ax/ac/a/b/g/n WiFi with 5.3 Bluetooth
- CAN bus
- Audio codecSigned-off-by Mathieu Othacehe <[email protected]>--- arch/arm64/boot/dts/freescale/Makefile | 1 + .../dts/freescale/imx93-var-som-symphony.dts | 307 +++++++++++++++++ .../boot/dts/freescale/imx93-var-som.dtsi | 312 ++++++++++++++++++ 3 files changed, 620 insertions(+) create mode 100644 arch/arm64/boot/dts/freescale/imx93-var-som-symphony.dts create mode 100644 arch/arm64/boot/dts/freescale/imx93-var-som.dtsiarch/arm64/boot/dts/freescale/Makefile +1
-0@@ -203,6 +203,7 @@ dtb-$(CONFIG_ARCH_MXC) += imx8ulp-evk.dtb dtb-$(CONFIG_ARCH_MXC) += imx93-11x11-evk.dtb dtb-$(CONFIG_ARCH_MXC) += imx93-tqma9352-mba93xxca.dtb dtb-$(CONFIG_ARCH_MXC) += imx93-tqma9352-mba93xxla.dtb +dtb-$(CONFIG_ARCH_MXC) += imx93-var-som-symphony.dtb imx8mm-venice-gw72xx-0x-imx219-dtbs := imx8mm-venice-gw72xx-0x.dtb imx8mm-venice-gw72xx-0x-imx219.dtbo imx8mm-venice-gw72xx-0x-rpidsi-dtbs := imx8mm-venice-gw72xx-0x.dtb imx8mm-venice-gw72xx-0x-rpidsi.dtboarch/arm64/boot/dts/freescale/imx93-var-som-symphony.dts new file +3
-0@@ -0,0 +1,307 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright 2021 NXP
arch/arm64/boot/dts/freescale/imx93-var-som-symphony.dts line 13
Quoted 10 lines
arch/arm64/boot/dts/freescale/imx93-var-som-symphony.dts new file +10
-0+ * Copyright 2023 Variscite Ltd. + */ + +/dts-v1/; + +#include "imx93-var-som.dtsi" + +/{ + model = "Variscite VAR-SOM-MX93 on Symphony evaluation board"; + compatible = "variscite,var-som-imx93-symphony", "variscite,var-som-mx93", "fsl,imx93";
Please run scripts/checkpatch.pl and fix reported warnings. Some warnings can be ignored, but the code here looks like it needs a fix. Feel free to get in touch if the warning is not clear.
Also, wrap it at 80.
Quoted 38 lines
arch/arm64/boot/dts/freescale/imx93-var-som-symphony.dts new file +38
-0+ + aliases { + ethernet1 = &fec; + }; + + chosen { + stdout-path = &lpuart1; + }; + + /* + * Needed only for Symphony <= v1.5 + */ + reg_fec_phy: regulator-fec-phy { + compatible = "regulator-fixed"; + regulator-name = "fec-phy"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-enable-ramp-delay = <20000>; + gpio = <&pca9534 7 GPIO_ACTIVE_HIGH>; + enable-active-high; + regulator-always-on; + }; + + reg_usdhc2_vmmc: regulator-usdhc2 { + compatible = "regulator-fixed"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_reg_usdhc2_vmmc>; + regulator-name = "VSD_3V3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + gpio = <&gpio2 18 GPIO_ACTIVE_HIGH>; + off-on-delay-us = <20000>; + enable-active-high; + }; + + reg_vref_1v8: regulator-adc-vref { + compatible = "regulator-fixed"; + regulator-name = "vref_1v8";
arch/arm64/boot/dts/freescale/imx93-var-som-symphony.dts line 61
Quoted 10 lines
arch/arm64/boot/dts/freescale/imx93-var-som-symphony.dts new file +10
-0+ regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + ethosu_mem: ethosu_region@88000000 {
No underscores in node names.
Please do not upstream downstream DTS, but fix it to match proper Linux coding style.
...
arch/arm64/boot/dts/freescale/imx93-var-som-symphony.dts line 178
Quoted 8 lines
arch/arm64/boot/dts/freescale/imx93-var-som-symphony.dts new file +8
-0+ pinctrl_lpi2c1: lpi2c1grp { + fsl,pins = < + MX93_PAD_I2C1_SCL__LPI2C1_SCL 0x40000b9e + MX93_PAD_I2C1_SDA__LPI2C1_SDA 0x40000b9e + >; + }; + + pinctrl_lpi2c1_gpio: lpi2c1grp-gpio {
It does not look like you tested the DTS against bindings. Please run make dtbs_check W=1 (see Documentation/devicetree/bindings/writing-schema.rst or
https://www.linaro.org/blog/tips-and-tricks-for-validating-devicetree-sources-with-the-devicetree-schema/
for instructions).
...
Quoted 6 lines
arch/arm64/boot/dts/freescale/imx93-var-som-symphony.dts new file +6
-0+ +&lpi2c1 { + #address-cells = <1>; + #size-cells = <0>; + clock-frequency = <400000>; + pinctrl-names = "default", "sleep", "gpio";
arch/arm64/boot/dts/freescale/imx93-var-som-symphony.dts line 251
Quoted 10 lines
arch/arm64/boot/dts/freescale/imx93-var-som-symphony.dts new file +10
-0+ pinctrl-0 = <&pinctrl_lpi2c1>; + pinctrl-1 = <&pinctrl_lpi2c1_gpio>; + pinctrl-2 = <&pinctrl_lpi2c1_gpio>; + scl-gpios = <&gpio1 0 GPIO_ACTIVE_HIGH>; + sda-gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>; + status = "okay"; + + /* DS1337 RTC module */ + rtc@68 { + status = "okay";
Drop. It is never the first property, BTW.
Quoted 9 lines
arch/arm64/boot/dts/freescale/imx93-var-som-symphony.dts new file +9
-0+ compatible = "dallas,ds1337"; + reg = <0x68>; + }; +}; + +&lpi2c5 { + #address-cells = <1>; + #size-cells = <0>; + clock-frequency = <400000>;
arch/arm64/boot/dts/freescale/imx93-var-som-symphony.dts line 270
Quoted 10 lines
arch/arm64/boot/dts/freescale/imx93-var-som-symphony.dts new file +10
-0+ pinctrl-names = "default", "sleep", "gpio"; + pinctrl-0 = <&pinctrl_lpi2c5>; + pinctrl-1 = <&pinctrl_lpi2c5_gpio>; + pinctrl-2 = <&pinctrl_lpi2c5_gpio>; + scl-gpios = <&gpio2 23 GPIO_ACTIVE_HIGH>; + sda-gpios = <&gpio2 22 GPIO_ACTIVE_HIGH>; + status = "okay"; + + pca9534: gpio@20 { + status = "okay";
Drop.
Quoted 11 lines
arch/arm64/boot/dts/freescale/imx93-var-som-symphony.dts new file +11
-0+ compatible = "nxp,pca9534"; + reg = <0x20>; + gpio-controller; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_pca9534>; + interrupt-parent = <&gpio3>; + interrupts = <26 IRQ_TYPE_EDGE_FALLING>; + #gpio-cells = <2>; + wakeup-source; + }; +};
...
Quoted 10 lines
arch/arm64/boot/dts/freescale/imx93-var-som.dtsi new file +4
-0@@ -0,0 +1,312 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright 2022 NXP + * Copyright 2023 Variscite Ltd.
arch/arm64/boot/dts/freescale/imx93-var-som.dtsi line 14
Quoted 10 lines
arch/arm64/boot/dts/freescale/imx93-var-som.dtsi new file +10
-0+ */ + +/dts-v1/; + +#include <dt-bindings/usb/pd.h> +#include "imx93.dtsi" + +/{ + model = "Variscite VAR-SOM-MX93 module"; + compatible = "variscite,var-som-imx93", "fsl,imx93";
Please run scripts/checkpatch.pl and fix reported warnings. Some warnings can be ignored, but the code here looks like it needs a fix. Feel free to get in touch if the warning is not clear.
arch/arm64/boot/dts/freescale/imx93-var-som.dtsi line 16
Quoted 2 lines
arch/arm64/boot/dts/freescale/imx93-var-som.dtsi new file +2
-0+ + iw612_pwrseq: iw612_pwrseq {
Node names should be generic. See also an explanation and list of examples (not exhaustive) in DT specification:
https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation
arch/arm64/boot/dts/freescale/imx93-var-som.dtsi line 22
Quoted 6 lines
arch/arm64/boot/dts/freescale/imx93-var-som.dtsi new file +6
-0+ compatible = "mmc-pwrseq-simple"; + post-power-on-delay-ms = <100>; + power-off-delay-us = <10000>; + reset-gpios = <&gpio4 14 GPIO_ACTIVE_LOW>, /* WIFI_RESET */ + <&gpio3 7 GPIO_ACTIVE_LOW>; /* WIFI_PWR_EN */ + status = "okay";
Drop
....
arch/arm64/boot/dts/freescale/imx93-var-som.dtsi line 94
Quoted 8 lines
arch/arm64/boot/dts/freescale/imx93-var-som.dtsi new file +8
-0+ pinctrl_lpi2c3: lpi2c3grp { + fsl,pins = < + MX93_PAD_GPIO_IO28__LPI2C3_SDA 0x40000b9e + MX93_PAD_GPIO_IO29__LPI2C3_SCL 0x40000b9e + >; + }; + + pinctrl_lpi2c3_gpio: lpi2c3grp-gpio {
It does not look like you tested the DTS against bindings. Please run make dtbs_check W=1 (see Documentation/devicetree/bindings/writing-schema.rst or
https://www.linaro.org/blog/tips-and-tricks-for-validating-devicetree-sources-with-the-devicetree-schema/
for instructions).
...
Quoted 5 lines
arch/arm64/boot/dts/freescale/imx93-var-som.dtsi new file +5
-0+ +&lpi2c3 { + #address-cells = <1>; + #size-cells = <0>; + clock-frequency = <400000>;
arch/arm64/boot/dts/freescale/imx93-var-som.dtsi line 214
Quoted 10 lines
arch/arm64/boot/dts/freescale/imx93-var-som.dtsi new file +10
-0+ pinctrl-names = "default", "sleep", "gpio"; + pinctrl-0 = <&pinctrl_lpi2c3>; + pinctrl-1 = <&pinctrl_lpi2c3_gpio>; + pinctrl-2 = <&pinctrl_lpi2c3_gpio>; + scl-gpios = <&gpio2 29 GPIO_ACTIVE_HIGH>; + sda-gpios = <&gpio2 28 GPIO_ACTIVE_HIGH>; + status = "okay"; + + pmic@25 { + compatible = "nxp,pca9451a";
Please run scripts/checkpatch.pl and fix reported warnings. Some warnings can be ignored, but the code here looks like it needs a fix. Feel free to get in touch if the warning is not clear.
I don't see this compatible documented and cover letter or changelog does not mention neither dependencies nor other series bringing it.
arch/arm64/boot/dts/freescale/imx93-var-som.dtsi line 218
Quoted 4 lines
arch/arm64/boot/dts/freescale/imx93-var-som.dtsi new file +4
-0+ reg = <0x25>; + + regulators { + buck1: BUCK1 {
Lowercase
arch/arm64/boot/dts/freescale/imx93-var-som.dtsi line 227
Quoted 9 lines
arch/arm64/boot/dts/freescale/imx93-var-som.dtsi new file +9
-0+ regulator-name = "BUCK1"; + regulator-min-microvolt = <650000>; + regulator-max-microvolt = <2237500>; + regulator-boot-on; + regulator-always-on; + regulator-ramp-delay = <3125>; + }; + + buck2: BUCK2 {
Lowercase, further as well
...
Best regards,
Krzysztof