Jump to content

Виктор Хомченко

Members
  • Posts

    5
  • Joined

  • Last visited

Community Answers

  1. Виктор Хомченко's post in Missing MCLK on 35 pin on Rock S0 was marked as the answer   
    I answer myself!
    1. Decompile rk3308-rock-s0.dtb to rk3308-rock-s0.dts. Edit...
    2. Find i2s@ff300000 edit: Remove last 0x4a from pinctrl-0 string:
    pinctrl-0 = <0x3e 0x3f 0x40 0x41 0x42 0x43 0x44 0x45 0x46 0x47 0x48 0x49>; status = "okay"; 3. Comment out the node completely "acodec-sound"
    4. Edit node "sound":
    sound { compatible = "simple-audio-card"; simple-audio-card,format = "i2s"; simple-audio-card,mclk-fs = <0x100>; //256 decimal simple-audio-card,name = "i2s_8ch_0"; simple-audio-card,bitclock-master = <0x7a>; // &i2s@ff300000 simple-audio-card,frame-master = <0x7a>; // &i2s@i2s@ff300000 simple-audio-card,dai-link@1 { cpu { sound-dai = <0x7a>; //i2s@i2s@ff300000 }; codec { sound-dai = <&dummy_tdm_codec>; }; }; }; dummy_tdm_codec: dummy-codec { status = "okay"; compatible = "rockchip,dummy-codec"; #sound-dai-cells = < 0 >; clocks = <&cru SCLK_I2S0_8CH_TX_OUT>; //or <0x02 0x4d> clock-names = "mclk"; pinctrl-names = "default"; pinctrl-0 = <&i2s_8ch_0_mclk>; //or <0x4a> }; 5. Do't forget to compile dummy-codec module! (make, make install, depmod)
    6. Copy rk3308-rock-s0.dtb to /boot/dtb/rockchip/
    7. Reboot
     
    Voila, all four I2S channels should work and MCLK on pin 35 should be!
    dummy-codec.zip
  2. Виктор Хомченко's post in Can't get SPI interface was marked as the answer   
    I answer myself: the overlays are here: https://github.com/radxa/overlays/tree/main You need to take the desired overlay, compile it using dtc and put it in the /boot/dtb/rockchip/overlay folder. Next, turn on the overlay in armbian-config and voila
     
    root@proc01:/home/victor# ls /dev/ | grep spi
    spidev1.0
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines