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/processor-SDK-AM57X:将 i2c-2添加到器件树的格式

Guru**** 2551110 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/602993/linux-processor-sdk-am57x-format-for-adding-i2c-2-to-device-tree

器件型号:PROCESSOR-SDK-AM57X

工具/软件:Linux

我想将 i2c-2适配器添加到我的设备树中、以便在根文件系统中显示为/dev/i2c-2。 我已尝试以下操作、但很不幸运:

i2c2_pins:pinmux_i2c2_pins{
    pinctrl-single、pins =<
       0x408 (PIN_OUTPUT | MUX_MODE0) /* i2c2_SCL *
        0x40c (PIN_OUTPUT | MUX_MODE0) /* i2c2_sda *
    >;

};

i2c2{(&I)
    状态="正常";
    pinctrl-names ="default";
    pinctrl-0 =<&i2c2_PINs>;
    兼容="ti、ompa4_i2c";
    ti、hwmods ="i2c2";
    #address-cells =<1>;
    #size-cells =<0>;
     时钟频率=<400000>;
};

但是、这不会导致/dev/i2c-2出现。 有人能告诉我如何正确地将 i2c2添加到 DTS 吗?

作为第二个问题、我确实看到了/dev/i2c-0和/dev/i2c-3、但它们并未显式显示在器件树中。 这两个适配器如何出现在/dev/dev 中,但未在设备树中明确定义?

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    这是哪个内核? 请注意、在最新的 TI 内核中、您需要在 u-boot 中执行 IP 引脚多路复用、而不是 Linux 内核。

    您是否已检查 DTS 的别名?

    此致、
    Yordan