Commit 4c5ab70d authored by Konrad Dybcio's avatar Konrad Dybcio Committed by Bjorn Andersson

arm64: dts: qcom: sm8450-nagara: Add GPIO line names for PMIC GPIOs

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: default avatarKonrad Dybcio <konrad.dybcio@linaro.org>
Signed-off-by: default avatarBjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221229103212.984324-3-konrad.dybcio@linaro.org
parent 25deb75e
......@@ -13,6 +13,29 @@ / {
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",
......
......@@ -20,6 +20,29 @@ imx563_vdig_vreg: imx563-vdig-regulator {
};
};
&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.. */
......
......@@ -539,6 +539,33 @@ &pcie0_phy {
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";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment