Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions boards/aithinker/ai_m62_12f/ai_m62_12f-pinctrl.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,13 @@
bias-high-impedance;
};
};

i2c0_default: i2c0_default {
group1 {
pinmux = <GPIO0_I2C0_SCL>,
<GPIO1_I2C0_SDA>;
bias-pull-up;
input-schmitt-enable;
};
};
};
8 changes: 8 additions & 0 deletions boards/aithinker/ai_m62_12f/ai_m62_12f.dts
Original file line number Diff line number Diff line change
Expand Up @@ -108,3 +108,11 @@
&gpio0 {
status = "okay";
};

&i2c0 {
status = "okay";
clock-frequency = <I2C_BITRATE_STANDARD>;

pinctrl-0 = <&i2c0_default>;
pinctrl-names = "default";
};
1 change: 1 addition & 0 deletions boards/aithinker/ai_m62_12f/ai_m62_12f.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ supported:
- pinctrl
- uart
- dma
- i2c
vendor: bflb
9 changes: 9 additions & 0 deletions boards/aithinker/ai_wb2_12f/ai_wb2_12f-pinctrl.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,13 @@
bias-high-impedance;
};
};

i2c0_default: i2c0_default {
group1 {
pinmux = <GPIO17_I2C_SDA>,
<GPIO12_I2C_SCL>;
bias-pull-up;
input-schmitt-enable;
};
};
};
17 changes: 13 additions & 4 deletions boards/aithinker/ai_wb2_12f/ai_wb2_12f.dts
Original file line number Diff line number Diff line change
Expand Up @@ -34,25 +34,26 @@
compatible = "gpio-leds";

blue_led: led_0 {
gpios = <&gpio0 3 GPIO_ACTIVE_HIGH>;
gpios = <&gpio0 3 GPIO_ACTIVE_HIGH>;
label = "Blue - LED0";
};

green_led: led_1 {
gpios = <&gpio0 17 GPIO_ACTIVE_HIGH>;
gpios = <&gpio0 17 GPIO_ACTIVE_HIGH>;
label = "Green - LED1";
};

red_led: led_2 {
gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
label = "Red - LED2";
};
};

buttons {
compatible = "gpio-keys";

button_0: sw0 {
gpios = <&gpio0 8 (GPIO_ACTIVE_HIGH)>;
gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
zephyr,code = <INPUT_KEY_0>;
};
};
Expand Down Expand Up @@ -101,3 +102,11 @@
&gpio0 {
status = "okay";
};

&i2c0 {
status = "okay";
clock-frequency = <I2C_BITRATE_STANDARD>;

pinctrl-0 = <&i2c0_default>;
pinctrl-names = "default";
};
1 change: 1 addition & 0 deletions boards/aithinker/ai_wb2_12f/ai_wb2_12f.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ supported:
- pinctrl
- uart
- dma
- i2c
vendor: bflb
9 changes: 9 additions & 0 deletions boards/doiting/dt_xt_zb1_devkit/dt_xt_zb1_devkit-pinctrl.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,13 @@
bias-high-impedance;
};
};

i2c0_default: i2c0_default {
group1 {
pinmux = <GPIO0_I2C_SCL>,
<GPIO1_I2C_SDA>;
bias-pull-up;
input-schmitt-enable;
};
};
};
8 changes: 8 additions & 0 deletions boards/doiting/dt_xt_zb1_devkit/dt_xt_zb1_devkit.dts
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,11 @@
pinctrl-1 = <&uart0_sleep>;
pinctrl-names = "default", "sleep";
};

&i2c0 {
status = "okay";
clock-frequency = <I2C_BITRATE_STANDARD>;

pinctrl-0 = <&i2c0_default>;
pinctrl-names = "default";
};
1 change: 1 addition & 0 deletions boards/doiting/dt_xt_zb1_devkit/dt_xt_zb1_devkit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ supported:
- pinctrl
- uart
- dma
- i2c
vendor: doiting
1 change: 1 addition & 0 deletions drivers/i2c/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ add_subdirectory_ifdef(CONFIG_I2C_TARGET target)
# zephyr-keep-sorted-start
zephyr_library_sources_ifdef(CONFIG_I2C_AMBIQ i2c_ambiq.c)
zephyr_library_sources_ifdef(CONFIG_I2C_ANDES_ATCIIC100 i2c_andes_atciic100.c)
zephyr_library_sources_ifdef(CONFIG_I2C_BFLB i2c_bflb.c)
zephyr_library_sources_ifdef(CONFIG_I2C_CADENCE i2c_cdns.c)
zephyr_library_sources_ifdef(CONFIG_I2C_CC13XX_CC26XX i2c_cc13xx_cc26xx.c)
zephyr_library_sources_ifdef(CONFIG_I2C_CC23X0 i2c_cc23x0.c)
Expand Down
1 change: 1 addition & 0 deletions drivers/i2c/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ source "drivers/i2c/Kconfig.ambiq"
source "drivers/i2c/Kconfig.andes_atciic100"
source "drivers/i2c/Kconfig.b91"
source "drivers/i2c/Kconfig.bcm_iproc"
source "drivers/i2c/Kconfig.bflb"
source "drivers/i2c/Kconfig.cc13xx_cc26xx"
source "drivers/i2c/Kconfig.cc23x0"
source "drivers/i2c/Kconfig.cdns"
Expand Down
9 changes: 9 additions & 0 deletions drivers/i2c/Kconfig.bflb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Copyright (c) 2024-2025 MASSDRIVER EI (massdriver.space)
# SPDX-License-Identifier: Apache-2.0

config I2C_BFLB
bool "Bouffalolab I2C driver"
default y
depends on DT_HAS_BFLB_I2C_ENABLED
help
I2C driver support for Bouffalolab platforms
Loading