Add emulation testing for it8xxx2, npcx, and mcp7940n. The test is made to be generic and uses the backend API in order to verify both read and write functionality. Additional tests are made for the API's limits when reading/writing out of bounds. Fixes #65018 Signed-off-by: Yuval Peress <peress@google.com>
29 lines
457 B
Plaintext
29 lines
457 B
Plaintext
/*
|
|
* Copyright 2021 Google LLC
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
&i2c0 {
|
|
mcp7940n: mcp7940n@0 {
|
|
compatible = "microchip,mcp7940n";
|
|
reg = <0x0>;
|
|
};
|
|
};
|
|
|
|
/ {
|
|
ite8xxx2: ite8xxx2@0 {
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
compatible = "ite,it8xxx2-bbram";
|
|
status = "okay";
|
|
reg = <0x0 0x40>;
|
|
};
|
|
npcx: npcx@40 {
|
|
compatible = "nuvoton,npcx-bbram";
|
|
reg = <0x40 0x40
|
|
0x80 0x1>;
|
|
reg-names = "memory", "status";
|
|
};
|
|
};
|