1/* 2 * Copyright (c) 2023 Google LLC 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7#include <zephyr/dt-bindings/i2c/i2c.h> 8 9/ { 10 fake_i2c_bus: i2c@100 { 11 status = "okay"; 12 compatible = "zephyr,i2c-emul-controller"; 13 clock-frequency = <I2C_BITRATE_STANDARD>; 14 #address-cells = <1>; 15 #size-cells = <0>; 16 reg = <0x100 4>; 17 }; 18}; 19 20&fake_i2c_bus { 21 clock-frequency = <I2C_BITRATE_STANDARD>; 22 compatible = "zephyr,i2c-emul-controller"; 23 smartbattery0: smartbattery@b { 24 compatible = "sbs,default-sbs-gauge","sbs,sbs-gauge-new-api"; 25 reg = <0x0b>; 26 status = "okay"; 27 battery-cutoff-support; 28 battery-cutoff-payload = <0x0010 0x0020>; 29 }; 30}; 31