Skip to content

Commit f3a54fc

Browse files
Raffael Rostagnonashif
authored andcommitted
boards: esp32h2_devkitm: Add peripherals
Add board configs for the following peripherals: - ADC - I2C - I2S - LEDC PWM - MCPWM - DMA - TWAI Signed-off-by: Raffael Rostagno <[email protected]>
1 parent 3a78b8a commit f3a54fc

File tree

3 files changed

+65
-1
lines changed

3 files changed

+65
-1
lines changed

boards/espressif/esp32h2_devkitm/esp32h2_devkitm-pinctrl.dtsi

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,41 @@
3333
output-low;
3434
};
3535
};
36+
37+
i2c0_default: i2c0_default {
38+
group1 {
39+
pinmux = <I2C0_SDA_GPIO0>,
40+
<I2C0_SCL_GPIO1>;
41+
bias-pull-up;
42+
drive-open-drain;
43+
output-high;
44+
};
45+
};
46+
47+
i2c1_default: i2c1_default {
48+
group1 {
49+
pinmux = <I2C0_SDA_GPIO2>,
50+
<I2C0_SCL_GPIO3>;
51+
bias-pull-up;
52+
drive-open-drain;
53+
output-high;
54+
};
55+
};
56+
57+
i2s_default: i2s_default {
58+
group1 {
59+
pinmux = <I2S_MCLK_GPIO4>,
60+
<I2S_O_WS_GPIO5>,
61+
<I2S_O_BCK_GPIO14>,
62+
<I2S_O_SD_GPIO22>,
63+
<I2S_I_SD_GPIO25>;
64+
};
65+
};
66+
67+
twai_default: twai_default {
68+
group1 {
69+
pinmux = <TWAI_TX_GPIO26>,
70+
<TWAI_RX_GPIO27>;
71+
};
72+
};
3673
};

boards/espressif/esp32h2_devkitm/esp32h2_devkitm.dts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,25 @@
6969
pinctrl-0 = <&spim2_default>;
7070
pinctrl-names = "default";
7171
};
72+
73+
&i2c0 {
74+
clock-frequency = <I2C_BITRATE_FAST>;
75+
pinctrl-0 = <&i2c0_default>;
76+
pinctrl-names = "default";
77+
};
78+
79+
&i2c1 {
80+
clock-frequency = <I2C_BITRATE_FAST>;
81+
pinctrl-0 = <&i2c1_default>;
82+
pinctrl-names = "default";
83+
};
84+
85+
&i2s {
86+
pinctrl-0 = <&i2s_default>;
87+
pinctrl-names = "default";
88+
};
89+
90+
&twai {
91+
pinctrl-0 = <&twai_default>;
92+
pinctrl-names = "default";
93+
};

boards/espressif/esp32h2_devkitm/esp32h2_devkitm.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,14 @@ arch: riscv
66
toolchain:
77
- zephyr
88
supported:
9+
- adc
910
- gpio
1011
- watchdog
1112
- uart
13+
- dma
14+
- pwm
15+
- spi
1216
- counter
1317
- entropy
14-
- spi
18+
- i2c
19+
- i2s

0 commit comments

Comments
 (0)