boards: xiao_esp32c6: add i2c0 port
- Add i2c0 port support on xiao_esp32c6 Signed-off-by: Romain Pelletant <romain.pelletant@fullfreqs.com>
This commit is contained in:
parent
0d6fe2f96a
commit
42efd84fcb
5 changed files with 21 additions and 0 deletions
|
|
@ -36,6 +36,8 @@ The Zephyr ``xiao_esp32c6`` board target supports the following hardware feature
|
||||||
+------------+------------+-------------------------------------+
|
+------------+------------+-------------------------------------+
|
||||||
| SPI Master | on-chip | spi |
|
| SPI Master | on-chip | spi |
|
||||||
+------------+------------+-------------------------------------+
|
+------------+------------+-------------------------------------+
|
||||||
|
| I2C | on-chip | i2c |
|
||||||
|
+------------+------------+-------------------------------------+
|
||||||
| Watchdog | on-chip | watchdog |
|
| Watchdog | on-chip | watchdog |
|
||||||
+------------+------------+-------------------------------------+
|
+------------+------------+-------------------------------------+
|
||||||
| LEDC | on-chip | pwm |
|
| LEDC | on-chip | pwm |
|
||||||
|
|
|
||||||
|
|
@ -24,5 +24,6 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
xiao_i2c: &i2c0 {};
|
||||||
xiao_spi: &spi2 {};
|
xiao_spi: &spi2 {};
|
||||||
xiao_serial: &uart0 {};
|
xiao_serial: &uart0 {};
|
||||||
|
|
|
||||||
|
|
@ -31,4 +31,14 @@
|
||||||
output-low;
|
output-low;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
i2c0_default: i2c0_default {
|
||||||
|
group1 {
|
||||||
|
pinmux = <I2C0_SDA_GPIO22>,
|
||||||
|
<I2C0_SCL_GPIO23>;
|
||||||
|
bias-pull-up;
|
||||||
|
drive-open-drain;
|
||||||
|
output-high;
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -55,6 +55,13 @@
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&i2c0 {
|
||||||
|
status = "okay";
|
||||||
|
clock-frequency = <I2C_BITRATE_FAST>;
|
||||||
|
pinctrl-0 = <&i2c0_default>;
|
||||||
|
pinctrl-names = "default";
|
||||||
|
};
|
||||||
|
|
||||||
&spi2 {
|
&spi2 {
|
||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
#size-cells = <0>;
|
#size-cells = <0>;
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,7 @@ supported:
|
||||||
- dma
|
- dma
|
||||||
- spi
|
- spi
|
||||||
- entropy
|
- entropy
|
||||||
|
- i2c
|
||||||
testing:
|
testing:
|
||||||
ignore_tags:
|
ignore_tags:
|
||||||
- bluetooth
|
- bluetooth
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue