ODROID-M2: dtb/dtbo: Support spdif with pins 29 and 32

- Support spdif using both pins: 29 and 32
- Pins can be set by modifying config.ini
- Only one pin shoud be used for spdif functions
  - If both pins were set as spdif in config.ini, last pin would be ignored

Signed-off-by: phillip.choi <phillip.choi@hardkernel.com>
Change-Id: I3f6e92668189ef040dce12b88f7bef2192bfc9d1
This commit is contained in:
phillip.choi
2024-07-24 08:20:58 +00:00
committed by codewalkerster
parent 47bbf2d977
commit 01c964bdaf
3 changed files with 61 additions and 0 deletions

View File

@@ -14,6 +14,8 @@ dtbo-y += \
pwm7.dtbo \
pwm8.dtbo \
rknpu.dtbo \
spdif_p29.dtbo \
spdif_p32.dtbo \
spi0.dtbo \
ttyfiq0_115200.dtbo \
uart0-with-ctsrts.dtbo \

View File

@@ -0,0 +1,31 @@
/dts-v1/;
/plugin/;
/ {
fragment@0 {
target = <&spdif_tx_sound>;
__overlay__ {
status = "okay";
simple-audio-card,cpu {
sound-dai = <&spdif_tx1>;
};
};
};
fragment@1 {
target = <&spdif_tx_dc>;
__overlay__ {
status = "okay";
};
};
fragment@2 {
target = <&spdif_tx1>;
__overlay__ {
status = "okay";
};
};
};

View File

@@ -0,0 +1,28 @@
/dts-v1/;
/plugin/;
/ {
fragment@0 {
target = <&spdif_tx_sound>;
__overlay__ {
status = "okay";
};
};
fragment@1 {
target = <&spdif_tx_dc>;
__overlay__ {
status = "okay";
};
};
fragment@2 {
target = <&spdif_tx0>;
__overlay__ {
status = "okay";
};
};
};