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/AM5728: EVM camera pinmux question

Part Number: AM5728

Tool/software: Linux

Hi all,

the camera module used in AM5728 EVM is mt9t111,and now i want to change the pinmux of mt9t111 for our custom board.But i failed to find the right dts or dtsi file  for modifying pinmux. Is that true to change mt9t111's pinmux in dts or dtsi files,or other file? The  Processor SDK version i used is ti-processor-sdk-linux-am57xx-evm-03.03.00.04. 

Sorry for my bad english!

Thanks in advance!

  • The software team have been notified. They will reply here.
  • You can use the following pinmux configuration for mt9t111:

        mt9t11x@3C {
            compatible = "aptina,mt9t111";
            reg = <0x3C>;

            reset-gpios = <&gpio4 17 GPIO_ACTIVE_LOW>;
            oscen-gpios = <&gpio5 10 GPIO_ACTIVE_HIGH>;
            powerdown-gpios = <&gpio5 11 GPIO_ACTIVE_LOW>;
            bufen-gpios = <&gpio5 12 GPIO_ACTIVE_LOW>;
            camen-gpios = <&gpio6 11 GPIO_ACTIVE_LOW>;

            port {
                cam: endpoint {
                    remote-endpoint = <&vin3a>;
                    hsync-active = <1>;
                    vsync-active = <0>;
                    pclk-sample = <0>;
                    input-clock-freq = <32000000>;
                    pixel-clock-freq = <96000000>;
                };
            };
        };

    You can find it in ../linux-<4.xxxxx>/arch/arm/boot/dts/am57xx-evm-common-cam-mt9t111.dtsi file. You can refer to this configuration and modify if necessary for your needs.

    BR
    Tsvetolin Shulev

  • Thanks for your reply,
    but i want to know which pin is for hsync,vsync,pclk and 8bit yuv data,since our custom board use different pinmux for these signal,or maybe i should change my question to where to change the pinmux for vin3a?
    BR
    Boycchi
  • hi Tsvetolin Shulev,
    I'm wondering if you can provide more insight for me on this!
    BR
    Boycchi
  • For hsync, vsync, pclk and 8bit yuv data check the <Processor SDK>/board-support/u-boot-<version>/board/ti/am57xx/mux_data.h file.

  • Thanks and one more question.I don't understand the function of following five gpios:
    reset-gpios = <&gpio4 17 GPIO_ACTIVE_LOW>;
    oscen-gpios = <&gpio5 10 GPIO_ACTIVE_HIGH>;
    powerdown-gpios = <&gpio5 11 GPIO_ACTIVE_LOW>;
    bufen-gpios = <&gpio5 12 GPIO_ACTIVE_LOW>;
    camen-gpios = <&gpio6 11 GPIO_ACTIVE_LOW>;
    how should i change them according to my custom board or can u explain their function to me especially camen-gpios(does camen-gpios enable VIP datalines?i use different VIN3A IOSETs,EVM board use ioset1 while my custom board use ioset4,what should i change?).
    BR,
    Boycchi
  • Please, check the kernel documentation.
    <Processor SDK>/board-support/ti-processor-sdk-linux-am57xx-evm-03.03.00.04/board-support/linux-<version>/Documentation/devicetree/bindings/media/i2c/mt9t11x.txt

    Optional Properties:

    - reset-gpios: Toggle when the module is enabled or disabled.
    - powerdown-gpios: Toggle when the module is enabled or disabled.
    - oscen-gpios: Enabled once at probe time.
    - bufen-gpios: Enabled once at probe time.
    - camen-gpios: Enabled once at probe time.

    and refer to the AM572x evm bord's schematics to understand what they does.

    reset-gpios is camera's RESET
    oscen-gpios drives the MCLK
    powerdown-gpios puts the sensor in STANDBY
    bufen-gpios controls the camera module's 8-bit data line
    camen-gpios is used to enable/disable vin3a data line

    You can use the TI PinMux tool to find the IOSets for VIN3A.