Re: [PATCH v2 2/3] platform: arm64: Add driver for EC found in most X1E laptops
From: Dmitry Baryshkov
Date: Sun Dec 22 2024 - 01:56:55 EST
On Fri, Dec 20, 2024 at 07:50:45PM +0800, Aiqun(Maria) Yu wrote:
> On 12/20/2024 4:58 AM, Maya Matuszczyk wrote:
> > czw., 19 gru 2024 o 21:43 Bryan O'Donoghue
> > <bryan.odonoghue@xxxxxxxxxx> napisał(a):
> >>
> >> On 19/12/2024 20:08, Maya Matuszczyk wrote:
> >>> Currently it features only reporting that the AP is going to suspend,
> >>> which results in keyboard backlight turning off and the power LED
> >>> slowly blinking on the Lenovo Yoga Slim 7x.
> >>>
> >>> Honor Magicbook Art 14 and Lenovo Yoga Slim 7x are known to have
> >>> firmware with extensions which would need appropriate handling.
> >>> For reverse engineering the firmware on them I have written a Rust
> >>> utility:
> >>>
> >>> https://github.com/Maccraft123/it8987-qcom-tool.git
> >>>
> >>> Signed-off-by: Maya Matuszczyk <maccraft123mc@xxxxxxxxx>
> >>> ---
> >>> MAINTAINERS | 6 +
> >>> drivers/platform/arm64/Kconfig | 8 ++
> >>> drivers/platform/arm64/Makefile | 1 +
> >>> drivers/platform/arm64/qcom-x1e-it8987.c | 158 +++++++++++++++++++++++
> >>> 4 files changed, 173 insertions(+)
> >>> create mode 100644 drivers/platform/arm64/qcom-x1e-it8987.c
> >>>
> >>> diff --git a/MAINTAINERS b/MAINTAINERS
> >>> index b878ddc99f94..08d170e2e1e3 100644
> >>> --- a/MAINTAINERS
> >>> +++ b/MAINTAINERS
> >>> @@ -12890,6 +12890,12 @@ S: Maintained
> >>> W: http://legousb.sourceforge.net/
> >>> F: drivers/usb/misc/legousbtower.c
> >>>
> >>> +QCOM IT8987 EC DRIVER
> >>> +M: Maya Matuszczyk <maccraft123mc@xxxxxxxxx>
> >>> +S: Maintained
> >>> +F: Documentation/devicetree/bindings/platform/qcom,x1e-it8987-ec.yaml
>
> Actually, the IT8987 is from ITE Tech. As far as I know, there are other
> platforms besides x1e that use this. So if this driver can be also
> applied for all ITE it8987, it might be better to say 'ITE IT8987'
> instead of 'QCOM IT8987'. This also applies to the file name and function.
ECS Liva QC710 also uses IT8987 as EC, though DSDT doesn't seem to
contain anything useful wrt. the EC.
--
With best wishes
Dmitry