Call for testing Kernel 6.6 (C4/HC4)

Post Reply
mdrjr
Site Admin
Posts: 12111
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Has thanked: 8 times
Been thanked: 154 times
Contact:

Call for testing Kernel 6.6 (C4/HC4)

Post by mdrjr »

Its a call for people to test and help find out what features are missing

Source code: https://github.com/hardkernel/linux/tree/odroid-6.6.y
These users thanked the author mdrjr for the post:
odroid (Wed Jan 31, 2024 9:10 am)

gkkpch
Posts: 364
Joined: Mon Feb 25, 2013 11:47 pm
languages_spoken: english, dutch, german
ODROIDs: Odroid N2+, Odroid C4, Odroid M1S
Location: Switzerland
Has thanked: 5 times
Been thanked: 21 times
Contact:

Re: Call for testing Kernel 6.6 (C4/HC4)

Post by gkkpch »

Will this kernel get power button and spdif support?

mdrjr
Site Admin
Posts: 12111
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Has thanked: 8 times
Been thanked: 154 times
Contact:

Re: Call for testing Kernel 6.6 (C4/HC4)

Post by mdrjr »

SPDIF as in hdmi audio or?

User avatar
mctom
Posts: 4135
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polski
ODROIDs: XU4, M1, H3+, SP3, N2L, M1S, N2
Location: Gdańsk, Poland
Has thanked: 609 times
Been thanked: 828 times
Contact:

Re: Call for testing Kernel 6.6 (C4/HC4)

Post by mctom »

Punk ain't no religious cult, punk means thinking for yourself!
OpenUPS
PiStackMon

gkkpch
Posts: 364
Joined: Mon Feb 25, 2013 11:47 pm
languages_spoken: english, dutch, german
ODROIDs: Odroid N2+, Odroid C4, Odroid M1S
Location: Switzerland
Has thanked: 5 times
Been thanked: 21 times
Contact:

Re: Call for testing Kernel 6.6 (C4/HC4)

Post by gkkpch »

Correct, J7 pin 2
Ok for the N2 (i can switch between the 2 alternatives using an simple overlay), would be nice on C4 as wel (ofc only for J7)

mdrjr
Site Admin
Posts: 12111
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Has thanked: 8 times
Been thanked: 154 times
Contact:

Re: Call for testing Kernel 6.6 (C4/HC4)

Post by mdrjr »

Pretty sure you can...

There's a overlay for our pcm5122 based interface already.

gkkpch
Posts: 364
Joined: Mon Feb 25, 2013 11:47 pm
languages_spoken: english, dutch, german
ODROIDs: Odroid N2+, Odroid C4, Odroid M1S
Location: Switzerland
Has thanked: 5 times
Been thanked: 21 times
Contact:

Re: Call for testing Kernel 6.6 (C4/HC4)

Post by gkkpch »

it's not the hifi shield I'm interested in, they are not for sale anymore.
Signal on J7 is all we need.

User avatar
mctom
Posts: 4135
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polski
ODROIDs: XU4, M1, H3+, SP3, N2L, M1S, N2
Location: Gdańsk, Poland
Has thanked: 609 times
Been thanked: 828 times
Contact:

Re: Call for testing Kernel 6.6 (C4/HC4)

Post by mctom »

I think you can use Hi-Fi shield overlay to enable SPDIF and see if it's working.
If so, then it's a matter of crafting an overlay that enables only SPDIF and nothing else (possibly merely by removing all the rest from hi-fi shield overlay).
Punk ain't no religious cult, punk means thinking for yourself!
OpenUPS
PiStackMon

gkkpch
Posts: 364
Joined: Mon Feb 25, 2013 11:47 pm
languages_spoken: english, dutch, german
ODROIDs: Odroid N2+, Odroid C4, Odroid M1S
Location: Switzerland
Has thanked: 5 times
Been thanked: 21 times
Contact:

Re: Call for testing Kernel 6.6 (C4/HC4)

