From patchwork Mon Oct 25 10:53:01 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alistair Francis X-Patchwork-Id: 12581411 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 EE26FC433F5 for ; Mon, 25 Oct 2021 10:54:55 +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 B765260241 for ; Mon, 25 Oct 2021 10:54:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org B765260241 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=haf/GjpXU2B6UqtS7QohStue1jhYpUGlfuWb81zYCLw=; b=vWmcEHskJ7BE+m hRTnMVPQU4+J9ZNhUTLf/NRYbxP0u5r4wu2So0lRRPhyfX3d2IEfoWSUIQIZUwqsrvWl40SrOswc6 9RKpRSPkzeFUJQB4zuQBziSYNtBfaU9vqN6hZ7A+PsLmIY57sGUoY+4h/AYJ7XQt6kE3R/EPN1Zz/ ng0b8A7lRUFQ9AZH29EOSusU+zDTp6IYClJ+DYORmyQ49rN7vHKwyVN0gZTlDcpWppLB1hfYJH1oN tvLJWaeRfcHDhojL6ymqtvet53NGRFszaY5luELp5iSf/+EDdP+n1Hk/niXblGszgDg95R3yWbuaU c41+RRxhOCF1rOnE7Mlg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mexbZ-00G8J6-Us; Mon, 25 Oct 2021 10:53: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 1mexbV-00G8IH-QT for linux-arm-kernel@lists.infradead.org; Mon, 25 Oct 2021 10:53:23 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.nyi.internal (Postfix) with ESMTP id 1D55F580477; Mon, 25 Oct 2021 06:53:21 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Mon, 25 Oct 2021 06:53:21 -0400 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=E/lvINlfaDwDv0II0+z7GqFpIN xVAc1W2JO3GLlW0rs=; b=tN+9t6ZEHIZv+bVrjduN7ovPJzj1aSUmxaRtHd7aLR LcSD9oQiesQ2l6PzKAtotOukl6wKlO3jYSCSSdANaAFPxyuh82lEawjvF8Rqkqwj bKTdvIPnxRXj70imyA0epfTzXMlAeA7z6ZxkU/AugJl8LeTzJutOs06xbjtNUo6q xAn4BwsX1AArzvsYTIUwP+kPfx4SeA7gh1Rlt25yvPNHLALCnWX7Q74w3SIXU2Eo W95h4+2ynnhmlQuQs+DwYvVzkmwebJkHnHxaX5O2uSyiYGViA9PFZCbrhJhpVrn/ UYWAzQ3qe27WSnAPXuaWkJl8XEr1/g4ZPMggtopyr0Ww== 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=E/lvIN lfaDwDv0II0+z7GqFpINxVAc1W2JO3GLlW0rs=; b=SV4eDD63byAlyVN8/UxyA+ vmxDbfWnIkfys16pVnx17NEzQ2xHcphKZa0uAkcwT2x4TIXT19iGM0OicRsI6Jgr 5JCY1CRfdT/8pJ0xb+XTAj1K0Kt4bUjAhsx+Im1HVBzgtpkvXggEviywpwsGMpkR 0lFil1fFezNAv9uBU9sY9pUaOvth6kcRHl7YUnfKOlzkkBxcnlyga1xjNOGVz9KR 2OJnQMGXp4k3n5JUGw/C/UxucbanCqwXAxKfEcNZx1jhQJ0XMX5Q5fUp2p5+hI1A tqTDWQjRkDvteh9/2sUTJUd7F4X0UpaSOleHAkI/ggrTeEqbbn3DiI2cFPki5ltg == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrvdefhedgfeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgtggfgsehtqhertd ertdejnecuhfhrohhmpeetlhhishhtrghirhcuhfhrrghntghishcuoegrlhhishhtrghi rhesrghlihhsthgrihhrvdefrdhmvgeqnecuggftrfgrthhtvghrnhepheetfefgjeeuje dtgedvgfeghfeigfehffdvffduveevteejudfhudekudetveejnecuvehluhhsthgvrhfu ihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghlihhsthgrihhrsegrlhhish htrghirhdvfedrmhgv X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 25 Oct 2021 06:53:12 -0400 (EDT) From: Alistair Francis To: robh+dt@kernel.org, kernel@pengutronix.de, lgirdwood@gmail.com, lee.jones@linaro.org, broonie@kernel.org Cc: s.hauer@pengutronix.de, rui.zhang@intel.com, linux-hwmon@vger.kernel.org, linux-arm-kernel@lists.infradead.org, amitk@kernel.org, shawnguo@kernel.org, alistair23@gmail.com, devicetree@vger.kernel.org, linux-imx@nxp.com, andreas@kemnade.info, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Alistair Francis Subject: [PATCH v14 0/8] Add support for the silergy,sy7636a Date: Mon, 25 Oct 2021 20:53:01 +1000 Message-Id: <20211025105309.37942-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-20211025_035322_236271_D09800A3 X-CRM114-Status: UNSURE ( 7.67 ) 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 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/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 | 114 +++++++++++++++ drivers/mfd/Kconfig | 2 +- drivers/mfd/simple-mfd-i2c.c | 11 ++ drivers/regulator/Kconfig | 1 - drivers/regulator/sy7636a-regulator.c | 9 +- include/linux/mfd/sy7636a.h | 36 +++++ 12 files changed, 420 insertions(+), 5 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