Skip to content

Commit

Permalink
add fuel gauge max17048
Browse files Browse the repository at this point in the history
  • Loading branch information
RealET committed Nov 1, 2024
1 parent e4ec7a7 commit fdfc177
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
10 changes: 9 additions & 1 deletion boards/arm/cyboard/cyboard.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
zephyr,code-partition = &code_partition;
zephyr,sram = &sram0;
zephyr,flash = &flash0;
zmk,battery = &fuel_gauge;
};

leds {
Expand Down Expand Up @@ -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 {
Expand Down
3 changes: 3 additions & 0 deletions boards/shields/cyboard/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ config ZMK_SPLIT

endif

config MAX17048
default y

config ZMK_RGB_UNDERGLOW
default y
imply WS2812_STRIP

0 comments on commit fdfc177

Please sign in to comment.