From patchwork Thu Dec 2 12:07:50 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alistair Francis X-Patchwork-Id: 12694509 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 CF5EAC433EF for ; Thu, 2 Dec 2021 12:11:08 +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=WIaEJ+1NBPw7gPbjpiO6tA+qABvnEijCkuKt35t2ZxI=; b=wOiz4BSK13KLlP bZ9zHgSnrc0v9tzledfsmLZCTH2TlWHzGXntrOhhfJepLrqohfYpBd2NGO/nxRiZfvwXNsWGHVAGQ RGzWDs6VWAIHjxLcRq4krKBNhqGqwKd7/JyLSn0Y4T31nyNwRZi+WYUIEDf/83HlvsyrqfDRYITHQ xyOYUlSwg7lkKrscBuF3dSphW5qkHzEypSBqdRaHwi3ud/s1mIMNFUruDEBIuq+kQYdd9d8l9TkoL DPESo4HzIzylYH2Aekt+FzlK6ubsFm7oE0hBM1whaOAln6NE9oSki+OMYWc6gPmymW++oTdRdwcEt roMfojomJnAUQ5L89kUw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1msktp-00CAxY-FS; Thu, 02 Dec 2021 12:09:17 +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 1msksj-00CAax-Bn for linux-arm-kernel@lists.infradead.org; Thu, 02 Dec 2021 12:08:10 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.nyi.internal (Postfix) with ESMTP id 7F59F58030B; Thu, 2 Dec 2021 07:08:08 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Thu, 02 Dec 2021 07:08:08 -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=m7muPXqEsZ8ZUctSDdv5jcwZw9 bSBEQGp5qr1K9ODlk=; b=KuUR4oHxT0xhCHhte6BOaetlf+K3FzEBzDee3uOXzs 4SX4mQDXrTh6arBYDDzFTYldlLqqG77y+i/ZloDpf+bfTR2nHv6yPEfmK16L3kUv 176P9lW1YTk1nZxecT6rtlPN0R/HdIw+S9hc9kFumTFkqEMw5CFBQ3e85y2FdBIb khGubnayEniZ1k3edNLHYTAojLiH93vwllurfCnq0uD3HncTa3GO7BL+qOS9tHjw tuzzbqzR+Yh1lTVHnd7EAU3dMf0VtCtPlWzRms0/Z1Pq6PUoEq6aUsOYCM9GVD8W hf8zQUkAHi54LmxDic28IzMb+Ej4bZO9MKvGtaLEBz+w== 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=m7muPX qEsZ8ZUctSDdv5jcwZw9bSBEQGp5qr1K9ODlk=; b=RyE/p6xuKvqFdv+iVt5Fz+ NYpUJbv7/BHcCGsqIIrS65cKhnZ6SVNfyFtDE0dSpibw965UPnvcEPFAJyBGb1fy nqyQ/hx5SE1vHyDj2OUfoPxZcCIbdFXvzyTTEtB3V2u12illDsJmYN0Nqz22rtF0 5z8Da3E0sh3LMphRlyy9DZYnHa9NfLes2rwShJzEDbKX3rYA9NGV7ESIdXuylfP7 PU3Oqf6sMFPV+nSh0eyZVkmfFTCc5d6gkiq8iL0q/nVoFvYujVEQzJTa3O0vCOli TkapJwthZ0hU608NfF8RsXVkhTruB04wrb8zyakWhj5+pYXhGlK9OHc0wQGiBCPQ == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrieehgdefiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffotggggfesthhqredtre dtjeenucfhrhhomheptehlihhsthgrihhrucfhrhgrnhgtihhsuceorghlihhsthgrihhr segrlhhishhtrghirhdvfedrmhgvqeenucggtffrrghtthgvrhhnpeehteefgfejueejtd egvdfggefhiefgheffvdffudevveetjeduhfdukeduteevjeenucevlhhushhtvghrufhi iigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhishhtrghirhesrghlihhsth grihhrvdefrdhmvg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 2 Dec 2021 07:08:00 -0500 (EST) From: Alistair Francis To: kernel@pengutronix.de, robh+dt@kernel.org, lee.jones@linaro.org, lgirdwood@gmail.com, broonie@kernel.org Cc: linux-arm-kernel@lists.infradead.org, alistair23@gmail.com, linux-hwmon@vger.kernel.org, andreas@kemnade.info, s.hauer@pengutronix.de, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, rui.zhang@intel.com, linux-imx@nxp.com, devicetree@vger.kernel.org, amitk@kernel.org, shawnguo@kernel.org, Alistair Francis Subject: [PATCH v16 0/8] Add support for the silergy,sy7636a Date: Thu, 2 Dec 2021 22:07:50 +1000 Message-Id: <20211202120758.41478-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-20211202_040809_536374_976E5D28 X-CRM114-Status: UNSURE ( 8.03 ) 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 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 | 24 ++++ arch/arm/boot/dts/imx7d-remarkable2.dts | 135 ++++++++++++++++++ arch/arm/configs/imx_v6_v7_defconfig | 3 + drivers/hwmon/Kconfig | 9 ++ drivers/hwmon/Makefile | 1 + drivers/hwmon/sy7636a-hwmon.c | 107 ++++++++++++++ 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, 413 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