From patchwork Mon Jul 11 20:34:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 12914266 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9AAD1C43334 for ; Mon, 11 Jul 2022 20:34:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232148AbiGKUea (ORCPT ); Mon, 11 Jul 2022 16:34:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232140AbiGKUeO (ORCPT ); Mon, 11 Jul 2022 16:34:14 -0400 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 77DB45247F; Mon, 11 Jul 2022 13:34:13 -0700 (PDT) Received: by mail-ej1-x630.google.com with SMTP id os14so10787302ejb.4; Mon, 11 Jul 2022 13:34:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ygfoxsCOcEZFDvZwwxHJZr7GgBlZqbqyOyuBkqlE4/k=; b=FCVkMHINOi+2nayP8xiMeu+6NxUb1DpQe8dqbjAdVDiNqodttsFdNUyGFXI+oLNvd0 iECv+ebdL2J8jGqBB+PU/VsPUxc8WxkRFs6iwA061C9s3norGTb1t0DmDjEB7BgL2YJ2 8hVFkC/FavZPXtwF3ETGluwEExsTXP8PCNiuoCwSNXarpyLer5nveuP6L/qBKKgDrgdU qHa6n7XpyZApbvu4PYQzziBxsQWIIXTr4L6GKhlDgjBwcOfEcLFV40C0pI/0UEwObCZj GZmsY7bDG0QO/374g/WhV4dCtqDVkMRX3smkyCGBt8p+1SEB+xxUM28QTqPOO/P4vZBr oHNw== 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=ygfoxsCOcEZFDvZwwxHJZr7GgBlZqbqyOyuBkqlE4/k=; b=ZQpOArmK0z9vfIPK5fh08yNqdaIM1a2jxG7i0s9EbjXNOllRyIUBIU8yyG72FFCHhK LgSimP2OJV/ivSlsFzTn5iYSPQpN3+nFKHLjvAtkk1TBGgA69aaylUsnd38eFrzALhei UO1pik/n754J23Pn0w9uFiLFxusKWL5JUkkyUhRpVPVvMd88YHgXTowRSLNG310UYwbV AjSCzHT+XVT+ySLxburJkhUDXpxaEyCjXoWetHFWcKiE9XTYAsI9eUIM5Jr0PIudoiFW lPAlfNuP5n9cvNKyiDwFUdJEPkz0BXMTJkflLpWMwqx9xcIJv7YHeCUkx1xAcJIXo5aO 8GXw== X-Gm-Message-State: AJIora+XkPxdvY0+5Ltvsx8LjT+gHvK3cXfT8SZgODKYFjjTQ60bFZw6 hCVIQou2fhqowcTgqN5injI= X-Google-Smtp-Source: AGRyM1tZwrEqdPTK36k8QOQt/Uhr1nRt5Zz9+7YdYR0j9LZM8H0iTxhFlm1Nh2VfhJCSZeit3NIDww== X-Received: by 2002:a17:907:2bd3:b0:72b:44ed:6d6b with SMTP id gv19-20020a1709072bd300b0072b44ed6d6bmr11741284ejc.632.1657571652006; Mon, 11 Jul 2022 13:34:12 -0700 (PDT) Received: from fedora.robimarko.hr (cpe-94-253-165-104.zg.cable.xnet.hr. [94.253.165.104]) by smtp.googlemail.com with ESMTPSA id l11-20020a056402124b00b0043a422801f8sm4936264edw.87.2022.07.11.13.34.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Jul 2022 13:34:10 -0700 (PDT) From: Robert Marko To: agross@kernel.org, bjorn.andersson@linaro.org, konrad.dybcio@somainline.org, lee.jones@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linus.walleij@linaro.org, jic23@kernel.org, lars@metafoo.de, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-iio@vger.kernel.org Cc: Robert Marko , Krzysztof Kozlowski Subject: [PATCH v7 1/7] dt-bindings: mfd: qcom-spmi-pmic: add support for PMP8074 Date: Mon, 11 Jul 2022 22:34:02 +0200 Message-Id: <20220711203408.2949888-1-robimarko@gmail.com> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Document compatible for the PMP8074 PMIC. Signed-off-by: Robert Marko Acked-by: Krzysztof Kozlowski --- Changes in v7: * Fixup commit description I planned to convert the bindings to dtschema, but there is already a patch to do so [1]. I will make a patch to add the compatible to dtschema once it gets accepted. [1] https://lore.kernel.org/linux-arm-msm/20220626191630.176835-1-david@ixit.cz/ --- Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.txt b/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.txt index eb78e3ae7703..c46d17609f3a 100644 --- a/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.txt +++ b/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.txt @@ -46,6 +46,7 @@ Required properties: "qcom,pmi8998", "qcom,pmk8002", "qcom,pmk8350", + "qcom,pmp8074", "qcom,pmr735a", "qcom,smb2351", or generalized "qcom,spmi-pmic". From patchwork Mon Jul 11 20:34:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 12914268 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 14420C43334 for ; Mon, 11 Jul 2022 20:35:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232013AbiGKUfE (ORCPT ); Mon, 11 Jul 2022 16:35:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232159AbiGKUeQ (ORCPT ); Mon, 11 Jul 2022 16:34:16 -0400 Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9593E564C0; Mon, 11 Jul 2022 13:34:14 -0700 (PDT) Received: by mail-ed1-x52c.google.com with SMTP id k30so7676657edk.8; Mon, 11 Jul 2022 13:34:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=IqiavdIdz0WglHiL0//S+IRPa684ukWZUSuGgmCMvLw=; b=RbPfgeXyJ8IJUjU2gjJTYA7IHBKa/nsqtIoP93fgCsWscMMVmNDxmpaULjGjTvCvae gTbJTymQ5RHvGFO5vytE79c5jSut+vihkWHVNVGCZgP3oN5hR3W1r6V6HTqbs9CGi71i yFS51TNASy4SqYBbeHe4hge+6iXHqRT2Uh/ALRQxgSYT7TooACuzA+9F5BgaMyuFVbjO OXg45jB7xl9yqT9oLtiPLb+LD4VIE6T5uHRGSC0ulcNVY4u58ImE28xXBSAUM8wSVHj9 Dz+Y1ab9ErP1hHEU/+PPgRyOCzgH1pTYaUF6221BlLnKxFYpGGqZpqaLIffRs6/8feT9 vM2A== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=IqiavdIdz0WglHiL0//S+IRPa684ukWZUSuGgmCMvLw=; b=cV76JFqzjeH37mu6cODnQNcxCtZ72X4G1v+IyYnrPcooBbnBlOnpXmCAp/MIaRpc4Y 0zgMKnjeVEAnC+Z1O31N/T0lJ2Igt2A7/FBDPvHcAdGgeZkwotisADQdqeE4T0xHmdBE DK1pF5pTeKffkoktyiNw9T46q6eYm8yRynOgbsRz+HXZL9tFXjY6GQ+A8GchJQdawzi2 nE4Ie6nHWhxZc/Gjr2N9c9Q4osickQ6PpFzbPRDzQ8AfUI1hKBNJgOZWKQZ7BqBGt+hE Bjs/YbKLeVIbagmYKLmttP2uWoEYXXSyjDwzuGvzCy/Fuwj5Y+0yB0DAkf6gPWKh+JxF ea7w== X-Gm-Message-State: AJIora8GOe7eRygLZmWcPXsklyqCRtXag1LK+6QRkLBR77JKTV41d8WO kloHSQwrhDSVaSMYKe0eOBw= X-Google-Smtp-Source: AGRyM1s4exHJYG3Lt97GJZk1g8XzSyyonjo0Hrk5gA+G6ozpUANsD860h8VaGEJNWbOwMYOr+DtT1Q== X-Received: by 2002:a05:6402:40d6:b0:43a:cc69:1db9 with SMTP id z22-20020a05640240d600b0043acc691db9mr13048073edb.380.1657571653240; Mon, 11 Jul 2022 13:34:13 -0700 (PDT) Received: from fedora.robimarko.hr (cpe-94-253-165-104.zg.cable.xnet.hr. [94.253.165.104]) by smtp.googlemail.com with ESMTPSA id l11-20020a056402124b00b0043a422801f8sm4936264edw.87.2022.07.11.13.34.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Jul 2022 13:34:12 -0700 (PDT) From: Robert Marko To: agross@kernel.org, bjorn.andersson@linaro.org, konrad.dybcio@somainline.org, lee.jones@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linus.walleij@linaro.org, jic23@kernel.org, lars@metafoo.de, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-iio@vger.kernel.org Cc: Robert Marko Subject: [PATCH v7 2/7] mfd: qcom-spmi-pmic: add support for PMP8074 Date: Mon, 11 Jul 2022 22:34:03 +0200 Message-Id: <20220711203408.2949888-2-robimarko@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220711203408.2949888-1-robimarko@gmail.com> References: <20220711203408.2949888-1-robimarko@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add support for PMP8074 PMIC which is a companion PMIC for the Qualcomm IPQ8074 SoC-s. It shares the same subtype identifier as PM8901. Signed-off-by: Robert Marko Acked-by: Lee Jones --- drivers/mfd/qcom-spmi-pmic.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mfd/qcom-spmi-pmic.c b/drivers/mfd/qcom-spmi-pmic.c index 00003a868d28..7e2cd79d17eb 100644 --- a/drivers/mfd/qcom-spmi-pmic.c +++ b/drivers/mfd/qcom-spmi-pmic.c @@ -60,6 +60,7 @@ static const struct of_device_id pmic_spmi_id_table[] = { { .compatible = "qcom,pmi8994", .data = N_USIDS(2) }, { .compatible = "qcom,pmi8998", .data = N_USIDS(2) }, { .compatible = "qcom,pmk8002", .data = N_USIDS(2) }, + { .compatible = "qcom,pmp8074", .data = N_USIDS(2) }, { .compatible = "qcom,smb2351", .data = N_USIDS(2) }, { .compatible = "qcom,spmi-pmic", .data = N_USIDS(1) }, { } From patchwork Mon Jul 11 20:34:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 12914262 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 49847C433EF for ; Mon, 11 Jul 2022 20:34:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231443AbiGKUe0 (ORCPT ); Mon, 11 Jul 2022 16:34:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58570 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232170AbiGKUeQ (ORCPT ); Mon, 11 Jul 2022 16:34:16 -0400 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F0967422F9; Mon, 11 Jul 2022 13:34:15 -0700 (PDT) Received: by mail-ej1-x632.google.com with SMTP id l23so10776347ejr.5; Mon, 11 Jul 2022 13:34:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=EOAFibCJe08MWChM4fURWU6yWlY0z6ldM4g46DVUVng=; b=ALS9kcEKsPUmxukYHPUDXY2HTXKYuh4jMai1pGgMVmtGMQOoloYuYw4MrMsrhpoCFv DgfSqydLV4nGwh+jgbNxnX86vx6IvL2ZrIvXAITBhQ0ynwxntUydvDy3yLcuy3EMoA2R haS3UKaIWuVX4VmbDS/G6omOuNgHtXbujRzO3eXqaa5S7AqjIFQA9iGtel4JfWqMsADG ykoRczJ0SBqXteh7vkCSlL6UHR7RYxUaFYVej2Q7+x9fcXXe/2up3Ja+2X9WgjOhLLJJ hKAIl2p6NZ7/72kHaF/VSTUAmx0qKjGFBfs83SrdtZnBXh0RMq/zuSCMsRFQ4xAry5NY JRFg== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=EOAFibCJe08MWChM4fURWU6yWlY0z6ldM4g46DVUVng=; b=DCaBFBaTMJ3CnGOCTwZNTkJu0aaWdfZWeRKdZ2yoQKOO0XGzajn/LAR7R81DqxtHZG QKhquuNP86oDmmT9hTlX9Je9N9lMpg4Lnwb7qFm5xTJg0+9Kb/fb43a264pbIQDquWo3 mwRLWk402gSbr96QgMKMoXm+g7CQXOS96suPaQ6Om8k1P/tyYa/I6VYj/H5ghCBnRtuk FVcMPznaW46CPar+GDjUnwSPm5izSyxCTU1QIqoykIqdRw16AEdFnfVNJ5CxAwi63+ZA cgvGO86K0C7F5XrbO+aYU4nQRpZmdpstBWaNpV7lTU/x7Qbe2dd11MksS4fsXD1YwMcm v8Ww== X-Gm-Message-State: AJIora+oJhRZuL7vio2jb/nrDGpKeoV6BLuoKzKPufpLoX5QcGiCQJfL vYRUVYV+pjhxxCzOWrDqICg= X-Google-Smtp-Source: AGRyM1tv5/bCh5YZueC8NLmycryR65b3kWd9cEavJoRy/mmQ6qC14ZypSTEsJCOH2nUaazmQG9iyew== X-Received: by 2002:a17:906:5d04:b0:722:f46c:b891 with SMTP id g4-20020a1709065d0400b00722f46cb891mr20318245ejt.4.1657571654513; Mon, 11 Jul 2022 13:34:14 -0700 (PDT) Received: from fedora.robimarko.hr (cpe-94-253-165-104.zg.cable.xnet.hr. [94.253.165.104]) by smtp.googlemail.com with ESMTPSA id l11-20020a056402124b00b0043a422801f8sm4936264edw.87.2022.07.11.13.34.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Jul 2022 13:34:14 -0700 (PDT) From: Robert Marko To: agross@kernel.org, bjorn.andersson@linaro.org, konrad.dybcio@somainline.org, lee.jones@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linus.walleij@linaro.org, jic23@kernel.org, lars@metafoo.de, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-iio@vger.kernel.org Cc: Robert Marko , Krzysztof Kozlowski Subject: [PATCH v7 3/7] dt-bindings: pinctrl: qcom,pmic-gpio: add PMP8074 Date: Mon, 11 Jul 2022 22:34:04 +0200 Message-Id: <20220711203408.2949888-3-robimarko@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220711203408.2949888-1-robimarko@gmail.com> References: <20220711203408.2949888-1-robimarko@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Document the compatible for PMP8074 which has 12 GPIO-s with holes at GPIO1 and GPIO12. Signed-off-by: Robert Marko Acked-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/pinctrl/qcom,pmic-gpio.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,pmic-gpio.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,pmic-gpio.yaml index 6f2efc3772cb..6bc84779b092 100644 --- a/Documentation/devicetree/bindings/pinctrl/qcom,pmic-gpio.yaml +++ b/Documentation/devicetree/bindings/pinctrl/qcom,pmic-gpio.yaml @@ -52,6 +52,7 @@ properties: - qcom,pmi8998-gpio - qcom,pmk8350-gpio - qcom,pmm8155au-gpio + - qcom,pmp8074-gpio - qcom,pmr735a-gpio - qcom,pmr735b-gpio - qcom,pms405-gpio @@ -233,6 +234,7 @@ allOf: - qcom,pm8150b-gpio - qcom,pm8150l-gpio - qcom,pmc8180c-gpio + - qcom,pmp8074-gpio - qcom,pms405-gpio then: properties: @@ -415,6 +417,7 @@ $defs: - gpio1-gpio10 for pmi8994 - gpio1-gpio4 for pmk8350 - gpio1-gpio10 for pmm8155au + - gpio1-gpio12 for pmp8074 (holes on gpio1 and gpio12) - gpio1-gpio4 for pmr735a - gpio1-gpio4 for pmr735b - gpio1-gpio12 for pms405 (holes on gpio1, gpio9 From patchwork Mon Jul 11 20:34:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 12914263 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9DC2DCCA47F for ; Mon, 11 Jul 2022 20:34:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231815AbiGKUe1 (ORCPT ); Mon, 11 Jul 2022 16:34:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58616 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232186AbiGKUeS (ORCPT ); Mon, 11 Jul 2022 16:34:18 -0400 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 37B8B4D83E; Mon, 11 Jul 2022 13:34:17 -0700 (PDT) Received: by mail-ej1-x62c.google.com with SMTP id h23so10743642ejj.12; Mon, 11 Jul 2022 13:34:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=NzY2lLT1/+M7Tlebg6E3uD74NSlb4eEU7B73WZsDdYs=; b=ons8OxekqDhdDCLGvUmxYhlsPKpZ2xzlsGd/U6KZDW7QF8CYcQ6LNKfScfclewtkPR FbMkzYjucVH6W8WORTrQOQLaah1tl0Tf1C9xyMI91hyQGS26p/A3JXROd6mSvnRP9d2N +VQ/oSaE+ZrNobUQgeBIE5yVoSJEVOL25b19TABP3e9mpyeOsL8hUTtBj6hKOkG+U53x CqBcFD5TUTzyTbbIgIvJUCBkTyCRvXUuEq7cGKgj1WOPX4rPWqtzHHX/kUImsjm4vzWa nT0/TvlSw4AW1mlYjc9piGgEqpFz84avEfKIIfeLPnoJczwtSseo7aeEvY8zJ9rSmVCV HKfg== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=NzY2lLT1/+M7Tlebg6E3uD74NSlb4eEU7B73WZsDdYs=; b=NN/nA0+VkE+02L3nzboSilEl/opuBTbfS8UxwhZbp/BCdKlfCkds78e6WPnr1dV1+p Qdr/E2RCc13CJYayPFUnKSJJMp7ngGq17E9U3ErCvAW725/qMLWjVB7VC/dXCTs0Nz/U OZ/3rigcGgmHj9oPTk0BiFTWw/YVTRRQjbk454ei87rcYAZhVihPRXL3Dkg97+bJE1Sl x6HW5O5s3WW8NeASRaE6LlTOe0DKhkUFR/I/FbfNdkV1eoCaj8AjYRLFVzIGYvJ0xCyU nkLNpm/USZeM5rW7/Ib1coC715/mCFNVfkj17UyoCWrhIzRNhMeROhB4IBVoRN9zfeAQ h1sw== X-Gm-Message-State: AJIora+D9dKqz9vWjpUb15rLYkvCmWYlHy+Or9kEfF72mjYiYHBnB5ts BWSQxn6yVgki+/9Jegu3tV+958rzlAYjIg== X-Google-Smtp-Source: AGRyM1s7ke9v5iAiiAH8yzp/kqP4tFX/5B8qaAQnDhxKuu92KvXyxHAzvYeX47dFIwIgmUevCWl5Og== X-Received: by 2002:a17:907:7811:b0:6ef:a896:b407 with SMTP id la17-20020a170907781100b006efa896b407mr20602627ejc.645.1657571655765; Mon, 11 Jul 2022 13:34:15 -0700 (PDT) Received: from fedora.robimarko.hr (cpe-94-253-165-104.zg.cable.xnet.hr. [94.253.165.104]) by smtp.googlemail.com with ESMTPSA id l11-20020a056402124b00b0043a422801f8sm4936264edw.87.2022.07.11.13.34.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Jul 2022 13:34:15 -0700 (PDT) From: Robert Marko To: agross@kernel.org, bjorn.andersson@linaro.org, konrad.dybcio@somainline.org, lee.jones@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linus.walleij@linaro.org, jic23@kernel.org, lars@metafoo.de, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-iio@vger.kernel.org Cc: Robert Marko Subject: [PATCH v7 4/7] pinctrl: qcom-pmic-gpio: add support for PMP8074 Date: Mon, 11 Jul 2022 22:34:05 +0200 Message-Id: <20220711203408.2949888-4-robimarko@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220711203408.2949888-1-robimarko@gmail.com> References: <20220711203408.2949888-1-robimarko@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org PMP8074 has 12 GPIO-s with holes on GPIO1 and GPIO12. Signed-off-by: Robert Marko --- drivers/pinctrl/qcom/pinctrl-spmi-gpio.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c b/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c index 6f04186ebd09..406ee0933d0b 100644 --- a/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c +++ b/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c @@ -1180,6 +1180,8 @@ static const struct of_device_id pmic_gpio_of_match[] = { { .compatible = "qcom,pmi8998-gpio", .data = (void *) 14 }, { .compatible = "qcom,pmk8350-gpio", .data = (void *) 4 }, { .compatible = "qcom,pmm8155au-gpio", .data = (void *) 10 }, + /* pmp8074 has 12 GPIOs with holes on 1 and 12 */ + { .compatible = "qcom,pmp8074-gpio", .data = (void *) 12 }, { .compatible = "qcom,pmr735a-gpio", .data = (void *) 4 }, { .compatible = "qcom,pmr735b-gpio", .data = (void *) 4 }, /* pms405 has 12 GPIOs with holes on 1, 9, and 10 */ From patchwork Mon Jul 11 20:34:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 12914267 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 799A5CCA483 for ; Mon, 11 Jul 2022 20:34:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232180AbiGKUeb (ORCPT ); Mon, 11 Jul 2022 16:34:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232191AbiGKUeS (ORCPT ); Mon, 11 Jul 2022 16:34:18 -0400 Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 903A6422F9; Mon, 11 Jul 2022 13:34:17 -0700 (PDT) Received: by mail-ed1-x52c.google.com with SMTP id k30so7676796edk.8; Mon, 11 Jul 2022 13:34:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=8kffmDQRv74NOVeeXFSx1e5OFvyn8uWZD+7MCMw1lKs=; b=INFoDWlRap9cPHlvXq6yIJ5ELMlS7dRyXDIrxHoj9Nf8EjfKoSEhkr0o1BW7v9FCFZ qo+3k6MWB33m1AJLRcJ+9W423PMXg4Us0u3z6PbVQyyHw3pdJJQzP3/k1WudvLMUA0D3 AuoaYawAzHXS2YG3xMfG1aR+p9KEmJRgaoz2y9Bgyctb+ddL6P/C+FXOv4k45UYD+sWI 8ZTxf+vLej813FljseCi4QBsj3Upy/J8nzqVr40hp1xLn9j/pSA4DnANIBab4jRNIy7a yQ8S1W4TdsqdtbFNeXofUlYv5VumFThvLKmykJ3O0jaDQ/0Am5XOKlf23C9WMxhWZEyl s19g== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=8kffmDQRv74NOVeeXFSx1e5OFvyn8uWZD+7MCMw1lKs=; b=nf451yRUgVzOhWfc64zwLsYOfZqNodji4h/4bdCAA+BdQNquNU9XexmBb43wd+PDD/ 9Sl2ppcwPmYIVXXVaRRC5BkExhIdUFfHwcpGTVv6oCO0MdoYUtbbZ/8wS5dNKHM53bmZ 7NoUiUJwJpdxC2NYzEmWA89RGa3/YW95wwsRE9kLTDMGr3Y50SjtY6lxASXjfQz4spWD 6rgZNIJJlf2NRdxUFnRPEX35ezfapUMLVRNKHr6SnQpfAxDif5wuJRZ66s6DkbevCIJ9 tH/ZD9msFfDkqQkdzHUEYhiKnYVvserDH1pZKYndKKIFsS3zd4omyA/2pEMI9BVhG6VD QCVw== X-Gm-Message-State: AJIora844Zzd7YQNNJTyx6x56lf8u71p0/VzGI0zL7dFDy+7dhSXTW6Y +dFYsS9koR1NdoVzkk19oJ2diMt4rHAQOw== X-Google-Smtp-Source: AGRyM1s3h9+ym9TFBCssh9IBPjja+dOT2TvKp6aad2WD8sVVDtpUMlNT9cNpYoH1xUu2KVMSBT9rfA== X-Received: by 2002:a05:6402:428a:b0:42e:8f7e:1638 with SMTP id g10-20020a056402428a00b0042e8f7e1638mr27602671edc.228.1657571657179; Mon, 11 Jul 2022 13:34:17 -0700 (PDT) Received: from fedora.robimarko.hr (cpe-94-253-165-104.zg.cable.xnet.hr. [94.253.165.104]) by smtp.googlemail.com with ESMTPSA id l11-20020a056402124b00b0043a422801f8sm4936264edw.87.2022.07.11.13.34.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Jul 2022 13:34:16 -0700 (PDT) From: Robert Marko To: agross@kernel.org, bjorn.andersson@linaro.org, konrad.dybcio@somainline.org, lee.jones@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linus.walleij@linaro.org, jic23@kernel.org, lars@metafoo.de, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-iio@vger.kernel.org Cc: Robert Marko , Jonathan Cameron Subject: [PATCH v7 5/7] iio: adc: qcom-spmi-adc5: add ADC5_VREF_VADC to rev2 ADC5 Date: Mon, 11 Jul 2022 22:34:06 +0200 Message-Id: <20220711203408.2949888-5-robimarko@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220711203408.2949888-1-robimarko@gmail.com> References: <20220711203408.2949888-1-robimarko@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add support for ADC5_VREF_VADC channel to rev2 ADC5 channel list. This channel measures the VADC reference LDO output. Signed-off-by: Robert Marko Acked-by: Jonathan Cameron --- drivers/iio/adc/qcom-spmi-adc5.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/iio/adc/qcom-spmi-adc5.c b/drivers/iio/adc/qcom-spmi-adc5.c index 87438d1e5c0b..7bd3745884f0 100644 --- a/drivers/iio/adc/qcom-spmi-adc5.c +++ b/drivers/iio/adc/qcom-spmi-adc5.c @@ -589,6 +589,8 @@ static const struct adc5_channels adc5_chans_rev2[ADC5_MAX_CHANNEL] = { SCALE_HW_CALIB_DEFAULT) [ADC5_1P25VREF] = ADC5_CHAN_VOLT("vref_1p25", 0, SCALE_HW_CALIB_DEFAULT) + [ADC5_VREF_VADC] = ADC5_CHAN_VOLT("vref_vadc", 0, + SCALE_HW_CALIB_DEFAULT) [ADC5_VPH_PWR] = ADC5_CHAN_VOLT("vph_pwr", 1, SCALE_HW_CALIB_DEFAULT) [ADC5_VBAT_SNS] = ADC5_CHAN_VOLT("vbat_sns", 1, From patchwork Mon Jul 11 20:34:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 12914265 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9788DC3F2D4 for ; Mon, 11 Jul 2022 20:34:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232119AbiGKUe2 (ORCPT ); Mon, 11 Jul 2022 16:34:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232227AbiGKUeV (ORCPT ); Mon, 11 Jul 2022 16:34:21 -0400 Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA07C3C8C4; Mon, 11 Jul 2022 13:34:19 -0700 (PDT) Received: by mail-ed1-x52e.google.com with SMTP id y4so7683239edc.4; Mon, 11 Jul 2022 13:34:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=f0aSwXJIcrACGMlyewZxFZJyC++87UB/pbC0lVzOZtM=; b=OM5+95mYy5o9YfxP6JQTAlQJUcYVhSDF9+PwlwZWebnB8RVciywfe2ejkaYZy3fcVb aGArOoZzDnLL038wsi7cU7O0mzbKLPm/qEtm8r+vt94Wdb8GwFKul5/eZUOf0MXmpx8V tTw5CsUr//97zv2ezQ4xDOaSdTAlHwHNpv6TyerTuJoos28B+/zfu1ITGSAj/fcZ1qtT /xUan8ef4oIACC0mKPRfbTQlKDbaH0v/n9TSgg+a9lV59CgfMqW+o5DNmFjV64fZxGxV xkVP1xKhbC7y0tl3LjtEYIWN4a2jOUY2NmRqHBWWc/TwPcXsEPpY9ovxELw9R2y+6zFr 7Wmw== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=f0aSwXJIcrACGMlyewZxFZJyC++87UB/pbC0lVzOZtM=; b=aF96n1gds5MrXnDdFlHWbQpczdZFY6fq6ZM1G+wi52q79MFLHupWY2DQGAmG4Szm81 FaYJhJgq689IYiGho7lag0Q+pxL5aTaYBVDoD0N8/YBapOg/C90dWoYPBhnVegRFU8CN GzdR7YNBIGSap7MjYEQA0rHKew8UdUT8zkHlurv4JoKYZH2hyIOXmvv77ChNkbgzo5yC Nlp1o4KrpcW8gUf+/84kVfJsSLId3MLuWuoPNg6CDEYFV/fcn14U3rI41MNRNTSUpWh0 mDY3Q1mC2Qs/TA3FItPJehdJ2Obo7z7MMwsSLmGouPJuvJuFBUOlxy8gwwrXw3MouSSW 5mrQ== X-Gm-Message-State: AJIora9SYYJscVuGf7QCWojmOAg59n4NPEpzOuZ1mDLJF6ghGfbdIpKU L6vmFupDafF/h41H1U6McPLJs2VEhumZTw== X-Google-Smtp-Source: AGRyM1tseyB/rmWgIKwNo6wZG/VLPHedoory/InQsLNVR2RGQFrjA4+KC7kxBCo2pNZTNYxyKfLYCg== X-Received: by 2002:aa7:d143:0:b0:43a:88f4:4ec1 with SMTP id r3-20020aa7d143000000b0043a88f44ec1mr27736811edo.141.1657571658543; Mon, 11 Jul 2022 13:34:18 -0700 (PDT) Received: from fedora.robimarko.hr (cpe-94-253-165-104.zg.cable.xnet.hr. [94.253.165.104]) by smtp.googlemail.com with ESMTPSA id l11-20020a056402124b00b0043a422801f8sm4936264edw.87.2022.07.11.13.34.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Jul 2022 13:34:18 -0700 (PDT) From: Robert Marko To: agross@kernel.org, bjorn.andersson@linaro.org, konrad.dybcio@somainline.org, lee.jones@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linus.walleij@linaro.org, jic23@kernel.org, lars@metafoo.de, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-iio@vger.kernel.org Cc: Robert Marko Subject: [PATCH v7 6/7] arm64: dts: qcom: add PMP8074 DTSI Date: Mon, 11 Jul 2022 22:34:07 +0200 Message-Id: <20220711203408.2949888-6-robimarko@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220711203408.2949888-1-robimarko@gmail.com> References: <20220711203408.2949888-1-robimarko@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org PMP8074 is a companion PMIC to the Qualcomm IPQ8074 series that is controlled via SPMI. Add DTSI for it providing GPIO, regulator, RTC and VADC support. RTC is disabled by default as there is no built-in battery so it will loose time unless board vendor added a battery, so make it optional. Signed-off-by: Robert Marko --- Changes in v7: * Dual license with BSD-3-Clause * Use "-" instead of underscores in node names Changes in v6: * Add RTC and GPIO nodes Changes in v5: * Remove #address-cells and #size-cells as they are not required for regulator subnodes --- arch/arm64/boot/dts/qcom/pmp8074.dtsi | 125 ++++++++++++++++++++++++++ 1 file changed, 125 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/pmp8074.dtsi diff --git a/arch/arm64/boot/dts/qcom/pmp8074.dtsi b/arch/arm64/boot/dts/qcom/pmp8074.dtsi new file mode 100644 index 000000000000..ceb2e6358b3d --- /dev/null +++ b/arch/arm64/boot/dts/qcom/pmp8074.dtsi @@ -0,0 +1,125 @@ +// SPDX-License-Identifier: GPL-2.0-only OR BSD-3-Clause + +#include +#include + +&spmi_bus { + pmic@0 { + compatible = "qcom,pmp8074", "qcom,spmi-pmic"; + reg = <0x0 SPMI_USID>; + #address-cells = <1>; + #size-cells = <0>; + + pmp8074_adc: adc@3100 { + compatible = "qcom,spmi-adc-rev2"; + reg = <0x3100>; + interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>; + #address-cells = <1>; + #size-cells = <0>; + #io-channel-cells = <1>; + + ref-gnd@0 { + reg = ; + qcom,pre-scaling = <1 1>; + }; + + vref-1p25@1 { + reg = ; + qcom,pre-scaling = <1 1>; + }; + + vref-vadc@2 { + reg = ; + qcom,pre-scaling = <1 1>; + }; + + pmic_die: die-temp@6 { + reg = ; + qcom,pre-scaling = <1 1>; + }; + + xo_therm: xo-temp@76 { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,pre-scaling = <1 1>; + }; + + pa_therm1: thermistor1@77 { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,pre-scaling = <1 1>; + }; + + pa_therm2: thermistor2@78 { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,pre-scaling = <1 1>; + }; + + pa_therm3: thermistor3@79 { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,pre-scaling = <1 1>; + }; + + vph-pwr@131 { + reg = ; + qcom,pre-scaling = <1 3>; + }; + }; + + pmp8074_rtc: rtc@6000 { + compatible = "qcom,pm8941-rtc"; + reg = <0x6000>; + reg-names = "rtc", "alarm"; + interrupts = <0x0 0x61 0x1 IRQ_TYPE_NONE>; + allow-set-time; + status = "disabled"; + }; + + pmp8074_gpios: gpio@c000 { + compatible = "qcom,pmp8074-gpio", "qcom,spmi-gpio"; + reg = <0xc000>; + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&pmp8074_gpios 0 0 12>; + interrupt-controller; + #interrupt-cells = <2>; + }; + }; + + pmic@1 { + compatible = "qcom,pmp8074", "qcom,spmi-pmic"; + reg = <0x1 SPMI_USID>; + + regulators { + compatible = "qcom,pmp8074-regulators"; + + s3: s3 { + regulator-name = "vdd_s3"; + regulator-min-microvolt = <592000>; + regulator-max-microvolt = <1064000>; + regulator-always-on; + regulator-boot-on; + }; + + s4: s4 { + regulator-name = "vdd_s4"; + regulator-min-microvolt = <712000>; + regulator-max-microvolt = <992000>; + regulator-always-on; + regulator-boot-on; + }; + + l11: l11 { + regulator-name = "l11"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + }; + }; + }; +}; From patchwork Mon Jul 11 20:34:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 12914264 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2C606C433EF for ; Mon, 11 Jul 2022 20:34:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231953AbiGKUe2 (ORCPT ); Mon, 11 Jul 2022 16:34:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58650 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232239AbiGKUeW (ORCPT ); Mon, 11 Jul 2022 16:34:22 -0400 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 767A83C8C4; Mon, 11 Jul 2022 13:34:21 -0700 (PDT) Received: by mail-ed1-x534.google.com with SMTP id w12so6945638edd.13; Mon, 11 Jul 2022 13:34:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=HDQxB7Fy3SfPJmcU/nMuUlTiaBaKupFDi/Um612kFO8=; b=PGZ08dqQdqT0D7UjGQVD8rg1g2s0xhDZ5JiCghEqz36SC4vje7LlgpQW3RmW4aP/49 3NdmQ8ChR3iTUD+aG9DTwMchYlRnNDmZoq9I874gKq/KXoSe51StMYPIGHQfA+LKL3Y4 +UDwE8D0Y617g+teBdDNlMt261Inwqs8SrpyAvDiQmNgT3rmAzjtUqFGrymtIbixgLnj GHPeaOnPYSOkg7u9QiUSmxY3SFDauY4GHh5pzpMiscPaeidPZm7SYZ7S4sRbGeAVRLz3 XreTwKBvVrsk826rIFdTaQmvt3++6YRXaU1xmOcD6aadTK7O4O2I848HZnWjBhps+lJz H4Kw== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=HDQxB7Fy3SfPJmcU/nMuUlTiaBaKupFDi/Um612kFO8=; b=Hjo4UpP4udAoAxwf8Ks2leqU06pt7fZ0o5xQHSFMYrQM664pPmCiRAW5wjflz6tl92 9riIbPvOql0OrsG5szIrlc2AksD0jdPhyVZxbwu/kujCFnni0X5SL2JhukHQ/FMivg7I ggK6aiCQFjH6mz/nDd+r1uxiH36bVLenLWjFgkOHCqHjaHhsWuDNm5k6SoJ1YkvAZKP1 wHjbf4sGh5FP0CQvzQ3tHriKuIHhd0400URgWhTflFXYLrEpQZeT/nr6Rl44GrWsqDX+ sTswko24QdsGdO+EZuQSJWJsPuSUOIPSXREXx+nuu5UNDuUPo0YCZrCrNxIJuW710fQS ptZA== X-Gm-Message-State: AJIora8ikjUotQyuaIi0ImIEoeacff+yy9WHge76d6ro3jVs3MnalilF yAFQSBX7dSZE9nlm7Zy6ViE= X-Google-Smtp-Source: AGRyM1vViudCrmCKrLpRhM+18/huarjlJ+ZDf97bk75H+R5h+jnSRW/RJv3vr94tkT2jdN+EWeBeSg== X-Received: by 2002:a05:6402:5418:b0:435:5a48:daa9 with SMTP id ev24-20020a056402541800b004355a48daa9mr27535122edb.304.1657571659967; Mon, 11 Jul 2022 13:34:19 -0700 (PDT) Received: from fedora.robimarko.hr (cpe-94-253-165-104.zg.cable.xnet.hr. [94.253.165.104]) by smtp.googlemail.com with ESMTPSA id l11-20020a056402124b00b0043a422801f8sm4936264edw.87.2022.07.11.13.34.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Jul 2022 13:34:19 -0700 (PDT) From: Robert Marko To: agross@kernel.org, bjorn.andersson@linaro.org, konrad.dybcio@somainline.org, lee.jones@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linus.walleij@linaro.org, jic23@kernel.org, lars@metafoo.de, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-iio@vger.kernel.org Cc: Robert Marko Subject: [PATCH v7 7/7] arm64: dts: qcom: ipq8074-hk01: add VQMMC supply Date: Mon, 11 Jul 2022 22:34:08 +0200 Message-Id: <20220711203408.2949888-7-robimarko@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220711203408.2949888-1-robimarko@gmail.com> References: <20220711203408.2949888-1-robimarko@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Since now we have control over the PMP8074 PMIC providing various system voltages including L11 which provides the SDIO/eMMC I/O voltage set it as the SDHCI VQMMC supply. This allows SDHCI controller to switch to 1.8V I/O mode and support high speed modes like HS200 and HS400. Signed-off-by: Robert Marko --- arch/arm64/boot/dts/qcom/ipq8074-hk01.dts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/ipq8074-hk01.dts b/arch/arm64/boot/dts/qcom/ipq8074-hk01.dts index de20cb98acd3..a73909a24935 100644 --- a/arch/arm64/boot/dts/qcom/ipq8074-hk01.dts +++ b/arch/arm64/boot/dts/qcom/ipq8074-hk01.dts @@ -3,6 +3,7 @@ /* Copyright (c) 2017, The Linux Foundation. All rights reserved. */ #include "ipq8074.dtsi" +#include "pmp8074.dtsi" / { #address-cells = <0x2>; @@ -87,6 +88,7 @@ nand@0 { &sdhc_1 { status = "okay"; + vqmmc-supply = <&l11>; }; &qusb_phy_0 {