Skip to content

Conversation

Smankusors
Copy link

These should addresses issues with VADC channels on the pmi8950.dtsi

  1. Missing VDD and GND channels. I think these channels are using same address as other Qualcomm's PMIC?
  2. Incorrect scaling factors for the USBIN, DCIN, and VCHG_SNS channels

wdyt? If this is okay, I would like to sent it to upstream too

Note

We can read the voltages from /sys/bus/iio/devices/

When booting msm8953-based devices, the following kernel message appears:
[ 13.090800] qcom-spmi-vadc 200f000.spmi:pmic@2:adc@3100: Please define VDD channel

It turns out we can simply copy the channel with the same address from another pmic dtsi.

Signed-off-by: Antony Kurniawan Soemardi <[email protected]>
Fix USBIN/DCIN pre-scaling from <1 4> to <1 20> and VCHG_SNS from <1 1>
to <1 3>, matching downstream hardware scaling.

Signed-off-by: Antony Kurniawan Soemardi <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant