diff --git a/boards/arm/cyboard/cyboard.dtsi b/boards/arm/cyboard/cyboard.dtsi index ec0ba2a..da031f6 100644 --- a/boards/arm/cyboard/cyboard.dtsi +++ b/boards/arm/cyboard/cyboard.dtsi @@ -15,6 +15,7 @@ zephyr,code-partition = &code_partition; zephyr,sram = &sram0; zephyr,flash = &flash0; + zmk,battery = &fuel_gauge; }; leds { @@ -42,10 +43,17 @@ }; &i2c0 { - compatible = "nordic,nrf-twi"; + status = "okay"; + compatible = "nordic,nrf-twim"; pinctrl-0 = <&i2c0_default>; pinctrl-1 = <&i2c0_sleep>; pinctrl-names = "default", "sleep"; + clock-frequency = <100000>; + + fuel_gauge: max17048@36 { + compatible = "zmk,maxim-max17048"; + reg = <0x36>; + }; }; &spi1 { diff --git a/boards/shields/cyboard/Kconfig.defconfig b/boards/shields/cyboard/Kconfig.defconfig index 86efadc..8f8f172 100644 --- a/boards/shields/cyboard/Kconfig.defconfig +++ b/boards/shields/cyboard/Kconfig.defconfig @@ -15,6 +15,9 @@ config ZMK_SPLIT endif +config MAX17048 + default y + config ZMK_RGB_UNDERGLOW default y imply WS2812_STRIP \ No newline at end of file