On 10/10/25 6:21 AM, Luca Weiss wrote: > This is an RFC which implements a potential solution to get battery > temperature readings working on for example smartphones with Qualcomm > SoCs. >
... > 3. Add temperature-lookup-table as property to simple-battery > > Since the NTC is a part of the battery pack, adding a > temperature-lookup-table property to simple-battery would make sense > instead of having this lookup table be standalone in the > generic-adc-thermal node. However being able to re-use the existing code > in generic-adc-thermal lead me to the current proposal. > Did you consider creating a specific compatible string for the battery pack? Then the battery node could have the io-channels property for the ADC connected to the temperature sensor. Then a specific battery driver could handle the conversion as needed rather than filling the devicetree with conversion tables. The simple-battery bindings are already far from simple! So I would not be inclined to add more to it.

