arm64: dts: qcom: sm8450-nagara: Add GPIO line names for PMIC GPIOs
authorKonrad Dybcio <konrad.dybcio@linaro.org>
Thu, 29 Dec 2022 10:32:08 +0000 (11:32 +0100)
committerBjorn Andersson <andersson@kernel.org>
Wed, 11 Jan 2023 04:06:04 +0000 (22:06 -0600)
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 PDX223&224 DTSIs to better document the hardware.

Diff between 223 and 224:
pm8350b
<    "CAM_PWR_LD_EN",
>    "NC",

pm8350c
<   "RGBC_IR_PWR_EN",
>    "NC",

Which is due to different camera power wiring on 223 and lack of a
ToF sensor on 224.

Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221229103212.984324-3-konrad.dybcio@linaro.org
arch/arm64/boot/dts/qcom/sm8450-sony-xperia-nagara-pdx223.dts
arch/arm64/boot/dts/qcom/sm8450-sony-xperia-nagara-pdx224.dts
arch/arm64/boot/dts/qcom/sm8450-sony-xperia-nagara.dtsi

index b83500316a81bd2a8647089d833b0c01df7641cd..561cd4f09ab70c1be588fc1910ccb44a51f16215 100644 (file)
        compatible = "sony,pdx223", "qcom,sm8450";
 };
 
+&pm8350b_gpios {
+       gpio-line-names = "CAM_PWR_A_CS", /* GPIO_1 */
+                         "NC",
+                         "NC",
+                         "NC",
+                         "SNAPSHOT_N",
+                         "CAM_PWR_LD_EN",
+                         "NC",
+                         "FOCUS_N";
+};
+
+&pm8350c_gpios {
+       gpio-line-names = "FL_STROBE_TRIG_WIDE", /* GPIO_1 */
+                         "FL_STROBE_TRIG_TELE",
+                         "WLC_ID",
+                         "WLC_TXPWR_EN",
+                         "NC",
+                         "RGBC_IR_PWR_EN",
+                         "NC",
+                         "NC",
+                         "WIDEC_PWR_EN";
+};
+
 &tlmm {
        gpio-line-names = "NC", /* GPIO_0 */
                          "NC",
index 13c2fc4bccfc4b60a079d657964b215c18b40e5b..fc9d74d0f227eb0ffc0f705c191cf90b8b769e26 100644 (file)
        };
 };
 
+&pm8350b_gpios {
+       gpio-line-names = "CAM_PWR_A_CS", /* GPIO_1 */
+                         "NC",
+                         "NC",
+                         "NC",
+                         "SNAPSHOT_N",
+                         "NC",
+                         "NC",
+                         "FOCUS_N";
+};
+
+&pm8350c_gpios {
+       gpio-line-names = "FL_STROBE_TRIG_WIDE", /* GPIO_1 */
+                         "FL_STROBE_TRIG_TELE",
+                         "WLC_ID",
+                         "WLC_TXPWR_EN",
+                         "NC",
+                         "NC", /* RGBCIR uses a PMIC vreg, so it's most likely NC. */
+                         "NC",
+                         "NC",
+                         "WIDEC_PWR_EN";
+};
+
 &tlmm {
        gpio-line-names = "TELE_SPI_MISO", /* GPIO_0 */
                          "TELE_SPI_MOSI", /* SONY says NC, but it only makes sense this way.. */
index a1356a85d153f7eb12789fb839fda6aa1a1cc557..e92890e339cf75798ac0efb409475d998b386c06 100644 (file)
        status = "okay";
 };
 
+&pm8350_gpios {
+       gpio-line-names = "ASSIGN1_THERM", /* GPIO_1 */
+                         "LCD_ID",
+                         "SDR_MMW_THERM",
+                         "RF_ID",
+                         "NC",
+                         "VOL_DOWN_N",
+                         "NC",
+                         "NC",
+                         "NC",
+                         "PM8350_OPTION"; /* GPIO_10 */
+};
+
+&pm8450_gpios {
+       gpio-line-names = "FP_LDO_EN", /* GPIO_1 */
+                         "",
+                         "",
+                         "";
+};
+
+&pmk8350_gpios {
+       gpio-line-names = "NC", /* GPIO_1 */
+                         "NC",
+                         "DISP_THERM",
+                         "PMK8350_OPTION";
+};
+
 &remoteproc_adsp {
        firmware-name = "qcom/sm8350/Sony/nagara/adsp.mbn";
        status = "okay";