Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp1054202rwl; Thu, 10 Aug 2023 05:58:39 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFC9KRHlJAPxoXFoSy7kkWEbonWFarcx3BiWLS0fTyC5istdRIJB71ZezNfoi0qGV7MTH6E X-Received: by 2002:aa7:cd06:0:b0:522:4f6d:c443 with SMTP id b6-20020aa7cd06000000b005224f6dc443mr2251503edw.23.1691672318874; Thu, 10 Aug 2023 05:58:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691672318; cv=none; d=google.com; s=arc-20160816; b=FzIagccSijUyQaoLLRB+20gfBBHX8Dcq1fRbKN/kpYfvjgqoRKDGI9oRIr0OprLzXF 1YZaQehzpUsvnbtNv2/u1ta8TE0mqr1A71P13ZArjyOr9JWfTXT/ntwXG1tqKDk1FL4H ypeonEgNFnVPCNxGJK/KILU/Z5/HRMbBo6Y4eJzOe3gVRL34Ytq7yVA3bBBgTquzPLli bfw+yTuxuub/AV2kMW9dcGoPw2r0li2hSRpukZsXImpTY4wK0Nn2j0qCxGEFskrrsHRW SenQCOBH3aGH87Eohi7xxTb2P5KVzdpswnWfsHRiH0/Pnh7h5VXaWiXETI0ZaxZwZuz8 GE+A== 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; bh=I/DmX9J9oIludHb0ZFQ8QH0+yEM6jDajxTCK/uOVr0E=; fh=EOVKa1Q6GgGoYzOG2CGFp6J3RvcIo7v4JgYPcVE7ct8=; b=DuzeaRDNo+ZfkKsulmb/jGB/r8JGfA/G0Yf0Pmh2r2F40NhZVmvgMvgLkSD/BC7ld1 fHElvGtYrSq5pbUNmpQ3ZfXMgUkdTX3niW8fvWL5Mw2ik9VeapIZ+GzWWcM+BuFpipex xoYsKoPxZNE4GOPAPMNLmKwJelyjIKiHY3qkpVCcithEX85hzDy4tV5/znpToXqIsx18 hn1OfEO3EUTOKXG+5AgKyl0zLOTprq/gF3o1wAY7+ZyMOKN7nhhYWjT7Z/JRJU7FvXX8 ZJ0DTk7xcWvzaWsOFBm9ZxrlIeJugV5g9d64R3UWdqvXirpEEahFm6U2x4EDFA+SOJMQ aCjA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c6-20020a056402120600b005232d3c639bsi1409907edw.47.2023.08.10.05.58.14; Thu, 10 Aug 2023 05:58:38 -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; 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 S234305AbjHJMQK (ORCPT + 99 others); Thu, 10 Aug 2023 08:16:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229503AbjHJMQJ (ORCPT ); Thu, 10 Aug 2023 08:16:09 -0400 Received: from air.basealt.ru (air.basealt.ru [194.107.17.39]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C9DEB19F; Thu, 10 Aug 2023 05:16:07 -0700 (PDT) Received: by air.basealt.ru (Postfix, from userid 490) id 0E6CA2F2023A; Thu, 10 Aug 2023 11:59:57 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,UPPERCASE_50_75 autolearn=no autolearn_force=no version=3.4.6 Received: from shell.ipa.basealt.ru (unknown [176.12.98.74]) by air.basealt.ru (Postfix) with ESMTPSA id 99F902F20231; Thu, 10 Aug 2023 11:59:54 +0000 (UTC) From: Alexander Ofitserov To: oficerovas@altlinux.org, Jean Delvare Cc: linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/3] i2c: i801: Add support for Intel Alder Lake PCH Date: Thu, 10 Aug 2023 14:59:36 +0300 Message-Id: <20230810115938.3741058-3-oficerovas@altlinux.org> X-Mailer: git-send-email 2.33.8 In-Reply-To: <20230810115938.3741058-1-oficerovas@altlinux.org> References: <20230810115938.3741058-1-oficerovas@altlinux.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add PCI ID of SMBus controller on Intel Alder Lake PCH-P and PCH-M Signed-off-by: Alexander Ofitserov --- drivers/i2c/busses/i2c-i801.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/i2c/busses/i2c-i801.c b/drivers/i2c/busses/i2c-i801.c index 45682d30d70567..8ca530ef3ba6f6 100644 --- a/drivers/i2c/busses/i2c-i801.c +++ b/drivers/i2c/busses/i2c-i801.c @@ -72,6 +72,8 @@ * Jasper Lake (SOC) 0x4da3 32 hard yes yes yes * Comet Lake-V (PCH) 0xa3a3 32 hard yes yes yes * Alder Lake-S (PCH) 0x7aa3 32 hard yes yes yes + * Alder Lake-P (PCH) 0x51a3 32 hard yes yes yes + * Alder Lake-M (PCH) 0x54a3 32 hard yes yes yes * * Features supported by this driver: * Software PEC no @@ -228,6 +230,8 @@ #define PCI_DEVICE_ID_INTEL_TIGERLAKE_H_SMBUS 0x43a3 #define PCI_DEVICE_ID_INTEL_ELKHART_LAKE_SMBUS 0x4b23 #define PCI_DEVICE_ID_INTEL_JASPER_LAKE_SMBUS 0x4da3 +#define PCI_DEVICE_ID_INTEL_ALDER_LAKE_P_SMBUS 0x51a3 +#define PCI_DEVICE_ID_INTEL_ALDER_LAKE_M_SMBUS 0x54a3 #define PCI_DEVICE_ID_INTEL_BROXTON_SMBUS 0x5ad4 #define PCI_DEVICE_ID_INTEL_ALDER_LAKE_S_SMBUS 0x7aa3 #define PCI_DEVICE_ID_INTEL_LYNXPOINT_SMBUS 0x8c22 @@ -1080,6 +1084,8 @@ static const struct pci_device_id i801_ids[] = { { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_TIGERLAKE_H_SMBUS) }, { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_JASPER_LAKE_SMBUS) }, { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ALDER_LAKE_S_SMBUS) }, + { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ALDER_LAKE_P_SMBUS) }, + { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ALDER_LAKE_M_SMBUS) }, { 0, } }; @@ -1769,6 +1775,8 @@ static int i801_probe(struct pci_dev *dev, const struct pci_device_id *id) case PCI_DEVICE_ID_INTEL_JASPER_LAKE_SMBUS: case PCI_DEVICE_ID_INTEL_EBG_SMBUS: case PCI_DEVICE_ID_INTEL_ALDER_LAKE_S_SMBUS: + case PCI_DEVICE_ID_INTEL_ALDER_LAKE_P_SMBUS: + case PCI_DEVICE_ID_INTEL_ALDER_LAKE_M_SMBUS: priv->features |= FEATURE_BLOCK_PROC; priv->features |= FEATURE_I2C_BLOCK_READ; priv->features |= FEATURE_IRQ; -- 2.33.8