arm64: dts: qcom: sdm845-tama: Add GPIO line names for PMIC GPIOs
authorKonrad Dybcio <konrad.dybcio@linaro.org>
Thu, 24 Aug 2023 09:58:53 +0000 (11:58 +0200)
committerBjorn Andersson <andersson@kernel.org>
Wed, 20 Sep 2023 02:42:12 +0000 (19:42 -0700)
Sony ever so graciously provides GPIO line names in their downstream
kernel (though sometimes they are not 100% accurate and you can judge
that by simply looking at them and with what drivers they are used).

Add these to the Akari, Apollo & Akatsuki DTS-es to better document
the hardware.

pm8005 and pm8998 config is common for all three boards.
Apollo has VIB_LDO_EN (replacing NC) on PMI8998_GPIO_5

Akari and Akatsuki have WLC_EN_N (replacing NC) on PMI8998_GPIO_8

Akari additionally has RSVD(WLC_EN_N) (replacing) on PMI8998_GPIO_11
which sounds a bit like a forgot-to-update-documentation, but maybe
it differs between SKUs.. Time will tell, when we get to enabling the
wireless charger.

Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Link: https://lore.kernel.org/r/20230824-topic-tama_gpio-v1-2-014e9d198dce@linaro.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama-akari.dts
arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama-akatsuki.dts
arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama-apollo.dts
arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama.dtsi

index d2cb6478a8c0b86589e97e6a587ea86cc11f0297..6e65909ab582e7ef1ac1b954be6a89826ebfbd43 100644 (file)
        compatible = "sony,td4353-jdi-tama";
 };
 
+&pmi8998_gpios {
+       gpio-line-names = "NC", /* GPIO_1 */
+                         "NC",
+                         "NC",
+                         "",
+                         "NC",
+                         "NC",
+                         "",
+                         "WLC_EN_N",
+                         "NC",
+                         "NC", /* GPIO_10 */
+                         "RSVD(WLC_EN_N)",
+                         "CAM_IO_EN",
+                         "",
+                         "NC";
+};
+
 &tlmm {
        gpio-line-names = "NC", /* GPIO_0 */
                          "NC",
index a91712f6af282b7e5979aee113b21257dfea5a93..82e59e4533549e465017476a303a8197fa6041ba 100644 (file)
        /delete-property/ touch-reset-gpios;
 };
 
+&pmi8998_gpios {
+       gpio-line-names = "NC", /* GPIO_1 */
+                         "NC",
+                         "NC",
+                         "",
+                         "NC",
+                         "NC",
+                         "",
+                         "WLC_EN_N",
+                         "NC",
+                         "NC", /* GPIO_10 */
+                         "NC",
+                         "CAM_IO_EN",
+                         "",
+                         "NC";
+};
+
 &pmi8998_wled {
        status = "disabled";
 };
index 52bd83d1febf3211c9af1eea77319c6d825a00db..dc15ab1a271654313456a796626db1732c3ff146 100644 (file)
        width-mm = <56>;
 };
 
+&pmi8998_gpios {
+       gpio-line-names = "NC", /* GPIO_1 */
+                         "NC",
+                         "NC",
+                         "",
+                         "VIB_LDO_EN",
+                         "NC",
+                         "",
+                         "NC",
+                         "NC",
+                         "NC", /* GPIO_10 */
+                         "NC",
+                         "CAM_IO_EN",
+                         "",
+                         "NC";
+};
+
 &tlmm {
        gpio-line-names = "NC", /* GPIO_0 */
                          "NC",
index 7ee61b20452e28965f337e9e9acdd15059d00683..430857233967398df90767f050e8c693553131ff 100644 (file)
        status = "okay";
 };
 
+&pm8005_gpios {
+       gpio-line-names = "NC", /* GPIO_1 */
+                         "NC",
+                         "",
+                         "";
+};
+
 &pm8998_gpios {
+       gpio-line-names = "NC", /* GPIO_1 */
+                         "FOCUS_N",
+                         "",
+                         "NC",
+                         "VOL_DOWN_N",
+                         "VOL_UP_N",
+                         "SNAPSHOT_N",
+                         "NC",
+                         "FLASH_THERM",
+                         "NC", /* GPIO_10 */
+                         "LCD_ID",
+                         "RF_ID",
+                         "NC",
+                         "NC",
+                         "NC",
+                         "NC",
+                         "NC",
+                         "NC",
+                         "NC",
+                         "", /* GPIO_20 */
+                         "NFC_CLK_REQ",
+                         "",
+                         "",
+                         "",
+                         "",
+                         "";
+
        focus_n: focus-n-state {
                pins = "gpio2";
                function = PMIC_GPIO_FUNC_NORMAL;