Jump to content

Dario Murgia

Members
  • Posts

    13
  • Joined

  • Last visited

Reputation Activity

  1. Like
    Dario Murgia got a reaction from Willy Moto in CSC Armbian for RK3318/RK3328 TV box boards   
    thanks for having a look. 
     
    anyhow, I have SPDIF working now (on kernel 5.15.90)!
     
    digging a bit into the dts generated from your rk3318-box.dtb and the rk3328 datasheet, I realized there are three pins capable of being set as SPDIF-out
     
    spdif-0 { spdifm0-tx { rockchip,pins = <0x00 0x1b 0x01 0x66>; phandle = <0x13>; }; }; spdif-1 { spdifm1-tx { rockchip,pins = <0x02 0x11 0x02 0x66>; phandle = <0xd8>; }; }; spdif-2 { spdifm2-tx { rockchip,pins = <0x00 0x02 0x02 0x66>; phandle = <0xd9>; }; };  
    in your DTB the first one was selected, in the pinctrl-0 declaration
     
    spdif@ff030000 { compatible = "rockchip,rk3328-spdif"; reg = <0x00 0xff030000 0x00 0x1000>; interrupts = <0x00 0x1d 0x04>; clocks = <0x02 0x2e 0x02 0x13a>; clock-names = "mclk\0hclk"; dmas = <0x12 0x0a>; dma-names = "tx"; pinctrl-names = "default"; pinctrl-0 = <0x13>; #sound-dai-cells = <0x00>; status = "okay"; phandle = <0x10>; };  
    so I tried to replace 0x13 (corresponding to spdifm0) with 0xd8 (corresponding to spdifm1), rebuilt the DTB and then I had SPDIF up and running on my x88pro-10!
     
     
  2. Like
    Dario Murgia got a reaction from MattWestB in CSC Armbian for RK3318/RK3328 TV box boards   
    I finally got pictures of the PCB from my cousin
     

  3. Like
    Dario Murgia got a reaction from jock in CSC Armbian for RK3318/RK3328 TV box boards   
    thanks for having a look. 
     
    anyhow, I have SPDIF working now (on kernel 5.15.90)!
     
    digging a bit into the dts generated from your rk3318-box.dtb and the rk3328 datasheet, I realized there are three pins capable of being set as SPDIF-out
     
    spdif-0 { spdifm0-tx { rockchip,pins = <0x00 0x1b 0x01 0x66>; phandle = <0x13>; }; }; spdif-1 { spdifm1-tx { rockchip,pins = <0x02 0x11 0x02 0x66>; phandle = <0xd8>; }; }; spdif-2 { spdifm2-tx { rockchip,pins = <0x00 0x02 0x02 0x66>; phandle = <0xd9>; }; };  
    in your DTB the first one was selected, in the pinctrl-0 declaration
     
    spdif@ff030000 { compatible = "rockchip,rk3328-spdif"; reg = <0x00 0xff030000 0x00 0x1000>; interrupts = <0x00 0x1d 0x04>; clocks = <0x02 0x2e 0x02 0x13a>; clock-names = "mclk\0hclk"; dmas = <0x12 0x0a>; dma-names = "tx"; pinctrl-names = "default"; pinctrl-0 = <0x13>; #sound-dai-cells = <0x00>; status = "okay"; phandle = <0x10>; };  
    so I tried to replace 0x13 (corresponding to spdifm0) with 0xd8 (corresponding to spdifm1), rebuilt the DTB and then I had SPDIF up and running on my x88pro-10!
     
     
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines