From patchwork Fri Jun 17 11:07:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AngeloGioacchino Del Regno X-Patchwork-Id: 12885582 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 0C9F0CCA47C for ; Fri, 17 Jun 2022 11:10:28 +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=+1YB5FQ9O73jG84J3D3FNxcslc1CYf59UcvAlid1890=; b=3L7rTC5OwfOD2b yR0OCXKjRhI53K7iNXsQuESc5qGE3MgP0VkBWUaqHafSamOQBUBmdLtK/H9ndnCirIDMf65eYn1+2 xPMZBOTtrOSS4M1nb8MCGG+t7qMSCTNgGn+nCHxxawWHPWf0CKP52gnYfSpm8YCwkhhRJuvR7HweO kK8a9GG+5Q+8OovHT3i+ImNo/zthFMRi6xPjXVPUT1xPIM6QFERvwFniVDFVn7/enzkEzjDDzePe8 jgWXutBSc/A+NP4bIfsA8jBPpVcIjKJfCcPk8HPvwZQIfZDbvXwcyL3HM9DAiONmDUfdX7Hk29JOe 1olynbG+2AV64dVTqrEA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o29qp-007DEu-QE; Fri, 17 Jun 2022 11:09:21 +0000 Received: from madras.collabora.co.uk ([2a00:1098:0:82:1000:25:2eeb:e5ab]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o29pB-007CdP-VJ; Fri, 17 Jun 2022 11:07:40 +0000 Received: from IcarusMOD.eternityproject.eu (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id DA3E9660179A; Fri, 17 Jun 2022 12:07:35 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1655464056; bh=OlBFW53ERgizRVRtQgKbH+lzxjyhexAWk8aT0tzSoZ0=; h=From:To:Cc:Subject:Date:From; b=QdX6jUJgR7tgj/RIoZpnhXa/CLZMW8q+eI3ShgKImy4sHx2nujjj9sfzX37le/+yE KY1OfP3+MdF+yWHaHbKTCXMc1Ao0ppSnoPyqaPwDqXEAaSvCXddzvJmelreynOKDA1 6b26PnbLLlph/HEb94oZpTk4aqAwKF76o1/9xviP/Tw6RusEa3W6G/FXcJCGd96Ouu rsCBHfVMigyv0hLXh/7Uxa7PAUoYAv5oSMDgZ3eJsWnmf9TTOHS8loDwHcCUDqP/5i EbqGa1FPibAsi+katm1iVvcKjr/riKK8FMogD5oaDJOyLGNhKoVFvZUnmFitufD1Em OMv5ND8U7+VLQ== From: AngeloGioacchino Del Regno To: lee.jones@linaro.org Cc: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, johnson.wang@mediatek.com, hsin-hsiung.wang@mediatek.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 0/2] MediaTek Helio X10 MT6795 - MT6331/6332 PMIC MFD integration Date: Fri, 17 Jun 2022 13:07:26 +0200 Message-Id: <20220617110728.90132-1-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220617_040738_186863_27E43032 X-CRM114-Status: GOOD ( 13.29 ) 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 In an effort to give some love to the apparently forgotten MT6795 SoC, I am upstreaming more components that are necessary to support platforms powered by this one apart from a simple boot to serial console. This series adds the necessary headers and support for the MT6331 with MT6332 companion PMIC in the mt6397 MFD driver, along with some basic devices. Adding support to each driver in each subsystem will be done in different patch series as to avoid spamming uninteresting patches to maintainers. This series depends on another series [1] named "MediaTek Helio X10 MT6795 - MT6331/6332 PMIC Wrapper", meaning that even if this builds without, the changes in said series are necessary to actually use these PMICs. Tested on a MT6795 Sony Xperia M5 (codename "Holly") smartphone. [1]: https://lore.kernel.org/lkml/20220520124039.228314-1-angelogioacchino.delregno@collabora.com/T/#t Changes in v3: - Removed unused macros in mt6331/core.h, mt6332/core.h Changes in v2: - Reworded commit description for commit [1/2] to include a list of the submodules provided by this hardware - Changed keys compatible documentation to a list AngeloGioacchino Del Regno (2): dt-bindings: mfd: mt6397: Add compatibles for MT6331 RTC and keys mfd: mt6397: Add basic support for MT6331+MT6332 PMIC .../devicetree/bindings/mfd/mt6397.txt | 7 +- drivers/mfd/mt6397-core.c | 47 ++ drivers/mfd/mt6397-irq.c | 9 +- include/linux/mfd/mt6331/core.h | 40 ++ include/linux/mfd/mt6331/registers.h | 584 ++++++++++++++++ include/linux/mfd/mt6332/core.h | 65 ++ include/linux/mfd/mt6332/registers.h | 642 ++++++++++++++++++ include/linux/mfd/mt6397/core.h | 2 + 8 files changed, 1393 insertions(+), 3 deletions(-) create mode 100644 include/linux/mfd/mt6331/core.h create mode 100644 include/linux/mfd/mt6331/registers.h create mode 100644 include/linux/mfd/mt6332/core.h create mode 100644 include/linux/mfd/mt6332/registers.h