From patchwork Mon Jan 24 12:10:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alistair Francis X-Patchwork-Id: 12721910 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 0F647C433EF for ; Mon, 24 Jan 2022 12:11:57 +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=U0H04tBLtsOe5DJfhtSkDtpRkNDPeOzTytlRGTmTkf4=; b=ulR546gJEgayZd MRCcuaUlhcRWAeadL2WwfTJbXDkqEnpnao2Zj+UIZXOvH3GF9khLi4tr3V3Stixz6J3zF4+dWCFhU 51Nutfm8gV8yeT9ZfDO7zAAHxHt7mji1/tfdqnIh1fnhHO+GGeKn7OA2N+4+bpt0q8dAUrp+zBoOp xkoPhVu6QLeRDgawsGEPyuwH7UMOsQ3tRq/LKqs1yXUxLIJwDXJfSN78Wc5feYqKATewuhO5L4kJs ohbnQ2pUBLrPsEiDQatVmMZF2wRyr+tnok4qUF0DvLFERqdfNY1An2h18UbNgQU0ar8dz9IRZgQDg 0EiVYBOQaTxuxh6WGjpQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nByB0-0039rD-J7; Mon, 24 Jan 2022 12:10:26 +0000 Received: from new4-smtp.messagingengine.com ([66.111.4.230]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nByAs-0039ol-Oe for linux-arm-kernel@lists.infradead.org; Mon, 24 Jan 2022 12:10:20 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailnew.nyi.internal (Postfix) with ESMTP id 1381C580355; Mon, 24 Jan 2022 07:10:18 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Mon, 24 Jan 2022 07:10:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alistair23.me; h=cc:cc:content-transfer-encoding:content-type:date:date:from :from:in-reply-to:message-id:mime-version:reply-to:sender :subject:subject:to:to; s=fm3; bh=yDDZWE4He/pimUZxCO0Sh7kk8bh3iF 5Bhx4IEsrP9p4=; b=fwxpbuyxqtScSM0n3F92+6NeWxGDQr6YYMqtldw5D3Pl0w 89qffJRwxvyMzBg5ke6MK2hVAJyyyHr5DQUUx/IStis4XFk0gkikurX8OrV+KFWc r5o5MhfdXpHhteXf/bMyUv0WNGroUvmWsDBg8qv3VKHYl3OS8dHHLh4lj0a+88HO yvaca0Kz+bUpH+jg+beKOqefBph5neGOV/KltgW9EWZXBUmt1TocsGD7yKI2cJWq EUcpTLi5YRz7DqXr2cnIfXDJKARbXhyU1VK+f7BIDOHJBFEgd2GQP5+oO1Ovubar RGdwGG0wRX0zOphBC71wlFqPJ6F6KBcW5A45BB/g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=yDDZWE 4He/pimUZxCO0Sh7kk8bh3iF5Bhx4IEsrP9p4=; b=kjxqvDeGS98uzkQCCZmu+w c5TqmMYwe+zhOzzq8xu0nmTLtWGkOZmhGa/jXdZNwZAxVKsNlctq8plk53yyc+PL ANwMxsTGFU90E2ay0N1kc8aCuZ/6ONtI0DNDuhWrtAatFWVwwz2gp+5snRvOKxaB BNBofqBbFUos089YpZYfN7cu1+oWwlUScCyCOHY/Ar3QECXYNhPIii3P4Y28KlY0 g3QPkJzJ6vJBRSJPONIpJ5HpQff7ySUT35MyClg1o9JhovOj+4dR2PBUmqGEvNTJ iHXPBHKGxZXVIXHksJwyjvOZ8B+Kc9V0fQjkELCryMV2PDdhbFzPFH83Zo0561bg == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrvdeigdefjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffotggggfesthhqredtre dtjeenucfhrhhomheptehlihhsthgrihhrucfhrhgrnhgtihhsuceorghlihhsthgrihhr segrlhhishhtrghirhdvfedrmhgvqeenucggtffrrghtthgvrhhnpeehteefgfejueejtd egvdfggefhiefgheffvdffudevveetjeduhfdukeduteevjeenucevlhhushhtvghrufhi iigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhishhtrghirhesrghlihhsth grihhrvdefrdhmvg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 24 Jan 2022 07:10:12 -0500 (EST) From: Alistair Francis To: broonie@kernel.org, robh+dt@kernel.org, kernel@pengutronix.de, lgirdwood@gmail.com, lee.jones@linaro.org Cc: linux-pm@vger.kernel.org, linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-imx@nxp.com, rui.zhang@intel.com, alistair23@gmail.com, amitk@kernel.org, linux-arm-kernel@lists.infradead.org, andreas@kemnade.info, s.hauer@pengutronix.de, linux-kernel@vger.kernel.org, shawnguo@kernel.org, Alistair Francis Subject: [PATCH v18 0/8] Add support for the silergy,sy7636a Date: Mon, 24 Jan 2022 22:10:01 +1000 Message-Id: <20220124121009.108649-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-20220124_041018_906041_C32BCF18 X-CRM114-Status: UNSURE ( 7.79 ) 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 v18: - Rebase 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