Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2479365pxk; Mon, 14 Sep 2020 14:45:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxNGa2I5fqjTtGGN9SXztCe1RX6EIXQvF4I+VKj8G/T0I6dKotiMohz4cc8+Iowh2YndXRC X-Received: by 2002:a17:906:d9da:: with SMTP id qk26mr16510488ejb.435.1600119937541; Mon, 14 Sep 2020 14:45:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600119937; cv=none; d=google.com; s=arc-20160816; b=LedPK3mrVs4WBIVdDLskbC4j2HZwP4KAztsPr3xaPhSTuSDcyv2VnZR2FJB7Rl44qM msclBfhysP+5gNAg/Hqq9zXURjQ2VvmZt0s3/bHQ8N/6HaReKv0WG0Ewa7Vs/9TAJJBk 9uEIV6OMLvR6luY0WrGJTihSE8JhgvMy+GyitAtgKQmum2ix3FhPXhq8m9OYmBMt4GC7 PmsB8MkKsbyIfcwLlmfDlrXgutGpW5teX0hnbbHOIqjVgc/NKQ9fRZqa0CXLGQtBenQ0 eMjjM4ouUJYlCXTDHZJHysqZ46cBmziVl4JUmAsEXkL+gAGST/TPyN04DTWLO//UPt5r bQXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=L8dnOCKcMC5RBEFlEjAO7W2mHaJzoAnPqBNK582r9yE=; b=Y3/QARuQpWA9VohU1dktu8InQkQuGT+n5qS1Xs4L6NKiHlN/TIbJ2Ihv1ThzVGEr6g vjhLBiFZBIEnK6WsuiukRuhAyrYWYMeKDeFRuU2UzJyBKcH3jLRuf3KLcc0tWLDCLqFX iIAqxJacPYlmGw4EoHHds/eSC4k3nLSS3UefNz9LA6p0uE07H/523I6eNc7iCNx43KRd IptQ0yv3NINdw2+YZ+Cn+iQaH6IdTUuuXoifk8amrcO8RNPMFEfOMLFp8i57mxxlOY6B ybDrO/NmDEaXIvyvrnyENhtKuYYH4P1eFd1/SPXKi2YDjuQaa88cb7+BcwjCOBVyXxR7 0Nfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=AiUKNDFS; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g10si8370771edv.47.2020.09.14.14.45.15; Mon, 14 Sep 2020 14:45:37 -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=@walle.cc header.s=mail2016061301 header.b=AiUKNDFS; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726136AbgINVoY (ORCPT + 99 others); Mon, 14 Sep 2020 17:44:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48920 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726057AbgINVoD (ORCPT ); Mon, 14 Sep 2020 17:44:03 -0400 Received: from ssl.serverraum.org (ssl.serverraum.org [IPv6:2a01:4f8:151:8464::1:2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A991C06178A; Mon, 14 Sep 2020 14:44:02 -0700 (PDT) Received: from apollo.fritz.box (unknown [IPv6:2a02:810c:c200:2e91:6257:18ff:fec4:ca34]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id D03CA22FEB; Mon, 14 Sep 2020 23:43:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1600119840; 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=L8dnOCKcMC5RBEFlEjAO7W2mHaJzoAnPqBNK582r9yE=; b=AiUKNDFSL4y/yIUIBSXfNBcql0Ei4PN/d9c4IMh1BRg+D+MJUwaWGBltMOWMwdW4h8jkrf EgsZHIeRQdZpVJhguXSdRYGCoher3sOD/LA7z8ckxp/zJPa1KIune9UM7Tr8pzN47W1s2d qaCawGC5Pb6ZyhZOJwyGe5kk/VgGzaY= From: Michael Walle To: linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org, linux-pwm@vger.kernel.org, linux-watchdog@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Linus Walleij , Bartosz Golaszewski , Rob Herring , Jean Delvare , Guenter Roeck , Lee Jones , Thierry Reding , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Wim Van Sebroeck , Shawn Guo , Li Yang , Thomas Gleixner , Jason Cooper , Marc Zyngier , Mark Brown , Greg Kroah-Hartman , Andy Shevchenko , Catalin Marinas , Will Deacon , Pavel Machek , Michael Walle Subject: [PATCH v10 03/13] mfd: simple-mfd-i2c: add sl28cpld support Date: Mon, 14 Sep 2020 23:43:31 +0200 Message-Id: <20200914214341.14268-4-michael@walle.cc> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200914214341.14268-1-michael@walle.cc> References: <20200914214341.14268-1-michael@walle.cc> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam: Yes Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add the core support for the board management controller found on the SMARC-sAL28 board. Also add a virtual symbol which pulls in the simple-mfd-i2c driver and provide a common symbol on which the subdevice drivers can depend on. At the moment, this controller is used on the Kontron SMARC-sAL28 board. Signed-off-by: Michael Walle Acked-for-MFD-by: Lee Jones --- Changes since v9: - none Changes since v8: - none Changes since v7: - added MFD_SL28CPLD virtual Kconfig symbol - Please note, that I intentionally removed the Acked-for-MFD-by because of this change. Changes since v6: - renamed "sl28cpld-r1" to "sl28cpld" Changes since v5: - none Changes since v4: - new patch drivers/mfd/Kconfig | 10 ++++++++++ drivers/mfd/simple-mfd-i2c.c | 1 + 2 files changed, 11 insertions(+) diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig index b66b60eed003..e1d3bf77b245 100644 --- a/drivers/mfd/Kconfig +++ b/drivers/mfd/Kconfig @@ -1185,6 +1185,16 @@ config MFD_SIMPLE_MFD_I2C sub-devices represented by child nodes in Device Tree will be subsequently registered. +config MFD_SL28CPLD + tristate "Kontron sl28cpld Board Management Controller" + select MFD_SIMPLE_MFD_I2C + help + Say yes here to enable support for the Kontron sl28cpld board + management controller. + + It can be found on the following boards: + * SMARC-sAL28 + config MFD_SM501 tristate "Silicon Motion SM501" depends on HAS_DMA diff --git a/drivers/mfd/simple-mfd-i2c.c b/drivers/mfd/simple-mfd-i2c.c index 28e96a246be1..87f684cff9a1 100644 --- a/drivers/mfd/simple-mfd-i2c.c +++ b/drivers/mfd/simple-mfd-i2c.c @@ -38,6 +38,7 @@ static int simple_mfd_i2c_probe(struct i2c_client *i2c) } static const struct of_device_id simple_mfd_i2c_of_match[] = { + { .compatible = "kontron,sl28cpld" }, {} }; MODULE_DEVICE_TABLE(of, simple_mfd_i2c_of_match); -- 2.20.1