TQ-Systems TQMa62xx SoM and MBa62xx board
Subsystems (2)
v5 cover TQ-Systems TQMa62xx SoM and MBa62xx board
This adds Device Trees for our AM62x-based SoM TQMa62xx and its reference carrier board MBa62xx.
Not yet included are overlays to enable LVDS display output and MIPI-CSI camera input.
Changes in v5:
- Rebase onto latest ti-k3-dts-next
Changes in v4:
- Rebase onto latest ti-k3-dts-next
- Reorder boot phase tags after other standard DT properties
- Add missing supply regulators in SPI-NOR flash and USB hub
- Set status = "okay" in &cpsw3g, as it is disabled in k3-am62-main.dtsi now
- Add disabled 1400MHz OPP entry (will be enabled by bootloader if supported by PMIC configuration)
- Update copyright years in new files
Changes in v3:
- Rebased onto ti-k3-dt-for-v6.18
- 3 of the 5 patches in v2 have been applied already and are dropped
- Include k3-am62-ti-ipc-firmware.dtsi, drop now redundant configuration
- Change node name for MCU reserved memory to 'memory'
- Use rgmii-id PHY mode
- Drop now redundant ti,rx-internal-delay
- Update simple-audio-card,name to match other TQ SOMs with compatible configuration
- Reference dss_pins in dss node (actual display support will be added in a follow-up patch series)
- Consistently use GPIO_ACTIVE_HIGH define
- Drop unneeded usb0 quirk flags
- Add boot phase tags
Changes in v2:
- Collected acks and reviews
- Rebased onto v6.13-rc1
Matthias Schiffer (2):
dt-bindings: arm: ti: Add compatible for AM625-based TQMa62xx SOM
family and carrier board
arm64: dts: ti: Add TQ-Systems TQMa62xx SoM and MBa62xx carrier board
Device Trees
.../devicetree/bindings/arm/ti/k3.yaml | 7 + arch/arm64/boot/dts/ti/Makefile | 1 + .../boot/dts/ti/k3-am625-tqma62xx-mba62xx.dts | 930 ++++++++++++++++++ arch/arm64/boot/dts/ti/k3-am625-tqma62xx.dtsi | 331 +++++++ 4 files changed, 1269 insertions(+) create mode 100644 arch/arm64/boot/dts/ti/k3-am625-tqma62xx-mba62xx.dts create mode 100644 arch/arm64/boot/dts/ti/k3-am625-tqma62xx.dtsi
Signature · 4 lines
TQ-Systems GmbH | Mühlstraße 2, Gut Delling | 82229 Seefeld, Germany Amtsgericht München, HRB 105018 Geschäftsführer: Detlef Schneider, Rüdiger Stahl, Stefan Schneider https://www.tq-group.com/
PATCH v5 1/2 dt-bindings: arm: ti: Add compatible for AM625-based TQMa62xx SOM family and carrier board
The TQMa62xx is a SoM family with a pluggable connector. The MBa62xx is the matching reference/starterkit carrier board.
--- Documentation/devicetree/bindings/arm/ti/k3.yaml | 7 +++++++ 1 file changed, 7 insertions(+)
Documentation/devicetree/bindings/arm/ti/k3.yaml +7 -0
@@ -95,6 +95,13 @@ properties: - const: toradex,verdin-am62 # Verdin AM62 Module - const: ti,am625 + - description: K3 AM625 SoC on TQ-Systems TQMa62xx SoM + items: + - enum: + - tq,am625-tqma6254-mba62xx # MBa62xx base board + - const: tq,am625-tqma6254 + - const: ti,am625 + - description: K3 AM62P5 SoC Toradex Verdin Modules and Carrier Boards items: - enum:
Signature · 4 lines
TQ-Systems GmbH | Mühlstraße 2, Gut Delling | 82229 Seefeld, Germany Amtsgericht München, HRB 105018 Geschäftsführer: Detlef Schneider, Rüdiger Stahl, Stefan Schneider https://www.tq-group.com/
PATCH v5 2/2 arm64: dts: ti: Add TQ-Systems TQMa62xx SoM and MBa62xx carrier board Device Trees
In reply to Matthias SchifferThe TQMa62xx is a SoM family with a pluggable board connector based on the TI AM62x SoCs. Add DTS(I) for the AM625 (2x Cortex-A53) variant and its combination with our MBa62xx carrier board.
--- arch/arm64/boot/dts/ti/Makefile | 1 + .../boot/dts/ti/k3-am625-tqma62xx-mba62xx.dts | 930 ++++++++++++++++++ arch/arm64/boot/dts/ti/k3-am625-tqma62xx.dtsi | 331 +++++++ 3 files changed, 1262 insertions(+) create mode 100644 arch/arm64/boot/dts/ti/k3-am625-tqma62xx-mba62xx.dts create mode 100644 arch/arm64/boot/dts/ti/k3-am625-tqma62xx.dtsi
arch/arm64/boot/dts/ti/Makefile +1 -0
@@ -14,6 +14,7 @@ dtb-$(CONFIG_ARCH_K3) += k3-am625-beagleplay-csi2-ov5640.dtbo dtb-$(CONFIG_ARCH_K3) += k3-am625-beagleplay-csi2-tevi-ov5640.dtbo dtb-$(CONFIG_ARCH_K3) += k3-am625-phyboard-lyra-rdk.dtb dtb-$(CONFIG_ARCH_K3) += k3-am625-sk.dtb +dtb-$(CONFIG_ARCH_K3) += k3-am625-tqma62xx-mba62xx.dtb dtb-$(CONFIG_ARCH_K3) += k3-am625-verdin-nonwifi-dahlia.dtb dtb-$(CONFIG_ARCH_K3) += k3-am625-verdin-nonwifi-dev.dtb dtb-$(CONFIG_ARCH_K3) += k3-am625-verdin-nonwifi-ivy.dtb
arch/arm64/boot/dts/ti/k3-am625-tqma62xx-mba62xx.dts new file +930 -0
930 lines not on this page · raw message
arch/arm64/boot/dts/ti/k3-am625-tqma62xx.dtsi new file +331 -0
331 lines not on this page · raw message
Signature · 4 lines
TQ-Systems GmbH | Mühlstraße 2, Gut Delling | 82229 Seefeld, Germany Amtsgericht München, HRB 105018 Geschäftsführer: Detlef Schneider, Rüdiger Stahl, Stefan Schneider https://www.tq-group.com/
Nishanth Menon
maintainerRe: [PATCH v5 2/2] arm64: dts: ti: Add TQ-Systems TQMa62xx SoM and MBa62xx carrier board Device Trees
Quoted 5 lines · Matthias Schiffer
The TQMa62xx is a SoM family with a pluggable board connector based on the TI AM62x SoCs. Add DTS(I) for the AM625 (2x Cortex-A53) variant and its combination with our MBa62xx carrier board.
Signed-off-by Matthias Schiffer <[email protected]>
Few clarifications below..
[...]
Quoted 6 lines
arch/arm64/boot/dts/ti/k3-am625-tqma62xx-mba62xx.dts new file +0
-0@@ -0,0 +1,930 @@
[...]
arch/arm64/boot/dts/ti/k3-am625-tqma62xx-mba62xx.dts line 47
Quoted 6 lines
arch/arm64/boot/dts/ti/k3-am625-tqma62xx-mba62xx.dts new file +6
-0+ backlight: backlight { + compatible = "pwm-backlight"; + pinctrl-names = "default"; + pinctrl-0 = <&backlight_pins>; + enable-gpios = <&main_gpio0 38 GPIO_ACTIVE_HIGH>; + status = "disabled";
Document why disabled?
[...]
arch/arm64/boot/dts/ti/k3-am625-tqma62xx-mba62xx.dts line 81
Quoted 3 lines
arch/arm64/boot/dts/ti/k3-am625-tqma62xx-mba62xx.dts new file +3
-0+ + panel: panel { + pinctrl-names = "default";
Missing compatible? thinking again.. Should'nt these be part of some panel dtsi?
Quoted 8 lines
arch/arm64/boot/dts/ti/k3-am625-tqma62xx-mba62xx.dts new file +8
-0+ pinctrl-0 = <&lvds_panel_pins>; + enable-gpios = <&main_gpio0 36 GPIO_ACTIVE_HIGH>; + power-supply = <®_lvds_pwr>; + }; + + fan0: pwm-fan { + compatible = "pwm-fan"; + pinctrl-names = "default";
arch/arm64/boot/dts/ti/k3-am625-tqma62xx-mba62xx.dts line 99
Quoted 10 lines
arch/arm64/boot/dts/ti/k3-am625-tqma62xx-mba62xx.dts new file +10
-0+ pinctrl-0 = <&pwm_fan_pins>; + fan-supply = <®_pwm_fan>; + #cooling-cells = <2>; + /* typical 25 kHz -> 40.000 nsec */ + pwms = <&epwm0 1 40000 PWM_POLARITY_INVERTED>; + cooling-levels = <0 32 64 128 196 240>; + pulses-per-revolution = <2>; + interrupt-parent = <&main_gpio1>; + interrupts = <30 IRQ_TYPE_EDGE_FALLING>; + status = "disabled";
please document why disabled?
[...]
arch/arm64/boot/dts/ti/k3-am625-tqma62xx-mba62xx.dts line 151
Quoted 8 lines
arch/arm64/boot/dts/ti/k3-am625-tqma62xx-mba62xx.dts new file +8
-0+ + reg_pwm_fan: regulator-pwm-fan { + compatible = "regulator-fixed"; + pinctrl-names = "default"; + pinctrl-0 = <®_pwm_fan_pins>; + regulator-name = "FAN_PWR"; + regulator-min-microvolt = <12000000>; + regulator-max-microvolt = <12000000>;
Just checking.. Did you intent a 12v supply for fan?
Quoted 4 lines
arch/arm64/boot/dts/ti/k3-am625-tqma62xx-mba62xx.dts new file +4
-0+ gpio = <&main_gpio0 62 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; +
[...]
arch/arm64/boot/dts/ti/k3-am625-tqma62xx-mba62xx.dts line 626
Quoted 5 lines
arch/arm64/boot/dts/ti/k3-am625-tqma62xx-mba62xx.dts new file +5
-0+ + lvds_panel_pins: lvds-panel-pins { + pinctrl-single,pins = < + /* (N20) GPMC0_BE1n.GPIO0_36 - LVDS0_RESET# */ + AM62X_IOPAD(0x0094, PIN_OUTPUT, 7)
Could you follow the comment convention you have elsewhere? please follow the same in gpio below etc..AM62X_IOPAD(....) /* (N20) ... */
btw, panel node uses it as:
enable-gpios = <&main_gpio0 36 GPIO_ACTIVE_HIGH>;
isn't RESET# meant to be active low?
Quoted 3 lines
arch/arm64/boot/dts/ti/k3-am625-tqma62xx-mba62xx.dts new file +3
-0+ >; + }; +
[...]
Quoted 12 lines
arch/arm64/boot/dts/ti/k3-am625-tqma62xx.dtsi new file +6
-0@@ -0,0 +1,331 @@ +// SPDX-License-Identifier: GPL-2.0-only OR MIT +/* + * Copyright (C) 2021-2022 Texas Instruments Incorporated - https://www.ti.com/ + * Copyright (c) 2023-2025 TQ-Systems GmbH <[email protected]>, D-82229 Seefeld, Germany. + * Author: Matthias Schiffer + */
[...]
Quoted 9 lines
arch/arm64/boot/dts/ti/k3-am625-tqma62xx.dtsi new file +9
-0+ regulators { + reg_buck1: buck1 { + regulator-name = "V_VDD_CORE"; + regulator-min-microvolt = <750000>; + regulator-max-microvolt = <750000>; + regulator-boot-on; + regulator-always-on; + }; +
[...]
arch/arm64/boot/dts/ti/k3-am625-tqma62xx.dtsi line 222
Quoted 9 lines
arch/arm64/boot/dts/ti/k3-am625-tqma62xx.dtsi new file +9
-0+ +&a53_opp_table { + opp-1400000000 { + opp-hz = /bits/ 64 <1400000000>; + opp-supported-hw = <0x01 0x0004>; + opp-suspend; + clock-latency-ns = <6000000>; + /* Enabled by bootloader if supported */ + status = "disabled";
This (bootloader enabling just this node) wont work unless vdd_core voltage is configured to 0.8v as well, no?
Quoted 3 lines
arch/arm64/boot/dts/ti/k3-am625-tqma62xx.dtsi new file +3
-0+ }; +}; +
Signature · 4 lines
Regards, Nishanth Menon Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D https://ti.com/opensource
Re: [PATCH v5 2/2] arm64: dts: ti: Add TQ-Systems TQMa62xx SoM and MBa62xx carrier board Device Trees
Quoted 19 lines · Nishanth Menon
Quoted 5 lines · Matthias Schiffer
The TQMa62xx is a SoM family with a pluggable board connector based on the TI AM62x SoCs. Add DTS(I) for the AM625 (2x Cortex-A53) variant and its combination with our MBa62xx carrier board.
Signed-off-by Matthias Schiffer <[email protected]>Few clarifications below..
[...]
Quoted 6 lines
arch/arm64/boot/dts/ti/k3-am625-tqma62xx-mba62xx.dts new file +0
-0@@ -0,0 +1,930 @@[...]
Quoted 8 lines
arch/arm64/boot/dts/ti/k3-am625-tqma62xx-mba62xx.dts line 47
Quoted 6 lines
arch/arm64/boot/dts/ti/k3-am625-tqma62xx-mba62xx.dts new file +6
-0+ backlight: backlight { + compatible = "pwm-backlight"; + pinctrl-names = "default"; + pinctrl-0 = <&backlight_pins>; + enable-gpios = <&main_gpio0 38 GPIO_ACTIVE_HIGH>; + status = "disabled";Document why disabled?
Will be enabled by DTSO for different panels. This will be added in a follow-up series, so I'll add a comment.
Quoted 8 lines
[...]
arch/arm64/boot/dts/ti/k3-am625-tqma62xx-mba62xx.dts line 81
Quoted 3 lines
arch/arm64/boot/dts/ti/k3-am625-tqma62xx-mba62xx.dts new file +3
-0+ + panel: panel { + pinctrl-names = "default";Missing compatible? thinking again.. Should'nt these be part of some panel dtsi?
We tried to leave as much common configuration for different panels as possible in the base DTS, so the DTBOs aren't bigger than necessary. I think it makes sense to have this in the board DTS, as the signals used by the panels are part of the board design.
Quoted 13 lines
Quoted 13 lines
arch/arm64/boot/dts/ti/k3-am625-tqma62xx-mba62xx.dts new file +12
-0+ pinctrl-0 = <&lvds_panel_pins>; + enable-gpios = <&main_gpio0 36 GPIO_ACTIVE_HIGH>; + power-supply = <®_lvds_pwr>; + }; + + fan0: pwm-fan { + compatible = "pwm-fan"; + pinctrl-names = "default"; + pinctrl-0 = <&pwm_fan_pins>; + fan-supply = <®_pwm_fan>; + #cooling-cells = <2>; + /* typical 25 kHz -> 40.000 nsec */
Quoted 8 lines
arch/arm64/boot/dts/ti/k3-am625-tqma62xx-mba62xx.dts line 99
Quoted 6 lines
arch/arm64/boot/dts/ti/k3-am625-tqma62xx-mba62xx.dts new file +6
-0+ pwms = <&epwm0 1 40000 PWM_POLARITY_INVERTED>; + cooling-levels = <0 32 64 128 196 240>; + pulses-per-revolution = <2>; + interrupt-parent = <&main_gpio1>; + interrupts = <30 IRQ_TYPE_EDGE_FALLING>; + status = "disabled";please document why disabled?
Will add a comment (disabled as our starterkits don't include a fan, and different fans may need different PWM frequencies).
Quoted 12 lines
[...]
arch/arm64/boot/dts/ti/k3-am625-tqma62xx-mba62xx.dts line 151
Quoted 8 lines
arch/arm64/boot/dts/ti/k3-am625-tqma62xx-mba62xx.dts new file +8
-0+ + reg_pwm_fan: regulator-pwm-fan { + compatible = "regulator-fixed"; + pinctrl-names = "default"; + pinctrl-0 = <®_pwm_fan_pins>; + regulator-name = "FAN_PWR"; + regulator-min-microvolt = <12000000>; + regulator-max-microvolt = <12000000>;Just checking.. Did you intent a 12v supply for fan?
This is a standard 4-pin fan connector as is common on x86 mainboards, which includes a 12V supply.
Quoted 8 lines
Quoted 5 lines
arch/arm64/boot/dts/ti/k3-am625-tqma62xx-mba62xx.dts new file +4
-0+ gpio = <&main_gpio0 62 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; +[...]
Quoted 9 lines
arch/arm64/boot/dts/ti/k3-am625-tqma62xx-mba62xx.dts line 626
Quoted 5 lines
arch/arm64/boot/dts/ti/k3-am625-tqma62xx-mba62xx.dts new file +5
-0+ + lvds_panel_pins: lvds-panel-pins { + pinctrl-single,pins = < + /* (N20) GPMC0_BE1n.GPIO0_36 - LVDS0_RESET# */ + AM62X_IOPAD(0x0094, PIN_OUTPUT, 7)Could you follow the comment convention you have elsewhere? please follow the same in gpio below etc..
AM62X_IOPAD(....)/* (N20) ... */
I tried to avoid making the lines overly long an adhered to the regular 100 column limit where reasonable. I agree that the current inconsistent style is not so nice... I see two options here:
- Consistently move the comment to a separate line
- Break long comments including pin name, pin function and board signal function into two lines
Quoted 5 lines
btw, panel node uses it as:
enable-gpios = <&main_gpio036GPIO_ACTIVE_HIGH>;isn't RESET# meant to be active low?
As an "enable" pin enables when active and a "reset" pin disables when active, an active-low reset is the same as an active-high enable.
Quoted 34 lines
Quoted 4 lines
arch/arm64/boot/dts/ti/k3-am625-tqma62xx-mba62xx.dts new file +3
-0+ >; + }; +[...]
Quoted 12 lines
arch/arm64/boot/dts/ti/k3-am625-tqma62xx.dtsi new file +6
-0@@ -0,0 +1,331 @@ +// SPDX-License-Identifier: GPL-2.0-only OR MIT +/* + * Copyright (C) 2021-2022 Texas Instruments Incorporated - https://www.ti.com/ + * Copyright (c) 2023-2025 TQ-Systems GmbH <[email protected]>, D-82229 Seefeld, Germany. + * Author: Matthias Schiffer + */[...]
Quoted 9 lines
arch/arm64/boot/dts/ti/k3-am625-tqma62xx.dtsi new file +9
-0+ regulators { + reg_buck1: buck1 { + regulator-name = "V_VDD_CORE"; + regulator-min-microvolt = <750000>; + regulator-max-microvolt = <750000>; + regulator-boot-on; + regulator-always-on; + }; +[...]
Quoted 12 lines
arch/arm64/boot/dts/ti/k3-am625-tqma62xx.dtsi line 222
Quoted 9 lines
arch/arm64/boot/dts/ti/k3-am625-tqma62xx.dtsi new file +9
-0+ +&a53_opp_table { + opp-1400000000 { + opp-hz = /bits/ 64 <1400000000>; + opp-supported-hw = <0x01 0x0004>; + opp-suspend; + clock-latency-ns = <6000000>; + /* Enabled by bootloader if supported */ + status = "disabled";This (bootloader enabling just this node) wont work unless
vdd_corevoltage is configured to 0.8v as well, no?
Correct, the bootloader patches both PMIC config and OPP table.
Best,
Matthias
Quoted 5 lines
Quoted 4 lines
arch/arm64/boot/dts/ti/k3-am625-tqma62xx.dtsi new file +3
-0+ }; +}; +
Signature · 4 lines
TQ-Systems GmbH | Mühlstraße 2, Gut Delling | 82229 Seefeld, Germany Amtsgericht München, HRB 105018 Geschäftsführer: Detlef Schneider, Rüdiger Stahl, Stefan Schneider https://www.tq-group.com/
Nishanth Menon
maintainerRe: [PATCH v5 2/2] arm64: dts: ti: Add TQ-Systems TQMa62xx SoM and MBa62xx carrier board Device Trees
On 12:21-20260112, Matthias Schiffer wrote:
[...]
Quoted 10 lines
Quoted 9 lines
arch/arm64/boot/dts/ti/k3-am625-tqma62xx-mba62xx.dts line 626
Quoted 5 lines
arch/arm64/boot/dts/ti/k3-am625-tqma62xx-mba62xx.dts new file +5
-0+ + lvds_panel_pins: lvds-panel-pins { + pinctrl-single,pins = < + /* (N20) GPMC0_BE1n.GPIO0_36 - LVDS0_RESET# */ + AM62X_IOPAD(0x0094, PIN_OUTPUT, 7)Could you follow the comment convention you have elsewhere? please follow the same in gpio below etc..
AM62X_IOPAD(....)/* (N20) ... */
Quoted 8 lines
I tried to avoid making the lines overly long an adhered to the regular 100 column limit where reasonable. I agree that the current inconsistent style is not so nice... I see two options here:
- Consistently move the comment to a separate line
- Break long comments including pin name, pin function and board signal function into two lines
I am not holding 100char limit for pinmux definitions, just pick a consistent style through out.
[...]
Quoted 39 lines
Quoted 26 lines
Quoted 12 lines
arch/arm64/boot/dts/ti/k3-am625-tqma62xx.dtsi new file +6
-0@@ -0,0 +1,331 @@ +// SPDX-License-Identifier: GPL-2.0-only OR MIT +/* + * Copyright (C) 2021-2022 Texas Instruments Incorporated - https://www.ti.com/ + * Copyright (c) 2023-2025 TQ-Systems GmbH <[email protected]>, D-82229 Seefeld, Germany. + * Author: Matthias Schiffer + */[...]
Quoted 9 lines
arch/arm64/boot/dts/ti/k3-am625-tqma62xx.dtsi new file +9
-0+ regulators { + reg_buck1: buck1 { + regulator-name = "V_VDD_CORE"; + regulator-min-microvolt = <750000>; + regulator-max-microvolt = <750000>; + regulator-boot-on; + regulator-always-on; + }; +[...]
Quoted 12 lines
arch/arm64/boot/dts/ti/k3-am625-tqma62xx.dtsi line 222
Quoted 9 lines
arch/arm64/boot/dts/ti/k3-am625-tqma62xx.dtsi new file +9
-0+ +&a53_opp_table { + opp-1400000000 { + opp-hz = /bits/ 64 <1400000000>; + opp-supported-hw = <0x01 0x0004>; + opp-suspend; + clock-latency-ns = <6000000>; + /* Enabled by bootloader if supported */ + status = "disabled";This (bootloader enabling just this node) wont work unless
vdd_corevoltage is configured to 0.8v as well, no?
Quoted 1 line
Correct, the bootloader patches both PMIC config and OPP table.
add documentation in regulator node as well, please.
Signature · 4 lines
Regards, Nishanth Menon Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D https://ti.com/opensource