代码拉取完成,页面将自动刷新
/*
* 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>;
};
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。