From patchwork Sat Jun 24 23:16:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Joaqu=C3=ADn_Ignacio_Aramend=C3=ADa?= X-Patchwork-Id: 13291781 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1BB01EB64DA for ; Sat, 24 Jun 2023 23:17:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229577AbjFXXRe (ORCPT ); Sat, 24 Jun 2023 19:17:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229537AbjFXXRe (ORCPT ); Sat, 24 Jun 2023 19:17:34 -0400 Received: from mail-ot1-x32d.google.com (mail-ot1-x32d.google.com [IPv6:2607:f8b0:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 48C701A1; Sat, 24 Jun 2023 16:17:33 -0700 (PDT) Received: by mail-ot1-x32d.google.com with SMTP id 46e09a7af769-6b5915d0816so1679562a34.1; Sat, 24 Jun 2023 16:17:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687648652; x=1690240652; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=4WdDt11MYZioKMB3gqCGdUJFk6irWr34L7VPfhui5X0=; b=QF2t+42ZS3kkfqWiy5x68D9/icqbQeVXG7007BWDQvOdK8xdc0E811AzokmBtAg1dM 4qDoC1sl12bC0wyeeIl1ZdXwWJHaDmwTgQw66+snmRa0+RrDSYHKnoBdRPH23Aaoi18r ZdyFG2LCoh8fYMfRhM8K+b22Xp+/uK+YAyn0MIGAPJA7yKx40+T8gy2q5j+KQH/qeV4S gQee7pB6JeqBKrYLfftanC81JRVHDpjBYpg+3BHo0230YkdyH1yqOEogQXup1B7Jv6xU 6g6B05P871MzJQicDhVIe3Vj1kTA3ItZ3yM0s+QudcSCCsmnlzKt0Ad16zDBUQjiV3LU Pcvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687648652; x=1690240652; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=4WdDt11MYZioKMB3gqCGdUJFk6irWr34L7VPfhui5X0=; b=eGucHQAUQxYHRLxEATE7ZH68QKAa2rkAVt4gMGAY8fu9MQIj4dU76806ARtBu2OtGm AmVNBtOCDD1XGtTzO4c2gJO8Rn3GHIVrRxRU64VmjNCzlk9NVfrcggDKpIE9w6K27XGP 5q1JhCyjlIGB8cCXztsYIt9qmfYkoZQkr9ecxvWyUEnSCb6muqbvH+iIxkaFO1jfakmV u0De9ZAr8iR95bO44dJ+4UjHefypqQER2PA8AHX1DZecL9h2HGzxkE5rpi3QEertsV3d kqiobLWr3unyTr7VoX7S20mXh7StnYwKb3b0Bg6Xi62ecWoPBuQQipHZr1Mi+MvR1uFu lPeQ== X-Gm-Message-State: AC+VfDxCwrDuPr8rbK/UAIclZsqzyCCvVLOq1JcLfIIFTx8GcWQqj8i3 XiJ9pREiK0r37ames+RA3aFrbStm6vE= X-Google-Smtp-Source: ACHHUZ7vVQSxbHx2xn9+X8KL47TXb/MKqY3Q4envHApbfY3f5paoMuiF/bR7e3Lfcke87zfacr8u2w== X-Received: by 2002:a9d:61d0:0:b0:6b7:3fda:20d5 with SMTP id h16-20020a9d61d0000000b006b73fda20d5mr276236otk.32.1687648652223; Sat, 24 Jun 2023 16:17:32 -0700 (PDT) Received: from smeagol.fibertel.com.ar ([201.235.4.68]) by smtp.gmail.com with ESMTPSA id h17-20020a9d6411000000b006b720475c38sm1189811otl.45.2023.06.24.16.17.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Jun 2023 16:17:30 -0700 (PDT) From: =?utf-8?q?Joaqu=C3=ADn_Ignacio_Aramend=C3=ADa?= To: linux@roeck-us.net Cc: Jerrod Frost , derekjohn.clark@gmail.com, jdelvare@suse.com, linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org, =?utf-8?q?Joaqu=C3=ADn_Ignacio_Aramend=C3=ADa?= Subject: [PATCH] hwmon: (oxp-sensors) Add support for AOKZOE A1 PRO Date: Sat, 24 Jun 2023 20:16:33 -0300 Message-ID: <20230624231637.14941-2-samsagax@gmail.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org From: Jerrod Frost This device is an iteration over the AOKZOE A1 with the same EC mapping and features. It also has support for tt_toggle. Thanks to Jerrod for authoring and testing. Signed-off-by: Joaquín Ignacio Aramendía --- Documentation/hwmon/oxp-sensors.rst | 2 ++ drivers/hwmon/oxp-sensors.c | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/Documentation/hwmon/oxp-sensors.rst b/Documentation/hwmon/oxp-sensors.rst index 0ca1f7728c34..3adeb7406243 100644 --- a/Documentation/hwmon/oxp-sensors.rst +++ b/Documentation/hwmon/oxp-sensors.rst @@ -30,6 +30,7 @@ Supported devices Currently the driver supports the following handhelds: - AOK ZOE A1 + - AOK ZOE A1 PRO - Aya Neo 2 - Aya Neo AIR - Aya Neo AIR Pro @@ -40,6 +41,7 @@ Currently the driver supports the following handhelds: "Turbo/Silent" button behaviour toggle is only supported on: - AOK ZOE A1 + - AOK ZOE A1 PRO - OneXPlayer mini AMD (only with updated alpha BIOS) - OneXPlayer mini AMD PRO diff --git a/drivers/hwmon/oxp-sensors.c b/drivers/hwmon/oxp-sensors.c index 1e59d97219c4..e1a907cae820 100644 --- a/drivers/hwmon/oxp-sensors.c +++ b/drivers/hwmon/oxp-sensors.c @@ -77,6 +77,13 @@ static const struct dmi_system_id dmi_table[] = { }, .driver_data = (void *)aok_zoe_a1, }, + { + .matches = { + DMI_MATCH(DMI_BOARD_VENDOR, "AOKZOE"), + DMI_EXACT_MATCH(DMI_BOARD_NAME, "AOKZOE A1 Pro"), + }, + .driver_data = (void *)aok_zoe_a1, + }, { .matches = { DMI_MATCH(DMI_BOARD_VENDOR, "AYANEO"),