From patchwork Mon Jan 23 23:01:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Kemnade X-Patchwork-Id: 47462 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1858584wrn; Mon, 23 Jan 2023 15:05:54 -0800 (PST) X-Google-Smtp-Source: AMrXdXsGMTzbA4chVafzEyQZzOYKLmuX6ANy8AXi1aJJMHCA7Z43VeTMugqlGMiEZmI8ScCi3kcI X-Received: by 2002:a05:6a20:aa9f:b0:a3:7d0b:5dcb with SMTP id ck31-20020a056a20aa9f00b000a37d0b5dcbmr47702777pzb.15.1674515153979; Mon, 23 Jan 2023 15:05:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674515153; cv=none; d=google.com; s=arc-20160816; b=JJ+T1oFcUS4ecMpuQamkMa0Wluel9pDPxijYipHO0pVlDqJ3w9DLudICXUWkCTVmR3 3oEIjZ4yl0MUZwuW24ZwD+6i1ucr7L7qRvwTRdYd3/TjHHHSAq/HWo8D8CwjLMLBS3ms JRIaN/MAylkN0KmU1t1CsaT2CUjdEtelkmJVQntLkW1lOy5U/zBECN7zVYkpjh4854cT HOA8X2fXnpPwnKPF/tXAG+Kf6zpNwo/tw3WfCvmzIx6+dTFfcRjYqCTzJyub22m/OOsy POeCcDYSdBTwFkmSFbFHlYGiotP3qthMS4Z7BzS9MARw+oHyrvVlvx2dcZgJuwNZUkyZ 6HQA== 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=e/fxNQstuZOWCkHt90b95Dh3VhhuJBbKuO0AtP6Xtsk=; b=jcQw1A85VoauYp671f2mlFpSW+y2BTHHgLo5SXn5eKjZrFHorHCqA4rtYHJZ76q9C6 kZJ2iKJWhGlRuJaQwMS6WHMLKy3KQen05fmNqtdGXPmdyzMqQ259ODgdcv1m9W6FaqYF KIjxUCv9mCwa8xL88C1wIktQbD8IZfLfASACEXqYm2BMM0WwgTDCnd0perhH1zAA6nTk OvbBt2iwiBojcMnXJrfwa980Z1L6lvDE1AXExcequpQyghV2Ii5sdy9K1BChNygqGgLo kNo4sYVcFb08C5oSaKyKVXxiZtY7DOmVArusJO4JmQJhh7SobMIaPEHmPJ9T2fLmG/2B tnMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kemnade.info header.s=20220719 header.b="XCNx1/bl"; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n8-20020a63b448000000b00476e3bafe6dsi238844pgu.481.2023.01.23.15.05.41; Mon, 23 Jan 2023 15:05:53 -0800 (PST) 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=fail header.i=@kemnade.info header.s=20220719 header.b="XCNx1/bl"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231660AbjAWXCI (ORCPT + 99 others); Mon, 23 Jan 2023 18:02:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230489AbjAWXCF (ORCPT ); Mon, 23 Jan 2023 18:02:05 -0500 Received: from mail.andi.de1.cc (mail.andi.de1.cc [IPv6:2a01:238:4321:8900:456f:ecd6:43e:202c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7CD494ED8 for ; Mon, 23 Jan 2023 15:01:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kemnade.info; s=20220719; h=Content-Transfer-Encoding:MIME-Version: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=e/fxNQstuZOWCkHt90b95Dh3VhhuJBbKuO0AtP6Xtsk=; b=XCNx1/blJw43MPW0E2sXa4EFxW 2mfHYWtmPQPTF+SSv5JHyZNfDGgu0azz9BxqNk0B01KabEytEUEBddK6naB16LxJobo+6mc+yik9y R7LQCAGd5PvEhMfOVaLjvjhLWVtn0arILNakkCIRhsUWnFk6AuGcBd/Hl3Mo9yr7FglZ6BkQrNhNT 1/tN0RJ2iOIMjMIfuojOAzDdZxaYle3t/Jc/NtnzU4JfbVYfgwVQRYr5rKJibgDX15Y5MfdYZfd7V QprVyaPdqvbktAjxp3J6mf5J2ZtfXZjiasNiN9s2vKYY1/2YwNYBq3wFhJsr3YkSjRr/68h9Z2vC3 xSM/t8aw==; Received: from p200300ccff0608001a3da2fffebfd33a.dip0.t-ipconnect.de ([2003:cc:ff06:800:1a3d:a2ff:febf:d33a] helo=aktux) by mail.andi.de1.cc with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1pK5oX-0001Z2-3R; Tue, 24 Jan 2023 00:01:21 +0100 Received: from andi by aktux with local (Exim 4.94.2) (envelope-from ) id 1pK5oW-00D9Pe-FA; Tue, 24 Jan 2023 00:01:20 +0100 From: Andreas Kemnade To: j.neuschaefer@gmx.net, lee@kernel.org, linux-kernel@vger.kernel.org Cc: Andreas Kemnade Subject: [PATCH] mfd: ntxec: Add version number for EC in Tolino Vision Date: Tue, 24 Jan 2023 00:01:14 +0100 Message-Id: <20230123230114.3134400-1-andreas@kemnade.info> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-Spam-Score: -1.0 (-) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755856402438187857?= X-GMAIL-MSGID: =?utf-8?q?1755856402438187857?= The EC firmware has a different version number than anything defined until now. Signed-off-by: Andreas Kemnade --- drivers/mfd/ntxec.c | 1 + include/linux/mfd/ntxec.h | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/drivers/mfd/ntxec.c b/drivers/mfd/ntxec.c index e16a7a82a929..b02785b10d48 100644 --- a/drivers/mfd/ntxec.c +++ b/drivers/mfd/ntxec.c @@ -175,6 +175,7 @@ static int ntxec_probe(struct i2c_client *client) /* Bail out if we encounter an unknown firmware version */ switch (version) { case NTXEC_VERSION_KOBO_AURA: + case NTXEC_VERSION_TOLINO_VISION: subdevs = ntxec_subdev; n_subdevs = ARRAY_SIZE(ntxec_subdev); break; diff --git a/include/linux/mfd/ntxec.h b/include/linux/mfd/ntxec.h index cc6f07bfa2b3..562895eb9a31 100644 --- a/include/linux/mfd/ntxec.h +++ b/include/linux/mfd/ntxec.h @@ -35,4 +35,8 @@ static inline u16 ntxec_reg8(u8 value) #define NTXEC_VERSION_KOBO_AURA 0xd726 /* found in Kobo Aura */ #define NTXEC_VERSION_TOLINO_SHINE2 0xf110 /* found in Tolino Shine 2 HD */ +/* + * found in Tolino Vision, contains RTC, ADC, PWM, home pad + */ +#define NTXEC_VERSION_TOLINO_VISION 0xe135 #endif