diff mbox series

[v2,3/5] platform/surface: aggregator_registry: Add Surface Pro 9 5G

Message ID CA+kEDGGJyHYy8T2GJgVA_t6BEqxdGCuovuu1aYuqQZz=Y4Cemw@mail.gmail.com (mailing list archive)
State New
Delegated to: Hans de Goede
Headers show
Series None | expand

Commit Message

Jérôme de Bretagne Oct. 7, 2024, 6:25 p.m. UTC
Hi,

I've not sent this specific patch to the correct recipients according
to get_maintainer.pl, here is the forward to include you, Hans and
Ilpo. Sorry for the mistake.

Regards,
Jérôme

---------- Forwarded message ---------
De : Jérôme de Bretagne <jerome.debretagne@gmail.com>
Date: lun. 9 sept. 2024 à 00:40
Subject: [PATCH v2 3/5] platform/surface: aggregator_registry: Add
Surface Pro 9 5G
To: Bjorn Andersson <andersson@kernel.org>, Konrad Dybcio
<konradybcio@kernel.org>, Rob Herring <robh@kernel.org>, Krzysztof
Kozlowski <krzk+dt@kernel.org>, Conor Dooley <conor+dt@kernel.org>
Cc: Johan Hovold <johan+linaro@kernel.org>,
<linux-arm-msm@vger.kernel.org>, <devicetree@vger.kernel.org>,
<linux-kernel@vger.kernel.org>, Maximilian Luz
<luzmaximilian@gmail.com>


Add SAM client device nodes for the Surface Pro 9 5G, with the usual
battery/AC and HID nodes for keyboard and touchpad support.

Signed-off-by: Jérôme de Bretagne <jerome.debretagne@gmail.com>
---
 .../surface/surface_aggregator_registry.c       | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

---------------------------------------- */

@@ -462,6 +477,8 @@ static const struct acpi_device_id
ssam_platform_hub_acpi_match[] = {
 MODULE_DEVICE_TABLE(acpi, ssam_platform_hub_acpi_match);

 static const struct of_device_id ssam_platform_hub_of_match[]
__maybe_unused = {
+       /* Surface Pro 9 5G */
+       { .compatible = "microsoft,arcata", (void *)ssam_node_group_sp9_5G },
        /* Surface Laptop 7 */
        { .compatible = "microsoft,romulus13", (void *)ssam_node_group_sl7 },
        { .compatible = "microsoft,romulus15", (void *)ssam_node_group_sl7 },
--
2.45.2
diff mbox series

Patch

diff --git a/drivers/platform/surface/surface_aggregator_registry.c
b/drivers/platform/surface/surface_aggregator_registry.c
index 25c8aa2131d6..8b34d7e465c2 100644
--- a/drivers/platform/surface/surface_aggregator_registry.c
+++ b/drivers/platform/surface/surface_aggregator_registry.c
@@ -390,6 +390,21 @@  static const struct software_node
*ssam_node_group_sp9[] = {
        NULL,
 };

+/* Devices for Surface Pro 9 5G. */
+static const struct software_node *ssam_node_group_sp9_5G[] = {
+       &ssam_node_root,
+       &ssam_node_hub_kip,
+       &ssam_node_bat_ac,
+       &ssam_node_bat_main,
+       &ssam_node_tmp_sensors,
+       &ssam_node_hid_kip_keyboard,
+       &ssam_node_hid_kip_penstash,
+       &ssam_node_hid_kip_touchpad,
+       &ssam_node_hid_kip_fwupd,
+       &ssam_node_hid_sam_sensors,
+       &ssam_node_kip_tablet_switch,
+       NULL,
+};

 /* -- SSAM platform/meta-hub driver.