devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/3] arm64: dts: qcom: Introduce Huawei Matebook E Go
@ 2024-12-20 16:05 Pengyu Luo
  2024-12-20 16:05 ` [PATCH v2 1/3] dt-bindings: arm: qcom: Document Huawei Matebook E Go (sc8280xp) Pengyu Luo
                   ` (3 more replies)
  0 siblings, 4 replies; 14+ messages in thread
From: Pengyu Luo @ 2024-12-20 16:05 UTC (permalink / raw)
  To: andersson, conor+dt, konradybcio, krzk+dt, robh
  Cc: chenxuecong2009, devicetree, gty0622, linux-arm-msm, linux-kernel,
	Pengyu Luo

Add support for the SC8280XP-based Huawei Matebook E Go (sc8280xp)

Signed-off-by: Pengyu Luo <mitltlatltl@gmail.com>
---
Changes in v2:
- use Co-developed-by: tag (Konrad)
- follow this order (property-n property-names) (Konrad)
- add a label for tablet mode switch (Konrad)
- handle line breaks properly (Konrad)
- remove the wlan calibration variant (Konrad)
- drop the venus node, as upstream has not supported it now
- Link to v1: https://lore.kernel.org/linux-arm-msm/20241211153754.356476-1-mitltlatltl@gmail.com

---
Pengyu Luo (3):
  dt-bindings: arm: qcom: Document Huawei Matebook E Go (sc8280xp)
  firmware: qcom: scm: Allow QSEECOM on Huawei Matebook E Go (sc8280xp)
  arm64: dts: qcom: sc8280xp: Add Huawei Matebook E Go (sc8280xp)

 .../devicetree/bindings/arm/qcom.yaml         |    1 +
 arch/arm64/boot/dts/qcom/Makefile             |    1 +
 .../boot/dts/qcom/sc8280xp-huawei-gaokun3.dts | 1318 +++++++++++++++++
 drivers/firmware/qcom/qcom_scm.c              |    1 +
 4 files changed, 1321 insertions(+)
 create mode 100644 arch/arm64/boot/dts/qcom/sc8280xp-huawei-gaokun3.dts

-- 
2.47.1


