drivers: i2c: i2c_gecko: Refactor driver to use pinctrl api
Deprecate the use of location_* properties in the i2c_gecko driver and migrate to the pinctrl api for enhanced maintainability and compliance with current standards. Signed-off-by: Arunmani Alagarsamy <arunmani.a@capgemini.com>
This commit is contained in:
parent
04931a54ee
commit
0810180135
2 changed files with 28 additions and 75 deletions
|
@ -5,7 +5,7 @@ description: Silabs Gecko I2C node
|
|||
|
||||
compatible: "silabs,gecko-i2c"
|
||||
|
||||
include: i2c-controller.yaml
|
||||
include: [i2c-controller.yaml, pinctrl-device.yaml]
|
||||
|
||||
properties:
|
||||
reg:
|
||||
|
@ -14,15 +14,8 @@ properties:
|
|||
interrupts:
|
||||
required: true
|
||||
|
||||
# Note: Not all SoC series support setting individual pin location. If this
|
||||
# is a case all location-* properties need to have identical value.
|
||||
|
||||
location-sda:
|
||||
type: array
|
||||
pinctrl-0:
|
||||
required: true
|
||||
description: SDA pin configuration defined as <location port pin>
|
||||
|
||||
location-scl:
|
||||
type: array
|
||||
pinctrl-names:
|
||||
required: true
|
||||
description: SCL pin configuration defined as <location port pin>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue