From patchwork Sat Oct 9 11:50:19 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alistair Francis X-Patchwork-Id: 12547537 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 38F76C433EF for ; Sat, 9 Oct 2021 11:52:35 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 068E160F6F for ; Sat, 9 Oct 2021 11:52:35 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 068E160F6F Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=alistair23.me Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org 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=m9aAVa2XhLc5OUFtT53Pug/9dpnw2SJmOLBW6tFHfL4=; b=OkTyaWrTUQaGXq 8CH8XBMxVgnvWNmXcwsey0cP5hAVvGIEH4lNFoAn08MWeyu+HRoMlKp4YSKqOq62t3jEhdg5C7res UId2HMXLjU96SEgg3sszXeNKvjtdcWvFDyV1qdSGNxiLm/LfbRP7nTdoj7uMpTU1Ei8NHX33Lcn/3 K2amNQusi8x3UAgbYu6ZTFurNplMxug3fNCAnGo3tLtAdZJQdokbJnALsU0AZpD5CJjbj2/j7lMY6 P0SCNaop9otdrsaIdAOQ6cS6PhrrhxqtG+QMgdOT8OMVGwCX1Pna3tP0c9nWVsOlT7ELHuyhaUBDo pZiK4O2vVoPaiCcnpf1g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mZAsN-005Vlz-7b; Sat, 09 Oct 2021 11:50:51 +0000 Received: from new3-smtp.messagingengine.com ([66.111.4.229]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mZAsI-005VlI-CI for linux-arm-kernel@lists.infradead.org; Sat, 09 Oct 2021 11:50:47 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailnew.nyi.internal (Postfix) with ESMTP id AEFD3580A0F; Sat, 9 Oct 2021 07:50:45 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Sat, 09 Oct 2021 07:50:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alistair23.me; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; s=fm2; bh=DkQo3Y76p/829Ck2u4MWorQHm6 enIPYpBvnzwrSnMYo=; b=nxz+YpzV0nx4lm8+onS79tFmR174TX3oWYuPn9iHiC ow3TQPddi2EngpJSLm8N5jylJVGZEvRjfiUtN0R4rTXLB/yfqPlHkUiyE0HWXtjU dQ4haf7La7E0uxRcPkgzjnXjXKDTpMM+4w6jODKtqlqAFjrjryMYfBjTbjUcMzr3 4KkIMKdUPTNS/ttDLwZXk8b9tjgyOpZpSahiGfVzYjCIMIy0sx7fswB6mGbMWixJ x8hXcoK7MI52HV9c3dgcIh6SN4wSyCd7VbL1aCcD10ecvtABTCi/sxQM4UCBspaf 4SAQIg8ookq2ILVLBtz8b0QscqALN/p9RILnqEkvSvEg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding: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=DkQo3Y76p/829Ck2u 4MWorQHm6enIPYpBvnzwrSnMYo=; b=L5mugscpkS9Nt9h7R4M2XTgpwJfJY/ikE dLnTey6Y25lpZU/UQA88/Mwn5VbL57zKHczO5l9+rRgJiC5B54pcx4odVAVWTSAV deRKnejvs2nqNP+qxLwK3dmE+3UsLTsoXlLLisXVaXNiaWPIknTdaKlGsh9vZrjx IpHU1O8Z3TDviX246TdSbPXotSfMyUHp+niU7tf9DrqSDllw38rYa6Jmy/F+9Xil jF0vVHmxwmyRiSPd4nFunVt4GR7O8NI1XPNiDNeSvJsPidI1nj0dEbgrsT233Wts A12aVGZQX+mBIt4lNEerGmXhSurTnNsqcudX7v7OJcnSz1vWUwuPw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrvddtvddggeegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgggfestdekredtre dttdenucfhrhhomheptehlihhsthgrihhrucfhrhgrnhgtihhsuceorghlihhsthgrihhr segrlhhishhtrghirhdvfedrmhgvqeenucggtffrrghtthgvrhhnpeejleeihfdvtefgtd ethfdtgefftdeiffefjeeiffefveeuleejheejvefhffeukeenucevlhhushhtvghrufhi iigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhishhtrghirhesrghlihhsth grihhrvdefrdhmvg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 9 Oct 2021 07:50:38 -0400 (EDT) From: Alistair Francis To: lee.jones@linaro.org, robh+dt@kernel.org, lgirdwood@gmail.com, broonie@kernel.org, kernel@pengutronix.de Cc: shawnguo@kernel.org, s.hauer@pengutronix.de, linux-imx@nxp.com, amitk@kernel.org, rui.zhang@intel.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, alistair23@gmail.com, linux-hwmon@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, Alistair Francis Subject: [PATCH v12 00/10] Add support for the silergy,sy7636a Date: Sat, 9 Oct 2021 21:50:19 +1000 Message-Id: <20211009115031.18392-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-20211009_045046_523614_9110F302 X-CRM114-Status: UNSURE ( 9.78 ) 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 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 (10): 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 thermal: sy7636a: Add thermal driver for sy7636a hwmon: sy7636a: Add temperature driver for sy7636a ARM: imx_v6_v7_defconfig: Enable silergy,sy7636a ARM: dts: imx7d: remarkable2: Enable silergy,sy7636a ARM: imx_v6_v7_defconfig: Enable backlight class devices ARM: dts: imx7d: remarkable2: Enable lcdif .../bindings/mfd/silergy,sy7636a.yaml | 79 ++++++++++++ arch/arm/boot/dts/imx7d-remarkable2.dts | 115 ++++++++++++++++++ arch/arm/configs/imx_v6_v7_defconfig | 5 + drivers/hwmon/Kconfig | 10 ++ drivers/hwmon/Makefile | 1 + drivers/hwmon/sy7636a-hwmon.c | 77 ++++++++++++ drivers/mfd/Kconfig | 2 +- drivers/mfd/simple-mfd-i2c.c | 12 ++ drivers/regulator/Kconfig | 1 - drivers/regulator/sy7636a-regulator.c | 2 +- drivers/thermal/Kconfig | 6 + drivers/thermal/Makefile | 1 + drivers/thermal/sy7636a_thermal.c | 94 ++++++++++++++ include/linux/mfd/sy7636a.h | 41 +++++++ 14 files changed, 443 insertions(+), 3 deletions(-) create mode 100644 Documentation/devicetree/bindings/mfd/silergy,sy7636a.yaml create mode 100644 drivers/hwmon/sy7636a-hwmon.c create mode 100644 drivers/thermal/sy7636a_thermal.c create mode 100644 include/linux/mfd/sy7636a.h