linux-loongson/arch/arm64/boot/dts/qcom/sm8350-sony-xperia-sagami-pdx214.dts
Konrad Dybcio 7c679f2a2a 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: Konrad Dybcio <konrad.dybcio@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221118152028.59312-3-konrad.dybcio@linaro.org
2022-12-27 13:35:58 -06:00

43 lines
690 B
Plaintext

// SPDX-License-Identifier: BSD-3-Clause
/*
* Copyright (c) 2021, Konrad Dybcio <konrad.dybcio@somainline.org>
*/
/dts-v1/;
#include "sm8350-sony-xperia-sagami.dtsi"
/ {
model = "Sony Xperia 5 III";
compatible = "sony,pdx214-generic", "qcom,sm8350";
};
&framebuffer {
width = <1080>;
height = <2520>;
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";
};