* [PATCH v3 1/6] dt-bindings: platform: Add Huawei Matebook E Go EC
@ 2025-01-13 17:50 Pengyu Luo
2025-01-14 8:27 ` Krzysztof Kozlowski
0 siblings, 1 reply; 3+ messages in thread
From: Pengyu Luo @ 2025-01-13 17:50 UTC (permalink / raw)
To: Pengyu Luo, Rob Herring, Krzysztof Kozlowski, Conor Dooley
Cc: devicetree, linux-kernel
Add binding for the EC found in the Huawei Matebook E Go and
Huawei Matebook E Go LTE 2-in-1 tablets, the former one is a QS sc8280xp
based tablet, the latter one is a QS sc8180x based tablet.
This series has a codename, gaokun. More information about gaokun, please
check https://bugzilla.kernel.org/show_bug.cgi?id=219645
Signed-off-by: Pengyu Luo <mitltlatltl@gmail.com>
---
.../bindings/platform/huawei,gaokun-ec.yaml | 124 ++++++++++++++++++
1 file changed, 124 insertions(+)
create mode 100644 Documentation/devicetree/bindings/platform/huawei,gaokun-ec.yaml
diff --git a/Documentation/devicetree/bindings/platform/huawei,gaokun-ec.yaml b/Documentation/devicetree/bindings/platform/huawei,gaokun-ec.yaml
new file mode 100644
index 000000000..4a03b0ee3
--- /dev/null
+++ b/Documentation/devicetree/bindings/platform/huawei,gaokun-ec.yaml
@@ -0,0 +1,124 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/platform/huawei,gaokun-ec.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Huawei Matebook E Go Embedded Controller
+
+maintainers:
+ - Pengyu Luo <mitltlatltl@gmail.com>
+
+description:
+ Different from other Qualcomm Snapdragon sc8180x and sc8280xp-based
+ machines, the Huawei Matebook E Go tablets use embedded controllers
+ while others use a system called PMIC GLink which handles battery,
+ UCSI, USB Type-C DP Alt Mode. In addition, Huawei's implementation
+ also handles additional features, such as charging thresholds, FN
+ lock, smart charging, tablet lid status, thermal sensors, and more.
+
+properties:
+ compatible:
+ enum:
+ - huawei,gaokun3-ec
+
+ reg:
+ const: 0x38
+
+ '#address-cells':
+ const: 1
+
+ '#size-cells':
+ const: 0
+
+ interrupts:
+ maxItems: 1
+
+patternProperties:
+ '^connector@[01]$':
+ $ref: /schemas/connector/usb-connector.yaml#
+
+ properties:
+ reg:
+ maxItems: 1
+
+required:
+ - compatible
+ - reg
+ - interrupts
+
+additionalProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/interrupt-controller/irq.h>
+ i2c {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ embedded-controller@38 {
+ compatible = "huawei,gaokun3-ec";
+ reg = <0x38>;
+
+ interrupts-extended = <&tlmm 107 IRQ_TYPE_LEVEL_LOW>;
+
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ connector@0 {
+ compatible = "usb-c-connector";
+ reg = <0>;
+ power-role = "dual";
+ data-role = "dual";
+
+ ports {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ port@0 {
+ reg = <0>;
+
+ ucsi0_ss_in: endpoint {
+ remote-endpoint = <&usb_0_qmpphy_out>;
+ };
+ };
+
+ port@1 {
+ reg = <1>;
+
+ ucsi0_sbu: endpoint {
+ remote-endpoint = <&usb0_sbu_mux>;
+ };
+ };
+ };
+ };
+
+ connector@1 {
+ compatible = "usb-c-connector";
+ reg = <1>;
+ power-role = "dual";
+ data-role = "dual";
+
+ ports {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ port@0 {
+ reg = <0>;
+
+ ucsi1_ss_in: endpoint {
+ remote-endpoint = <&usb_1_qmpphy_out>;
+ };
+ };
+
+ port@1 {
+ reg = <1>;
+
+ ucsi1_sbu: endpoint {
+ remote-endpoint = <&usb1_sbu_mux>;
+ };
+ };
+ };
+ };
+ };
+ };
--
2.47.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v3 1/6] dt-bindings: platform: Add Huawei Matebook E Go EC
2025-01-13 17:50 [PATCH v3 1/6] dt-bindings: platform: Add Huawei Matebook E Go EC Pengyu Luo
@ 2025-01-14 8:27 ` Krzysztof Kozlowski
2025-01-14 9:21 ` Pengyu Luo
0 siblings, 1 reply; 3+ messages in thread
From: Krzysztof Kozlowski @ 2025-01-14 8:27 UTC (permalink / raw)
To: Pengyu Luo
Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, devicetree,
linux-kernel
On Tue, Jan 14, 2025 at 01:50:23AM +0800, Pengyu Luo wrote:
> Add binding for the EC found in the Huawei Matebook E Go and
> Huawei Matebook E Go LTE 2-in-1 tablets, the former one is a QS sc8280xp
> based tablet, the latter one is a QS sc8180x based tablet.
>
> This series has a codename, gaokun. More information about gaokun, please
> check https://bugzilla.kernel.org/show_bug.cgi?id=219645
>
> Signed-off-by: Pengyu Luo <mitltlatltl@gmail.com>
> ---
> .../bindings/platform/huawei,gaokun-ec.yaml | 124 ++++++++++++++++++
> 1 file changed, 124 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/platform/huawei,gaokun-ec.yaml
>
This got disconnected from the rest, so you need to resend. Otherwise I
don't see how maintainer can apply the set.
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
<form letter>
This is an automated instruction, just in case, because many review tags
are being ignored. If you know the process, you can skip it (please do
not feel offended by me posting it here - no bad intentions intended).
If you do not know the process, here is a short explanation:
Please add Acked-by/Reviewed-by/Tested-by tags when posting new
versions of patchset, under or above your Signed-off-by tag, unless
patch changed significantly (e.g. new properties added to the DT
bindings). Tag is "received", when provided in a message replied to you
on the mailing list. Tools like b4 can help here. However, there's no
need to repost patches *only* to add the tags. The upstream maintainer
will do that for tags received on the version they apply.
https://elixir.bootlin.com/linux/v6.12-rc3/source/Documentation/process/submitting-patches.rst#L577
</form letter>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v3 1/6] dt-bindings: platform: Add Huawei Matebook E Go EC
2025-01-14 8:27 ` Krzysztof Kozlowski
@ 2025-01-14 9:21 ` Pengyu Luo
0 siblings, 0 replies; 3+ messages in thread
From: Pengyu Luo @ 2025-01-14 9:21 UTC (permalink / raw)
To: krzk; +Cc: conor+dt, devicetree, krzk+dt, linux-kernel, mitltlatltl, robh
On Tue, Jan 14, 2025 at 4:27 PM Krzysztof Kozlowski <krzk@kernel.org> wrote:
> On Tue, Jan 14, 2025 at 01:50:23AM +0800, Pengyu Luo wrote:
> > Add binding for the EC found in the Huawei Matebook E Go and
> > Huawei Matebook E Go LTE 2-in-1 tablets, the former one is a QS sc8280xp
> > based tablet, the latter one is a QS sc8180x based tablet.
> >
> > This series has a codename, gaokun. More information about gaokun, please
> > check https://bugzilla.kernel.org/show_bug.cgi?id=219645
> >
> > Signed-off-by: Pengyu Luo <mitltlatltl@gmail.com>
> > ---
> > .../bindings/platform/huawei,gaokun-ec.yaml | 124 ++++++++++++++++++
> > 1 file changed, 124 insertions(+)
> > create mode 100644 Documentation/devicetree/bindings/platform/huawei,gaokun-ec.yaml
> >
>
> This got disconnected from the rest, so you need to resend. Otherwise I
> don't see how maintainer can apply the set.
>
I am sorry, I screwed up. I used a wrong way to send it. I think I will send
next version in the next few days. Since Guenter and Ilpo have reviewed the
base driver, I need fix something.
> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
>
> ---
>
> <form letter>
> This is an automated instruction, just in case, because many review tags
> are being ignored. If you know the process, you can skip it (please do
> not feel offended by me posting it here - no bad intentions intended).
> If you do not know the process, here is a short explanation:
>
> Please add Acked-by/Reviewed-by/Tested-by tags when posting new
> versions of patchset, under or above your Signed-off-by tag, unless
> patch changed significantly (e.g. new properties added to the DT
> bindings). Tag is "received", when provided in a message replied to you
> on the mailing list. Tools like b4 can help here. However, there's no
> need to repost patches *only* to add the tags. The upstream maintainer
> will do that for tags received on the version they apply.
>
> https://elixir.bootlin.com/linux/v6.12-rc3/source/Documentation/process/submitting-patches.rst#L577
> </form letter>
>
> Best regards,
> Krzysztof
>
Best wishes,
Pengyu
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-01-14 9:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-13 17:50 [PATCH v3 1/6] dt-bindings: platform: Add Huawei Matebook E Go EC Pengyu Luo
2025-01-14 8:27 ` Krzysztof Kozlowski
2025-01-14 9:21 ` Pengyu Luo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox