Skip to contentSkip to conversation

dt-bindings: arm: ti: Add bindings for PHYTEC AM67x based hardware

PATCH Superseded Nathan Morrisson 2 participants 3 messages Jun 29

Subsystems (2)

v3 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/2 dt-bindings: arm: ti: Add bindings for PHYTEC AM67x based hardware

Add device tree bindings for the AM67x based phyCORE-AM67x SoM and phyBOARD-Rigel.

---
No changes in v3

 Documentation/devicetree/bindings/arm/ti/k3.yaml | 7 +++++++
 1 file changed, 7 insertions(+)
Documentation/devicetree/bindings/arm/ti/k3.yaml +7 -0
index 69b5441cbf1a..ae47190d1f82 100644
@@ -222,6 +222,13 @@ properties:
               - ti,j722s-evm
           - const: ti,j722s
 
+      - description: K3 AM67 SoC PHYTEC phyBOARD-Rigel
+        items:
+          - enum:
+              - phytec,am6754-phyboard-rigel
+          - const: phytec,am67-phycore-som
+          - const: ti,j722s
+
       - description: K3 J742S2 SoC
         items:
           - enum:
Signature · 1 line
2.43.0
#1 lore raw

PATCH v3 2/2 arm64: dts: ti: Add support for the phyCORE-AM67x

Add support for the PHYTEC phyCORE-AM67x SoM [1] and the corresponding phyBOARD-Rigel carrier board [2]. The phyCORE-AM67x SoM uses the TI AM67x SoC and can come with different sizes and models of DDR, eMMC, and SPI NOR Flash.

Supported features:
* Audio playback and recording
* CAN
* Debug UART
* eMMC
* Ethernet
* GPIO buttons
* Heartbeat LED
* I2C Current sensor
* I2C EEPROM
* I2C Light sensor
* I2C RTC
* Micro SD card
* SPI NOR flash
* USB

[1] https://www.phytec.com/product/phycore-am67x/
[2] https://www.phytec.com/product/phyboard-am67x-development-kit/

---
Changes in v3:
* Moved j722s.dtsi include to the carrier board dts, which is consistent with how the SoC dtsi is included for other SoM + carrier board combinations.
* Remove pcie for now. We seem to have an issue with the external refclk so I will drop the interface.

 arch/arm64/boot/dts/ti/Makefile               |   1 +
 .../boot/dts/ti/k3-am67-phycore-som.dtsi      | 324 +++++++++++++
 .../boot/dts/ti/k3-am6754-phyboard-rigel.dts  | 431 ++++++++++++++++++
 3 files changed, 756 insertions(+)
 create mode 100644 arch/arm64/boot/dts/ti/k3-am67-phycore-som.dtsi
 create mode 100644 arch/arm64/boot/dts/ti/k3-am6754-phyboard-rigel.dts
arch/arm64/boot/dts/ti/Makefile +1 -0
index 371f9a043fe5..623ee2369132 100644
@@ -184,6 +184,7 @@ dtb-$(CONFIG_ARCH_K3) += k3-j721s2-evm-pcie1-ep.dtbo
 dtb-$(CONFIG_ARCH_K3) += k3-j721s2-evm-usb0-type-a.dtbo
 
 # Boards with J722s SoC
+dtb-$(CONFIG_ARCH_K3) += k3-am6754-phyboard-rigel.dtb
 dtb-$(CONFIG_ARCH_K3) += k3-am67a-beagley-ai.dtb
 dtb-$(CONFIG_ARCH_K3) += k3-j722s-evm.dtb
 dtb-$(CONFIG_ARCH_K3) += k3-j722s-evm-csi2-quad-rpi-cam-imx219.dtbo
arch/arm64/boot/dts/ti/k3-am67-phycore-som.dtsi new file +324 -0

324 lines not on this page · raw message

arch/arm64/boot/dts/ti/k3-am6754-phyboard-rigel.dts new file +431 -0

431 lines not on this page · raw message

Signature · 1 line
2.43.0
#2 lore raw

Re: [PATCH v3 2/2] arm64: dts: ti: Add support for the phyCORE-AM67x

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider: - [Medium] The ASoC `simple-audio-card,routing` array contains reversed routes for the physical speakers…

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] The ASoC simple-audio-card,routing array contains reversed routes for the physical speakers, mapping the codec outputs as sinks and the speakers as sources. --

commit 9dfefe3748ffabcd91be3c99b1fecce0ae98ac5f
Author: Nathan Morrisson <[email protected]>

arm64: dts: ti: Add support for the phyCORE-AM67x

This commit adds support for the PHYTEC phyCORE-AM67x SoM and the corresponding phyBOARD-Rigel carrier board. It enables various features including audio playback, Ethernet, CAN, and eMMC.

Quoted 5 lines
arch/arm64/boot/dts/ti/k3-am6754-phyboard-rigel.dts new file +0 -0
new file mode 100644
index 0000000000000..26dcda26061f9

[ ... ]

Quoted 7 lines
arch/arm64/boot/dts/ti/k3-am6754-phyboard-rigel.dts new file +7 -0
+	sound {
+		compatible = "simple-audio-card";
+		simple-audio-card,widgets =
+			"Microphone", "Mic Jack",
+			"Headphone", "Headphone Jack",
+			"Line", "Stereo Jack",
+			"Speaker", "L SPKR",

arch/arm64/boot/dts/ti/k3-am6754-phyboard-rigel.dts line 135

Quoted 10 lines
arch/arm64/boot/dts/ti/k3-am6754-phyboard-rigel.dts new file +10 -0
+			"Speaker", "R SPKR";
+		simple-audio-card,routing =
+			"MIC1RP", "Mic Jack",
+			"Mic Jack", "MICBIAS",
+			"Headphone Jack", "HPL",
+			"Headphone Jack", "HPR",
+			"MIC1LM", "Stereo Jack",
+			"MIC1LP", "Stereo Jack",
+			"SPL", "L SPKR",
+			"SPR", "R SPKR";

[Severity: Medium]
Are the routing endpoints for the physical speakers reversed here?

The simple-audio-card,routing property uses the syntax "sink", "source". By defining "SPL", "L SPKR", the codec output pin SPL is treated as a sink and the physical speaker L SPKR is treated as a source.

Because the speaker widget is an endpoint with no outputs and the codec output pin has no inputs, DAPM cannot build a valid audio path. This will cause the speaker audio path to fail to initialize.

Should these be defined as "L SPKR", "SPL" and "R SPKR", "SPR" instead?

[ ... ]

Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=2