First off, thank you for getting the usb-power/ac-power/battery support upstreamed recently.
I have a custom board with an AXP818 PMIC which is very similar to the Cubietruck5 and has support for a managed battery. However the battery does not require any temperature sensing. In the recently added ADC support for the AXP813 the adc_en1_mask includes BIT(0) for register 0x82 which enables "TS pin input to ADC enable". As the TS pin in our design is not connected this does not allow the battery to be charged as the temperature is deemed out of spec. To enable the battery I must set this bit to 0 in order to turn off the temperature sensing. My problem is that I'm not sure where in the code I should be adding this, I believe it is either in the ADC driver or in the battery driver, and that a device-tree property should be added, possibly something along the lines of "x-powers,ts-pin-enable" with it defaulting to enabled? Any thoughts on the matter would be appreciated as I'd like to implement this in an upstream acceptable manner. Regards, Jack. -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web, visit https://groups.google.com/d/msgid/linux-sunxi/8b36603a-70fb-5ec7-0c4b-bfda2b422d45%40embed.me.uk. For more options, visit https://groups.google.com/d/optout.
