This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/AM3358: DTS settings for SII9022 HDMI transmitter

Part Number: AM3358

Tool/software: Linux

hi:

    we want to use the sii9022 to convert the lcd to hdmi.can you give us a dts and a document to guide hdmi?

  • The software team have been notified. They will respond here.
  • Hi,

    Which version of software ?

    If you are using processor SDK and latest one can you refer: arch/arm/boot/dts/am437x-gp-evm-hdmi.dts (Similar thing you can do AM335x)

    Also refer :
    1. Documentation/i2c/instantiating-devices
    2. www.kernel.org/.../sii902x.txt

  • yes,I use the SDK PROCESSOR 3.02.

    I add hdim same like am437x-gp-evm-hdmi.dts.but some node i do not how to modifty.

    in am437x-gp-evm-hdmi,the dts is followed.

    1.when use the hdmi ,the sound 0 is must disabled.

    2.am335x dts have no dpi_out,is this in am335x dts file named lcdc?

    #include "am437x-gp-evm.dts"
    #include <dt-bindings/sound/sii9022-audio.h>

    / {
    aliases {
    display0 = &hdmi;
    };

    hdmi: connector {
    compatible = "hdmi-connector";
    label = "hdmi";

    type = "b";

    port {
    hdmi_connector_in: endpoint {
    remote-endpoint = <&sii9022_out>;
    };
    };
    };

    sound@1 {
    compatible = "simple-audio-card";
    simple-audio-card,name = "HDMI";
    simple-audio-card,format = "i2s";
    simple-audio-card,bitclock-master = <&hdmi_dailink_master>;
    simple-audio-card,frame-master = <&hdmi_dailink_master>;
    hdmi_dailink_master: simple-audio-card,cpu {
    sound-dai = <&mcasp1>;
    system-clock-frequency = <24000000>;

    system-clock-direction = "out";
    };

    simple-audio-card,codec {
    sound-dai = <&sii9022>;
    system-clock-frequency = <12000000>;
    };
    };
    };

    &lcd_bl {
    status = "disabled";
    };

    &sound0 {
    status = "disabled";
    };

    &i2c1 {
    sii9022: sii9022@3b {
    #sound-dai-cells = <0>;
    compatible = "sil,sii9022";
    reg = <0x3b>;

    interrupt-parent = <&gpio3>;
    interrupts = <24 IRQ_TYPE_LEVEL_LOW>;

    i2s-fifo-routing = <
    (ENABLE_BIT|CONNECT_SD0)
    0
    0
    0
    >;

    ports {
    #address-cells = <1>;
    #size-cells = <0>;

    port@0 {

    reg = <0>;

    sii9022_in: endpoint {
    remote-endpoint = <&dpi_out>;
    };
    };

    port@1 {
    reg = <1>;

    sii9022_out: endpoint {
    remote-endpoint = <&hdmi_connector_in>;
    };
    };
    };
    };
    };

    &dss {
    port {
    dpi_out: endpoint@0 {
    remote-endpoint = <&sii9022_in>;
    data-lines = <24>;
    };
    };
    };

    /* Override SelLCDorHDMI from am437x-gp-evm.dts to select HDMI */
    &gpio5 {
    p8 {
    output-low;
    };
    };

  • Hi,

    1.when use the hdmi ,the sound 0 is must disabled.
    ans: HDMI can be provided audio using MCASP ? Have you connected it ? IF so you need to find out which instance of MCASP connected. IF MCASP1 is being used, then it is fine. If MCASP0 is being used, then you need to enable sound0.

    2.am335x dts have no dpi_out,is this in am335x dts file named lcdc?
    ans: That seems to be fine to use lcdc since you want to give LCD output to HDMI.
  • sorry,reply so late.

    i test the dts file like attach file,it failed.it show the error like this.

    sii9022 2-003b: [huzz]failed to find video source,nodename=sii9022

    can you help me to check this dts?

    i find that am437x hdmi use the dss,but am335x does not support dss,how can i do?

    am335x-evm.7z

  • can anynoe help me fixed this?

  • Hi,

    Revisit your &lcdc node. You can take a reference from am335x-boneblack.dts, regarding the &lcdc device tree settings.

    Best Regards,
    Yordan
  • hi yordan:
    thanks for your reply.
    it not only the dts file to change.the sii9022 driver in SDK-PROCESSOR it use the omapdss,the git log show me "OMAPDSS: Add SiI9022 driver",what OMAPDSS means?it can work on am335x?
    in encode_sii9022_video.c file ,the code has many omapdss operates.
  • Hi,

    No for am335x you need to use the lcdc, this device does not have a display subsystem. It uses lcd controller.

    Best Regards,
    Yrodan