SAMMIX R95S DTB modification

Hi everyone,

I have 2 sammix R95S (S905X 1GB /16GB) box running on Android 7 and 2GB of ram. The CoreELEC version is 9.2.7. I am using the DTB gxl_p212_1g. In order to support audio from toshlink I need to modify the dtb gxl_p212_1g to

audio_pin1 {
            amlogic,setmask = <0x06 0x10000000>;
            amlogic,clrmask = <0x06 0x8000000>;
            amlogic,pins = "GPIOAO_9";
            linux,phandle = <0x5d>;
            phandle = <0x5d>;

The change is amlogic,pins = “GPIOH_4”; to amlogic,pins = “GPIOAO_9”

How can contribute this change for the others to use?


You can create a like this example:

I wanted to modify the dtb (gxl_p212_1g.dtb) from CoreELEC nightly builds 9.2 and it seems that the audio_pin1 is not part of the dtb anymore. How can modify the gxl_p212_1g.dtb to support toslink with the GPIOAO_9 value?

Hi @Portisch, I am still trying to find where the spdif/toslink pins are defined in the dtb from 9.2 nightly build or 19.1? Any more hints :smile: thanks

So I think maybe this can work:

	audio_spdif_pins:audio_spdif {
		mux {
			groups = "spdif_out_ao";
			function = "spdif_out_ao";


So maybe:

fdtput -t s gxl_p212_1g.dtb /pinctrl@4b0/audio_spdif_out_pins/mux groups "spdif_out_ao"
fdtput -t s gxl_p212_1g.dtb /pinctrl@4b0/audio_spdif_out_pins/mux function "spdif_out_ao"

About | FAQ | Terms of Service | Privacy Policy | Legal Notice