Commit 8013295
arm64: dts: qcom: sc8280xp: Add label property to vadc channel nodes
For uniquely identifying the vadc channels, label property has to be used.
The initial commit adding vadc support assumed that the driver will use the
unit address along with the node name to identify the channels. But this
assumption is now broken by,
commit 701c875 ("iio: adc: qcom-spmi-adc5: Fix the channel name") that
stripped unit address from channel names. This results in probe failure of
the vadc driver:
[ 8.380370] iio iio:device0: tried to double register : in_temp_pmic-die-temp_input
[ 8.380383] qcom-spmi-adc5 c440000.spmi:pmic@0:adc@3100: Failed to register sysfs interfaces
[ 8.380386] qcom-spmi-adc5: probe of c440000.spmi:pmic@0:adc@3100 failed with error -16
Hence, let's get rid of the assumption about drivers and rely on label
property to uniquely identify the channels.
The labels are derived from the schematics for each PMIC. For internal adc
channels such as die and xo, the PMIC names are used as a prefix.
Fixes: 7c01513 ("arm64: dts: qcom: sc8280xp-x13s: Add PM8280_{1/2} ADC_TM5 channels")
Fixes: 9d41cd1 ("arm64: dts: qcom: sc8280xp-x13s: Add PMR735A VADC channel")
Fixes: 3375151 ("arm64: dts: qcom: sc8280xp-x13s: Add PM8280_{1/2} VADC channels")
Fixes: 9a6b304 ("arm64: dts: qcom: sc8280xp-x13s: Add PMK8280 VADC channels")
Reported-by: Steev Klimaszewski <steev@kali.org>
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20230211052415.14581-1-manivannan.sadhasivam@linaro.org1 parent 672a58f commit 8013295
1 file changed
Lines changed: 13 additions & 0 deletions
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
772 | 772 | | |
773 | 773 | | |
774 | 774 | | |
| 775 | + | |
775 | 776 | | |
776 | 777 | | |
777 | 778 | | |
778 | 779 | | |
779 | 780 | | |
780 | 781 | | |
| 782 | + | |
781 | 783 | | |
782 | 784 | | |
783 | 785 | | |
784 | 786 | | |
785 | 787 | | |
| 788 | + | |
786 | 789 | | |
787 | 790 | | |
788 | 791 | | |
789 | 792 | | |
790 | 793 | | |
791 | 794 | | |
| 795 | + | |
792 | 796 | | |
793 | 797 | | |
794 | 798 | | |
795 | 799 | | |
796 | 800 | | |
797 | 801 | | |
| 802 | + | |
798 | 803 | | |
799 | 804 | | |
800 | 805 | | |
801 | 806 | | |
802 | 807 | | |
803 | 808 | | |
| 809 | + | |
804 | 810 | | |
805 | 811 | | |
806 | 812 | | |
807 | 813 | | |
808 | 814 | | |
809 | 815 | | |
| 816 | + | |
810 | 817 | | |
811 | 818 | | |
812 | 819 | | |
813 | 820 | | |
814 | 821 | | |
| 822 | + | |
815 | 823 | | |
816 | 824 | | |
817 | 825 | | |
818 | 826 | | |
819 | 827 | | |
820 | 828 | | |
| 829 | + | |
821 | 830 | | |
822 | 831 | | |
823 | 832 | | |
824 | 833 | | |
825 | 834 | | |
826 | 835 | | |
| 836 | + | |
827 | 837 | | |
828 | 838 | | |
829 | 839 | | |
830 | 840 | | |
831 | 841 | | |
832 | 842 | | |
| 843 | + | |
833 | 844 | | |
834 | 845 | | |
835 | 846 | | |
836 | 847 | | |
837 | 848 | | |
838 | 849 | | |
| 850 | + | |
839 | 851 | | |
840 | 852 | | |
841 | 853 | | |
842 | 854 | | |
843 | 855 | | |
| 856 | + | |
844 | 857 | | |
845 | 858 | | |
846 | 859 | | |
| |||
0 commit comments