Post by gkkpch »

I believe the overlay only configures i2s and the pcm5122 driver, spdif is not being enabled

mdrjr
Site Admin
Posts: 12111
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Has thanked: 8 times
Been thanked: 154 times
Contact:

Re: Call for testing Kernel 6.6 (C4/HC4)

Post by mdrjr »

You do use SPDIF already?
Can you point on what image you use it?

I mean, I can port a overlay for it no problem.

gkkpch
Posts: 364
Joined: Mon Feb 25, 2013 11:47 pm
languages_spoken: english, dutch, german
ODROIDs: Odroid N2+, Odroid C4, Odroid M1S
Location: Switzerland
Has thanked: 5 times
Been thanked: 21 times
Contact:

Re: Call for testing Kernel 6.6 (C4/HC4)

Post by gkkpch »

The overlay is not the problem, that could be created quickly. The issue is that spdif is missing in the device tree.
I added it for the N2, using the armbian 6.1.y kernel. But I do not know the correct pinctrl for the C4, therefore I did not add it.

User avatar
joerg
Posts: 2085
Joined: Tue Apr 01, 2014 2:14 am
languages_spoken: german, english, español
ODROIDs: C1, C1+, C2, N1, N2, C4
Location: Germany
Has thanked: 214 times
Been thanked: 482 times
Contact:

Re: Call for testing Kernel 6.6 (C4/HC4)

Post by joerg »

I have enabled it on 6.1 for my Lineage image as this:

In meson-sm1-odroid.dtsi:

Code: Select all

	spdif_dit: audio-codec-0 {
		#sound-dai-cells = <0>;
		compatible = "linux,spdif-dit";
		status = "okay";
		sound-name-prefix = "DIT";
	};

	sound {
		compatible = "amlogic,axg-sound-card";
		audio-aux-devs = <&tdmout_b>;
		audio-routing = "TDMOUT_B IN 0", "FRDDR_A OUT 1",
				"TDMOUT_B IN 1", "FRDDR_B OUT 1",
				"TDMOUT_B IN 2", "FRDDR_C OUT 1",
				"TDM_B Playback", "TDMOUT_B OUT",
				"SPDIFOUT_A IN 0", "FRDDR_A OUT 3";

		assigned-clocks = <&clkc CLKID_MPLL2>,
				  <&clkc CLKID_MPLL0>,
				  <&clkc CLKID_MPLL1>;
		assigned-clock-parents = <0>, <0>, <0>;
		assigned-clock-rates = <294912000>,
				       <270950400>,
				       <393216000>;
		status = "okay";

		dai-link-0 {
			sound-dai = <&frddr_a>;
		};

		dai-link-1 {
			sound-dai = <&frddr_b>;
		};

		dai-link-2 {
			sound-dai = <&frddr_c>;
		};

		/* 8ch hdmi interface */
		dai-link-3 {
			sound-dai = <&tdmif_b>;
			dai-format = "i2s";
			dai-tdm-slot-tx-mask-0 = <1 1>;
			dai-tdm-slot-tx-mask-1 = <1 1>;
			dai-tdm-slot-tx-mask-2 = <1 1>;
			dai-tdm-slot-tx-mask-3 = <1 1>;
			mclk-fs = <256>;

			codec {
				sound-dai = <&tohdmitx TOHDMITX_I2S_IN_B>;
			};
		};

		/* hdmi glue */
		dai-link-4 {
			sound-dai = <&tohdmitx TOHDMITX_I2S_OUT>;

			codec {
				sound-dai = <&hdmi_tx>;
			};
		};

		/* IEC958 Out */
		dai-link-5 {
	    	sound-dai = <&spdifout_a>;

	    	codec-0 {
				sound-dai = <&spdif_dit>;
	    	};
		};
	};
and:

Code: Select all

&spdifout_a {
    pinctrl-0 = <&spdif_ao_out_pins>;
    pinctrl-names = "default";
    status = "okay";
};
spdif_ao_out_pins points to X7 pin 2.
I have not checked which of this entries already exist on kernel 6.6.

