devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 4/7] dt-bindings: mfd: cirrus,cs40l26: Support for CS40L26
       [not found] <20250131195639.1784933-1-ftreven@opensource.cirrus.com>
@ 2025-01-31 19:56 ` Fred Treven
  2025-02-02 14:04   ` Krzysztof Kozlowski
  0 siblings, 1 reply; 4+ messages in thread
From: Fred Treven @ 2025-01-31 19:56 UTC (permalink / raw)
  To: Lee Jones, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Fred Treven, patches
  Cc: devicetree, linux-kernel

Introduce required basic devicetree parameters for the
initial commit of CS40L26.

Signed-off-by: Fred Treven <ftreven@opensource.cirrus.com>
---
 .../bindings/mfd/cirrus,cs40l26.yaml          | 81 +++++++++++++++++++
 MAINTAINERS                                   |  4 +-
 2 files changed, 83 insertions(+), 2 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/mfd/cirrus,cs40l26.yaml

diff --git a/Documentation/devicetree/bindings/mfd/cirrus,cs40l26.yaml b/Documentation/devicetree/bindings/mfd/cirrus,cs40l26.yaml
new file mode 100644
index 000000000000..a3cccb1a2d92
--- /dev/null
+++ b/Documentation/devicetree/bindings/mfd/cirrus,cs40l26.yaml
@@ -0,0 +1,81 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/mfd/cirrus,cs40l26.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Cirrus Logic CS40L26 Boosted Haptic Amplifier
+
+maintainers:
+  - Fred Treven <ftreven@opensource.cirrus.com>
+  - patches@opensource.cirrus.com
+
+description:
+  CS40L26 is a Boosted Haptic Driver with Integrated DSP, Waveform Memory,
+  Advanced Closed Loop Algorithms, and LRA protection
+
+properties:
+  compatible:
+    enum:
+      - cirrus,cs40l26a
+      - cirrus,cs40l27b
+
+  reg:
+    maxItems: 1
+
+  interrupts:
+    maxItems: 1
+
+  reset-gpios:
+    maxItems: 1
+
+  va-supply:
+    description: Regulator for VA analog voltage
+
+  vp-supply:
+    description: Regulator for VP voltage
+
+  cirrus,bst-ipk-microamp:
+    description:
+      Maximum current that can be drawn by the device's boost converter.
+    multipleOf: 50000
+    minimum: 1600000
+    maximum: 4800000
+    default: 4500000
+
+  cirrus,bst-ctl-microvolt:
+    description: Maximum target voltage to which DSP may increase the VBST supply.
+    multipleOf: 50000
+    minimum: 2550000
+    maximum: 11000000
+    default: 11000000
+
+required:
+  - compatible
+  - reg
+  - interrupts
+  - reset-gpios
+
+additionalProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/gpio/gpio.h>
+    #include <dt-bindings/interrupt-controller/irq.h>
+
+    i2c {
+      #address-cells = <1>;
+      #size-cells = <0>;
+
+      haptic-driver@58 {
+        compatible = "cirrus,cs40l26a";
+        reg = <0x58>;
+        interrupt-parent = <&gpio>;
+        interrupts = <57 IRQ_TYPE_LEVEL_LOW>;
+        reset-gpios = <&gpio 54 GPIO_ACTIVE_LOW>;
+        va-supply = <&vreg>;
+        vp-supply = <&vreg>;
+        cirrus,bst-ctl-microvolt = <2600000>;
+        cirrus,bst-ipk-microamp = <1650000>;
+      };
+    };
diff --git a/MAINTAINERS b/MAINTAINERS
index bc8ce7af3303..9c4105bf0a32 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -5546,11 +5546,11 @@ F:	sound/soc/codecs/cs*
 
 CIRRUS LOGIC HAPTIC DRIVERS
 M:	James Ogletree <jogletre@opensource.cirrus.com>
-M:	Fred Treven <fred.treven@cirrus.com>
+M:	Fred Treven <ftreven@opensource.cirrus.com>
 M:	Ben Bright <ben.bright@cirrus.com>
 L:	patches@opensource.cirrus.com
 S:	Supported
