Jump to content

Recommended Posts

Posted
Armbianmonitor:

Hi guys,

I have checked the Buster image and stuck in following issue:
On Rockpis, tty2 and (the only working) spi2 sharing the same PINs. Due to this reason, SPI 
is not functional .

from dmesg:
 

[    1.598230] rockchip-pinctrl pinctrl: pin gpio1-22 already requested by ff0c0000.serial; cannot claim for ff140000.spi
[    1.598269] rockchip-pinctrl pinctrl: pin-54 (ff140000.spi) status -22
[    1.598287] rockchip-pinctrl pinctrl: could not request pin 54 (gpio1-22) from group spi2-miso  on device rockchip-pinctrl
[    1.598304] rockchip-spi ff140000.spi: Error applying setting, reverse things back


I try to switch back tty2 to tty0 in dts and also in boot.cmd. It is only partial working, so that after the u-boot preloader has finished tty0 is used.
But SPI is still not working. I assume that must something to do with u-boot preloader, which is still using tty2.

Please move tty2 back to tty0. 
 

An other issue is, that the overlays seems not to work. 
 

Failed to load '/boot/dtb/rockchip/overlay/rk3308-fixup.scr'

 

There is only a rockship-fixup.scr avail. I suppose this missing fixup may harm the overlays ?

If someone is looking how to enable 8 Channel I2S i like to share my dts part to enabe this:

 

        tdm_sound {
                compatible = "simple-audio-card";
                simple-audio-card,name = "i2s_8ch_0";
                simple-audio-card,format = "dsp_a";
                simple-audio-card,mclk-fs = < 128 >;
                simple-audio-card,bitclock-master = <&tdm_snd_cpu>;
                simple-audio-card,frame-master = <&tdm_snd_cpu>;

                tdm_snd_cpu: simple-audio-card,cpu {
                        dai-tdm-slot-num = <8>;
                        dai-tdm-slot-width = <16>;
                        sound-dai = <&i2s_8ch_0>;
                };

                tdm_snd_codec: simple-audio-card,codec {
                        sound-dai = <&tdm_codec>;
                };
        };


        tdm_codec: dummy-codec {
                compatible = "rockchip,dummy-codec";
                #sound-dai-cells = <0>;
        };

                  
                  
&i2s_8ch_0 {
   
        assigned-clocks = <&cru SCLK_I2S0_8CH_RX>;
        assigned-clock-parents = <&cru SCLK_I2S0_8CH_TX_MUX>;

        rockchip,clk-trcm = <1>;
        rockchip,bclk-fs = <128>;
        #sound-dai-cells = <0>;
        status = "okay";
}                  

 

For using it, it is required to port the rockship dummy-codec to have more than 2 channels. It can be compiled as kernel module.
When you like to use up to 4 pcm5102a codecs, you must port the rockchip-multichannel-codec. It can access all 4 I2S-Dataline with
shared sync/clock. 

I have check the function of the dummy-codec with an logic analysator and it is working.

 

I'm also try out the bullseye image. It has the same issues like buster, but fails to reboot. Only power cycle works.

Thanks,
Peter

Posted

Your issue report is not a valid bug report per the Armbian bug reporting instructions (https://www.armbian.com/bugs).  With limited resources the Armbian project is only able to spend time on issues where all the requested information has been provided and for only the boards/images/software that are supported.  Your report is invalid for one or more of the following reasons (non-exhaustive list):

 

  • it is for an unsupported board or image (CSC/EOS/WIP/edge)
  • it is for software that is not supported (such as userspace modules installed on top of the core operating system)
  • it has been logged in the wrong forum (for example requests for help that are not actual bug reports)
  • it lacks requested data (armbianmonitor output)
  • it could have been easily solved by a quick search and/or reading documentation

 

Please review what you have submitted and the bug logging instructions (https://www.armbian.com/bugs) and either add the required information or open a new topic in the correct forum (such as Common issues / peer to peer technical support or General chit chat)

  • Heizer changed the title to [Invalid] - Rock PI S SPI not functional
Posted

I have no clue what I have missed...
 

Zitat

it is for an unsupported board or image (CSC/EOS/WIP/edge)

Rock PI-S is supported ( at least ist is shown as supported on the download section)

Zitat

it is for software that is not supported (such as userspace modules installed on top of the core operating system)

There is no software installed and no modification taken. Full out of the box

Zitat

it has been logged in the wrong forum (for example requests for help that are not actual bug reports)

I think this is a bug, because SPI and tty2 are enabled, what is generell not working on this board
 

Zitat

it lacks requested data (armbianmonitor output)

armbianmonitor has been uploaded
 

Zitat

it could have been easily solved by a quick search and/or reading documentation

Seems to be a big problem

Maybe someone enlighten me what I'm missing

Posted
ii  linux-dtb-edge-rockchip64   21.11.0-trunk.21                    arm64        Armbian Linux DTB, version 5.14.9-rockchip64 edge
ii  linux-image-edge-rockchip64 21.11.0-trunk.21                    arm64        Linux kernel, armbian version 5.14.9-rockchip64 edge

Images/kernel packages built from source/nightly are not supported

Posted

OK, thank you.
But the issue is still present for all other images too.
I will recreate a new armbianmonitor with 'Armbian_21.08.1_Rockpi-s_buster_current_5.10.60_minimal'.

 

Edit:
I have reupload armbianmonitor with buster_current image.

Same issue present:
 

[ 2.878134] rockchip-pinctrl pinctrl: pin gpio1-22 already requested by ff0c0000.serial; cannot claim for ff140000.spi

[ 2.878161] rockchip-pinctrl pinctrl: pin-54 (ff140000.spi) status -22

[ 2.878175] rockchip-pinctrl pinctrl: could not request pin 54 (gpio1-22) from group spi2-miso on device rockchip-pinctrl

[ 2.878185] rockchip-spi ff140000.spi: Error applying setting, reverse things back

[ 2.878240] rockchip-spi: probe of ff140000.spi failed with error -22

  • Werner changed the title to Rock PI S SPI not functional

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines