From patchwork Wed Nov 10 12:29:40 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alistair Francis X-Patchwork-Id: 12692158 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 EA4AAC433F5 for ; Wed, 10 Nov 2021 12:31:46 +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 BD689610CB for ; Wed, 10 Nov 2021 12:31:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org BD689610CB 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=M1SCPVwft+dMtzKeukMkIHUCW+3fm0xtM8DSp/dXgqY=; b=svfFEvZbBFPGyf np0CQrtIvtCTPZitoLatrIJKBDkR0B5YR5D2DbrpyV1G3amHp0ycamsEQnyTxa7wruXk/A9XG2lml 7Elwl82jXP285xWGGrJc/hGrIU/cSdUBLNp/If3buaxk2fiWcJQMvHiAoTZGlW7FgR+5no+vRis9D iNHyGjVciXKbdza2t4fQH6e697/4VanDxzj2iJ1/i0ieNEvgi7MEKIDQOdukGQBxpqOk7JaRI6rFV jveh//doojvoKAxktmHADDxo9xXYrzcqKpSo+ejW4ejH7sZ9ztRY1vbWJipO5DnF/sc4cs84/RF0l BEyxI5jAwOFaYUATtSXQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mkmju-005Oz7-Ul; Wed, 10 Nov 2021 12:30:07 +0000 Received: from new1-smtp.messagingengine.com ([66.111.4.221]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mkmjq-005Oxg-TD for linux-arm-kernel@lists.infradead.org; Wed, 10 Nov 2021 12:30:04 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.nyi.internal (Postfix) with ESMTP id F1A30580867; Wed, 10 Nov 2021 07:29:56 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Wed, 10 Nov 2021 07:29:57 -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=MzRlBB10aPvQx4wbfg+Ijo0y66 MeQc5NRSkoGcYFw4w=; b=z1XHAqHJB65dVGaDzZnlhBR5UlsTMx5s5Ze2zb2bTI PUQp7L3tjFoX9/f+RbPIGScp9PNx6akxSiO4sLhHHeIjYjVxrv4FqvjqKUU/Zu3c SRiNOrrE8r5G9PlNSKsos1wMYAKqMbcFjTs/kMj/vRlGdyQQteR68Q6Q3xVz+K1Q 2+3SpeJhzQbJTQcusMTTdf+Oc/7217rCwzqD5NehroWBLZ3h/+/A40DuOfDwUUXM co98iI0SFUZX9WdvOT+q64pGDLSXmIYKrL/Iae2U7SP6tVlyAy+crN7Gv9H3laVp kDPYjSXuabt0vZ8IUyw0RPGske8NeJbzqjUvLg5dKnuw== 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=MzRlBB 10aPvQx4wbfg+Ijo0y66MeQc5NRSkoGcYFw4w=; b=j81hPTcVvNVccuRp+Y62yP Z/qrBdRSEP9w4vjyRdoU3dQaECAiBYAQprOwFFjLHlLRDE90Pr7pikRnpvB6vguE 9yIeL+It2GBOriqmASQ787P4Jlqu4qrxMmtkzYpXTS3L2TWU50NScLilOqZr6JH4 FFyQ9C22j40kJ9DuJqemecWIhYAnGZvSWH4GfXZWcrGPEcpGRPjMY3I++n/J/2Fo E+R2ZDsnLmwsnjDYNmNm/TOAkerozSzaYMFkOs9dUwqi27MY5pJgMgFMa7idlCAx 0nCD3Jkufg3Nr7azKk4HA8yJyBvGQn3GyzVQciJ+PjSKAj0ufsULhQNQTc3rlbCg == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrudejgdegtdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffotggggfesthhqredtre dtjeenucfhrhhomheptehlihhsthgrihhrucfhrhgrnhgtihhsuceorghlihhsthgrihhr segrlhhishhtrghirhdvfedrmhgvqeenucggtffrrghtthgvrhhnpeehteefgfejueejtd egvdfggefhiefgheffvdffudevveetjeduhfdukeduteevjeenucevlhhushhtvghrufhi iigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhishhtrghirhesrghlihhsth grihhrvdefrdhmvg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 10 Nov 2021 07:29:50 -0500 (EST) From: Alistair Francis To: lee.jones@linaro.org, broonie@kernel.org, kernel@pengutronix.de, lgirdwood@gmail.com, robh+dt@kernel.org Cc: linux-kernel@vger.kernel.org, rui.zhang@intel.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, s.hauer@pengutronix.de, linux-hwmon@vger.kernel.org, amitk@kernel.org, linux-pm@vger.kernel.org, linux-imx@nxp.com, alistair23@gmail.com, andreas@kemnade.info, shawnguo@kernel.org, Alistair Francis Subject: [PATCH v15 0/8] Add support for the silergy,sy7636a Date: Wed, 10 Nov 2021 22:29:40 +1000 Message-Id: <20211110122948.188683-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-20211110_043003_072500_EE2C9A0B X-CRM114-Status: UNSURE ( 8.39 ) 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 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 | 79 ++++++++++ Documentation/hwmon/index.rst | 1 + Documentation/hwmon/sy7636a-hwmon.rst | 24 ++++ 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 | 108 ++++++++++++++ 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 | 36 +++++ 13 files changed, 414 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