diff options
Diffstat (limited to 'zephyr/test/drivers/overlay.dts')
-rw-r--r-- | zephyr/test/drivers/overlay.dts | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/zephyr/test/drivers/overlay.dts b/zephyr/test/drivers/overlay.dts index f0faba8de1..6f25844438 100644 --- a/zephyr/test/drivers/overlay.dts +++ b/zephyr/test/drivers/overlay.dts @@ -19,6 +19,16 @@ enum-name = "GPIO_AC_PRESENT"; label = "ACOK_OD"; }; + /* In test WP is output because CBI use it, but it is also + * input, because test_all_tags set it to enable write + * protection. + */ + gpio_wp_l: wp_l { + #gpio-cells = <0>; + gpios = <&gpio0 3 (GPIO_INPUT | GPIO_OUTPUT)>; + enum-name = "GPIO_WP_L"; + label = "WP_L"; + }; }; named-i2c-ports { compatible = "named-i2c-ports"; @@ -43,6 +53,11 @@ enum-name = "I2C_PORT_CHARGER"; label = "CHARGER"; }; + eeprom { + i2c-port = <&i2c0>; + enum-name = "I2C_PORT_EEPROM"; + label = "EEPROM"; + }; }; named-batteries { @@ -55,5 +70,18 @@ }; &gpio0 { - ngpios = <3>; + ngpios = <4>; +}; + +&i2c0 { + cbi_eeprom: eeprom@56 { + compatible = "atmel,at24"; + reg = <0x56>; + label = "EEPROM_CBI"; + size = <512>; + pagesize = <8>; + address-width = <8>; + timeout = <5>; + wp-gpios = <&gpio_wp_l>; + }; }; |