From patchwork Thu Dec 16 12:25:17 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alistair Francis X-Patchwork-Id: 12696459 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 30442C433F5 for ; Thu, 16 Dec 2021 12:51:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=Dk/9ItAIBAWcFg+GR7PzKuM1w2YFaMT+EJuF9S8hN2o=; b=B0ngPb7rsykD/E qneazbFk1xOSULQqK+Su0/7UF/XNIDGc9aV7M9QaHg+/Xz76eSzOaQbPAlzGGG+NgfyuQNiI9jCaO znDbXxrLlz9cXizJxSuueDAxYGEulAij3rgb8/BMD4nhF3gDYMaoW6yxl17qLLVIS7oYOT+yqkNrI M4ySgBFzAj29cv28B8NlGQPVYXaXVkr8iBUxQMzS8O9pwMiqL9hYXTFkJek9w2cETrUUo+zMVL5W8 VZ83WKmqcj5wAZ8ZYyTYLJScmXw/pRYABBTlCdfzTRZomJ9h7iWLmEdyHReL4VPbRuSRx4sU8BJ7Y wpm8+0M1O7GnADov4d9w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mxqCm-005XHK-48; Thu, 16 Dec 2021 12:49:53 +0000 Received: from new2-smtp.messagingengine.com ([66.111.4.224]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mxppN-005Pxd-G2 for linux-arm-kernel@lists.infradead.org; Thu, 16 Dec 2021 12:25:43 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailnew.nyi.internal (Postfix) with ESMTP id 078255804DC; Thu, 16 Dec 2021 07:25:36 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Thu, 16 Dec 2021 07:25:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alistair23.me; h=from:to:cc:subject:date:message-id:content-type:mime-version :content-transfer-encoding; s=fm2; bh=TSgqps1iDUhbFhbJp7MGOAGo8m qIrmX1W/B+0CydO9Y=; b=0RyepsFVU2bY6Baev95I7Tvrq9ixoPqI/XERGWtUYq TfZII+f+2JoFTvR4pIwYM9ilB3cGjdWGv2Bv9Eg20R78+hi3aVG36BU1Q3MvQJEj 9ayYdDbz/kniS6QjCFcPXSGp+ompTOf3KKaUpmQ8C4QPXoFn+uTLILmObS4tjA+T XFnRNCLxlZRhGc1Dp58hZMCDxhyQ4HYzTHdXxKy48cI6u/LOdbLQDl2IOCNBV88f 3tCY971ic908P4ZZpMrV8g5X6U4gZQnctDu5QWU4JmB2Hhq33QSODNIAIU99Nzw8 UxqeohKk6eCmTMwCNFJMBicKA4tLpeFe7ODG3PNd44Zg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=TSgqps 1iDUhbFhbJp7MGOAGo8mqIrmX1W/B+0CydO9Y=; b=T3WhLBxTOlHr1HPbwCy8dc SoYs5DWUoZtX5CcC4eZQkfIcVuRW0zMdDkbavVTI2WZFRMDwj1ivGIjOnrgQ6709 6DeNTxPbwYNOky8QSH47OS2CaMmiYAn+CBnBX8jyBTVC7HzETljapGee40uiui9y Kic6b7OarK3wlHMFKi7ZExgryc+pF5gWpRCqbzF4/g4Jo81SW7VWjkZh2b4es8lq uDD5zVC6hjrz8bFfzxojGJ0bPpgDGc42bujvdnVeu2cHD4lPAGq94TcVzpqzp0K7 f1p20DIBGf8kv6lyVcHEHZTnzeEztdw4gLxBVAdazq4L83SrhR1J28nsiXfjqDqA == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrleeggdegtdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffotggggfesthhqredtre dtjeenucfhrhhomheptehlihhsthgrihhrucfhrhgrnhgtihhsuceorghlihhsthgrihhr segrlhhishhtrghirhdvfedrmhgvqeenucggtffrrghtthgvrhhnpeehteefgfejueejtd egvdfggefhiefgheffvdffudevveetjeduhfdukeduteevjeenucevlhhushhtvghrufhi iigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhishhtrghirhesrghlihhsth grihhrvdefrdhmvg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 16 Dec 2021 07:25:29 -0500 (EST) From: Alistair Francis To: kernel@pengutronix.de, lgirdwood@gmail.com, robh+dt@kernel.org, lee.jones@linaro.org, broonie@kernel.org Cc: linux-imx@nxp.com, devicetree@vger.kernel.org, s.hauer@pengutronix.de, linux-arm-kernel@lists.infradead.org, andreas@kemnade.info, linux-hwmon@vger.kernel.org, alistair23@gmail.com, amitk@kernel.org, shawnguo@kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, rui.zhang@intel.com, Alistair Francis Subject: [PATCH v17 0/8] Add support for the silergy,sy7636a Date: Thu, 16 Dec 2021 22:25:17 +1000 Message-Id: <20211216122525.136139-1-alistair@alistair23.me> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211216_042541_676589_5C95FA4A X-CRM114-Status: UNSURE ( 7.57 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org v17: - Rebase and fix build issues v16: - Improve vdd regulator comments v15: - Address comments on the patches v14: - Merge the thermal driver and hwmon v13: - Address comments on thermal driver - Rebase on master (without other patches) v12: - Rebase v11: - Address comments on hwmon - Improve "mfd: simple-mfd-i2c: Add a Kconfig name" commit message v10: - Use dev_get_regmap() instead of dev_get_drvdata() v9: - Convert to use the simple-mfd-i2c instead Alistair Francis (8): dt-bindings: mfd: Initial commit of silergy,sy7636a.yaml mfd: simple-mfd-i2c: Add a Kconfig name mfd: simple-mfd-i2c: Enable support for the silergy,sy7636a regulator: sy7636a: Remove requirement on sy7636a mfd hwmon: sy7636a: Add temperature driver for sy7636a ARM: imx_v6_v7_defconfig: Enable silergy,sy7636a ARM: dts: imx7d-remarkable2: Enable silergy,sy7636a ARM: dts: imx7d-remarkable2: Enable lcdif .../bindings/mfd/silergy,sy7636a.yaml | 82 +++++++++++ Documentation/hwmon/index.rst | 1 + Documentation/hwmon/sy7636a-hwmon.rst | 26 ++++ arch/arm/boot/dts/imx7d-remarkable2.dts | 136 ++++++++++++++++++ arch/arm/configs/imx_v6_v7_defconfig | 3 + drivers/hwmon/Kconfig | 9 ++ drivers/hwmon/Makefile | 1 + drivers/hwmon/sy7636a-hwmon.c | 106 ++++++++++++++ drivers/mfd/Kconfig | 2 +- drivers/mfd/simple-mfd-i2c.c | 11 ++ drivers/regulator/Kconfig | 1 - drivers/regulator/sy7636a-regulator.c | 7 +- include/linux/mfd/sy7636a.h | 34 +++++ 13 files changed, 415 insertions(+), 4 deletions(-) create mode 100644 Documentation/devicetree/bindings/mfd/silergy,sy7636a.yaml create mode 100644 Documentation/hwmon/sy7636a-hwmon.rst create mode 100644 drivers/hwmon/sy7636a-hwmon.c create mode 100644 include/linux/mfd/sy7636a.h