zephyr/boards/silabs/efm32gg_sltb009a/efm32gg_sltb009a-pinctrl.dtsi
Arunmani Alagarsamy 78150c8e1b boards: silabs: Add I2C node
Add i2c pincntrl to silabs boards that supports pinctrl api.

Signed-off-by: Arunmani Alagarsamy <arunmani.a@capgemini.com>
2024-04-25 18:07:48 -04:00

38 lines
788 B
Plaintext

/*
* Copyright (c) 2024 Antmicro <www.antmicro.com>
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <dt-bindings/pinctrl/gecko-pinctrl-s1.h>
&pinctrl {
/* configuration for usart0 device, default state - operating as UART */
usart0_default: usart0_default {
group1 {
psels = <GECKO_PSEL(UART_TX, E, 0)>,
<GECKO_PSEL(UART_RX, E, 1)>,
<GECKO_LOC(UART_TX, 7)>,
<GECKO_LOC(UART_RX, 6)>;
};
};
i2c0_default: i2c0_default {
group1 {
psels = <GECKO_PSEL(I2C_SDA, C, 0)>,
<GECKO_PSEL(I2C_SCL, C, 1)>,
<GECKO_LOC(I2C_SDA, 4)>,
<GECKO_LOC(I2C_SCL, 4)>;
};
};
i2c1_default: i2c1_default {
group1 {
psels = <GECKO_PSEL(I2C_SDA, C, 4)>,
<GECKO_PSEL(I2C_SCL, C, 5)>,
<GECKO_LOC(I2C_SDA, 0)>,
<GECKO_LOC(I2C_SCL, 0)>;
};
};
};