blob: 238902e2b58fa476bbb471e5600b850e3da88a56 [file] [log] [blame]
/*
* Copyright (c) 2022 Google LLC
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr/dt-bindings/i2c/i2c.h>
/ {
/* qemu_cortex_a9 board isn't configured with an I2C node */
fake_i2c_bus: i2c@100 {
status = "okay";
compatible = "zephyr,i2c-emul-controller";
clock-frequency = <I2C_BITRATE_STANDARD>;
#address-cells = <1>;
#size-cells = <0>;
reg = <0x100 4>;
};
};
&fake_i2c_bus {
clock-frequency = <I2C_BITRATE_STANDARD>;
compatible = "zephyr,i2c-emul-controller";
smartbattery0: smartbattery@b {
compatible = "sbs,sbs-gauge";
reg = <0x0B>;
status = "okay";
};
};