-F:	Documentation/devicetree/bindings/input/cirrus,cs40l50.yaml
+F:	Documentation/devicetree/bindings/input/cirrus,cs40l*
 F:	drivers/input/misc/cs40l*
 F:	drivers/mfd/cs40l*
 F:	include/linux/mfd/cs40l*
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 4/7] dt-bindings: mfd: cirrus,cs40l26: Support for CS40L26
  2025-01-31 19:56 ` [PATCH 4/7] dt-bindings: mfd: cirrus,cs40l26: Support for CS40L26 Fred Treven
@ 2025-02-02 14:04   ` Krzysztof Kozlowski
  2025-02-04 22:18     ` Fredrik Treven
  0 siblings, 1 reply; 4+ messages in thread
From: Krzysztof Kozlowski @ 2025-02-02 14:04 UTC (permalink / raw)
  To: Fred Treven
  Cc: Lee Jones, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	patches, devicetree, linux-kernel

On Fri, Jan 31, 2025 at 01:56:35PM -0600, Fred Treven wrote:
> Introduce required basic devicetree parameters for the
> initial commit of CS40L26.


This looks like soundy thing, why isn't this in sound? but title
mentions haptic, so maybe input?

Anyway, not MFD.


> 
> Signed-off-by: Fred Treven <ftreven@opensource.cirrus.com>
> ---
>  .../bindings/mfd/cirrus,cs40l26.yaml          | 81 +++++++++++++++++++
>  MAINTAINERS                                   |  4 +-
>  2 files changed, 83 insertions(+), 2 deletions(-)
>  create mode 100644 Documentation/devicetree/bindings/mfd/cirrus,cs40l26.yaml
> 
> diff --git a/Documentation/devicetree/bindings/mfd/cirrus,cs40l26.yaml b/Documentation/devicetree/bindings/mfd/cirrus,cs40l26.yaml
> new file mode 100644
> index 000000000000..a3cccb1a2d92
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/mfd/cirrus,cs40l26.yaml
> @@ -0,0 +1,81 @@
> +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/mfd/cirrus,cs40l26.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Cirrus Logic CS40L26 Boosted Haptic Amplifier
> +
> +maintainers:
> +  - Fred Treven <ftreven@opensource.cirrus.com>
> +  - patches@opensource.cirrus.com
> +
> +description:
> +  CS40L26 is a Boosted Haptic Driver with Integrated DSP, Waveform Memory,
> +  Advanced Closed Loop Algorithms, and LRA protection
> +
> +properties:
> +  compatible:
> +    enum:
> +      - cirrus,cs40l26a
> +      - cirrus,cs40l27b
> +
> +  reg:
> +    maxItems: 1
> +
> +  interrupts:
> +    maxItems: 1
> +
> +  reset-gpios:
> +    maxItems: 1
> +
> +  va-supply:
> +    description: Regulator for VA analog voltage
> +
> +  vp-supply:
> +    description: Regulator for VP voltage
> +
> +  cirrus,bst-ipk-microamp:
> +    description:
> +      Maximum current that can be drawn by the device's boost converter.
> +    multipleOf: 50000
> +    minimum: 1600000
> +    maximum: 4800000
> +    default: 4500000
> +
> +  cirrus,bst-ctl-microvolt:
> +    description: Maximum target voltage to which DSP may increase the VBST supply.

There is no such supply as VBST (see above, I see only VA and VP), so is this output?

> +    multipleOf: 50000
> +    minimum: 2550000
> +    maximum: 11000000
> +    default: 11000000
> +
> +required:
> +  - compatible
> +  - reg
> +  - interrupts
> +  - reset-gpios

Supplies as well



> +
> +additionalProperties: false
> +
> +examples:
> +  - |
> +    #include <dt-bindings/gpio/gpio.h>
> +    #include <dt-bindings/interrupt-controller/irq.h>
> +
> +    i2c {
> +      #address-cells = <1>;
> +      #size-cells = <0>;
> +
> +      haptic-driver@58 {
> +        compatible = "cirrus,cs40l26a";
> +        reg = <0x58>;
> +        interrupt-parent = <&gpio>;
> +        interrupts = <57 IRQ_TYPE_LEVEL_LOW>;
> +        reset-gpios = <&gpio 54 GPIO_ACTIVE_LOW>;
> +        va-supply = <&vreg>;
> +        vp-supply = <&vreg>;
> +        cirrus,bst-ctl-microvolt = <2600000>;
> +        cirrus,bst-ipk-microamp = <1650000>;
> +      };
> +    };
> diff --git a/MAINTAINERS b/MAINTAINERS
> index bc8ce7af3303..9c4105bf0a32 100644
> --- a/MAINTAINERS
> +++ b/MAINTAINERS
> @@ -5546,11 +5546,11 @@ F:	sound/soc/codecs/cs*
>  
>  CIRRUS LOGIC HAPTIC DRIVERS
>  M:	James Ogletree <jogletre@opensource.cirrus.com>
> -M:	Fred Treven <fred.treven@cirrus.com>
> +M:	Fred Treven <ftreven@opensource.cirrus.com>
>  M:	Ben Bright <ben.bright@cirrus.com>
>  L:	patches@opensource.cirrus.com
>  S:	Supported
> -F:	Documentation/devicetree/bindings/input/cirrus,cs40l50.yaml
> +F:	Documentation/devicetree/bindings/input/cirrus,cs40l*

So input or mfd? I don't understand this.

Best regards,
Krzysztof


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 4/7] dt-bindings: mfd: cirrus,cs40l26: Support for CS40L26
  2025-02-02 14:04   ` Krzysztof Kozlowski
