Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp13761516rwb; Sun, 27 Nov 2022 10:51:56 -0800 (PST) X-Google-Smtp-Source: AA0mqf6x+JRBulA21Li3cW1gbe19032QpZbYeHe684C/IO83Aj78jMpiya/c7xOhlDRKb0IMNc6n X-Received: by 2002:aa7:dd0f:0:b0:46a:40f5:aca with SMTP id i15-20020aa7dd0f000000b0046a40f50acamr20385254edv.427.1669575115847; Sun, 27 Nov 2022 10:51:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669575115; cv=none; d=google.com; s=arc-20160816; b=ONMSZ/kwrZWpjXvRE5RVdMKU0J5+CIg9rcqnLpFvPGb+FJTTUNzYwvcz414G4p6sJe U+fEDtWw1/v5xaELHQN6zSk0YJQLfyHTj07TCrGGgxaqYFyq2lgSklMvrlU5z/KQjWBu dEvR746BriPYT7WJrQuOZsgmwlm5gwYWonEAccT49JRqIlPwIJoRg9Ap5KsmqtuiCXUw tc34//bQDcHMMKbqTaKvInEHctGH8KGFnsL06VqJ6lHKWT8WBVaoghMqi8PSBEKxDJRn tQUXGAL5h1/temGwp2kTp1fJGexAXsM1juOyGzM7Qv0xMT41KqC0uwRgCfuxeIAn5s7a hDFw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=SspE+TBwWSr9TCW1N3as9/TtY9hK2M85GwILDRXgC3E=; b=Pna4lTGAHu2HxnEg6ywhtEdbVjheUle3jR8DHqAG0eT5mUiYzgnUSof6k2Ww2atoc4 rLtmqYXaXjDzFOJe15pfy5UBuZQ0jtC5voXmmRzpRfLBdbKtSzJTXeSnptuNy7CxeFiC z1OwkM6AyycTUV+k9ICRBpnUZcOPiABfdbOLGKflGHG7Ynqk+XlmullEErgmpCeINgtn eZDRSsCMNsxKZ7QLDoaeq6l4rSScwSPb1z1YaN4ZPo0YLgMg35pg9E3SZFKhOW2Ewmzm iwPrWpQV7zFN1nQjnxMkxYRwTCe0mf58vnqPik7sZhQqBgW/fVRc8DhOa9fMtULAl8Af 9BDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=WPREulSU; 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=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ho39-20020a1709070ea700b007aec7f879basi8301064ejc.22.2022.11.27.10.51.33; Sun, 27 Nov 2022 10:51:55 -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=pass header.i=@redhat.com header.s=mimecast20190719 header.b=WPREulSU; 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=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229600AbiK0SYP (ORCPT + 84 others); Sun, 27 Nov 2022 13:24:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229500AbiK0SYN (ORCPT ); Sun, 27 Nov 2022 13:24:13 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6250B636B for ; Sun, 27 Nov 2022 10:23:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1669573394; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=SspE+TBwWSr9TCW1N3as9/TtY9hK2M85GwILDRXgC3E=; b=WPREulSUC4V4eX+VQN4oLftMzYoWF+jFEZ89HUFygCrFvLg1R+/lV5jipgmhMu890iAno0 zmh6DxVMC0rMYLCa/aHU/19sDDMmnK3WYmJTjuwWr3YjZQfPIuHNm1OqFWAqEjajzyOKr3 VwlU0XcW4F+wB2khHBZfWOl1jdoynuc= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-375-NPVO82XUNsek8f9bZ6Bryw-1; Sun, 27 Nov 2022 13:23:11 -0500 X-MC-Unique: NPVO82XUNsek8f9bZ6Bryw-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 8201D185A78F; Sun, 27 Nov 2022 18:23:10 +0000 (UTC) Received: from localhost.localdomain (unknown [10.39.192.80]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7BDF849BB61; Sun, 27 Nov 2022 18:23:09 +0000 (UTC) From: Hans de Goede To: Wolfram Sang , Lee Jones , MyungJoo Ham , Chanwoo Choi Cc: Hans de Goede , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/3] mfd: intel_soc_pmic_chtwc: Add Lenovo Yoga Tab 3 X90F to intel_cht_wc_models Date: Sun, 27 Nov 2022 19:22:55 +0100 Message-Id: <20221127182257.104410-2-hdegoede@redhat.com> In-Reply-To: <20221127182257.104410-1-hdegoede@redhat.com> References: <20221127182257.104410-1-hdegoede@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.1 on 10.11.54.9 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE 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 The drivers for various CHT Whiskey Cove PMIC child-devices need to know the model, since they have model specific behavior. The DMI match table for this is shared between the child-device-drivers inside the MFD driver. Add the Lenovo Yoga Tab 3 X90F, which is a previously unknown tablet model with a CHT Whiskey Cove PMIC, to the intel_cht_wc_models enum and to the DMI match table. Signed-off-by: Hans de Goede --- drivers/mfd/intel_soc_pmic_chtwc.c | 8 ++++++++ include/linux/mfd/intel_soc_pmic.h | 1 + 2 files changed, 9 insertions(+) diff --git a/drivers/mfd/intel_soc_pmic_chtwc.c b/drivers/mfd/intel_soc_pmic_chtwc.c index 9216f0d34206..d53dae255490 100644 --- a/drivers/mfd/intel_soc_pmic_chtwc.c +++ b/drivers/mfd/intel_soc_pmic_chtwc.c @@ -165,6 +165,14 @@ static const struct dmi_system_id cht_wc_model_dmi_ids[] = { /* Non exact match to match all versions */ DMI_MATCH(DMI_PRODUCT_NAME, "Lenovo YB1-X9"), }, + }, { + /* Lenovo Yoga Tab 3 Pro YT3-X90F */ + .driver_data = (void *)(long)INTEL_CHT_WC_LENOVO_YT3_X90, + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "Intel Corporation"), + DMI_MATCH(DMI_PRODUCT_NAME, "CHERRYVIEW D1 PLATFORM"), + DMI_MATCH(DMI_PRODUCT_VERSION, "Blade3-10A-001"), + }, }, { } }; diff --git a/include/linux/mfd/intel_soc_pmic.h b/include/linux/mfd/intel_soc_pmic.h index 945bde1fe55c..9ba2c1a8d836 100644 --- a/include/linux/mfd/intel_soc_pmic.h +++ b/include/linux/mfd/intel_soc_pmic.h @@ -18,6 +18,7 @@ enum intel_cht_wc_models { INTEL_CHT_WC_GPD_WIN_POCKET, INTEL_CHT_WC_XIAOMI_MIPAD2, INTEL_CHT_WC_LENOVO_YOGABOOK1, + INTEL_CHT_WC_LENOVO_YT3_X90, }; /** -- 2.38.1