drivers: gpio: split up driver for TLE9104 into a MFD
Split up the driver for the power train switch TLE9104 into a MFD and GPIO. Signed-off-by: Benedikt Schmidt <benedikt.schmidt@embedded-solutions.at>
This commit is contained in:
parent
46cb2ad7c0
commit
84a40778af
12 changed files with 819 additions and 446 deletions
27
dts/bindings/gpio/infineon,tle9104-gpio.yaml
Normal file
27
dts/bindings/gpio/infineon,tle9104-gpio.yaml
Normal file
|
@ -0,0 +1,27 @@
|
|||
#
|
||||
# Copyright (c) 2024 SILA Embedded Solutions GmbH
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
description: Infineon TLE9104 4-channel powertrain switch GPIO instance
|
||||
|
||||
compatible: "infineon,tle9104-gpio"
|
||||
|
||||
include: gpio-controller.yaml
|
||||
|
||||
on-bus: tle9104
|
||||
|
||||
properties:
|
||||
"#gpio-cells":
|
||||
const: 2
|
||||
|
||||
ngpios:
|
||||
type: int
|
||||
required: true
|
||||
const: 4
|
||||
description: Number of GPIOs supported
|
||||
|
||||
gpio-cells:
|
||||
- pin
|
||||
- flags
|
|
@ -1,49 +0,0 @@
|
|||
#
|
||||
# Copyright (c) 2023 SILA Embedded Solutions GmbH
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
description: Infineon TLE9104 4-channel powertrain switch
|
||||
|
||||
compatible: "infineon,tle9104"
|
||||
|
||||
include: [gpio-controller.yaml, spi-device.yaml]
|
||||
|
||||
properties:
|
||||
"#gpio-cells":
|
||||
const: 2
|
||||
|
||||
ngpios:
|
||||
type: int
|
||||
required: true
|
||||
const: 4
|
||||
description: Number of GPIOs supported
|
||||
|
||||
en-gpios:
|
||||
type: phandle-array
|
||||
description: "GPIO for enable"
|
||||
|
||||
resn-gpios:
|
||||
type: phandle-array
|
||||
description: "GPIO for reset"
|
||||
|
||||
in1-gpios:
|
||||
type: phandle-array
|
||||
description: "GPIO for controlling OUT1"
|
||||
|
||||
in2-gpios:
|
||||
type: phandle-array
|
||||
description: "GPIO for controlling OUT2"
|
||||
|
||||
in3-gpios:
|
||||
type: phandle-array
|
||||
description: "GPIO for controlling OUT3"
|
||||
|
||||
in4-gpios:
|
||||
type: phandle-array
|
||||
description: "GPIO for controlling OUT4"
|
||||
|
||||
gpio-cells:
|
||||
- pin
|
||||
- flags
|
78
dts/bindings/mfd/infineon,tle9104.yaml
Normal file
78
dts/bindings/mfd/infineon,tle9104.yaml
Normal file
|
@ -0,0 +1,78 @@
|
|||
#
|
||||
# Copyright (c) 2024 SILA Embedded Solutions GmbH
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
description: Infineon TLE9104 4-channel powertrain switch
|
||||
|
||||
compatible: "infineon,tle9104"
|
||||
|
||||
include: spi-device.yaml
|
||||
|
||||
bus: tle9104
|
||||
|
||||
properties:
|
||||
en-gpios:
|
||||
type: phandle-array
|
||||
description: "GPIO for enable"
|
||||
|
||||
resn-gpios:
|
||||
type: phandle-array
|
||||
description: "GPIO for reset"
|
||||
|
||||
in1-gpios:
|
||||
type: phandle-array
|
||||
description: "GPIO for controlling OUT1"
|
||||
|
||||
in2-gpios:
|
||||
type: phandle-array
|
||||
description: "GPIO for controlling OUT2"
|
||||
|
||||
in3-gpios:
|
||||
type: phandle-array
|
||||
description: "GPIO for controlling OUT3"
|
||||
|
||||
in4-gpios:
|
||||
type: phandle-array
|
||||
description: "GPIO for controlling OUT4"
|
||||
|
||||
diagnostic-filter-time:
|
||||
type: int
|
||||
default: 500
|
||||
enum:
|
||||
- 200
|
||||
- 500
|
||||
- 1000
|
||||
- 2000
|
||||
description:
|
||||
diagnostic filter time in us,
|
||||
default matches power on reset value
|
||||
|
||||
overcurrent-shutdown-delay-time:
|
||||
type: int
|
||||
default: 60
|
||||
enum:
|
||||
- 60
|
||||
- 120
|
||||
- 500
|
||||
- 1000
|
||||
- 5000
|
||||
- 10000
|
||||
- 20000
|
||||
- 30000
|
||||
description:
|
||||
overcurrent shutdown delay time in us,
|
||||
default matches power on reset value
|
||||
|
||||
overcurrent-shutdown-threshold:
|
||||
type: int
|
||||
default: 2000
|
||||
enum:
|
||||
- 1000
|
||||
- 2000
|
||||
- 3000
|
||||
- 4000
|
||||
description:
|
||||
overcurrent shutdown threshold in mA,
|
||||
default matches power on reset value
|
Loading…
Add table
Add a link
Reference in a new issue