* [PATCH] dt-bindings: power: supply: bq256xx: Add ts-ignore property
@ 2023-03-09 2:39 Hermes Zhang
2023-03-09 10:12 ` Krzysztof Kozlowski
0 siblings, 1 reply; 4+ messages in thread
From: Hermes Zhang @ 2023-03-09 2:39 UTC (permalink / raw)
To: Sebastian Reichel, Rob Herring, Krzysztof Kozlowski, Andrew Davis
Cc: kernel, Hermes Zhang, linux-pm, devicetree, linux-kernel
Add a new property: ts-ignore to allow user to enable the TS_IGNORE flag
in chip. Ignore TS pin will allow user to control the charging
parameters instead of the default JEITA profile in chip.
Signed-off-by: Hermes Zhang <chenhuiz@axis.com>
---
Documentation/devicetree/bindings/power/supply/bq256xx.yaml | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/Documentation/devicetree/bindings/power/supply/bq256xx.yaml b/Documentation/devicetree/bindings/power/supply/bq256xx.yaml
index 82f382a7ffb3..74fd48f4bec5 100644
--- a/Documentation/devicetree/bindings/power/supply/bq256xx.yaml
+++ b/Documentation/devicetree/bindings/power/supply/bq256xx.yaml
@@ -68,6 +68,12 @@ properties:
Interrupt sends an active low, 256 μs pulse to host to report the charger
device status and faults.
+ ts-ignore:
+ type: boolean
+ description: |
+ If this property is set, the TS_IGNORE flag will be set to 1 which means
+ will not apply JEITA profile during the charging.
+
required:
- compatible
- reg
--
2.30.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] dt-bindings: power: supply: bq256xx: Add ts-ignore property
2023-03-09 2:39 [PATCH] dt-bindings: power: supply: bq256xx: Add ts-ignore property Hermes Zhang
@ 2023-03-09 10:12 ` Krzysztof Kozlowski
2023-03-10 3:48 ` Hermes Zhang
0 siblings, 1 reply; 4+ messages in thread
From: Krzysztof Kozlowski @ 2023-03-09 10:12 UTC (permalink / raw)
To: Hermes Zhang, Sebastian Reichel, Rob Herring, Krzysztof Kozlowski,
Andrew Davis
Cc: kernel, linux-pm, devicetree, linux-kernel
On 09/03/2023 03:39, Hermes Zhang wrote:
> Add a new property: ts-ignore to allow user to enable the TS_IGNORE flag
> in chip. Ignore TS pin will allow user to control the charging
> parameters instead of the default JEITA profile in chip.
You miss users of it.
>
> Signed-off-by: Hermes Zhang <chenhuiz@axis.com>
> ---
> Documentation/devicetree/bindings/power/supply/bq256xx.yaml | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/power/supply/bq256xx.yaml b/Documentation/devicetree/bindings/power/supply/bq256xx.yaml
> index 82f382a7ffb3..74fd48f4bec5 100644
> --- a/Documentation/devicetree/bindings/power/supply/bq256xx.yaml
> +++ b/Documentation/devicetree/bindings/power/supply/bq256xx.yaml
> @@ -68,6 +68,12 @@ properties:
> Interrupt sends an active low, 256 μs pulse to host to report the charger
> device status and faults.
>
> + ts-ignore:
Missing vendor prefix... is this generic property? ts-ignore is very
cryptic. You should describe here rather desired system characteristic.
Why anyone would need to use it per-board level?
> + type: boolean
> + description: |
> + If this property is set, the TS_IGNORE flag will be set to 1 which means
> + will not apply JEITA profile during the charging.> +
> required:
> - compatible
> - reg
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] dt-bindings: power: supply: bq256xx: Add ts-ignore property
2023-03-09 10:12 ` Krzysztof Kozlowski
@ 2023-03-10 3:48 ` Hermes Zhang
2023-03-10 8:06 ` Krzysztof Kozlowski
0 siblings, 1 reply; 4+ messages in thread
From: Hermes Zhang @ 2023-03-10 3:48 UTC (permalink / raw)
To: Krzysztof Kozlowski, Sebastian Reichel, Rob Herring,
Krzysztof Kozlowski, Andrew Davis
Cc: kernel, linux-pm, devicetree, linux-kernel
On 2023/3/9 18:12, Krzysztof Kozlowski wrote:
> On 09/03/2023 03:39, Hermes Zhang wrote:
>> Add a new property: ts-ignore to allow user to enable the TS_IGNORE flag
>> in chip. Ignore TS pin will allow user to control the charging
>> parameters instead of the default JEITA profile in chip.
> You miss users of it.
Could you give some more info about what I missed?
> @@ -68,6 +68,12 @@ properties:
> Interrupt sends an active low, 256 μs pulse to host to report the charger
> device status and faults.
>
> + ts-ignore:
> Missing vendor prefix... is this generic property? ts-ignore is very
> cryptic. You should describe here rather desired system characteristic.
> Why anyone would need to use it per-board level?
OK, I will fix it. Will "ti,ignore-ts-pin" be better? Yes, it's a
generic. To disable the TS pin, actually we also could do it from HW,
but from software, it could be more flexble. But if HW already disable
it, then you don't need to do it again from dts.
BTW, I find I may miss some information here: the ts-ignore feature is
not support by all the chips list here, I will add some comment for
which chip support it.
Best Regards,
Hermes
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] dt-bindings: power: supply: bq256xx: Add ts-ignore property
2023-03-10 3:48 ` Hermes Zhang
@ 2023-03-10 8:06 ` Krzysztof Kozlowski
0 siblings, 0 replies; 4+ messages in thread
From: Krzysztof Kozlowski @ 2023-03-10 8:06 UTC (permalink / raw)
To: Hermes Zhang, Sebastian Reichel, Rob Herring, Krzysztof Kozlowski,
Andrew Davis
Cc: kernel, linux-pm, devicetree, linux-kernel
On 10/03/2023 04:48, Hermes Zhang wrote:
> On 2023/3/9 18:12, Krzysztof Kozlowski wrote:
>> On 09/03/2023 03:39, Hermes Zhang wrote:
>>> Add a new property: ts-ignore to allow user to enable the TS_IGNORE flag
>>> in chip. Ignore TS pin will allow user to control the charging
>>> parameters instead of the default JEITA profile in chip.
>> You miss users of it.
> Could you give some more info about what I missed?
Users. DTS and driver code.
>> @@ -68,6 +68,12 @@ properties:
>> Interrupt sends an active low, 256 μs pulse to host to report the charger
>> device status and faults.
>>
>> + ts-ignore:
>> Missing vendor prefix... is this generic property? ts-ignore is very
>> cryptic. You should describe here rather desired system characteristic.
>> Why anyone would need to use it per-board level?
>
> OK, I will fix it. Will "ti,ignore-ts-pin" be better?
No, because does not describe system characteristic. Read again my last
two sentences.
> Yes, it's a
> generic. To disable the TS pin, actually we also could do it from HW,
> but from software, it could be more flexble. But if HW already disable
> it, then you don't need to do it again from dts.
If this is configurable from HW, why this should be in DT?
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-03-10 8:07 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-09 2:39 [PATCH] dt-bindings: power: supply: bq256xx: Add ts-ignore property Hermes Zhang
2023-03-09 10:12 ` Krzysztof Kozlowski
2023-03-10 3:48 ` Hermes Zhang
2023-03-10 8:06 ` 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).