2 Star 0 Fork 0

mirrors_intel/ecfw-zephyr

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
enable-i2csmb2.overlay 869 Bytes
一键复制 编辑 原始数据 按行查看 历史
/*
* Copyright (c) 2022, Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*
* Modify as needed for development with custom I2C port numbers
* Usage:
* west build -c -p <BOARD> -- -DDTC_OVERLAY_FILE=enable-i2csmb2.overlay
*
* Depending upon the port selected, it is possible some of the functionalities
* are compromised. For e.g. if I2C port7 is enabled on MEC15xx platforms, SAF
* mode will not work.
*
* The sda-scl gpio configuration is dependent upon the port selected. Below
* are 2 examples.
* port_sel = <4>;
* sda-gpios = <&gpio_140_176 3 0>;
* scl-gpios = <&gpio_140_176 4 0>;
*
* port_sel = <5>;
* sda-gpios = <&gpio_140_176 1 0>;
* scl-gpios = <&gpio_140_176 2 0>;
*/
&i2c_smb_2 {
status = "okay";
port_sel = <7>;
sda-gpios = <&gpio_000_036 12 0>;
scl-gpios = <&gpio_000_036 13 0>;
};
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_intel/ecfw-zephyr.git
git@gitee.com:mirrors_intel/ecfw-zephyr.git
mirrors_intel
ecfw-zephyr
ecfw-zephyr
master

搜索帮助