From patchwork Mon Jul 4 21:23:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 587319 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 A7E3ECCA482 for ; Mon, 4 Jul 2022 21:24:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230433AbiGDVYK (ORCPT ); Mon, 4 Jul 2022 17:24:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36804 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229703AbiGDVYJ (ORCPT ); Mon, 4 Jul 2022 17:24:09 -0400 Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF37310FE1; Mon, 4 Jul 2022 14:24:06 -0700 (PDT) Received: by mail-ed1-x52f.google.com with SMTP id eq6so13024538edb.6; Mon, 04 Jul 2022 14:24:06 -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=6YK0Qy2E/EJZUmG508VlvTboIMY5FeBTto36YOpoAJM=; b=cLyxJ9nj0B6idyzePiQTDbd6GrawwqiqBL9J4RALJGSQ43ljmxmygR5n7wsNroZWcX W5rEl/8NFZRmqtWfj5AparSqGPanCoqRoKR4kZ6mb1QwzLYxf/LEb9k6KT44ionRxDj5 s+O2t9YhcHQxg2KfYm0Qvnn2f3W5zrnIOJ7OKYZceWKI0YIqGrMug+xA6H82UgcyLn/k 6sRPNk6iPHo8xee94DhS7PoUw73HAMZK4M2UBqW3IR4orLpjsXIRsT3U1yGUMsKfzlY8 axLp1G0bEVGAk46nAdtOU2d/qTtKWLYnte7rzozi6rwHLW2Z/ngCwlSNCH5vnaoX0Vif zI6g== 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=6YK0Qy2E/EJZUmG508VlvTboIMY5FeBTto36YOpoAJM=; b=ZmHnnfkSVfx2OQLQVe+iDP6eJUY/hsBiHDUTgjDJnwygUbIVH/FACBSk2DFj/IX5nw EBT9QFTMokyxBYRQdyLh+S1NIPiYa8tlVnNFSweXr+xPeo1j3xmPoxQX3xSiDm/ddvcm vntjsG7+9KAANO7wFkYAcFlMXI5cCB05EygVA+lybLREbP30L4yAcpk8WEPGosH25fQD Ygyemyq00oVfzZIQcv1PqesjkbaZ594gAvTOlEkEfqyLh5guGzZhtl3Su3UcTBKMZfBd yiJlMrR+vUE/lj4calMyk89cGc3jss4HJj9fApDLfY3X8FzMlAqRMimR1nestB+YOSNR 6nmQ== X-Gm-Message-State: AJIora99Qn3mhABPBAvk3qdC8tha3lR7060Ua0pwF0R4/LIsHzMLepiF g8Ve7GAP0IGMZl5CFoGhp7k= X-Google-Smtp-Source: AGRyM1s0uahroH7j430DAMUMmeCYbOJfpqgBJL7TKvrQ10BOSx53TueNzEINxulMH4uj6aeQwz00VA== X-Received: by 2002:a05:6402:84a:b0:423:fe99:8c53 with SMTP id b10-20020a056402084a00b00423fe998c53mr42552801edz.195.1656969845581; Mon, 04 Jul 2022 14:24:05 -0700 (PDT) Received: from fedora.robimarko.hr (dh207-99-90.xnet.hr. [88.207.99.90]) by smtp.googlemail.com with ESMTPSA id k18-20020a056402049200b0042dcbc3f302sm20131117edv.36.2022.07.04.14.24.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Jul 2022 14:24:05 -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, lgirdwood@gmail.com, broonie@kernel.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 v6 01/12] dt-bindings: mfd: qcom-spmi-pmic: add support for PMP8074 Date: Mon, 4 Jul 2022 23:23:51 +0200 Message-Id: <20220704212402.1715182-1-robimarko@gmail.com> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org Document compatible for the PMP8074 PMIC. 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/ Signed-off-by: Robert Marko Acked-by: Krzysztof Kozlowski Acked-by: Jonathan Cameron --- 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 4 21:23:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 587318 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 52023CCA48A for ; Mon, 4 Jul 2022 21:24:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233729AbiGDVYO (ORCPT ); Mon, 4 Jul 2022 17:24:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36856 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233494AbiGDVYM (ORCPT ); Mon, 4 Jul 2022 17:24:12 -0400 Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA40010FEB; Mon, 4 Jul 2022 14:24:11 -0700 (PDT) Received: by mail-ed1-x529.google.com with SMTP id fd6so13038412edb.5; Mon, 04 Jul 2022 14:24:11 -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=hKTBlcPzeTtNqnyrU1hJ/yZCoy1XKsotOx9CBAENNAA=; b=cx7knMNy/RTcqIAtDpMWLflHmEGfcfVOfufxQctKFPmCR3991aoNB9HbBOCPDAWNa3 y1Tn1NdUC/SCguxO6t4C+2Atwz3I2IoJzDLM42vtNIWusLZdDmnBoqW59b1MfGcrPgrE KcbL5r2yjIpBs7DrJTv6sPDWRtDnpGmZ0/Ii3uPIqfoJ1i/eydJim3dk7ZLhXZ42qRXm MSwKOtxxq4TlGcgBUtgCDdQQGFEe2JilaG0a9fkuh/gLCeWWHgychsFqjQTg5PIeWmbC /YJg977Bw1b1wKMvHJS88a1MXnRvr7yC5ppT1Qew82fRLLxbXuWjqEYr/EepLJSMMJjq OoYA== 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=hKTBlcPzeTtNqnyrU1hJ/yZCoy1XKsotOx9CBAENNAA=; b=dw/YogmJByqsDsgRO8zBGB1wZWLp9Yktp1iXaRHXnLHYr2gkB79sIXhnmfanhY459z rMcDOaAALOOtQz0KcWfPRqWjRPzST7rIh3YRKhjusM1ZwXhKCmufiBm/0gVTPrN7/cBi uexhr0Xogu1gIZbePl6kPD1IVPdgihe15jXEMWyu2a1Hfd2S7yfE692GVo+I1yvuwlEv NIO6VPXciRE3eoN7qwNa1kGERH8G467z0kEw7NuKGfYKbmSU3YvBFoI+UWt0bbeh60OH EE1znJuPjkAUw8K7Cm2E3fmNmqOw99iuTaATM/XmmHKiZdcEJYzxRZGTMtVWibQeLbpz 3/OA== X-Gm-Message-State: AJIora/BrMH+CX0iKjfIeTqR5fwqXOGHjkFcB3megkfmue/coeyPZSBx iYGo7w9JajmOhsLOKDMGxHQ= X-Google-Smtp-Source: AGRyM1udASbZPCvFns16TjCXoQo78F7gpfERpvzJDxsCQszQMX8GH//fAXtr/TymJn+nTVchALHHtA== X-Received: by 2002:a05:6402:2985:b0:439:651b:c1f4 with SMTP id eq5-20020a056402298500b00439651bc1f4mr30559264edb.276.1656969850307; Mon, 04 Jul 2022 14:24:10 -0700 (PDT) Received: from fedora.robimarko.hr (dh207-99-90.xnet.hr. [88.207.99.90]) by smtp.googlemail.com with ESMTPSA id k18-20020a056402049200b0042dcbc3f302sm20131117edv.36.2022.07.04.14.24.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Jul 2022 14:24: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, lgirdwood@gmail.com, broonie@kernel.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 v6 05/12] regulator: qcom_spmi: add support for HT_P600 Date: Mon, 4 Jul 2022 23:23:55 +0200 Message-Id: <20220704212402.1715182-5-robimarko@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220704212402.1715182-1-robimarko@gmail.com> References: <20220704212402.1715182-1-robimarko@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org HT_P600 is a LDO PMOS regulator based on LV P600 using HFS430 layout found in PMP8074 and PMS405 PMIC-s. Both PMP8074 and PMS405 define the programmable range as 1.704 to 1.896V but the actual MAX output voltage depends on the exact LDO in each of the PMIC-s. Their usual voltage that they are used is 1.8V. It has a max current of 600mA, voltage step of 8mV. Signed-off-by: Robert Marko --- drivers/regulator/qcom_spmi-regulator.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/regulator/qcom_spmi-regulator.c b/drivers/regulator/qcom_spmi-regulator.c index 38bbc70241ae..ad9ad9f4be8e 100644 --- a/drivers/regulator/qcom_spmi-regulator.c +++ b/drivers/regulator/qcom_spmi-regulator.c @@ -165,6 +165,7 @@ enum spmi_regulator_subtype { SPMI_REGULATOR_SUBTYPE_ULT_HF_CTL4 = 0x10, SPMI_REGULATOR_SUBTYPE_HFS430 = 0x0a, SPMI_REGULATOR_SUBTYPE_HT_P150 = 0x35, + SPMI_REGULATOR_SUBTYPE_HT_P600 = 0x3d, }; enum spmi_common_regulator_registers { @@ -549,6 +550,10 @@ static struct spmi_voltage_range ht_p150_ranges[] = { SPMI_VOLTAGE_RANGE(0, 1616000, 1616000, 3304000, 3304000, 8000), }; +static struct spmi_voltage_range ht_p600_ranges[] = { + SPMI_VOLTAGE_RANGE(0, 1704000, 1704000, 1896000, 1896000, 8000), +}; + static DEFINE_SPMI_SET_POINTS(pldo); static DEFINE_SPMI_SET_POINTS(nldo1); static DEFINE_SPMI_SET_POINTS(nldo2); @@ -570,6 +575,7 @@ static DEFINE_SPMI_SET_POINTS(ht_lvpldo); static DEFINE_SPMI_SET_POINTS(ht_nldo); static DEFINE_SPMI_SET_POINTS(hfs430); static DEFINE_SPMI_SET_POINTS(ht_p150); +static DEFINE_SPMI_SET_POINTS(ht_p600); static inline int spmi_vreg_read(struct spmi_regulator *vreg, u16 addr, u8 *buf, int len) @@ -1464,6 +1470,7 @@ static const struct regulator_ops spmi_hfs430_ops = { static const struct spmi_regulator_mapping supported_regulators[] = { /* type subtype dig_min dig_max ltype ops setpoints hpm_min */ + SPMI_VREG(LDO, HT_P600, 0, INF, HFS430, hfs430, ht_p600, 10000), SPMI_VREG(LDO, HT_P150, 0, INF, HFS430, hfs430, ht_p150, 10000), SPMI_VREG(BUCK, GP_CTL, 0, INF, SMPS, smps, smps, 100000), SPMI_VREG(BUCK, HFS430, 0, INF, HFS430, hfs430, hfs430, 10000), From patchwork Mon Jul 4 21:23:56 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 587317 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 79CFCCCA48C for ; Mon, 4 Jul 2022 21:24:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233539AbiGDVYP (ORCPT ); Mon, 4 Jul 2022 17:24:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233576AbiGDVYN (ORCPT ); Mon, 4 Jul 2022 17:24:13 -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 E441210FEB; Mon, 4 Jul 2022 14:24:12 -0700 (PDT) Received: by mail-ej1-x630.google.com with SMTP id g26so18535172ejb.5; Mon, 04 Jul 2022 14:24:12 -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=t/BG5vD2Kpre80JUee6H++Vy9Vk4uNgKEic0vq+tFnI=; b=UNW9KqwNzjksDAvjfdnrtc14uOmbwuh+Am2xG3GPA8KJYNPPB+SBsQZWA5H1b+U3gK 7xa8C+31YCf21Ao6Ks11X2AJvx1xLz1vVkfpy3TlFr6l+O1jVwnqJ51K1d6pHhWg6bHx a6vsOXedsgzeNEJ/PFliIJgM1k5pOk2x5+GLvbVAFrAU/FhegnS3fP2w5VKPpUX7qeS5 aAPJsTQLuhWgerDrZuY3HoKJc252HxtYrdhI/5q6Xoihbg98hN5P/hDHPDdKbMx7vY6i B+rYPM+DkB+0z15JnNqDNmVk32bO4gjcL+1UQ+5EXp6R3oKyze2U7TZIZFa+YKQt2q/s Bxgg== 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=t/BG5vD2Kpre80JUee6H++Vy9Vk4uNgKEic0vq+tFnI=; b=08x1BBERpUfHhWo799R4tDnatzqXT54XRQZ5HxqlCDnsvTRgj7q6KuLu36B9V2DGrg CEeCWvzU1sV0xOLQxyvVjmbr3j1flABwwb2o430Icy/s6KyeF5ATnB3tWjcn+5Z0yUby OIgBBWoU1BdDXECLBm+gpvf+vaXZA2jDZHnd8YlWTGWsx/sxIcpJ1f07x7Q5H34RhhVV ywPfkDwSLYyZWBsgwvFyO9rHsLG52rpxxCf/8rdwiL35pAYkP+7oLY1mqNb5Qg4RxHzW BsR7pXvbfV4uDwErOpsm/tdRGgQ7ppTtJ7wew15X+QPNjiAM4wfFHgo0qnSfiajXFxt1 EYpA== X-Gm-Message-State: AJIora93/dOXJzPcfcz+Fx5MGOdtw59CpozmxDVpSQ+UWODzGB+oz+HR UD5+0x4wYJMzyI7TxD1sPYo= X-Google-Smtp-Source: AGRyM1sCRfzWqQ+ofHuJmszZhv+vMuETuyMMUkgtqf/VGab9V12EsouF0SIFzrocMGAo26mXr5EHEQ== X-Received: by 2002:a17:907:763a:b0:72a:5128:b34f with SMTP id jy26-20020a170907763a00b0072a5128b34fmr26180805ejc.372.1656969851534; Mon, 04 Jul 2022 14:24:11 -0700 (PDT) Received: from fedora.robimarko.hr (dh207-99-90.xnet.hr. [88.207.99.90]) by smtp.googlemail.com with ESMTPSA id k18-20020a056402049200b0042dcbc3f302sm20131117edv.36.2022.07.04.14.24.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Jul 2022 14:24:11 -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, lgirdwood@gmail.com, broonie@kernel.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 v6 06/12] dt-bindings: regulator: qcom,spmi-regulator: add PMP8074 PMIC Date: Mon, 4 Jul 2022 23:23:56 +0200 Message-Id: <20220704212402.1715182-6-robimarko@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220704212402.1715182-1-robimarko@gmail.com> References: <20220704212402.1715182-1-robimarko@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org Document the PMP8074 PMIC compatible. Signed-off-by: Robert Marko Reviewed-by: Krzysztof Kozlowski --- Changes in v4: * Add remaining supplies Changes in v3: * Add supply matching --- .../bindings/regulator/qcom,spmi-regulator.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Documentation/devicetree/bindings/regulator/qcom,spmi-regulator.yaml b/Documentation/devicetree/bindings/regulator/qcom,spmi-regulator.yaml index 06dc99b942e5..8b7c4af4b551 100644 --- a/Documentation/devicetree/bindings/regulator/qcom,spmi-regulator.yaml +++ b/Documentation/devicetree/bindings/regulator/qcom,spmi-regulator.yaml @@ -23,6 +23,7 @@ properties: - qcom,pm8950-regulators - qcom,pm8994-regulators - qcom,pmi8994-regulators + - qcom,pmp8074-regulators - qcom,pms405-regulators qcom,saw-reg: @@ -276,6 +277,21 @@ allOf: vdd_l1-supply: true patternProperties: "^vdd_s[1-3]-supply$": true + - if: + properties: + compatible: + contains: + enum: + - qcom,pmp8074-regulators + then: + properties: + vdd_l10_l11_l12_l13-supply: true + vdd_l1_l2-supply: true + vdd_l3_l8-supply: true + vdd_l5_l6_l15-supply: true + patternProperties: + "^vdd_l[479]-supply$": true + "^vdd_s[1-5]-supply$": true - if: properties: compatible: From patchwork Mon Jul 4 21:23:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 587316 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 EB9D2CCA480 for ; Mon, 4 Jul 2022 21:24:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233957AbiGDVYX (ORCPT ); Mon, 4 Jul 2022 17:24:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233804AbiGDVYU (ORCPT ); Mon, 4 Jul 2022 17:24:20 -0400 Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 64D4310FF9; Mon, 4 Jul 2022 14:24:14 -0700 (PDT) Received: by mail-ed1-x536.google.com with SMTP id v12so422725edc.10; Mon, 04 Jul 2022 14:24: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=NpQYDqqTMKvAHgyQOKIaDAZVZin4gTd/M2O8Q7thQ0s=; b=nscnq7g5yJ446rTwwf868cT0pibJ9Z/WeiMwSVkbo1s/s3xxa+H6jggyp6hP/1FzgS WQ5u+05UkLqpn1J00oSp2gy3TcLij3+CSTb7pF7IshU1ztmMtwSG+xtjZHiJ7ukyTCDq zz+VC9rQjPHYWHVaXWR8r5Igrvrs21VQTER+ZBJWAxqowaB7eDvLAQDVWOP4jLdGINpq jNoZKsS93uQHvc7AG+66lCJLz2I0jFiXVYwk3ihGPXCYATgJ8Rs5BR84cNUCryw3PDRr 10EE/SNyOrcEhfSRetGbxcBC6+KchZzg7sq5HKbABlzyAFYjvLYjyy0Oz8u9Rr9rBfWR jxwg== 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=NpQYDqqTMKvAHgyQOKIaDAZVZin4gTd/M2O8Q7thQ0s=; b=NINTrIqEx+TwMulR5ozoHuhqXz2lrn1SaL1OTjmBIXrqLVZjOD3pURW0hgHQJjqv0M 0N5dU3hEOE3J0psOHCWNzFLgLuysDZuTxgf0JM/BxDPn1Jyhq1MhQMB2G4oKGiX3rrrd xK2Dal0O9Oig5JdutGu4qZTqhBB2gWe5G4MysmptA4iUkQJihdC0ZohusyeegqYii3Mt eXJ2JUzmlxxd7GC88P2plyV7kXsfzXmLOiWy7z3iWw4g2fd8Jv97a3D1DJMJ+CerQsju tL6BreBn0ks/IIBYS4zrJojwij/22b0i3Tf8RD99GLqhqp0k9FDPSp4RSTRF2cezh7RW IT6A== X-Gm-Message-State: AJIora94DABQzZFrd/wpd8bj/hprgccSYeWowZn0IyIlgVgnkRIqxDeC +INRoCuiY8RbyzZj/ni7ZXQ= X-Google-Smtp-Source: AGRyM1s0i2L45cDGqJO0VCVY9JRf7+PMoiq0E5AZSKuGA06grf+X2ZsTKHkeTSEskkPW1PUeT/nqFA== X-Received: by 2002:a05:6402:c47:b0:437:ce2d:c30d with SMTP id cs7-20020a0564020c4700b00437ce2dc30dmr41785629edb.395.1656969852690; Mon, 04 Jul 2022 14:24:12 -0700 (PDT) Received: from fedora.robimarko.hr (dh207-99-90.xnet.hr. [88.207.99.90]) by smtp.googlemail.com with ESMTPSA id k18-20020a056402049200b0042dcbc3f302sm20131117edv.36.2022.07.04.14.24.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Jul 2022 14:24: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, lgirdwood@gmail.com, broonie@kernel.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 v6 07/12] regulator: qcom_spmi: add support for PMP8074 regulators Date: Mon, 4 Jul 2022 23:23:57 +0200 Message-Id: <20220704212402.1715182-7-robimarko@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220704212402.1715182-1-robimarko@gmail.com> References: <20220704212402.1715182-1-robimarko@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org PMP8074 is a companion PMIC for the Qualcomm IPQ8074 WiSoC-s. It features 5 HF-SMPS and 13 LDO regulators. HF-SMPS regulators are Buck HFS430 regulators. L1, L2 and L3 are HT_N1200_ST subtype LDO regulators. L4 is HT_N300_ST subtype LDO regulator. L5 and L6 are HT_P600 subtype LDO regulators. L7, L11, L12 and L13 are HT_P150 subtype LDO regulators. L10 is HT_P50 subtype LDO regulator. This commit adds support for all of the buck regulators and LDO-s except for L10 as I dont have documentation on its output voltage range. S3 is the CPU cluster voltage supply, S4 supplies the UBI32 NPU cores and L11 is the SDIO/eMMC I/O voltage regulator required for high speeds. Signed-off-by: Robert Marko --- Changes in v4: * Add remaining regulators, minus L11 * Sort structure and compatible --- drivers/regulator/qcom_spmi-regulator.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/drivers/regulator/qcom_spmi-regulator.c b/drivers/regulator/qcom_spmi-regulator.c index ad9ad9f4be8e..a2d0292a92fd 100644 --- a/drivers/regulator/qcom_spmi-regulator.c +++ b/drivers/regulator/qcom_spmi-regulator.c @@ -2139,6 +2139,28 @@ static const struct spmi_regulator_data pm8005_regulators[] = { { } }; +static const struct spmi_regulator_data pmp8074_regulators[] = { + { "s1", 0x1400, "vdd_s1"}, + { "s2", 0x1700, "vdd_s2"}, + { "s3", 0x1a00, "vdd_s3"}, + { "s4", 0x1d00, "vdd_s4"}, + { "s5", 0x2000, "vdd_s5"}, + { "l1", 0x4000, "vdd_l1_l2"}, + { "l2", 0x4100, "vdd_l1_l2"}, + { "l3", 0x4200, "vdd_l3_l8"}, + { "l4", 0x4300, "vdd_l4"}, + { "l5", 0x4400, "vdd_l5_l6_l15"}, + { "l6", 0x4500, "vdd_l5_l6_l15"}, + { "l7", 0x4600, "vdd_l7"}, + { "l8", 0x4700, "vdd_l3_l8"}, + { "l9", 0x4800, "vdd_l9"}, + /* l10 is currently unsupported HT_P50 */ + { "l11", 0x4a00, "vdd_l10_l11_l12_l13"}, + { "l12", 0x4b00, "vdd_l10_l11_l12_l13"}, + { "l13", 0x4c00, "vdd_l10_l11_l12_l13"}, + { } +}; + static const struct spmi_regulator_data pms405_regulators[] = { { "s3", 0x1a00, "vdd_s3"}, { } @@ -2156,6 +2178,7 @@ static const struct of_device_id qcom_spmi_regulator_match[] = { { .compatible = "qcom,pmi8994-regulators", .data = &pmi8994_regulators }, { .compatible = "qcom,pm660-regulators", .data = &pm660_regulators }, { .compatible = "qcom,pm660l-regulators", .data = &pm660l_regulators }, + { .compatible = "qcom,pmp8074-regulators", .data = &pmp8074_regulators }, { .compatible = "qcom,pms405-regulators", .data = &pms405_regulators }, { } }; From patchwork Mon Jul 4 21:24:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 587315 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 F3F54CCA482 for ; Mon, 4 Jul 2022 21:24:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233864AbiGDVYf (ORCPT ); Mon, 4 Jul 2022 17:24:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233688AbiGDVYV (ORCPT ); Mon, 4 Jul 2022 17:24:21 -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 D2C7E1208C; Mon, 4 Jul 2022 14:24:18 -0700 (PDT) Received: by mail-ej1-x630.google.com with SMTP id lw20so18555876ejb.4; Mon, 04 Jul 2022 14:24:18 -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=EUw3PSSlRTJ8Siy/LpJ4qyCzqMEIQDLkLGSj0kGh4nM=; b=L5Ru2/Iq910N1D2vdLEiHACiTAAlEbrbQY47KcrgJbPqdg0oPPlG5vS1CaIEsxXD4y 0MZVCtC1+z+S5t6zYDOQoK/sduI4IK6B67hMNMTwepZWlMcqMqisIvkbdVp2WGH0+xzg 26AMrIJBgWhMxyWyUNjge3ky5FWVlRoVjc1FCqOwOlf6tB3/Mx3r1dln5GeFfXUsI09C bKlNCZ6MHbOKN6uCq9zX/iSiw+sQJhqLtkjNa0biRnf7wuwPXBXDISkiXubpEHq2eJm6 8B9fkTW8tEeTc3Yiti5X+YTTNhMl305hbd4LT6P/TYLKBrtK3RCqaq62/CV9s0tsVUk+ LO0Q== 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=EUw3PSSlRTJ8Siy/LpJ4qyCzqMEIQDLkLGSj0kGh4nM=; b=xcsV8OESne1nFO1U43K14uNa20OQOJwbPKUmFbMmxEHwATwUzPp2kShv46HzCYU4Ue E8lTNcEbRM7V2IOetrDhw3Y7kw8LK/7+stao8spST7q54mqWqPSkkLAxlspfTfGulKg5 DBodwKLb530BL+0r05cdVhjN/UQGH/4R/CLJrFrc53RZTJbhSAJ13ABykr4WXaL6GDtU HwtbC8DZ1BJd1EgbREVXmSrfLlaJnbNWaw1Ob4ym3wf8NoBX0kJczuJjh3RaTeS5yMz/ AbU9hqu78BQzGUZzdc51+19nY2JjBUTPNbIVk3WdqcX4INOHMB7XVjFLRCnnCiL/fN6Q pgyg== X-Gm-Message-State: AJIora/idi+t7FRFOrbMxfuo9OwoybC3vcmL7pE121aG8L4QIharbnl6 E1oovcn8i2NsHnRuutfHRJQ= X-Google-Smtp-Source: AGRyM1v63nDbrX9Q49PmZPCQ06w390iIO7lnus7X1xPf2Uihbwg56K1h7Osvi1C5xIwBcdL5GBC1nw== X-Received: by 2002:a17:906:b048:b0:6fe:be4a:3ecf with SMTP id bj8-20020a170906b04800b006febe4a3ecfmr31420321ejb.104.1656969857394; Mon, 04 Jul 2022 14:24:17 -0700 (PDT) Received: from fedora.robimarko.hr (dh207-99-90.xnet.hr. [88.207.99.90]) by smtp.googlemail.com with ESMTPSA id k18-20020a056402049200b0042dcbc3f302sm20131117edv.36.2022.07.04.14.24.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Jul 2022 14:24:17 -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, lgirdwood@gmail.com, broonie@kernel.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 v6 11/12] arm64: dts: qcom: add PMP8074 DTSI Date: Mon, 4 Jul 2022 23:24:01 +0200 Message-Id: <20220704212402.1715182-11-robimarko@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220704212402.1715182-1-robimarko@gmail.com> References: <20220704212402.1715182-1-robimarko@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-gpio@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 and RTC 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 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..a3b395e4d78f --- /dev/null +++ b/arch/arm64/boot/dts/qcom/pmp8074.dtsi @@ -0,0 +1,125 @@ +// SPDX-License-Identifier: GPL-2.0-only + +#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 4 21:24: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: 587314 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 04012CCA488 for ; Mon, 4 Jul 2022 21:24:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234347AbiGDVYi (ORCPT ); Mon, 4 Jul 2022 17:24:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37130 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233925AbiGDVYV (ORCPT ); Mon, 4 Jul 2022 17:24:21 -0400 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F143612096; Mon, 4 Jul 2022 14:24:18 -0700 (PDT) Received: by mail-ed1-x535.google.com with SMTP id c65so13049423edf.4; Mon, 04 Jul 2022 14:24:18 -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=UH0nEw+JDVS5JB6oX+Zir/ZDPriDB2qIkWp3OB9DiL8PcStuZljt2kKBfxZz/8jX6D u7YDSxPLoZlxmZVW2P2dFylf644p7ogvHsIkVCv70cRwCakTtt8xdYFAELTMdSM52KT+ cXxcvyQ528WCJrZ1rYO/BJ9IAf/KKT79kFtLYZRllKMFLfUSnwSD4to8YYmWxWRN1iNW AD0UpgYUrz9B1KMpzQQ95XFlruayVWtP9xHEDr+6W8hJhzujT0VT0HaKif3AMyHFB3AK 7nuifcHrnWWWhB5S/Ev6MsmfVwzaz+DcsmhcbtDa66TaDxMFH6c2/Kp9xxyClJAnKqEA U+Tw== 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=2TdIyE/zt7Pu/9B/0lwxANXszgGj5yPQrcFkBNrpQ9CApYjh6lzPIffeVnYkRKgsXt mAswhyRgnkEzl6z2Fn34IZB4pX9kUmQeMkac/n9ZQtMLOuqD1JC/jBHTvd/WSwXzZoKt TEHRw+q04cf8VlS2shvUrL//NxOOAaCymOIPFK9lwUl3+30pxkXqQ333ikNL+dMnuweC +PoJA8ugiACylsA/dFZarp7BEdd5PabO7jaU+G+yaAOILxmZ4xDFpeqb1JTnbsYjIYmV pzd1FyrqlaKyFJrvwFBohi9FfMD/dGqmjWIFvjnijtjIgI9XwqdMKPhOdvDkVRRLSzmE ZCBw== X-Gm-Message-State: AJIora/LCYW2Zf1QodbjQ0wXxgmuh3ij+DPvdD/iUJ2Ap3A2nDWUGdly XY7zk3Cf7yWMI29KG8J4iyo= X-Google-Smtp-Source: AGRyM1tmVI0Dsj6e4UIWi3qajxeF82gbxgVA/AT2jS1VqUufrtB9MP25vkcoNu2lIxrfjYdYZgdfnw== X-Received: by 2002:aa7:c486:0:b0:435:5d50:ab39 with SMTP id m6-20020aa7c486000000b004355d50ab39mr42209716edq.104.1656969858619; Mon, 04 Jul 2022 14:24:18 -0700 (PDT) Received: from fedora.robimarko.hr (dh207-99-90.xnet.hr. [88.207.99.90]) by smtp.googlemail.com with ESMTPSA id k18-20020a056402049200b0042dcbc3f302sm20131117edv.36.2022.07.04.14.24.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Jul 2022 14:24: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, lgirdwood@gmail.com, broonie@kernel.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 v6 12/12] arm64: dts: qcom: ipq8074-hk01: add VQMMC supply Date: Mon, 4 Jul 2022 23:24:02 +0200 Message-Id: <20220704212402.1715182-12-robimarko@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220704212402.1715182-1-robimarko@gmail.com> References: <20220704212402.1715182-1-robimarko@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-gpio@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 {