^ permalink raw reply	[flat|nested] 14+ messages in thread
* [PATCH 0/5] platform: arm64: Huawei Matebook E Go embedded controller
@ 2024-12-27 17:13 Pengyu Luo
  2024-12-27 17:13 ` [PATCH 5/5] arm64: dts: qcom: gaokun3: Add Embedded Controller node Pengyu Luo
  0 siblings, 1 reply; 14+ messages in thread
From: Pengyu Luo @ 2024-12-27 17:13 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Bjorn Andersson,
	Konrad Dybcio, Hans de Goede, Ilpo Järvinen,
	Bryan O'Donoghue, Sebastian Reichel, Heikki Krogerus,
	Greg Kroah-Hartman
  Cc: devicetree, linux-kernel, linux-arm-msm, platform-driver-x86,
	linux-pm, linux-usb, Dmitry Baryshkov, Nikita Travkin, Pengyu Luo

This adds binding, drivers and the DT support for the Huawei Matebook E Go
(sc8280xp) Embedded Controller which is also found in Huawei Matebook E Go
LTE (sc8180x), but I don't have the sc8180x one to perferform test, so this
series enable support for sc8280xp variant only, this series provides the
following features:

- battery and charger information report
- charging thresholds control
- FN lock (An alternative method)
- LID switch detection
- Temperature sensors
- USB Type-C altmode
- USB Type-C PD(high power)

Thanks to the work of Bjorn and Dmitry([1]), the work of Nikita([2]), writing a
EC driver won't be suffering. This work refers a lot to their work, also, many
other works. I mentioned them in the source file.

Depends: https://lore.kernel.org/linux-arm-msm/20241220160530.444864-1-mitltlatltl@gmail.com

[1] https://lore.kernel.org/all/20240614-yoga-ec-driver-v7-0-9f0b9b40ae76@linaro.org/
[2] https://lore.kernel.org/all/20240315-aspire1-ec-v5-0-f93381deff39@trvn.ru/

Signed-off-by: Pengyu Luo <mitltlatltl@gmail.com>
---
Pengyu Luo (5):
  dt-bindings: platform: Add Huawei Matebook E Go EC
  platform: arm64: add Huawei Matebook E Go (sc8280xp) EC driver
  usb: typec: ucsi: add Huawei Matebook E Go (sc8280xp) ucsi driver
  power: supply: add Huawei Matebook E Go (sc8280xp) psy driver
  arm64: dts: qcom: gaokun3: Add Embedded Controller node

 .../bindings/platform/huawei,gaokun-ec.yaml   | 116 ++++
 .../boot/dts/qcom/sc8280xp-huawei-gaokun3.dts | 139 ++++
 drivers/platform/arm64/Kconfig                |  19 +
 drivers/platform/arm64/Makefile               |   2 +
 drivers/platform/arm64/huawei-gaokun-ec.c     | 598 ++++++++++++++++++
 drivers/platform/arm64/huawei-gaokun-wmi.c    | 283 +++++++++
 drivers/power/supply/Kconfig                  |   9 +
 drivers/power/supply/Makefile                 |   1 +
 drivers/power/supply/huawei-gaokun-battery.c  | 446 +++++++++++++
 drivers/usb/typec/ucsi/Kconfig                |   9 +
 drivers/usb/typec/ucsi/Makefile               |   1 +
 drivers/usb/typec/ucsi/ucsi_huawei_gaokun.c   | 481 ++++++++++++++
 .../linux/platform_data/huawei-gaokun-ec.h    |  90 +++
 13 files changed, 2194 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/platform/huawei,gaokun-ec.yaml
 create mode 100644 drivers/platform/arm64/huawei-gaokun-ec.c
 create mode 100644 drivers/platform/arm64/huawei-gaokun-wmi.c
 create mode 100644 drivers/power/supply/huawei-gaokun-battery.c
 create mode 100644 drivers/usb/typec/ucsi/ucsi_huawei_gaokun.c
 create mode 100644 include/linux/platform_data/huawei-gaokun-ec.h

-- 
2.47.1


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2024-12-30 16:24 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-20 16:05 [PATCH v2 0/3] arm64: dts: qcom: Introduce Huawei Matebook E Go Pengyu Luo
2024-12-20 16:05 ` [PATCH v2 1/3] dt-bindings: arm: qcom: Document Huawei Matebook E Go (sc8280xp) Pengyu Luo
2024-12-20 16:05 ` [PATCH v2 2/3] firmware: qcom: scm: Allow QSEECOM on " Pengyu Luo
2024-12-20 16:05 ` [PATCH v2 3/3] arm64: dts: qcom: sc8280xp: Add " Pengyu Luo
2024-12-20 21:13   ` Konrad Dybcio
2024-12-21  7:57     ` Pengyu Luo
2024-12-23 12:25       ` Konrad Dybcio
2024-12-23 13:07         ` Pengyu Luo
2024-12-30 14:54           ` Konrad Dybcio
2024-12-30 16:22             ` [PATCH 5/5] arm64: dts: qcom: gaokun3: Add Embedded Controller node Pengyu Luo
2024-12-26 22:38 ` (subset) [PATCH v2 0/3] arm64: dts: qcom: Introduce Huawei Matebook E Go Bjorn Andersson
  -- strict thread matches above, loose matches on Subject: below --
2024-12-27 17:13 [PATCH 0/5] platform: arm64: Huawei Matebook E Go embedded controller Pengyu Luo
2024-12-27 17:13 ` [PATCH 5/5] arm64: dts: qcom: gaokun3: Add Embedded Controller node Pengyu Luo
2024-12-30 14:53   ` Konrad Dybcio
2024-12-30 16:22     ` Pengyu Luo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).