Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3684476pxv; Mon, 5 Jul 2021 03:19:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw1o/M83GF7tVaM4g8+pGe9P2Kpn6QgUMpUCEykKPPF5J1lQN22WvyQ2hEYdiNOWDpziP6a X-Received: by 2002:a05:6e02:528:: with SMTP id h8mr10323661ils.127.1625480340203; Mon, 05 Jul 2021 03:19:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625480340; cv=none; d=google.com; s=arc-20160816; b=FCywLLaWzoPxGCGzm+v73SspeXJE0aTaezjdEBwLXjFcnlOo7ewNWOOCPwpIoQPMK1 vZ0LESbvYDrGWc/PTtMkrDBYMZk+vrmtpG+zVC2Q1WkBirDAbZ7QIf/hF0QZvuqr72rk YH11Fx1YXi5K0f1k7TS+0RnYsrzI0l9Ctz040cfLLsRlt9QR0ItNEt84GiERi5cgxoE0 e0uFGc/3CyY0hCXtS8KiTWqgfYIjRkECp9KsKAbNOCxo2CP+Y7fOzh6yVrqpXhx3tKxN zA92RREV//mdR2aUELR4SQIrmYOw80vm1UlYfoXH2hzeG1SIO6vlUJ5p0ahnEWHn5RiX M31g== 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=GduMFNlZ9gC91fwCCahmjmmKS5mh/ABZELZgN5f7GLs=; b=kpf54QWCGYcvDXKMOyE9rIwxjXafu4NHA+NjZQDS4pieKW2MrYQ01l4YGA2XXGQa9R mB9O5ffwORLn45Nh41c+Kukei1/+TCjiwaQVqcPueQDRcxmlW6b8YWGnLI9SMq9j0b7R aZCMWUWc9UpTJNBWjtY38btopQCGdarJv/YWVu4xUjlb9FPApx9H9ax+oKXz+pDlgRmy eC7a/GkV70bxMhj9rsFk0BuGYJykO9M6l8yEeKvHf7CP4IpsenH538c9CVVPOgIaEKCR fBVESbN6fYbV412tH+gEUtj8JwLJwt6GGvW40BJUmWhgo57DiFHgDqio/qFLYhcZhKfF Z71g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@geanix.com header.s=first header.b=Xj8PPKgf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=geanix.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m13si14168388iln.153.2021.07.05.03.18.49; Mon, 05 Jul 2021 03:19:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@geanix.com header.s=first header.b=Xj8PPKgf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=geanix.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231252AbhGEKTq (ORCPT + 99 others); Mon, 5 Jul 2021 06:19:46 -0400 Received: from first.geanix.com ([116.203.34.67]:59072 "EHLO first.geanix.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231196AbhGEKTo (ORCPT ); Mon, 5 Jul 2021 06:19:44 -0400 Received: from zen.. (unknown [185.17.218.86]) by first.geanix.com (Postfix) with ESMTPSA id A18874C5385; Mon, 5 Jul 2021 10:17:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=geanix.com; s=first; t=1625480224; bh=Nn0V3iyUhxHt+AfAl2tiKScFQUglXCsoxrUiTpq+WrM=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=Xj8PPKgfhUhECs1F83XE413kczOXIMZpj28FqVvGO+0ZmDsvHxfhYn8dymZO8+Mum PWuEohAJ8h6c/u8XRAz4bS93sPPAA7yzcc9uf4qunqBR3Oiab9iMnIIqtlBNiAJzD4 74CvkqP1npzdH8MT8eXtLFbgtvchQK3oUaLr3RWncap2pWfQl0CAY7MLBB7bpbjqSA n1OLZfI+fkMs0SeiWrkkmHn5CCLLUXz0QgWo/HwsTesijlwpdcjzj+dxxyjvyZqLM3 ceJT17wNbCxNJWphW7PlyehnYIHMv3BUo4M0/tonPVsY519X+ODih26UVRPMESRdy5 f5eb9Fk6TEXiA== From: =?UTF-8?q?Martin=20Hundeb=C3=B8ll?= To: Wu Hao , Tom Rix , Moritz Fischer , Xu Yilun , Jean Delvare , Guenter Roeck , Lee Jones , Mark Brown Cc: =?UTF-8?q?Martin=20Hundeb=C3=B8ll?= , linux-fpga@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org, linux-spi@vger.kernel.org, Matthew Gerlach Subject: [PATCH v4 3/4] mfd: intel-m10-bmc: add n5010 variant Date: Mon, 5 Jul 2021 12:16:44 +0200 Message-Id: <20210705101645.2040106-4-martin@geanix.com> X-Mailer: git-send-email 2.31.0 In-Reply-To: <20210705101645.2040106-1-martin@geanix.com> References: <20210705101645.2040106-1-martin@geanix.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.1 required=4.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,URIBL_BLOCKED autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on 93bd6fdb21b5 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Martin Hundebøll The m10-bmc is used on the Silicom N5010 PAC too, so add it to list of m10bmc types. Signed-off-by: Martin Hundebøll Acked-by: Moritz Fischer Reviewed-by: Xu Yilun Reviewed-by: Matthew Gerlach Acked-for-MFD-by: Lee Jones --- Changes since v3: * Added Matthew's Reviewed-by * Added Lee's Acked-for-MFD-by Changes since v2: * Added Yilun's Reviewed-by * Added Moritz' Acked-by Changes since v1: * Patch split out to separate mfd changes drivers/mfd/intel-m10-bmc.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/drivers/mfd/intel-m10-bmc.c b/drivers/mfd/intel-m10-bmc.c index 1a9bfb7f48cd..8db3bcf5fccc 100644 --- a/drivers/mfd/intel-m10-bmc.c +++ b/drivers/mfd/intel-m10-bmc.c @@ -15,7 +15,8 @@ enum m10bmc_type { M10_N3000, - M10_D5005 + M10_D5005, + M10_N5010, }; static struct mfd_cell m10bmc_d5005_subdevs[] = { @@ -28,6 +29,10 @@ static struct mfd_cell m10bmc_pacn3000_subdevs[] = { { .name = "n3000bmc-secure" }, }; +static struct mfd_cell m10bmc_n5010_subdevs[] = { + { .name = "n5010bmc-hwmon" }, +}; + static const struct regmap_range m10bmc_regmap_range[] = { regmap_reg_range(M10BMC_LEGACY_BUILD_VER, M10BMC_LEGACY_BUILD_VER), regmap_reg_range(M10BMC_SYS_BASE, M10BMC_SYS_END), @@ -192,6 +197,10 @@ static int intel_m10_bmc_spi_probe(struct spi_device *spi) cells = m10bmc_d5005_subdevs; n_cell = ARRAY_SIZE(m10bmc_d5005_subdevs); break; + case M10_N5010: + cells = m10bmc_n5010_subdevs; + n_cell = ARRAY_SIZE(m10bmc_n5010_subdevs); + break; default: return -ENODEV; } @@ -207,6 +216,7 @@ static int intel_m10_bmc_spi_probe(struct spi_device *spi) static const struct spi_device_id m10bmc_spi_id[] = { { "m10-n3000", M10_N3000 }, { "m10-d5005", M10_D5005 }, + { "m10-n5010", M10_N5010 }, { } }; MODULE_DEVICE_TABLE(spi, m10bmc_spi_id); -- 2.31.0