Message ID | 20230323033012.416953-1-chenhuiz@axis.com |
---|---|
State | Superseded, archived |
Headers | show |
Series | [v2,1/2] dt-bindings: power: supply: bq256xx: Add ti,no-thermistor property | expand |
Context | Check | Description |
---|---|---|
robh/checkpatch | success | |
robh/patch-applied | success | |
robh/dtbs-check | warning | build log |
robh/dt-meta-schema | success |
On 23/03/2023 04:30, Hermes Zhang wrote: > Add a new property ti,no-thermistor to indicate that no thermistor is > connected to the TS pin of the chip. > > Signed-off-by: Hermes Zhang <chenhuiz@axis.com> > --- > > Notes: > v2: change property name to ti,no-thermistor > > .../bindings/power/supply/bq256xx.yaml | 19 +++++++++++++++++++ > 1 file changed, 19 insertions(+) > > diff --git a/Documentation/devicetree/bindings/power/supply/bq256xx.yaml b/Documentation/devicetree/bindings/power/supply/bq256xx.yaml > index 82f382a7ffb3..ab9ae6ca7700 100644 > --- a/Documentation/devicetree/bindings/power/supply/bq256xx.yaml > +++ b/Documentation/devicetree/bindings/power/supply/bq256xx.yaml > @@ -68,11 +68,30 @@ properties: > Interrupt sends an active low, 256 μs pulse to host to report the charger > device status and faults. > > + ti,no-thermistor: > + type: boolean > + description: | You can drop '|'. Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Best regards, Krzysztof
diff --git a/Documentation/devicetree/bindings/power/supply/bq256xx.yaml b/Documentation/devicetree/bindings/power/supply/bq256xx.yaml index 82f382a7ffb3..ab9ae6ca7700 100644 --- a/Documentation/devicetree/bindings/power/supply/bq256xx.yaml +++ b/Documentation/devicetree/bindings/power/supply/bq256xx.yaml @@ -68,11 +68,30 @@ properties: Interrupt sends an active low, 256 μs pulse to host to report the charger device status and faults. + ti,no-thermistor: + type: boolean + description: | + Indicates that no thermistor is connected to the TS pin + required: - compatible - reg - monitored-battery +allOf: + - if: + properties: + compatible: + contains: + enum: + - ti,bq25600 + - ti,bq25601 + - ti,bq25600d + - ti,bq25601d + then: + properties: + ti,no-thermistor: false + additionalProperties: false examples:
Add a new property ti,no-thermistor to indicate that no thermistor is connected to the TS pin of the chip. Signed-off-by: Hermes Zhang <chenhuiz@axis.com> --- Notes: v2: change property name to ti,no-thermistor .../bindings/power/supply/bq256xx.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+)