diff --git a/boards/silabs/efm32gg_sltb009a/efm32gg_sltb009a-pinctrl.dtsi b/boards/silabs/efm32gg_sltb009a/efm32gg_sltb009a-pinctrl.dtsi index 71d2020569..c071820bfc 100644 --- a/boards/silabs/efm32gg_sltb009a/efm32gg_sltb009a-pinctrl.dtsi +++ b/boards/silabs/efm32gg_sltb009a/efm32gg_sltb009a-pinctrl.dtsi @@ -16,4 +16,22 @@ ; }; }; + + i2c0_default: i2c0_default { + group1 { + psels = , + , + , + ; + }; + }; + + i2c1_default: i2c1_default { + group1 { + psels = , + , + , + ; + }; + }; }; diff --git a/boards/silabs/efm32gg_sltb009a/efm32gg_sltb009a.dts b/boards/silabs/efm32gg_sltb009a/efm32gg_sltb009a.dts index 5dcae30fbe..eac47f5612 100644 --- a/boards/silabs/efm32gg_sltb009a/efm32gg_sltb009a.dts +++ b/boards/silabs/efm32gg_sltb009a/efm32gg_sltb009a.dts @@ -78,14 +78,14 @@ }; &i2c0 { - location-sda = ; - location-scl = ; + pinctrl-0 = <&i2c0_default>; + pinctrl-names = "default"; status = "okay"; }; &i2c1 { - location-sda = ; - location-scl = ; + pinctrl-0 = <&i2c1_default>; + pinctrl-names = "default"; status = "okay"; }; diff --git a/boards/silabs/efm32gg_slwstk6121a/efm32gg_slwstk6121a-pinctrl.dtsi b/boards/silabs/efm32gg_slwstk6121a/efm32gg_slwstk6121a-pinctrl.dtsi index ade31fddfd..441cfc770c 100644 --- a/boards/silabs/efm32gg_slwstk6121a/efm32gg_slwstk6121a-pinctrl.dtsi +++ b/boards/silabs/efm32gg_slwstk6121a/efm32gg_slwstk6121a-pinctrl.dtsi @@ -16,4 +16,22 @@ ; }; }; + + i2c0_default: i2c0_default { + group1 { + psels = , + , + , + ; + }; + }; + + i2c1_default: i2c1_default { + group1 { + psels = , + , + , + ; + }; + }; }; diff --git a/boards/silabs/efm32gg_slwstk6121a/efm32gg_slwstk6121a.dts b/boards/silabs/efm32gg_slwstk6121a/efm32gg_slwstk6121a.dts index 10912535b2..a82fa89672 100644 --- a/boards/silabs/efm32gg_slwstk6121a/efm32gg_slwstk6121a.dts +++ b/boards/silabs/efm32gg_slwstk6121a/efm32gg_slwstk6121a.dts @@ -72,15 +72,15 @@ * to work properly. */ &i2c0 { - location-sda = ; - location-scl = ; + pinctrl-0 = <&i2c0_default>; + pinctrl-names = "default"; status = "okay"; }; /* Connected to Si7021 sensor on WSTK */ &i2c1 { - location-sda = ; - location-scl = ; + pinctrl-0 = <&i2c1_default>; + pinctrl-names = "default"; status = "okay"; }; diff --git a/boards/silabs/efm32gg_stk3701a/efm32gg_stk3701a-pinctrl.dtsi b/boards/silabs/efm32gg_stk3701a/efm32gg_stk3701a-pinctrl.dtsi index 8bb7025f4b..4540922dd2 100644 --- a/boards/silabs/efm32gg_stk3701a/efm32gg_stk3701a-pinctrl.dtsi +++ b/boards/silabs/efm32gg_stk3701a/efm32gg_stk3701a-pinctrl.dtsi @@ -25,4 +25,22 @@ ; }; }; + + i2c0_default: i2c0_default { + group1 { + psels = , + , + , + ; + }; + }; + + i2c1_default: i2c1_default { + group1 { + psels = , + , + , + ; + }; + }; }; diff --git a/boards/silabs/efm32gg_stk3701a/efm32gg_stk3701a.dts b/boards/silabs/efm32gg_stk3701a/efm32gg_stk3701a.dts index 1c457890f9..39589b6185 100644 --- a/boards/silabs/efm32gg_stk3701a/efm32gg_stk3701a.dts +++ b/boards/silabs/efm32gg_stk3701a/efm32gg_stk3701a.dts @@ -81,14 +81,14 @@ }; &i2c0 { - location-sda = ; - location-scl = ; + pinctrl-0 = <&i2c0_default>; + pinctrl-names = "default"; status = "okay"; }; &i2c1 { - location-sda = ; - location-scl = ; + pinctrl-0 = <&i2c1_default>; + pinctrl-names = "default"; status = "okay"; }; diff --git a/boards/silabs/efm32pg_stk3401a/efm32pg_stk3401a-pinctrl.dtsi b/boards/silabs/efm32pg_stk3401a/efm32pg_stk3401a-pinctrl.dtsi index 24b51c3361..418fe654bc 100644 --- a/boards/silabs/efm32pg_stk3401a/efm32pg_stk3401a-pinctrl.dtsi +++ b/boards/silabs/efm32pg_stk3401a/efm32pg_stk3401a-pinctrl.dtsi @@ -16,4 +16,13 @@ ; }; }; + + i2c0_default: i2c0_default { + group1 { + psels = , + , + , + ; + }; + }; }; diff --git a/boards/silabs/efm32pg_stk3401a/efm32pg_stk3401a_common.dtsi b/boards/silabs/efm32pg_stk3401a/efm32pg_stk3401a_common.dtsi index 6611bee495..97427b8581 100644 --- a/boards/silabs/efm32pg_stk3401a/efm32pg_stk3401a_common.dtsi +++ b/boards/silabs/efm32pg_stk3401a/efm32pg_stk3401a_common.dtsi @@ -74,8 +74,8 @@ }; &i2c0 { - location-sda = ; - location-scl = ; + pinctrl-0 = <&i2c0_default>; + pinctrl-names = "default"; status = "okay"; }; diff --git a/boards/silabs/efm32pg_stk3402a/efm32pg_stk3402a-pinctrl.dtsi b/boards/silabs/efm32pg_stk3402a/efm32pg_stk3402a-pinctrl.dtsi index 4fac2b1a8d..b1d39788ba 100644 --- a/boards/silabs/efm32pg_stk3402a/efm32pg_stk3402a-pinctrl.dtsi +++ b/boards/silabs/efm32pg_stk3402a/efm32pg_stk3402a-pinctrl.dtsi @@ -16,4 +16,13 @@ ; }; }; + + i2c0_default: i2c0_default { + group1 { + psels = , + , + , + ; + }; + }; }; diff --git a/boards/silabs/efm32pg_stk3402a/efm32pg_stk3402a_common.dtsi b/boards/silabs/efm32pg_stk3402a/efm32pg_stk3402a_common.dtsi index 0a2ad79764..05729334fc 100644 --- a/boards/silabs/efm32pg_stk3402a/efm32pg_stk3402a_common.dtsi +++ b/boards/silabs/efm32pg_stk3402a/efm32pg_stk3402a_common.dtsi @@ -85,8 +85,8 @@ }; &i2c0 { - location-sda = ; - location-scl = ; + pinctrl-0 = <&i2c0_default>; + pinctrl-names = "default"; status = "okay"; }; diff --git a/boards/silabs/efr32_radio/efr32_radio_efr32mg12p432f1024gl125.dts b/boards/silabs/efr32_radio/efr32_radio_efr32mg12p432f1024gl125.dts index 6f1cba19b5..ee57db52ae 100644 --- a/boards/silabs/efr32_radio/efr32_radio_efr32mg12p432f1024gl125.dts +++ b/boards/silabs/efr32_radio/efr32_radio_efr32mg12p432f1024gl125.dts @@ -62,9 +62,32 @@ }; }; +&pinctrl { + i2c0_default: i2c0_default { + group1 { + psels = , + , + , + ; + }; + }; +}; + &usart0 { current-speed = <115200>; pinctrl-0 = <&usart0_default>; pinctrl-names = "default"; status = "okay"; }; + +&i2c0 { + pinctrl-0 = <&i2c0_default>; + pinctrl-names = "default"; + status = "okay"; + + si7021: si7021@40 { + compatible = "silabs,si7006"; + reg = <0x40>; + status = "okay"; + }; +}; diff --git a/boards/silabs/efr32_thunderboard/thunderboard.dtsi b/boards/silabs/efr32_thunderboard/thunderboard.dtsi index be2401138a..7197983747 100644 --- a/boards/silabs/efr32_thunderboard/thunderboard.dtsi +++ b/boards/silabs/efr32_thunderboard/thunderboard.dtsi @@ -142,9 +142,20 @@ status = "okay"; }; +&pinctrl { + i2c0_default: i2c0_default { + group1 { + psels = , + , + , + ; + }; + }; +}; + &i2c0 { - location-sda = ; - location-scl = ; + pinctrl-0 = <&i2c0_default>; + pinctrl-names = "default"; status = "okay"; si7210@30 { diff --git a/boards/silabs/efr32mg_sltb004a/efr32mg_sltb004a.dts b/boards/silabs/efr32mg_sltb004a/efr32mg_sltb004a.dts index 6bdc5be574..3819bd6ca9 100644 --- a/boards/silabs/efr32mg_sltb004a/efr32mg_sltb004a.dts +++ b/boards/silabs/efr32mg_sltb004a/efr32mg_sltb004a.dts @@ -116,16 +116,36 @@ status = "okay"; }; +&pinctrl { + i2c0_default: i2c0_default { + group1 { + psels = , + , + , + ; + }; + }; + + i2c1_default: i2c1_default { + group1 { + psels = , + , + , + ; + }; + }; +}; + &i2c0 { - location-sda = ; - location-scl = ; + pinctrl-0 = <&i2c0_default>; + pinctrl-names = "default"; status = "okay"; }; &i2c1 { /* This set selects for CCS811_I2C supporting CCS811 */ - location-sda = ; - location-scl = ; + pinctrl-0 = <&i2c1_default>; + pinctrl-names = "default"; status = "okay"; ccs811: ccs811@5a { diff --git a/boards/silabs/efr32xg24_dk2601b/efr32xg24_dk2601b.dts b/boards/silabs/efr32xg24_dk2601b/efr32xg24_dk2601b.dts index 2bc6f6253a..3617191ed5 100644 --- a/boards/silabs/efr32xg24_dk2601b/efr32xg24_dk2601b.dts +++ b/boards/silabs/efr32xg24_dk2601b/efr32xg24_dk2601b.dts @@ -79,8 +79,8 @@ }; &i2c0 { - location-sda = ; - location-scl = ; + pinctrl-0 = <&i2c0_default>; + pinctrl-names = "default"; status = "okay"; veml6035: veml6035@29 { diff --git a/dts/arm/silabs/efr32mg24-pinctrl.dtsi b/dts/arm/silabs/efr32mg24-pinctrl.dtsi index 3c4a69aa03..c8f2e6c3c7 100644 --- a/dts/arm/silabs/efr32mg24-pinctrl.dtsi +++ b/dts/arm/silabs/efr32mg24-pinctrl.dtsi @@ -16,4 +16,13 @@ ; }; }; + + i2c0_default: i2c0_default { + group1 { + psels = , + , + , + ; + }; + }; };