summaryrefslogtreecommitdiff
path: root/zephyr/boards/riscv/asurada
diff options
context:
space:
mode:
authorKeith Short <keithshort@chromium.org>2021-11-18 16:58:07 -0700
committerCommit Bot <commit-bot@chromium.org>2021-12-06 20:21:30 +0000
commita0a6158f4b8074dd57d2bc2f4de49c9ed900c94f (patch)
tree040bb26c08269435715a58efe29752a74d0ee9da /zephyr/boards/riscv/asurada
parent1670136344b405317272cecce178eba1e95535c3 (diff)
downloadchrome-ec-a0a6158f4b8074dd57d2bc2f4de49c9ed900c94f.tar.gz
zephyr: i2c: Remove label from named-i2c-ports
The label property was stored in the name field of i2c_ports[]. However the name field is only used by the legacy I2C console commands and not used by Zephyr builds. Remove the label property from named-i2c-ports and remove the name field from i2c_ports[] for Zephyr builds, saving a modest amount of flash space. BUG=none BRANCH=none TEST=zmake testall TEST=Boot zephyr on Herobrine, verify I2C console commands still functional. Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: I22c743c4e362d05d51432fa67f5be16989d39574 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3300664 Commit-Queue: Abe Levkoy <alevkoy@chromium.org> Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
Diffstat (limited to 'zephyr/boards/riscv/asurada')
-rw-r--r--zephyr/boards/riscv/asurada/asurada.dts13
1 files changed, 0 insertions, 13 deletions
diff --git a/zephyr/boards/riscv/asurada/asurada.dts b/zephyr/boards/riscv/asurada/asurada.dts
index b0c46e4f6f..7fad8ed720 100644
--- a/zephyr/boards/riscv/asurada/asurada.dts
+++ b/zephyr/boards/riscv/asurada/asurada.dts
@@ -89,68 +89,55 @@
power {
i2c-port = <&i2c0>;
enum-name = "I2C_PORT_POWER";
- label = "POWER";
};
battery {
i2c-port = <&i2c0>;
remote-port = <0>;
enum-name = "I2C_PORT_BATTERY";
- label = "BATTERY";
};
virtual-battery {
i2c-port = <&i2c0>;
enum-name = "I2C_PORT_VIRTUAL_BATTERY";
- label = "VIRTUAL_BATTERY";
};
eeprom {
i2c-port = <&i2c0>;
enum-name = "I2C_PORT_EEPROM";
- label = "EEPROM";
};
charger {
i2c-port = <&i2c0>;
enum-name = "I2C_PORT_CHARGER";
- label = "CHARGER";
};
i2c_sensor: sensor {
i2c-port = <&i2c1>;
enum-name = "I2C_PORT_SENSOR";
- label = "SENSOR";
};
i2c-accel {
i2c-port = <&i2c1>;
enum-name = "I2C_PORT_ACCEL";
- label = "ACCEL";
};
ppc0 {
i2c-port = <&i2c2>;
enum-name = "I2C_PORT_PPC0";
- label = "PPC0";
};
ppc1 {
i2c-port = <&i2c4>;
enum-name = "I2C_PORT_PPC1";
- label = "PPC1";
};
usb-c0 {
i2c-port = <&i2c2>;
enum-name = "I2C_PORT_USB_C0";
- label = "USB_C0";
};
usb-c1 {
i2c-port = <&i2c4>;
enum-name = "I2C_PORT_USB_C1";
- label = "USB_C1";
};
usb-mux0 {
i2c-port = <&i2c2>;
enum-name = "I2C_PORT_USB_MUX0";
- label = "USB_MUX0";
};
usb-mux1 {
i2c-port = <&i2c4>;
enum-name = "I2C_PORT_USB_MUX1";
- label = "USB_MUX1";
};
};