From patchwork Tue May 31 12:49:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabien Parent X-Patchwork-Id: 12865544 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 EF948C433FE for ; Tue, 31 May 2022 12:51:41 +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=DrcKdwoJBqnuOfhHRCXCbmrRn/whyFF1QafFGFYR8N0=; b=DzzpLJ+7BNx2MU BSRzlit2o89lOlMCX8fGhuZdRyH6z+9vR5jD14RbmYT2QG5AzTLB+JcRsDAveT0W9IntR1pPvApJT orL+4h2Z1yGk8E6geuHLarI0GMaLdJY0eBLg9PEa8Pg4ZLkLks96R/y5COxFhx6YHQ1fC6ldpmBIY 2v+vsVdqr/asadIDHjD5ik97PdbnMY0+jqeQig7vAhFPWvH5G5ad6W5V1trOfML7IAO6kX2faNYyT CkNbyFPYEJ+zMPkAWH5K6t7FsxMVBIlRVYsmpbJfE3RT3MS2Twmsg/PjFpSKkWVKnMMBY25ga9J3K +9dx74m+IlWiI75NkkTA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nw1KL-00Ar5V-3p; Tue, 31 May 2022 12:50:25 +0000 Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nw1KF-00Ar23-22 for linux-arm-kernel@lists.infradead.org; Tue, 31 May 2022 12:50:21 +0000 Received: by mail-wr1-x42f.google.com with SMTP id e25so7922555wra.11 for ; Tue, 31 May 2022 05:50:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=FiTOMXRe8vlWXX5ZGsKF0+eeCO/G5tTB6udDNKVnmPE=; b=8HsQJ3L6WZOvU0vtNb6X+iHBpXo23csxxrHnx76RQ1EDV5hD5CI4x2qohY7g+hqvhi wF2gAEHS000Q8Nt1LuUWiJnnoJvhYQ/GPE3OcPJlVBA2ozlDxnfKAmHklddW57tolyqa 8MFONTHvlce0Yhta6o4RTz83Ki7QNW2gdLynMeIkDJQ8TF0ehzH4ufsbaF5yyP5i0I5P Fzgzm1pW3hLMdoJil54JYJX2+DA7yZznBtUd/pe2EHPpmKYWAycoFexXWOBDlz5fcUj8 2IOMe+U6uoIkhnYBTI26nGJRT2JiaXeznaGjdInvslTQ6ygkXUn57zPIXaxHKFZgym06 jliQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=FiTOMXRe8vlWXX5ZGsKF0+eeCO/G5tTB6udDNKVnmPE=; b=2IpV2M+K6bwyAJPp2L2pG7KHvK7SdPqVVg4KDwi4RXos6q1bKRZ+B+bRly/GXFifhV 7eDx858+mjL4UnatznmVFEyfIhb7//h3cQ17SOAdbvlq1duzR6zxvTa6orAl0YsqBcvf mF0/ZtcXPPxiqGCknPOFDV5/V6AldKl1O0BNJlXDVXmV2VE94e8QrHlFiRr5n1xbeM2l TRLPUUrKcy5liDOgG9vGHH3J/u3TnkkkPmR3Y6OxXlTxf2muaE1rui8ImuXHumx0rcnQ 6O6AcRoJVpAG+01oqC3Iw49klGUpjnRCBKMtP8yg7zHV5Btm0vPZDa3o7+Tll4WcJOoh 54Vw== X-Gm-Message-State: AOAM531eCOnLsRHDmuV5D2qYicEnHQdhtxpIb/jhUhXwFGGPueZ+SwM3 1W3Lnjh//XEcaWGjZcTzXPRB3Q== X-Google-Smtp-Source: ABdhPJxX8HAWETf8YvOaGIyu8Ut750dVEenbQ2PDmalb23+KKtpTaED/IIOeHir/jTHgw9FivJ/EoA== X-Received: by 2002:a05:6000:18a8:b0:20e:654f:a004 with SMTP id b8-20020a05600018a800b0020e654fa004mr48890004wri.672.1654001415254; Tue, 31 May 2022 05:50:15 -0700 (PDT) Received: from helium.lan ([88.160.162.107]) by smtp.gmail.com with ESMTPSA id i13-20020adfaacd000000b0020fc40d006bsm11475019wrc.17.2022.05.31.05.50.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 May 2022 05:50:14 -0700 (PDT) From: Fabien Parent To: Matthias Brugger Cc: Fabien Parent , linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH 0/7] Add MediaTek MT6357 PMIC support Date: Tue, 31 May 2022 14:49:52 +0200 Message-Id: <20220531124959.202787-1-fparent@baylibre.com> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220531_055019_335591_C1764156 X-CRM114-Status: GOOD ( 12.16 ) 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 This patch series adds MFD, PMIC keys, and regulator support for MT6357. MT6357 is a MediaTek PMIC very similar to MT6358 and MT6359. The first 6 patches of this series have no dependencies. The last patch depends on another patch series that add PMIC keys support for MT6359: https://lore.kernel.org/all/20220415153629.1817202-1-fparent@baylibre.com/ Fabien Parent (7): dt-bindings: mfd: mt6397: add binding for MT6357 dt-bindings: input: mtk-pmic-keys: add binding for MT6357 PMIC dt-bindings: regulator: Add binding schema for mt6357 regulators mfd: mt6397-core: add MT6357 PMIC support mfd: mt6358-irq: add MT6357 PMIC support regulator: add mt6357 regulator Input: mtk-pmic-keys: add MT6357 support .../bindings/input/mtk-pmic-keys.txt | 1 + .../devicetree/bindings/mfd/mt6397.txt | 1 + .../regulator/mediatek,mt6357-regulator.yaml | 282 +++ drivers/input/keyboard/mtk-pmic-keys.c | 15 + drivers/mfd/mt6358-irq.c | 24 + drivers/mfd/mt6397-core.c | 44 + drivers/regulator/Kconfig | 9 + drivers/regulator/Makefile | 1 + drivers/regulator/mt6357-regulator.c | 485 +++++ include/linux/mfd/mt6357/core.h | 119 ++ include/linux/mfd/mt6357/registers.h | 1574 +++++++++++++++++ include/linux/mfd/mt6397/core.h | 1 + include/linux/regulator/mt6357-regulator.h | 51 + 13 files changed, 2607 insertions(+) create mode 100644 Documentation/devicetree/bindings/regulator/mediatek,mt6357-regulator.yaml create mode 100644 drivers/regulator/mt6357-regulator.c create mode 100644 include/linux/mfd/mt6357/core.h create mode 100644 include/linux/mfd/mt6357/registers.h create mode 100644 include/linux/regulator/mt6357-regulator.h