gkkpch
Posts: 364
Joined: Mon Feb 25, 2013 11:47 pm
languages_spoken: english, dutch, german
ODROIDs: Odroid N2+, Odroid C4, Odroid M1S
Location: Switzerland
Has thanked: 5 times
Been thanked: 21 times
Contact:

Re: Call for testing Kernel 6.6 (C4/HC4)

Post by gkkpch »

@joerg, "spdif_ao_out_pins" was the missing link, thanks!

beopbo
Posts: 4
Joined: Sun Oct 02, 2016 1:29 am
languages_spoken: english, german, french
ODROIDs: XU3 lite, XU4, C1, C4, HC4, N2+
Has thanked: 0
Been thanked: 0
Contact:

Re: Call for testing Kernel 6.6 (C4/HC4) C4 no spidev ??

Post by beopbo »

Hallo, build hardkernel branch 6.6.y from git and want to use spidev...
Problems:
1.) reboot just don't work, blue led stopps blinking, network led (RJ45) goes off for one second, but there is no reboot (have so remove power to get restartet)
2.) I activate spi0.dtbo, but only spi_meson_spicc is loaded, not the spidev Module, but in /proc/device-tree/soc/bus\@ffd00000/spi\@13000/ there is a folder
spidev@0 with subentry status which show "okay" (by using cat). If I do modprobe spidev the module loads, but there is no /dev/spidev* device node at all ??
If I do dmesg | grep spi nothing is shown, but cat /proc/interrupts show GiCv2 113 level for ffd13000.spi
In your Documentation to start spidev for odroid C4 the path was /soc/cbus/.... (that why I printed it bold !)

Sorry but actually I just need to start a spidev - test, so not desktop at all is started ....

mdrjr
Site Admin
Posts: 12111
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Has thanked: 8 times
Been thanked: 154 times
Contact:

Re: Call for testing Kernel 6.6 (C4/HC4)

Post by mdrjr »

I will take a look on the spidev support

mdrjr
Site Admin
Posts: 12111
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Has thanked: 8 times
Been thanked: 154 times
Contact:

Re: Call for testing Kernel 6.6 (C4/HC4) C4 no spidev ??

Post by mdrjr »

beopbo wrote:
Tue Feb 13, 2024 11:16 pm
Hallo, build hardkernel branch 6.6.y from git and want to use spidev...
Problems:
1.) reboot just don't work, blue led stopps blinking, network led (RJ45) goes off for one second, but there is no reboot (have so remove power to get restartet)
2.) I activate spi0.dtbo, but only spi_meson_spicc is loaded, not the spidev Module, but in /proc/device-tree/soc/bus\@ffd00000/spi\@13000/ there is a folder
spidev@0 with subentry status which show "okay" (by using cat). If I do modprobe spidev the module loads, but there is no /dev/spidev* device node at all ??
If I do dmesg | grep spi nothing is shown, but cat /proc/interrupts show GiCv2 113 level for ffd13000.spi
In your Documentation to start spidev for odroid C4 the path was /soc/cbus/.... (that why I printed it bold !)

Sorry but actually I just need to start a spidev - test, so not desktop at all is started ....
Pushed commit that fixes this issue.

beopbo
Posts: 4
Joined: Sun Oct 02, 2016 1:29 am
languages_spoken: english, german, french
ODROIDs: XU3 lite, XU4, C1, C4, HC4, N2+
Has thanked: 0
Been thanked: 0
Contact:

Re: Call for testing Kernel 6.6 (C4/HC4) C4 no spidev ??

Post by beopbo »

mdrjr wrote:
Fri Feb 16, 2024 12:12 am

Pushed commit that fixes this issue.
Yes, thank's now /dev/spidev0.0 is a device available ....

Post Reply

Return to “Linux Kernel 6.6 Development Party”

Who is online

Users browsing this forum: No registered users and 2 guests