Commit 7c679f2a authored by Konrad Dybcio's avatar Konrad Dybcio Committed by Bjorn Andersson

arm64: dts: qcom: sm8350-sagami: 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 PDX213&214 DTSIs to better document the hardware.

Diff between 223 and 224:

pm8350b
< 	gpio-line-names = "NC", /* GPIO_1 */
> 	gpio-line-names = "CAM_PWR_A_CS", /* GPIO_1 */
< 			  "NC",
> 			  "CAM_PWR_LD_EN",

pm8350c
< 			  "NC",
> 			  "WLC_TXPWR_EN",

Which is due to different camera power wiring on 213 and lack of an
additional SLG51000 PMIC on 214.
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/20221118152028.59312-3-konrad.dybcio@linaro.org
parent 8875b1d7
...@@ -17,3 +17,26 @@ &framebuffer { ...@@ -17,3 +17,26 @@ &framebuffer {
height = <2520>; height = <2520>;
stride = <(1080 * 4)>; stride = <(1080 * 4)>;
}; };
&pm8350b_gpios {
gpio-line-names = "NC", /* 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",
"NC",
"NC",
"NC",
"RGBC_IR_PWR_EN",
"NC",
"NC",
"WIDEC_PWR_EN";
};
...@@ -68,6 +68,15 @@ slg51000_a_ldo7: ldo7 { ...@@ -68,6 +68,15 @@ slg51000_a_ldo7: ldo7 {
}; };
&pm8350b_gpios { &pm8350b_gpios {
gpio-line-names = "CAM_PWR_A_CS", /* GPIO_1 */
"NC",
"NC",
"NC",
"SNAPSHOT_N",
"CAM_PWR_LD_EN",
"NC",
"FOCUS_N";
cam_pwr_a_cs: cam-pwr-a-cs-state { cam_pwr_a_cs: cam-pwr-a-cs-state {
pins = "gpio1"; pins = "gpio1";
function = "normal"; function = "normal";
...@@ -78,6 +87,18 @@ cam_pwr_a_cs: cam-pwr-a-cs-state { ...@@ -78,6 +87,18 @@ cam_pwr_a_cs: cam-pwr-a-cs-state {
}; };
}; };
&pm8350c_gpios {
gpio-line-names = "FL_STROBE_TRIG_WIDE", /* GPIO_1 */
"FL_STROBE_TRIG_TELE",
"NC",
"WLC_TXPWR_EN",
"NC",
"RGBC_IR_PWR_EN",
"NC",
"NC",
"WIDEC_PWR_EN";
};
&tlmm { &tlmm {
gpio-line-names = "APPS_I2C_0_SDA", /* GPIO_0 */ gpio-line-names = "APPS_I2C_0_SDA", /* GPIO_0 */
"APPS_I2C_0_SCL", "APPS_I2C_0_SCL",
......
...@@ -534,6 +534,26 @@ &mpss { ...@@ -534,6 +534,26 @@ &mpss {
firmware-name = "qcom/sm8350/Sony/sagami/modem.mbn"; firmware-name = "qcom/sm8350/Sony/sagami/modem.mbn";
}; };
&pm8350_gpios {
gpio-line-names = "ASSIGN1_THERM", /* GPIO_1 */
"LCD_ID",
"SDR_MMW_THERM",
"RF_ID",
"NC",
"FP_LDO_EN",
"SP_ARI_PWR_ALARM",
"NC",
"G_ASSIST_N",
"PM8350_OPTION"; /* GPIO_10 */
};
&pmk8350_gpios {
gpio-line-names = "NC", /* GPIO_1 */
"NC",
"VOL_DOWN_N",
"PMK8350_OPTION";
};
&pmk8350_rtc { &pmk8350_rtc {
status = "okay"; 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