@ 2025-02-04 22:18     ` Fredrik Treven
  2025-02-05  7:29       ` Krzysztof Kozlowski
  0 siblings, 1 reply; 4+ messages in thread
From: Fredrik Treven @ 2025-02-04 22:18 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Lee Jones, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	patches, devicetree, linux-kernel

On 2/2/25 08:04, Krzysztof Kozlowski wrote:
> On Fri, Jan 31, 2025 at 01:56:35PM -0600, Fred Treven wrote:
>> Introduce required basic devicetree parameters for the
>> initial commit of CS40L26.
> 
> 
> This looks like soundy thing, why isn't this in sound? but title
> mentions haptic, so maybe input?
> 
> Anyway, not MFD.
> 
> 
You are correct; this belongs in input. I will resolve this in v2
after I have done my resend to properly thread the patches in this set.
>>
>> Signed-off-by: Fred Treven <ftreven@opensource.cirrus.com>
>> ---
>>   .../bindings/mfd/cirrus,cs40l26.yaml          | 81 +++++++++++++++++++
>>   MAINTAINERS                                   |  4 +-
>>   2 files changed, 83 insertions(+), 2 deletions(-)
>>   create mode 100644 Documentation/devicetree/bindings/mfd/cirrus,cs40l26.yaml
>>
>> diff --git a/Documentation/devicetree/bindings/mfd/cirrus,cs40l26.yaml b/Documentation/devicetree/bindings/mfd/cirrus,cs40l26.yaml
>> new file mode 100644
>> index 000000000000..a3cccb1a2d92
>> --- /dev/null
>> +++ b/Documentation/devicetree/bindings/mfd/cirrus,cs40l26.yaml
>> @@ -0,0 +1,81 @@
>> +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
>> +%YAML 1.2
>> +---
>> +$id: http://devicetree.org/schemas/mfd/cirrus,cs40l26.yaml#
>> +$schema: http://devicetree.org/meta-schemas/core.yaml#
>> +
>> +title: Cirrus Logic CS40L26 Boosted Haptic Amplifier
>> +
>> +maintainers:
>> +  - Fred Treven <ftreven@opensource.cirrus.com>
>> +  - patches@opensource.cirrus.com
>> +
>> +description:
>> +  CS40L26 is a Boosted Haptic Driver with Integrated DSP, Waveform Memory,
>> +  Advanced Closed Loop Algorithms, and LRA protection
>> +
>> +properties:
>> +  compatible:
>> +    enum:
>> +      - cirrus,cs40l26a
>> +      - cirrus,cs40l27b
>> +
>> +  reg:
>> +    maxItems: 1
>> +
>> +  interrupts:
>> +    maxItems: 1
>> +
>> +  reset-gpios:
>> +    maxItems: 1
>> +
>> +  va-supply:
>> +    description: Regulator for VA analog voltage
>> +
>> +  vp-supply:
>> +    description: Regulator for VP voltage
>> +
>> +  cirrus,bst-ipk-microamp:
>> +    description:
>> +      Maximum current that can be drawn by the device's boost converter.
>> +    multipleOf: 50000
>> +    minimum: 1600000
>> +    maximum: 4800000
>> +    default: 4500000
>> +
>> +  cirrus,bst-ctl-microvolt:
>> +    description: Maximum target voltage to which DSP may increase the VBST supply.
> 
> There is no such supply as VBST (see above, I see only VA and VP), so is this output?
VBST is not a supply of the device. Rather, it is configuring the device for
an external boost circuit.
> 
>> +    multipleOf: 50000
>> +    minimum: 2550000
>> +    maximum: 11000000
>> +    default: 11000000
>> +
>> +required:
>> +  - compatible
>> +  - reg
>> +  - interrupts
>> +  - reset-gpios
> 
> Supplies as well
> 
> 
I will add the supplies here in v2 after I have done my resend to fix the
threading of the patches in this set.
> 
>> +
>> +additionalProperties: false
>> +
>> +examples:
>> +  - |
>> +    #include <dt-bindings/gpio/gpio.h>
>> +    #include <dt-bindings/interrupt-controller/irq.h>
>> +
>> +    i2c {
>> +      #address-cells = <1>;
>> +      #size-cells = <0>;
>> +
>> +      haptic-driver@58 {
>> +        compatible = "cirrus,cs40l26a";
>> +        reg = <0x58>;
>> +        interrupt-parent = <&gpio>;
>> +        interrupts = <57 IRQ_TYPE_LEVEL_LOW>;
>> +        reset-gpios = <&gpio 54 GPIO_ACTIVE_LOW>;
>> +        va-supply = <&vreg>;
>> +        vp-supply = <&vreg>;
>> +        cirrus,bst-ctl-microvolt = <2600000>;
>> +        cirrus,bst-ipk-microamp = <1650000>;
>> +      };
>> +    };
>> diff --git a/MAINTAINERS b/MAINTAINERS
>> index bc8ce7af3303..9c4105bf0a32 100644
>> --- a/MAINTAINERS
>> +++ b/MAINTAINERS
>> @@ -5546,11 +5546,11 @@ F:	sound/soc/codecs/cs*
>>   
>>   CIRRUS LOGIC HAPTIC DRIVERS
>>   M:	James Ogletree <jogletre@opensource.cirrus.com>
>> -M:	Fred Treven <fred.treven@cirrus.com>
>> +M:	Fred Treven <ftreven@opensource.cirrus.com>
>>   M:	Ben Bright <ben.bright@cirrus.com>
>>   L:	patches@opensource.cirrus.com
>>   S:	Supported
>> -F:	Documentation/devicetree/bindings/input/cirrus,cs40l50.yaml
>> +F:	Documentation/devicetree/bindings/input/cirrus,cs40l*
> 
> So input or mfd? I don't understand this.
The driver is mfd that utilizes both ASoC and Input FF subsystems.
> 
> Best regards,
> Krzysztof
> 


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 4/7] dt-bindings: mfd: cirrus,cs40l26: Support for CS40L26
  2025-02-04 22:18     ` Fredrik Treven
@ 2025-02-05  7:29       ` Krzysztof Kozlowski
  0 siblings, 0 replies; 4+ messages in thread
