From f66baea042c37161c504922600006cf04bdb1b45 Mon Sep 17 00:00:00 2001 From: Jilay Pandya Date: Sat, 11 Jan 2025 15:07:54 +0100 Subject: [PATCH 1/2] dts: bindings: i2c: replace underscore with hyphen As per device tree specification, use hyphen in device tree properties Signed-off-by: Jilay Pandya --- .../mec1501modular_assy6885/mec1501modular_assy6885.dts | 4 ++-- .../microchip/mec15xxevb_assy6853/mec15xxevb_assy6853.dts | 6 +++--- .../microchip/mec172xevb_assy6906/mec172xevb_assy6906.dts | 6 +++--- .../mec172xmodular_assy6930/mec172xmodular_assy6930.dts | 6 +++--- dts/bindings/i2c/microchip,xec-i2c-v2.yaml | 2 +- dts/bindings/i2c/microchip,xec-i2c.yaml | 2 +- 6 files changed, 13 insertions(+), 13 deletions(-) diff --git a/boards/microchip/mec1501modular_assy6885/mec1501modular_assy6885.dts b/boards/microchip/mec1501modular_assy6885/mec1501modular_assy6885.dts index 856069de406c..c259a7a44cdc 100644 --- a/boards/microchip/mec1501modular_assy6885/mec1501modular_assy6885.dts +++ b/boards/microchip/mec1501modular_assy6885/mec1501modular_assy6885.dts @@ -52,7 +52,7 @@ &i2c_smb_0 { status = "okay"; - port_sel = <0>; + port-sel = <0>; sda-gpios = ; scl-gpios = ; pinctrl-0 = < &i2c00_scl_gpio004 &i2c00_sda_gpio003 >; @@ -61,7 +61,7 @@ &i2c_smb_1 { status = "okay"; - port_sel = <1>; + port-sel = <1>; sda-gpios = ; scl-gpios = ; pinctrl-0 = < &i2c01_scl_gpio131 &i2c01_sda_gpio130 >; diff --git a/boards/microchip/mec15xxevb_assy6853/mec15xxevb_assy6853.dts b/boards/microchip/mec15xxevb_assy6853/mec15xxevb_assy6853.dts index 11daa0efbe37..161536c867de 100644 --- a/boards/microchip/mec15xxevb_assy6853/mec15xxevb_assy6853.dts +++ b/boards/microchip/mec15xxevb_assy6853/mec15xxevb_assy6853.dts @@ -80,7 +80,7 @@ &i2c_smb_0 { status = "okay"; - port_sel = <0>; + port-sel = <0>; sda-gpios = ; scl-gpios = ; pinctrl-0 = < &i2c00_scl_gpio004 &i2c00_sda_gpio003 >; @@ -89,7 +89,7 @@ &i2c_smb_1 { status = "okay"; - port_sel = <1>; + port-sel = <1>; sda-gpios = ; scl-gpios = ; pinctrl-0 = < &i2c01_scl_gpio131 &i2c01_sda_gpio130 >; @@ -114,7 +114,7 @@ &i2c_smb_2 { status = "okay"; - port_sel = <7>; + port-sel = <7>; sda-gpios = ; scl-gpios = ; pinctrl-0 = < &i2c07_scl_gpio013 &i2c07_sda_gpio012 >; diff --git a/boards/microchip/mec172xevb_assy6906/mec172xevb_assy6906.dts b/boards/microchip/mec172xevb_assy6906/mec172xevb_assy6906.dts index c0427d03d3de..076e84eda600 100644 --- a/boards/microchip/mec172xevb_assy6906/mec172xevb_assy6906.dts +++ b/boards/microchip/mec172xevb_assy6906/mec172xevb_assy6906.dts @@ -125,7 +125,7 @@ /* I2C */ &i2c_smb_0 { status = "okay"; - port_sel = <0>; + port-sel = <0>; pinctrl-0 = < &i2c00_scl_gpio004 &i2c00_sda_gpio003 >; pinctrl-names = "default"; @@ -145,7 +145,7 @@ &i2c_smb_1 { status = "okay"; - port_sel = <1>; + port-sel = <1>; pinctrl-0 = <&i2c01_scl_gpio131 &i2c01_sda_gpio130>; pinctrl-names = "default"; @@ -180,7 +180,7 @@ &i2c_smb_2 { status = "okay"; - port_sel = <7>; + port-sel = <7>; pinctrl-0 = <&i2c07_scl_gpio013 &i2c07_sda_gpio012>; pinctrl-names = "default"; }; diff --git a/boards/microchip/mec172xmodular_assy6930/mec172xmodular_assy6930.dts b/boards/microchip/mec172xmodular_assy6930/mec172xmodular_assy6930.dts index 94a08cd03f16..24d600dd0404 100644 --- a/boards/microchip/mec172xmodular_assy6930/mec172xmodular_assy6930.dts +++ b/boards/microchip/mec172xmodular_assy6930/mec172xmodular_assy6930.dts @@ -119,7 +119,7 @@ /* I2C */ &i2c_smb_0 { status = "okay"; - port_sel = <0>; + port-sel = <0>; pinctrl-0 = < &i2c00_scl_gpio004 &i2c00_sda_gpio003 >; pinctrl-names = "default"; @@ -139,7 +139,7 @@ &i2c_smb_1 { status = "okay"; - port_sel = <1>; + port-sel = <1>; pinctrl-0 = <&i2c01_scl_gpio131 &i2c01_sda_gpio130>; pinctrl-names = "default"; }; @@ -158,7 +158,7 @@ &i2c_smb_2 { status = "okay"; - port_sel = <7>; + port-sel = <7>; pinctrl-0 = <&i2c07_scl_gpio013 &i2c07_sda_gpio012>; pinctrl-names = "default"; }; diff --git a/dts/bindings/i2c/microchip,xec-i2c-v2.yaml b/dts/bindings/i2c/microchip,xec-i2c-v2.yaml index 619e8e86231d..b1f686a2905c 100644 --- a/dts/bindings/i2c/microchip,xec-i2c-v2.yaml +++ b/dts/bindings/i2c/microchip,xec-i2c-v2.yaml @@ -11,7 +11,7 @@ properties: reg: required: true - port_sel: + port-sel: type: int description: soc block mapping to pin required: true diff --git a/dts/bindings/i2c/microchip,xec-i2c.yaml b/dts/bindings/i2c/microchip,xec-i2c.yaml index 3cb2d0fc7a03..5fd569796948 100644 --- a/dts/bindings/i2c/microchip,xec-i2c.yaml +++ b/dts/bindings/i2c/microchip,xec-i2c.yaml @@ -11,7 +11,7 @@ properties: reg: required: true - port_sel: + port-sel: type: int description: soc block mapping to pin required: true From 3692d8fa3250890c735376201e89641fdab5eb78 Mon Sep 17 00:00:00 2001 From: Jilay Pandya Date: Sat, 11 Jan 2025 15:11:28 +0100 Subject: [PATCH 2/2] docs: migration-guide-4.1: i2c: replace underscore with hyphen migration guide entry after renaming device tree properties with hyphen instead of underscore Signed-off-by: Jilay Pandya --- doc/releases/migration-guide-4.1.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/releases/migration-guide-4.1.rst b/doc/releases/migration-guide-4.1.rst index c9ee3722c84d..4b69fd25c606 100644 --- a/doc/releases/migration-guide-4.1.rst +++ b/doc/releases/migration-guide-4.1.rst @@ -186,6 +186,7 @@ I2C === * Renamed the ``compatible`` from ``nxp,imx-lpi2c`` to :dtcompatible:`nxp,lpi2c`. +* Renamed the device tree property ``port_sel`` to ``port-sel```. I2S ===