Message ID | 20230324094205.33266-1-angelogioacchino.delregno@collabora.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp495814vqo; Fri, 24 Mar 2023 02:46:55 -0700 (PDT) X-Google-Smtp-Source: AK7set8pkQIx9W8jV5oznXBX06jnxT1a1HHr9JBgNP1obifd6qqz5AG9fR1iC7ovpLTVO4+z627B X-Received: by 2002:a05:6a20:b916:b0:cd:fc47:ddbf with SMTP id fe22-20020a056a20b91600b000cdfc47ddbfmr2356569pzb.47.1679651215243; Fri, 24 Mar 2023 02:46:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679651215; cv=none; d=google.com; s=arc-20160816; b=018q+vVaNCSxqIAqxy6nb9O03xq+OjQ3FehLgwey1OtXkf3ASDUPsX7uZj/fe8EmZV 58icDbkNPxFs8eD8nM9Hvx2OcU9Aj7Ugx+gb7zSfR9xeyCioLboq1pxan2ThDLkRmyiM 9gRiM7qQYQhAK/8Qw8TyVjR9jCpJ/UmlD3G05dXkqSvVxE94H6iNR8qQoxdDXMBmbozB 4boM0O8YyXA/U5o+/8QD6Bs/EnUOPdKHSPTsmywRrb+ieobAvLj6/a8bsjZSgQbdui+p CBSmNE3+YTa4RSjs53xJnLhIKcZbAwyuVV+TcXhOkOxAe/iATqO1Bdg8QohYYv8n676x nEow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Z0qlcKrWmky7+oVQgMysBLbhTxOpuHrtgdrTy78e+OQ=; b=dgEWNg5KmA8V+D7G5beeOM8ljG0iQb7N9lToLLPWfgQHvROPOAwxkbqoSP8caC9TSr tS+pkIaH3RCgnGKX2S8s0xKWtPNhVAigPLeE70oPWYuZhfh+31zWH6+CoTFXn1qrskAY ItWtY9lrXQcVIuxwIgnLQdE88JI/L5v4770tlqaU6TnYPaD1WS51pqYKC4deAtFV+XPR thfv8VCRFSFj+mwDlA3nt8b+REXBnzKLSTwvoHyPcCCld48InNdPadVo9cKx2RcxXo3M IgnNRDRzy6qpWF8MkNtsEZcRPHz5K3h+X68iWy/1DSr31HeDDKkNkvzN6qqfc9Vi1BYO 128g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=GJcm7kUX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q11-20020a63e94b000000b0050971cbf2dbsi21073100pgj.226.2023.03.24.02.46.42; Fri, 24 Mar 2023 02:46:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=GJcm7kUX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231602AbjCXJmk (ORCPT <rfc822;ezelljr.billy@gmail.com> + 99 others); Fri, 24 Mar 2023 05:42:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231821AbjCXJmU (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 24 Mar 2023 05:42:20 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1947D2528A; Fri, 24 Mar 2023 02:42:12 -0700 (PDT) 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 C1D706603103; Fri, 24 Mar 2023 09:42:10 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1679650931; bh=ebcxMmChYQz6A/ejLgJx2hRoaZswuqFXLT5RuazLrD8=; h=From:To:Cc:Subject:Date:From; b=GJcm7kUXnum8O5QYg3Yhy/u1GZviyHYRPMKxFk1EjRIGNpvWgD4YRu9LA/3w6euFT OrpW9D9PZI4CgE+PESNVuTKFQ1UohddPqMa3eBebTiHaH+tswkBollMdptCIbngR1H N0oFlfg9eE2hpbRPmYa8uIoWfj74j+0ozpDtQcKRCG0zzhdRshsGg87zMQfaS1cksH enIBbt0XMqIZ1S2ywYz9qZ7zqPEtYWUI5oWheKWZZBw/Hrffb00Y1pmUKO4JWMBKKf UuNOm+EWAGCROXPLDNAtEZj7+o8J40JDzZyQ7uqusUUj6EAxP/YT/O/sFBoE5vxCGt upLwXdO6ujM+g== From: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> To: matthias.bgg@gmail.com Cc: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, amergnat@baylibre.com, flora.fu@mediatek.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, kernel@collabora.com, phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Subject: [PATCH v2 0/6] MediaTek Helio X10 MT6795 - MT6331/6332 PMIC Wrapper Date: Fri, 24 Mar 2023 10:41:59 +0100 Message-Id: <20230324094205.33266-1-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.40.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761241952533787897?= X-GMAIL-MSGID: =?utf-8?q?1761241952533787897?= |
Series |
MediaTek Helio X10 MT6795 - MT6331/6332 PMIC Wrapper
|
|
Message
AngeloGioacchino Del Regno
March 24, 2023, 9:41 a.m. UTC
Changes in v2: - Rebased on next-20230323 - Changed pwrap.txt addition to new yaml file addition 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 introduces support in the PMIC Wrapper for a different PMIC topology, which is commonly found on smartphone boards, using one main PMIC and one Companion/Sub PMIC, both accessible *only* through the pwrap; be aware that this kind of topology is not *specific to* the Helio X10 SoC, but common across many kinds of MediaTek smartphone oriented SoCs and board designs. That said, support for the PMIC combo MT6331+MT6332 is provided in this series in a form that will be able to initialize the PMICs with crypto and DualIO but nothing else: these PMICs are very featureful, so I have decided to add this support in more than just one step, as there will be multiple patches for multiple different subsystems (..it's a mfd!..). Tested on a MT6795 Sony Xperia M5 (codename "Holly") smartphone. AngeloGioacchino Del Regno (6): dt-bindings: soc: mediatek: pwrap: Add compatible for MT6795 Helio X10 soc: mediatek: pwrap: Move PMIC read test sequence in function soc: mediatek: pwrap: Add kerneldoc for struct pwrap_slv_type soc: mediatek: mtk-pmic-wrap: Add support for companion PMICs soc: mediatek: mtk-pmic-wrap: Add support for MT6331 w/ MT6332 companion soc: mediatek: pwrap: Add support for MT6795 Helio X10 .../bindings/soc/mediatek/mediatek,pwrap.yaml | 1 + drivers/soc/mediatek/mtk-pmic-wrap.c | 287 ++++++++++++++++-- 2 files changed, 262 insertions(+), 26 deletions(-)