From: Krzysztof Kozlowski @ 2025-02-05  7:29 UTC (permalink / raw)
  To: Fredrik Treven
  Cc: Lee Jones, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	patches, devicetree, linux-kernel

On 04/02/2025 23:18, Fredrik Treven wrote:
>>> diff --git a/MAINTAINERS b/MAINTAINERS
>>> index bc8ce7af3303..9c4105bf0a32 100644
>>> --- a/MAINTAINERS
>>> +++ b/MAINTAINERS
>>> @@ -5546,11 +5546,11 @@ F:	sound/soc/codecs/cs*
>>>   
>>>   CIRRUS LOGIC HAPTIC DRIVERS
>>>   M:	James Ogletree <jogletre@opensource.cirrus.com>
>>> -M:	Fred Treven <fred.treven@cirrus.com>
>>> +M:	Fred Treven <ftreven@opensource.cirrus.com>
>>>   M:	Ben Bright <ben.bright@cirrus.com>
>>>   L:	patches@opensource.cirrus.com
>>>   S:	Supported
>>> -F:	Documentation/devicetree/bindings/input/cirrus,cs40l50.yaml
>>> +F:	Documentation/devicetree/bindings/input/cirrus,cs40l*
>>
>> So input or mfd? I don't understand this.
> The driver is mfd that utilizes both ASoC and Input FF subsystems.

And path here is different.

Best regards,
Krzysztof

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-02-05  7:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20250131195639.1784933-1-ftreven@opensource.cirrus.com>
2025-01-31 19:56 ` [PATCH 4/7] dt-bindings: mfd: cirrus,cs40l26: Support for CS40L26 Fred Treven
2025-02-02 14:04   ` Krzysztof Kozlowski
2025-02-04 22:18     ` Fredrik Treven
2025-02-05  7:29       ` Krzysztof Kozlowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).