* [PATCH 0/3] arm64: dts: qcom: pm6150: Add typec support for PM6150
@ 2024-02-17 16:31 Danila Tikhonov
2024-02-17 16:31 ` [PATCH 1/3] dt-bindings: regulator: qcom,usb-vbus-regulator: Add PM6150 compatible Danila Tikhonov
` (3 more replies)
0 siblings, 4 replies; 14+ messages in thread
From: Danila Tikhonov @ 2024-02-17 16:31 UTC (permalink / raw)
To: andersson, konrad.dybcio, lgirdwood, broonie, robh,
krzysztof.kozlowski+dt, conor+dt, bryan.odonoghue, gregkh,
quic_wcheng
Cc: linux-arm-msm, linux-kernel, devicetree, linux-usb,
Danila Tikhonov
This series adds typec support for PM6150. Was tested on SM7150
(xiaomi-surya).
To: Bjorn Andersson <andersson@kernel.org>
To: Konrad Dybcio <konrad.dybcio@linaro.org>
To: Liam Girdwood <lgirdwood@gmail.com>
To: Mark Brown <broonie@kernel.org>
To: Rob Herring <robh@kernel.org>
To: Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>
To: Conor Dooley <conor+dt@kernel.org>
To: "Bryan O'Donoghue" <bryan.odonoghue@linaro.org>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Wesley Cheng <quic_wcheng@quicinc.com>
Cc: linux-arm-msm@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Cc: devicetree@vger.kernel.org
Cc: linux-usb@vger.kernel.org
Signed-off-by: Danila Tikhonov <danila@jiaxyga.com>
Danila Tikhonov (3):
dt-bindings: regulator: qcom,usb-vbus-regulator: Add PM6150 compatible
dt-bindings: usb: qcom,pmic-typec: Add support for the PM6150 PMIC
arm64: dts: qcom: pm6150: define USB-C related blocks
.../regulator/qcom,usb-vbus-regulator.yaml | 9 +++-
.../bindings/usb/qcom,pmic-typec.yaml | 9 +++-
arch/arm64/boot/dts/qcom/pm6150.dtsi | 46 +++++++++++++++++++
3 files changed, 60 insertions(+), 4 deletions(-)
--
2.43.2
^ permalink raw reply [flat|nested] 14+ messages in thread
* [PATCH 1/3] dt-bindings: regulator: qcom,usb-vbus-regulator: Add PM6150 compatible
2024-02-17 16:31 [PATCH 0/3] arm64: dts: qcom: pm6150: Add typec support for PM6150 Danila Tikhonov
@ 2024-02-17 16:31 ` Danila Tikhonov
2024-02-19 7:13 ` Krzysztof Kozlowski
2024-02-17 16:32 ` [PATCH 2/3] dt-bindings: usb: qcom,pmic-typec: Add support for the PM6150 PMIC Danila Tikhonov
` (2 subsequent siblings)
3 siblings, 1 reply; 14+ messages in thread
From: Danila Tikhonov @ 2024-02-17 16:31 UTC (permalink / raw)
To: andersson, konrad.dybcio, lgirdwood, broonie, robh,
krzysztof.kozlowski+dt, conor+dt, bryan.odonoghue, gregkh,
quic_wcheng
Cc: linux-arm-msm, linux-kernel, devicetree, linux-usb,
Danila Tikhonov
The VBUS register block on the PM6150 PMIC shares the design with the
PM8150B one. Define corresponding compatible string, having the
qcom,pm8150b-vbus-reg as a fallback.
Signed-off-by: Danila Tikhonov <danila@jiaxyga.com>
---
.../bindings/regulator/qcom,usb-vbus-regulator.yaml | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/Documentation/devicetree/bindings/regulator/qcom,usb-vbus-regulator.yaml b/Documentation/devicetree/bindings/regulator/qcom,usb-vbus-regulator.yaml
index 534f87e98716..bf6336850be6 100644
--- a/Documentation/devicetree/bindings/regulator/qcom,usb-vbus-regulator.yaml
+++ b/Documentation/devicetree/bindings/regulator/qcom,usb-vbus-regulator.yaml
@@ -19,8 +19,13 @@ allOf:
properties:
compatible:
- enum:
- - qcom,pm8150b-vbus-reg
+ oneOf:
+ - enum:
+ - qcom,pm8150b-vbus-reg
+ - items:
+ - enum:
+ - qcom,pm6150-vbus-reg
+ - const: qcom,pm8150b-vbus-reg
reg:
maxItems: 1
--
2.43.2
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [PATCH 2/3] dt-bindings: usb: qcom,pmic-typec: Add support for the PM6150 PMIC
2024-02-17 16:31 [PATCH 0/3] arm64: dts: qcom: pm6150: Add typec support for PM6150 Danila Tikhonov
2024-02-17 16:31 ` [PATCH 1/3] dt-bindings: regulator: qcom,usb-vbus-regulator: Add PM6150 compatible Danila Tikhonov
@ 2024-02-17 16:32 ` Danila Tikhonov
2024-02-19 7:13 ` Krzysztof Kozlowski
2024-02-17 16:32 ` [PATCH 3/3] arm64: dts: qcom: pm6150: define USB-C related blocks Danila Tikhonov
2024-02-19 16:23 ` (subset) [PATCH 0/3] arm64: dts: qcom: pm6150: Add typec support for PM6150 Mark Brown
3 siblings, 1 reply; 14+ messages in thread
From: Danila Tikhonov @ 2024-02-17 16:32 UTC (permalink / raw)
To: andersson, konrad.dybcio, lgirdwood, broonie, robh,
krzysztof.kozlowski+dt, conor+dt, bryan.odonoghue, gregkh,
quic_wcheng
Cc: linux-arm-msm, linux-kernel, devicetree, linux-usb,
Danila Tikhonov
The PM6150 PMIC has the same Type-C register block as the PM8150B.
Define corresponding compatible string, having the qcom,pm8150b-vbus-reg
as a fallback.
Signed-off-by: Danila Tikhonov <danila@jiaxyga.com>
---
.../devicetree/bindings/usb/qcom,pmic-typec.yaml | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/Documentation/devicetree/bindings/usb/qcom,pmic-typec.yaml b/Documentation/devicetree/bindings/usb/qcom,pmic-typec.yaml
index 55df3129a0bc..9637d62719e7 100644
--- a/Documentation/devicetree/bindings/usb/qcom,pmic-typec.yaml
+++ b/Documentation/devicetree/bindings/usb/qcom,pmic-typec.yaml
@@ -14,8 +14,13 @@ description:
properties:
compatible:
- enum:
- - qcom,pm8150b-typec
+ oneOf:
+ - enum:
+ - qcom,pm8150b-typec
+ - items:
+ - enum:
+ - qcom,pm6150-typec
+ - const: qcom,pm8150b-typec
connector:
type: object
--
2.43.2
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [PATCH 3/3] arm64: dts: qcom: pm6150: define USB-C related blocks
2024-02-17 16:31 [PATCH 0/3] arm64: dts: qcom: pm6150: Add typec support for PM6150 Danila Tikhonov
2024-02-17 16:31 ` [PATCH 1/3] dt-bindings: regulator: qcom,usb-vbus-regulator: Add PM6150 compatible Danila Tikhonov
2024-02-17 16:32 ` [PATCH 2/3] dt-bindings: usb: qcom,pmic-typec: Add support for the PM6150 PMIC Danila Tikhonov
@ 2024-02-17 16:32 ` Danila Tikhonov
2024-02-17 18:17 ` Dmitry Baryshkov
2024-02-17 23:19 ` Bryan O'Donoghue
2024-02-19 16:23 ` (subset) [PATCH 0/3] arm64: dts: qcom: pm6150: Add typec support for PM6150 Mark Brown
3 siblings, 2 replies; 14+ messages in thread
From: Danila Tikhonov @ 2024-02-17 16:32 UTC (permalink / raw)
To: andersson, konrad.dybcio, lgirdwood, broonie, robh,
krzysztof.kozlowski+dt, conor+dt, bryan.odonoghue, gregkh,
quic_wcheng
Cc: linux-arm-msm, linux-kernel, devicetree, linux-usb,
Danila Tikhonov
Define VBUS regulator and the Type-C handling block as present on the
Quacomm PM6150 PMIC.
Signed-off-by: Danila Tikhonov <danila@jiaxyga.com>
---
arch/arm64/boot/dts/qcom/pm6150.dtsi | 46 ++++++++++++++++++++++++++++
1 file changed, 46 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/pm6150.dtsi b/arch/arm64/boot/dts/qcom/pm6150.dtsi
index ddbaf7280b03..bef5f28ba7cc 100644
--- a/arch/arm64/boot/dts/qcom/pm6150.dtsi
+++ b/arch/arm64/boot/dts/qcom/pm6150.dtsi
@@ -63,6 +63,52 @@ pm6150_resin: resin {
};
};
+ pm6150_vbus: usb-vbus-regulator@1100 {
+ compatible = "qcom,pm6150-vbus-reg,
+ qcom,pm8150b-vbus-reg";
+ reg = <0x1100>;
+ status = "disabled";
+ };
+
+ pm6150_typec: typec@1500 {
+ compatible = "qcom,pm6150-typec,
+ qcom,pm8150b-typec";
+ reg = <0x1500>, <0x1700>;
+ interrupts = <0x0 0x15 0x00 IRQ_TYPE_EDGE_RISING>,
+ <0x0 0x15 0x01 IRQ_TYPE_EDGE_RISING>,
+ <0x0 0x15 0x02 IRQ_TYPE_EDGE_RISING>,
+ <0x0 0x15 0x03 IRQ_TYPE_EDGE_RISING>,
+ <0x0 0x15 0x04 IRQ_TYPE_EDGE_RISING>,
+ <0x0 0x15 0x05 IRQ_TYPE_EDGE_RISING>,
+ <0x0 0x15 0x06 IRQ_TYPE_EDGE_RISING>,
+ <0x0 0x15 0x07 IRQ_TYPE_EDGE_RISING>,
+ <0x0 0x17 0x00 IRQ_TYPE_EDGE_RISING>,
+ <0x0 0x17 0x01 IRQ_TYPE_EDGE_RISING>,
+ <0x0 0x17 0x02 IRQ_TYPE_EDGE_RISING>,
+ <0x0 0x17 0x03 IRQ_TYPE_EDGE_RISING>,
+ <0x0 0x17 0x04 IRQ_TYPE_EDGE_RISING>,
+ <0x0 0x17 0x05 IRQ_TYPE_EDGE_RISING>,
+ <0x0 0x17 0x06 IRQ_TYPE_EDGE_RISING>,
+ <0x0 0x17 0x07 IRQ_TYPE_EDGE_RISING>;
+ interrupt-names = "or-rid-detect-change",
+ "vpd-detect",
+ "cc-state-change",
+ "vconn-oc",
+ "vbus-change",
+ "attach-detach",
+ "legacy-cable-detect",
+ "try-snk-src-detect",
+ "sig-tx",
+ "sig-rx",
+ "msg-tx",
+ "msg-rx",
+ "msg-tx-failed",
+ "msg-tx-discarded",
+ "msg-rx-discarded",
+ "fr-swap";
+ status = "disabled";
+ };
+
pm6150_temp: temp-alarm@2400 {
compatible = "qcom,spmi-temp-alarm";
reg = <0x2400>;
--
2.43.2
^ permalink raw reply related [flat|nested] 14+ messages in thread
* Re: [PATCH 3/3] arm64: dts: qcom: pm6150: define USB-C related blocks
2024-02-17 16:32 ` [PATCH 3/3] arm64: dts: qcom: pm6150: define USB-C related blocks Danila Tikhonov
@ 2024-02-17 18:17 ` Dmitry Baryshkov
2024-02-17 23:19 ` Bryan O'Donoghue
1 sibling, 0 replies; 14+ messages in thread
From: Dmitry Baryshkov @ 2024-02-17 18:17 UTC (permalink / raw)
To: Danila Tikhonov
Cc: andersson, konrad.dybcio, lgirdwood, broonie, robh,
krzysztof.kozlowski+dt, conor+dt, bryan.odonoghue, gregkh,
quic_wcheng, linux-arm-msm, linux-kernel, devicetree, linux-usb
On Sat, 17 Feb 2024 at 18:32, Danila Tikhonov <danila@jiaxyga.com> wrote:
>
> Define VBUS regulator and the Type-C handling block as present on the
> Quacomm PM6150 PMIC.
>
> Signed-off-by: Danila Tikhonov <danila@jiaxyga.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
> ---
> arch/arm64/boot/dts/qcom/pm6150.dtsi | 46 ++++++++++++++++++++++++++++
> 1 file changed, 46 insertions(+)
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH 3/3] arm64: dts: qcom: pm6150: define USB-C related blocks
2024-02-17 16:32 ` [PATCH 3/3] arm64: dts: qcom: pm6150: define USB-C related blocks Danila Tikhonov
2024-02-17 18:17 ` Dmitry Baryshkov
@ 2024-02-17 23:19 ` Bryan O'Donoghue
2024-02-18 8:05 ` Danila Tikhonov
1 sibling, 1 reply; 14+ messages in thread
From: Bryan O'Donoghue @ 2024-02-17 23:19 UTC (permalink / raw)
To: Danila Tikhonov, andersson, konrad.dybcio, lgirdwood, broonie,
robh, krzysztof.kozlowski+dt, conor+dt, gregkh, quic_wcheng
Cc: linux-arm-msm, linux-kernel, devicetree, linux-usb
On 17/02/2024 16:32, Danila Tikhonov wrote:
> Define VBUS regulator and the Type-C handling block as present on the
> Quacomm PM6150 PMIC.
>
> Signed-off-by: Danila Tikhonov <danila@jiaxyga.com>
> + pm6150_typec: typec@1500 {
> + compatible = "qcom,pm6150-typec,
> + qcom,pm8150b-typec";
> + reg = <0x1500>, <0x1700>;
> + interrupts = <0x0 0x15 0x00 IRQ_TYPE_EDGE_RISING>,
> + <0x0 0x15 0x01 IRQ_TYPE_EDGE_RISING>,
> + <0x0 0x15 0x02 IRQ_TYPE_EDGE_RISING>,
> + <0x0 0x15 0x03 IRQ_TYPE_EDGE_RISING>,
> + <0x0 0x15 0x04 IRQ_TYPE_EDGE_RISING>,
> + <0x0 0x15 0x05 IRQ_TYPE_EDGE_RISING>,
> + <0x0 0x15 0x06 IRQ_TYPE_EDGE_RISING>,
> + <0x0 0x15 0x07 IRQ_TYPE_EDGE_RISING>,
> + <0x0 0x17 0x00 IRQ_TYPE_EDGE_RISING>,
> + <0x0 0x17 0x01 IRQ_TYPE_EDGE_RISING>,
> + <0x0 0x17 0x02 IRQ_TYPE_EDGE_RISING>,
> + <0x0 0x17 0x03 IRQ_TYPE_EDGE_RISING>,
> + <0x0 0x17 0x04 IRQ_TYPE_EDGE_RISING>,
> + <0x0 0x17 0x05 IRQ_TYPE_EDGE_RISING>,
> + <0x0 0x17 0x06 IRQ_TYPE_EDGE_RISING>,
> + <0x0 0x17 0x07 IRQ_TYPE_EDGE_RISING>;
> + interrupt-names = "or-rid-detect-change",
> + "vpd-detect",
> + "cc-state-change",
> + "vconn-oc",
> + "vbus-change",
> + "attach-detach",
> + "legacy-cable-detect",
> + "try-snk-src-detect",
> + "sig-tx",
> + "sig-rx",
> + "msg-tx",
> + "msg-rx",
> + "msg-tx-failed",
> + "msg-tx-discarded",
> + "msg-rx-discarded",
> + "fr-swap";
> + status = "disabled";
> + };
Should all of these be rising ? Looks incorrect to me.
Please review: arch/arm64/boot/dts/qcom/pm8150b.dtsi
pm8150b_typec: typec@1500 {
compatible = "qcom,pm8150b-typec";
status = "disabled";
reg = <0x1500>,
<0x1700>;
interrupts = <0x2 0x15 0x00 IRQ_TYPE_EDGE_RISING>,
<0x2 0x15 0x01 IRQ_TYPE_EDGE_BOTH>,
<0x2 0x15 0x02 IRQ_TYPE_EDGE_RISING>,
<0x2 0x15 0x03 IRQ_TYPE_EDGE_BOTH>,
<0x2 0x15 0x04 IRQ_TYPE_EDGE_RISING>,
<0x2 0x15 0x05 IRQ_TYPE_EDGE_RISING>,
<0x2 0x15 0x06 IRQ_TYPE_EDGE_BOTH>,
<0x2 0x15 0x07 IRQ_TYPE_EDGE_RISING>,
<0x2 0x17 0x00 IRQ_TYPE_EDGE_RISING>,
<0x2 0x17 0x01 IRQ_TYPE_EDGE_RISING>,
<0x2 0x17 0x02 IRQ_TYPE_EDGE_RISING>,
<0x2 0x17 0x03 IRQ_TYPE_EDGE_RISING>,
<0x2 0x17 0x04 IRQ_TYPE_EDGE_RISING>,
<0x2 0x17 0x05 IRQ_TYPE_EDGE_RISING>,
<0x2 0x17 0x06 IRQ_TYPE_EDGE_RISING>,
<0x2 0x17 0x07 IRQ_TYPE_EDGE_RISING>;
interrupt-names = "or-rid-detect-change",
"vpd-detect",
"cc-state-change",
"vconn-oc",
"vbus-change",
"attach-detach",
"legacy-cable-detect",
"try-snk-src-detect",
"sig-tx",
"sig-rx",
"msg-tx",
"msg-rx",
"msg-tx-failed",
"msg-tx-discarded",
"msg-rx-discarded",
"fr-swap";
}
---
bod
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH 3/3] arm64: dts: qcom: pm6150: define USB-C related blocks
2024-02-17 23:19 ` Bryan O'Donoghue
@ 2024-02-18 8:05 ` Danila Tikhonov
2024-02-18 17:14 ` Bryan O'Donoghue
0 siblings, 1 reply; 14+ messages in thread
From: Danila Tikhonov @ 2024-02-18 8:05 UTC (permalink / raw)
To: Bryan O'Donoghue, andersson, konrad.dybcio, lgirdwood,
broonie, robh, krzysztof.kozlowski+dt, conor+dt, gregkh,
quic_wcheng
Cc: linux-arm-msm, linux-kernel, devicetree, linux-usb, danila
I know that some interrupts have both for PM8150B, but for PM6150 all
interrupts are rising.
Please look at the downstream kernel:
https://git.codelinaro.org/clo/la/kernel/msm-4.14/-/blob/187022f2721d584ac4ec92c0ac1af77da487521d/arch/arm64/boot/dts/qcom/pm6150.dtsi#L319
https://git.codelinaro.org/clo/la/kernel/msm-4.14/-/blob/187022f2721d584ac4ec92c0ac1af77da487521d/arch/arm64/boot/dts/qcom/pm8150b.dtsi#L292
---
Best wishes
Danila
On 2/18/24 02:19, Bryan O'Donoghue wrote:
> On 17/02/2024 16:32, Danila Tikhonov wrote:
>> Define VBUS regulator and the Type-C handling block as present on the
>> Quacomm PM6150 PMIC.
>>
>> Signed-off-by: Danila Tikhonov <danila@jiaxyga.com>
>
>> + pm6150_typec: typec@1500 {
>> + compatible = "qcom,pm6150-typec,
>> + qcom,pm8150b-typec";
>> + reg = <0x1500>, <0x1700>;
>> + interrupts = <0x0 0x15 0x00 IRQ_TYPE_EDGE_RISING>,
>> + <0x0 0x15 0x01 IRQ_TYPE_EDGE_RISING>,
>> + <0x0 0x15 0x02 IRQ_TYPE_EDGE_RISING>,
>> + <0x0 0x15 0x03 IRQ_TYPE_EDGE_RISING>,
>> + <0x0 0x15 0x04 IRQ_TYPE_EDGE_RISING>,
>> + <0x0 0x15 0x05 IRQ_TYPE_EDGE_RISING>,
>> + <0x0 0x15 0x06 IRQ_TYPE_EDGE_RISING>,
>> + <0x0 0x15 0x07 IRQ_TYPE_EDGE_RISING>,
>> + <0x0 0x17 0x00 IRQ_TYPE_EDGE_RISING>,
>> + <0x0 0x17 0x01 IRQ_TYPE_EDGE_RISING>,
>> + <0x0 0x17 0x02 IRQ_TYPE_EDGE_RISING>,
>> + <0x0 0x17 0x03 IRQ_TYPE_EDGE_RISING>,
>> + <0x0 0x17 0x04 IRQ_TYPE_EDGE_RISING>,
>> + <0x0 0x17 0x05 IRQ_TYPE_EDGE_RISING>,
>> + <0x0 0x17 0x06 IRQ_TYPE_EDGE_RISING>,
>> + <0x0 0x17 0x07 IRQ_TYPE_EDGE_RISING>;
>> + interrupt-names = "or-rid-detect-change",
>> + "vpd-detect",
>> + "cc-state-change",
>> + "vconn-oc",
>> + "vbus-change",
>> + "attach-detach",
>> + "legacy-cable-detect",
>> + "try-snk-src-detect",
>> + "sig-tx",
>> + "sig-rx",
>> + "msg-tx",
>> + "msg-rx",
>> + "msg-tx-failed",
>> + "msg-tx-discarded",
>> + "msg-rx-discarded",
>> + "fr-swap";
>> + status = "disabled";
>> + };
>
> Should all of these be rising ? Looks incorrect to me.
>
> Please review: arch/arm64/boot/dts/qcom/pm8150b.dtsi
>
> pm8150b_typec: typec@1500 {
> compatible = "qcom,pm8150b-typec";
> status = "disabled";
> reg = <0x1500>,
> <0x1700>;
>
> interrupts = <0x2 0x15 0x00 IRQ_TYPE_EDGE_RISING>,
> <0x2 0x15 0x01 IRQ_TYPE_EDGE_BOTH>,
> <0x2 0x15 0x02 IRQ_TYPE_EDGE_RISING>,
> <0x2 0x15 0x03 IRQ_TYPE_EDGE_BOTH>,
> <0x2 0x15 0x04 IRQ_TYPE_EDGE_RISING>,
> <0x2 0x15 0x05 IRQ_TYPE_EDGE_RISING>,
> <0x2 0x15 0x06 IRQ_TYPE_EDGE_BOTH>,
> <0x2 0x15 0x07 IRQ_TYPE_EDGE_RISING>,
> <0x2 0x17 0x00 IRQ_TYPE_EDGE_RISING>,
> <0x2 0x17 0x01 IRQ_TYPE_EDGE_RISING>,
> <0x2 0x17 0x02 IRQ_TYPE_EDGE_RISING>,
> <0x2 0x17 0x03 IRQ_TYPE_EDGE_RISING>,
> <0x2 0x17 0x04 IRQ_TYPE_EDGE_RISING>,
> <0x2 0x17 0x05 IRQ_TYPE_EDGE_RISING>,
> <0x2 0x17 0x06 IRQ_TYPE_EDGE_RISING>,
> <0x2 0x17 0x07 IRQ_TYPE_EDGE_RISING>;
>
> interrupt-names = "or-rid-detect-change",
> "vpd-detect",
> "cc-state-change",
> "vconn-oc",
> "vbus-change",
> "attach-detach",
> "legacy-cable-detect",
> "try-snk-src-detect",
> "sig-tx",
> "sig-rx",
> "msg-tx",
> "msg-rx",
> "msg-tx-failed",
> "msg-tx-discarded",
> "msg-rx-discarded",
> "fr-swap";
> }
>
> ---
> bod
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH 3/3] arm64: dts: qcom: pm6150: define USB-C related blocks
2024-02-18 8:05 ` Danila Tikhonov
@ 2024-02-18 17:14 ` Bryan O'Donoghue
2024-02-18 18:52 ` Danila Tikhonov
0 siblings, 1 reply; 14+ messages in thread
From: Bryan O'Donoghue @ 2024-02-18 17:14 UTC (permalink / raw)
To: Danila Tikhonov, andersson, konrad.dybcio, lgirdwood, broonie,
robh, krzysztof.kozlowski+dt, conor+dt, gregkh, quic_wcheng
Cc: linux-arm-msm, linux-kernel, devicetree, linux-usb
On 18/02/2024 8:05 a.m., Danila Tikhonov wrote:
> I know that some interrupts have both for PM8150B, but for PM6150 all
> interrupts are rising.
> Please look at the downstream kernel:
> https://git.codelinaro.org/clo/la/kernel/msm-4.14/-/blob/187022f2721d584ac4ec92c0ac1af77da487521d/arch/arm64/boot/dts/qcom/pm6150.dtsi#L319
> https://git.codelinaro.org/clo/la/kernel/msm-4.14/-/blob/187022f2721d584ac4ec92c0ac1af77da487521d/arch/arm64/boot/dts/qcom/pm8150b.dtsi#L292
>
Please take a look here, I think the same logic should apply to your
patchset.
https://www.spinics.net/lists/devicetree/msg665558.html
---
bod
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH 3/3] arm64: dts: qcom: pm6150: define USB-C related blocks
2024-02-18 17:14 ` Bryan O'Donoghue
@ 2024-02-18 18:52 ` Danila Tikhonov
2024-02-18 19:10 ` Bryan O'Donoghue
2024-02-18 22:07 ` Dmitry Baryshkov
0 siblings, 2 replies; 14+ messages in thread
From: Danila Tikhonov @ 2024-02-18 18:52 UTC (permalink / raw)
To: Bryan O'Donoghue, andersson, konrad.dybcio, lgirdwood,
broonie, robh, krzysztof.kozlowski+dt, conor+dt, gregkh,
quic_wcheng
Cc: linux-arm-msm, linux-kernel, devicetree, linux-usb,
Dmitry Baryshkov
You are referring to Dmitry Baryshkov, as I see. But Dmitry has already
reviewed my patch (message above).
So it would be rude to change anything without his knowledge. Let's wait
for his answer.
---
Best wishes
Danila
On 2/18/24 20:14, Bryan O'Donoghue wrote:
> On 18/02/2024 8:05 a.m., Danila Tikhonov wrote:
>> I know that some interrupts have both for PM8150B, but for PM6150 all
>> interrupts are rising.
>> Please look at the downstream kernel:
>> https://git.codelinaro.org/clo/la/kernel/msm-4.14/-/blob/187022f2721d584ac4ec92c0ac1af77da487521d/arch/arm64/boot/dts/qcom/pm6150.dtsi#L319
>>
>> https://git.codelinaro.org/clo/la/kernel/msm-4.14/-/blob/187022f2721d584ac4ec92c0ac1af77da487521d/arch/arm64/boot/dts/qcom/pm8150b.dtsi#L292
>>
>>
>
>
> Please take a look here, I think the same logic should apply to your
> patchset.
>
> https://www.spinics.net/lists/devicetree/msg665558.html
>
> ---
> bod
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH 3/3] arm64: dts: qcom: pm6150: define USB-C related blocks
2024-02-18 18:52 ` Danila Tikhonov
@ 2024-02-18 19:10 ` Bryan O'Donoghue
2024-02-18 22:07 ` Dmitry Baryshkov
1 sibling, 0 replies; 14+ messages in thread
From: Bryan O'Donoghue @ 2024-02-18 19:10 UTC (permalink / raw)
To: Danila Tikhonov, andersson, konrad.dybcio, lgirdwood, broonie,
robh, krzysztof.kozlowski+dt, conor+dt, gregkh, quic_wcheng
Cc: linux-arm-msm, linux-kernel, devicetree, linux-usb,
Dmitry Baryshkov
On 18/02/2024 6:52 p.m., Danila Tikhonov wrote:
> You are referring to Dmitry Baryshkov, as I see. But Dmitry has already
> reviewed my patch (message above).
Yes we previously debated and discussed verbatim copy of downstream
versus the format we used for 8150b.
The original driver I wrote for tcpm and the dts that went with it
derived from 4.19 where the interrupt definition was already right, so
in that case copy/paste of downstream is fine.
However with earlier kernels, 4.14 in this case the signalling isn't right.
Please read the discussion and reconsider your patch.
> So it would be rude to change anything without his knowledge. Let's wait
> for his answer
He'd have to be arguing against his own patch.....
One final nag - please use the kernel discussion format of bottom not
top posting.
https://git.codelinaro.org/bryan.odonoghue/kernel/-/blob/sc8280xp-v6.8-rc4-camss/Documentation/process/submitting-patches.rst?ref_type=heads
---
bod
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH 3/3] arm64: dts: qcom: pm6150: define USB-C related blocks
2024-02-18 18:52 ` Danila Tikhonov
2024-02-18 19:10 ` Bryan O'Donoghue
@ 2024-02-18 22:07 ` Dmitry Baryshkov
1 sibling, 0 replies; 14+ messages in thread
From: Dmitry Baryshkov @ 2024-02-18 22:07 UTC (permalink / raw)
To: Danila Tikhonov
Cc: Bryan O'Donoghue, andersson, konrad.dybcio, lgirdwood,
broonie, robh, krzysztof.kozlowski+dt, conor+dt, gregkh,
quic_wcheng, linux-arm-msm, linux-kernel, devicetree, linux-usb
On Sun, 18 Feb 2024 at 20:53, Danila Tikhonov <danila@jiaxyga.com> wrote:
>
> You are referring to Dmitry Baryshkov, as I see. But Dmitry has already
> reviewed my patch (message above).
> So it would be rude to change anything without his knowledge. Let's wait
> for his answer.
I missed this point, so please update the IRQ flags accordingly to
PM8150B, as Bryan has pointed out.
>
> ---
> Best wishes
> Danila
>
> On 2/18/24 20:14, Bryan O'Donoghue wrote:
> > On 18/02/2024 8:05 a.m., Danila Tikhonov wrote:
> >> I know that some interrupts have both for PM8150B, but for PM6150 all
> >> interrupts are rising.
> >> Please look at the downstream kernel:
> >> https://git.codelinaro.org/clo/la/kernel/msm-4.14/-/blob/187022f2721d584ac4ec92c0ac1af77da487521d/arch/arm64/boot/dts/qcom/pm6150.dtsi#L319
> >>
> >> https://git.codelinaro.org/clo/la/kernel/msm-4.14/-/blob/187022f2721d584ac4ec92c0ac1af77da487521d/arch/arm64/boot/dts/qcom/pm8150b.dtsi#L292
> >>
> >>
> >
> >
> > Please take a look here, I think the same logic should apply to your
> > patchset.
> >
> > https://www.spinics.net/lists/devicetree/msg665558.html
> >
> > ---
> > bod
>
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH 1/3] dt-bindings: regulator: qcom,usb-vbus-regulator: Add PM6150 compatible
2024-02-17 16:31 ` [PATCH 1/3] dt-bindings: regulator: qcom,usb-vbus-regulator: Add PM6150 compatible Danila Tikhonov
@ 2024-02-19 7:13 ` Krzysztof Kozlowski
0 siblings, 0 replies; 14+ messages in thread
From: Krzysztof Kozlowski @ 2024-02-19 7:13 UTC (permalink / raw)
To: Danila Tikhonov, andersson, konrad.dybcio, lgirdwood, broonie,
robh, krzysztof.kozlowski+dt, conor+dt, bryan.odonoghue, gregkh,
quic_wcheng
Cc: linux-arm-msm, linux-kernel, devicetree, linux-usb
On 17/02/2024 17:31, Danila Tikhonov wrote:
> The VBUS register block on the PM6150 PMIC shares the design with the
> PM8150B one. Define corresponding compatible string, having the
> qcom,pm8150b-vbus-reg as a fallback.
>
> Signed-off-by: Danila Tikhonov <danila@jiaxyga.com>
> ---
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH 2/3] dt-bindings: usb: qcom,pmic-typec: Add support for the PM6150 PMIC
2024-02-17 16:32 ` [PATCH 2/3] dt-bindings: usb: qcom,pmic-typec: Add support for the PM6150 PMIC Danila Tikhonov
@ 2024-02-19 7:13 ` Krzysztof Kozlowski
0 siblings, 0 replies; 14+ messages in thread
From: Krzysztof Kozlowski @ 2024-02-19 7:13 UTC (permalink / raw)
To: Danila Tikhonov, andersson, konrad.dybcio, lgirdwood, broonie,
robh, krzysztof.kozlowski+dt, conor+dt, bryan.odonoghue, gregkh,
quic_wcheng
Cc: linux-arm-msm, linux-kernel, devicetree, linux-usb
On 17/02/2024 17:32, Danila Tikhonov wrote:
> The PM6150 PMIC has the same Type-C register block as the PM8150B.
> Define corresponding compatible string, having the qcom,pm8150b-vbus-reg
> as a fallback.
>
> Signed-off-by: Danila Tikhonov <danila@jiaxyga.com>
> ---
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: (subset) [PATCH 0/3] arm64: dts: qcom: pm6150: Add typec support for PM6150
2024-02-17 16:31 [PATCH 0/3] arm64: dts: qcom: pm6150: Add typec support for PM6150 Danila Tikhonov
` (2 preceding siblings ...)
2024-02-17 16:32 ` [PATCH 3/3] arm64: dts: qcom: pm6150: define USB-C related blocks Danila Tikhonov
@ 2024-02-19 16:23 ` Mark Brown
3 siblings, 0 replies; 14+ messages in thread
From: Mark Brown @ 2024-02-19 16:23 UTC (permalink / raw)
To: andersson, konrad.dybcio, lgirdwood, robh, krzysztof.kozlowski+dt,
conor+dt, bryan.odonoghue, gregkh, quic_wcheng, Danila Tikhonov
Cc: linux-arm-msm, linux-kernel, devicetree, linux-usb
On Sat, 17 Feb 2024 19:31:58 +0300, Danila Tikhonov wrote:
> This series adds typec support for PM6150. Was tested on SM7150
> (xiaomi-surya).
>
> To: Bjorn Andersson <andersson@kernel.org>
> To: Konrad Dybcio <konrad.dybcio@linaro.org>
> To: Liam Girdwood <lgirdwood@gmail.com>
> To: Mark Brown <broonie@kernel.org>
> To: Rob Herring <robh@kernel.org>
> To: Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>
> To: Conor Dooley <conor+dt@kernel.org>
> To: "Bryan O'Donoghue" <bryan.odonoghue@linaro.org>
> To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
> To: Wesley Cheng <quic_wcheng@quicinc.com>
> Cc: linux-arm-msm@vger.kernel.org
> Cc: linux-kernel@vger.kernel.org
> Cc: devicetree@vger.kernel.org
> Cc: linux-usb@vger.kernel.org
> Signed-off-by: Danila Tikhonov <danila@jiaxyga.com>
>
> [...]
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-next
Thanks!
[1/3] dt-bindings: regulator: qcom,usb-vbus-regulator: Add PM6150 compatible
commit: ec29a4d9b7c7329afc61e7932cb91e9b292b2b74
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2024-02-19 16:23 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-17 16:31 [PATCH 0/3] arm64: dts: qcom: pm6150: Add typec support for PM6150 Danila Tikhonov
2024-02-17 16:31 ` [PATCH 1/3] dt-bindings: regulator: qcom,usb-vbus-regulator: Add PM6150 compatible Danila Tikhonov
2024-02-19 7:13 ` Krzysztof Kozlowski
2024-02-17 16:32 ` [PATCH 2/3] dt-bindings: usb: qcom,pmic-typec: Add support for the PM6150 PMIC Danila Tikhonov
2024-02-19 7:13 ` Krzysztof Kozlowski
2024-02-17 16:32 ` [PATCH 3/3] arm64: dts: qcom: pm6150: define USB-C related blocks Danila Tikhonov
2024-02-17 18:17 ` Dmitry Baryshkov
2024-02-17 23:19 ` Bryan O'Donoghue
2024-02-18 8:05 ` Danila Tikhonov
2024-02-18 17:14 ` Bryan O'Donoghue
2024-02-18 18:52 ` Danila Tikhonov
2024-02-18 19:10 ` Bryan O'Donoghue
2024-02-18 22:07 ` Dmitry Baryshkov
2024-02-19 16:23 ` (subset) [PATCH 0/3] arm64: dts: qcom: pm6150: Add typec support for PM6150 Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox