Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp14296952rwd; Sat, 24 Jun 2023 16:44:28 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4rnQyJBrtZHJXNCi5CB/6+d3koIn5nW9bbUnbm6Bx/6lP14Rb+ZQZKpKRN2sjoRlfjPhIg X-Received: by 2002:a5e:a510:0:b0:783:3899:e1d0 with SMTP id 16-20020a5ea510000000b007833899e1d0mr4556587iog.6.1687650268158; Sat, 24 Jun 2023 16:44:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687650268; cv=none; d=google.com; s=arc-20160816; b=j+aw4RPABAG42xeUnEeSXsQkA399XzPtcxP2Mw7UQ1yvjBnvd96YaSIVm1Wvx4JZhL sUi1ZrwmZoqhlJOYzjLmGkbC9aqJvwP+TnDdAkDmrxFCPyIZiPxChnetJYx2NDBfxdwv itaodO7IUiwHy6Z6L/rr5IHgUuC387sGVo/TSBhBAR13llxws4wwFgLP185kc2pO2ibk wZzwNVAXcOSYYh3t/g59no7XTyIsGhNE3azvFP+J4dboke/d4r9fYC1TBfmemstsRU30 LrLdUviN64drWGtwN3aDgWrTWkI7ysEmpxJiXmkK04t8xSfm2QrDj6R7hoSvPO//IFOj NbOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=4WdDt11MYZioKMB3gqCGdUJFk6irWr34L7VPfhui5X0=; fh=VD4tqtiI2bbR6SrrLsOfWFk0YIZi+zW8Ns3B6BIuLRE=; b=YH3snvYMQbLAEJkm49gdC4iQaKq89dQUEls4nGyIAAf+O2IOXZEh+MJLrDteJ/pn+z +66u+a8CQBJ7gWjKNRr1GGOXBCgtF4G0FYjulb00BIBCZme5OzjJgcQ5Y97Pi6oFE4SF deGCFOhQwctFO12JmertDe2ePcz8m5hrssmovXL88IkfUdwM75Ye04rfFXfy867yNgjV 6d7cE1e1WnVcqPHhn9dd/Rioe4YlMvy5OzRxWhqNu7VfBaH8zu5c/WLWIXtPAvYhoA0b owJ4cY7eilrQwqdakSU+d3QGFFGYnSuGZIon23CEmiOnrOunLexe2yweVUbPrzs2MUDo Wclg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=QF2t+42Z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z20-20020a17090ad79400b00262e5a82047si177522pju.44.2023.06.24.16.44.16; Sat, 24 Jun 2023 16:44:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=QF2t+42Z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229890AbjFXXRf (ORCPT + 99 others); Sat, 24 Jun 2023 19:17:35 -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-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=20Ignacio=20Aramend=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=20Ignacio=20Aramend=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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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"), -- 2.41.0