From patchwork Thu Aug 18 22:18:11 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 598137 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 C2A46C00140 for ; Thu, 18 Aug 2022 22:18:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241621AbiHRWSW (ORCPT ); Thu, 18 Aug 2022 18:18:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241085AbiHRWSV (ORCPT ); Thu, 18 Aug 2022 18:18:21 -0400 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8D202CDDE; Thu, 18 Aug 2022 15:18:19 -0700 (PDT) Received: by mail-ej1-x62e.google.com with SMTP id j21so335201ejs.0; Thu, 18 Aug 2022 15:18:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc; bh=xnTJw9peaanO9bpfnpkWaFIO93QzJllU7e4KFWjN4UM=; b=jDuEd75sJEshQT8ppy93ER+pccWlVxGnzW2rN5fleCnftQWLBj3USAsf+/MaiyzrZ7 yiXvwCzLMrJo7GMpwcYB8oSrAbxlA5BeukuUerdkma7tg64/Fk28uMXIQ0e9AF6NGGzs mvfSyLrqA5gj3ndjQeY2u24qtmPoP2yZHWuIhfHhIPBimLMz8OaVi8CTKH19nzMXHhP9 qlxid9IwvMTt0YEnxZrSmrJd/8fa2IVhlJwtVJShrV/LhIX8MNEDqLtB8P1HKdmFoHr0 NWIDG05viofNI3A7zKSVsqNeQZ1EGW7/KrFKExFIsHb0FCPMZhT7m6TwxUw4QRHGANVO zyKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc; bh=xnTJw9peaanO9bpfnpkWaFIO93QzJllU7e4KFWjN4UM=; b=4OG6F1hzERHSp5bMIyBCGzih6zPHyjXfrJsYi4r6I5CK3+k35ayFbTwqW9tu5Xy/PM UVPhyVJFtum5eiw0YPj02S4wVc+1/5PtxQ1+1nfvPTEdavgueGYJ1WmS4sBg/Nyi0nA/ l5wYryJ9FOhOsxNIxr4/owhR+HjJb5ta/tPYwE3jBHX9SQ9eD412UddNyitstEojHxCY PE+4YA1lXowNQJh899sizUN5AYKGD4Vkg5QT1eDqoTaX+vheaxIPlEc+VLLEAu+s4fc3 r+1GllXLeth2C38aXfKxOWCbB4mGt5I3fUGtRvbjdyXTZ83DGLckddZfoaDMfUoh0PC5 J7KQ== X-Gm-Message-State: ACgBeo0B9bE1xszTvcmHSDHvh49xHbtB0Oi/rbtMO7MkMxyJTX4nL9oz imrMPe40FQgrJQ9HriboTZs= X-Google-Smtp-Source: AA6agR5YPBSpZL/TaFItfmYZ9gZ3irXfyw8Ewko/wP+9OKDgHkHJn048gCU8EH3oM2u4hfgfQY5vIg== X-Received: by 2002:a17:906:dc89:b0:731:67eb:b60b with SMTP id cs9-20020a170906dc8900b0073167ebb60bmr3016985ejc.614.1660861098296; Thu, 18 Aug 2022 15:18:18 -0700 (PDT) Received: from fedora.robimarko.hr (cpe-94-253-165-74.zg.cable.xnet.hr. [94.253.165.74]) by smtp.googlemail.com with ESMTPSA id t19-20020a1709060c5300b00731747c3107sm1378315ejf.73.2022.08.18.15.18.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Aug 2022 15:18:17 -0700 (PDT) From: Robert Marko To: agross@kernel.org, bjorn.andersson@linaro.org, konrad.dybcio@somainline.org, lee@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, jic23@kernel.org, lars@metafoo.de, sboyd@kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org Cc: Robert Marko Subject: [PATCH v8 1/5] dt-bindings: mfd: qcom-spmi-pmic: add support for PMP8074 Date: Fri, 19 Aug 2022 00:18:11 +0200 Message-Id: <20220818221815.346233-1-robimarko@gmail.com> X-Mailer: git-send-email 2.37.2 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 v8: * Add to dtschema now that its available instead * Drop ACK as we are dealing with dtschema now Changes in v7: * Fixup commit description --- Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml b/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml index 65cbc6dee545..a05ae172fccc 100644 --- a/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml +++ b/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml @@ -66,6 +66,7 @@ properties: - qcom,pmi8998 - qcom,pmk8350 - qcom,pmm8155au + - qcom,pmp8074 - qcom,pmr735a - qcom,pmr735b - qcom,pms405 From patchwork Thu Aug 18 22:18:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 598562 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 83818C25B0E for ; Thu, 18 Aug 2022 22:18:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344538AbiHRWSY (ORCPT ); Thu, 18 Aug 2022 18:18:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35914 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244097AbiHRWSX (ORCPT ); Thu, 18 Aug 2022 18:18:23 -0400 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D6F482D1E1; Thu, 18 Aug 2022 15:18:20 -0700 (PDT) Received: by mail-ej1-x635.google.com with SMTP id dc19so5681305ejb.12; Thu, 18 Aug 2022 15:18:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=BBl82XfFeF2MZw0ulNToCpoAaMZwaKTEd9Lqq190fuI=; b=ZgwNuXCqAGel4wSe20RaaMANDjhqdi86IvOO4F1eWP+DCImxLV1IeRxnhuudUUjoac bk58jFtzv8c0cC9K+EENR6uI+dgUR2Gq5iiAhTeAOoMLKv+y7A9ENWcwdx+D9JaDndGt v4T6HmylIIn0IJm0oPCbLwC7Vd0RdTGg9e5Rfbbn9xmubOC01fU9744tdmGR0wQCtzRC 4TSPilY6b6E/MxZaAnW6RiaTQejnxhkZ9DrmVoEXTaRBsBKfRW8bnl9Wys0Q39HVuWy1 DhlKasvVylv/3uwkzZK6DNRg40II5f7XH6m6AMMpv3m2PO33pV93ZV5P4bDSusyQ83Bc zLgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=BBl82XfFeF2MZw0ulNToCpoAaMZwaKTEd9Lqq190fuI=; b=TGp46ctwQB+Yx06ZpF2vhSMlTB8fZwsjWkz4vdTTj3fGJdMdc6dqivPWtpyzRKcXTF m9Am4E82yuavFQeFnM5gEDeFR9WCOypEhKcfSYeRGIg5+90Zmy/v/sdwfBYwWrCD7wXb a+PVBbLTCgXn1Ph8b7d/BCdGCovdQ6m55zrOekysaGr1zuKkdQtTX38VfQvMBYFfZFEV LfyhWtw0gGozwEXmPbo8r/c6Vxq1+INB5GccjABTlAz9lZ1Zu0YB7eRzyHPNsW3qvUhK 4rHCFMQTpaaOXI1QTQGPe/qoZcI8HO+goie2PqRmKHvxYymE0lTcI0ZYJyjvxXSh/aRM w2mA== X-Gm-Message-State: ACgBeo1ugpOBivVZje21H0Uz/nYpAQN7Z/MJdp6pL8KrCTfOik5yF4jQ mwJGpORbAi1X9LLHRA6uqYE= X-Google-Smtp-Source: AA6agR6fId+ZZd4Yz0jTu2Jr8sTZE7slXFkgVcgFTYu+uRiyevyqomNch3kLzgKH5Taw/626xtEUNA== X-Received: by 2002:a17:907:6930:b0:733:8eb3:83a3 with SMTP id rb48-20020a170907693000b007338eb383a3mr3232484ejc.32.1660861099454; Thu, 18 Aug 2022 15:18:19 -0700 (PDT) Received: from fedora.robimarko.hr (cpe-94-253-165-74.zg.cable.xnet.hr. [94.253.165.74]) by smtp.googlemail.com with ESMTPSA id t19-20020a1709060c5300b00731747c3107sm1378315ejf.73.2022.08.18.15.18.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Aug 2022 15:18:19 -0700 (PDT) From: Robert Marko To: agross@kernel.org, bjorn.andersson@linaro.org, konrad.dybcio@somainline.org, lee@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, jic23@kernel.org, lars@metafoo.de, sboyd@kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org Cc: Robert Marko , Lee Jones Subject: [PATCH v8 2/5] mfd: qcom-spmi-pmic: add support for PMP8074 Date: Fri, 19 Aug 2022 00:18:12 +0200 Message-Id: <20220818221815.346233-2-robimarko@gmail.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220818221815.346233-1-robimarko@gmail.com> References: <20220818221815.346233-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 Thu Aug 18 22:18:13 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 598136 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 0D5AEC32793 for ; Thu, 18 Aug 2022 22:18:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345698AbiHRWSZ (ORCPT ); Thu, 18 Aug 2022 18:18:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35916 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244251AbiHRWSX (ORCPT ); Thu, 18 Aug 2022 18:18:23 -0400 Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 144A23AE54; Thu, 18 Aug 2022 15:18:22 -0700 (PDT) Received: by mail-ej1-x62b.google.com with SMTP id qn6so5688253ejc.11; Thu, 18 Aug 2022 15:18:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=IBirnUzHVuaTlC2C2j9giTul3u9hLHafcJQxDHnOb7o=; b=ecCLMqcpvH2iM6EvoE+05zw73tKeg89wKnGMTuzzZUUj77aoGbrEF3rQEhD2hb1v1V lo88etmHnDjU6dNip6+9Rx8CShc3HSNXa6ZEVOKArM/eS8Bsi83d583NQ3XbLIsuWK6Q XsLYO2Yp8V4eKuHFe6ScfWrQw7VN73/qW+5JhFFmEKHslHu0ycjh5qUvufs1C0BuC1p2 T0M47mkQ7eDE2GTUsJP+PbLcB0sXCIgIT6QxyAdNMwFJ0IiJhIVW7VU7G9PFJyUEk4qi DF7RT+NXZ1WLqYXUTXKiap9shibsqsMTEiW6t3AIuqIsK1G5GcXdIv1h6DVLLnc58Xte ycvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=IBirnUzHVuaTlC2C2j9giTul3u9hLHafcJQxDHnOb7o=; b=zIXFJNKnO4xFP8ahB23vzueH8wSQ1unMVPi2NIbzjNFEwacjZYbbMDCkIo+nQaS7Ia YJNNG4kW8AaC89Wl9uPK9sQtTkTc004L2wFWQNPnfCSxDbcTOZgl0z+EzH3ZfD9kjmWT apvAYOpE4oL5qWtwC7+fyys6n9lX5MVNjqtefuE4NqsIps1beLVc6xRdOpmaw9/Nd0Ln bWuieNfJu4GlnU4zCOvI25LeiukWJUu9RlxUJuyDt1XTmzmHc0CJ2oD2SWt62V9Ik8NH JNYniyT519aBoBlBLvKBLqvyFhiNqp8v+1bqgHAzUxpBgN7XRRw1lTNWVoxhTokxGn3N B5hg== X-Gm-Message-State: ACgBeo0XHjqWYmV/nIpcUXami5UHNbll/wtHRjmYM29Qd3iLQ/zu6lZN gdp+UkQZlX+/b3cxnl+IafMkURVT6Cw= X-Google-Smtp-Source: AA6agR7WH3Gq9C5mHU0TKGebAMlI+NwpXha2H/FWbKVw2H8SzvoDbBbCQ5asLtYM/SD6nBorATwpxw== X-Received: by 2002:a17:906:4bd3:b0:731:3bdf:b95c with SMTP id x19-20020a1709064bd300b007313bdfb95cmr3036137ejv.677.1660861100632; Thu, 18 Aug 2022 15:18:20 -0700 (PDT) Received: from fedora.robimarko.hr (cpe-94-253-165-74.zg.cable.xnet.hr. [94.253.165.74]) by smtp.googlemail.com with ESMTPSA id t19-20020a1709060c5300b00731747c3107sm1378315ejf.73.2022.08.18.15.18.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Aug 2022 15:18:20 -0700 (PDT) From: Robert Marko To: agross@kernel.org, bjorn.andersson@linaro.org, konrad.dybcio@somainline.org, lee@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, jic23@kernel.org, lars@metafoo.de, sboyd@kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org Cc: Robert Marko , Jonathan Cameron Subject: [PATCH v8 3/5] iio: adc: qcom-spmi-adc5: add ADC5_VREF_VADC to rev2 ADC5 Date: Fri, 19 Aug 2022 00:18:13 +0200 Message-Id: <20220818221815.346233-3-robimarko@gmail.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220818221815.346233-1-robimarko@gmail.com> References: <20220818221815.346233-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 e96da2ef1964..821fee60a765 100644 --- a/drivers/iio/adc/qcom-spmi-adc5.c +++ b/drivers/iio/adc/qcom-spmi-adc5.c @@ -597,6 +597,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 Thu Aug 18 22:18:14 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 598561 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 EBE8AC25B0E for ; Thu, 18 Aug 2022 22:18:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346187AbiHRWS3 (ORCPT ); Thu, 18 Aug 2022 18:18:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36066 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244633AbiHRWS0 (ORCPT ); Thu, 18 Aug 2022 18:18:26 -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 348D2422F4; Thu, 18 Aug 2022 15:18:23 -0700 (PDT) Received: by mail-ed1-x536.google.com with SMTP id b16so3570043edd.4; Thu, 18 Aug 2022 15:18:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=51WkINtcJCwwZeTUq8gJb/7vQB3zosS0zhRrac+XlkA=; b=WX2MKH/oITajh7YgxK6UcGZZPvGAjMPfOCTvt9UEFj0oG45r/R3a87IQ/1mOgCibUx uX7VTXQCxP1DpOnjMi4t3p3WwtE9l6ojWoB5L0xsWZrNIauioIW39yodh2wj42nHXXG7 kq4MsvfgT6bOjUKl4kveePprTto4ZI8xTSpFCtFyBz96i0fQ2sNYBHOlOMb5kIdCVDDc MH+tNmXMFcrfn61GHMfv9IOgf2Zl69DVJ15GbP/Gs470NU0y9He/dZdaZWavexJAwcYK 5Jt4/sEQm36+r+o0kS0UkSx4WzOCw3drLLPTZzD4etI6V2y7OAwE58M1NfoCH21QpbO3 8cYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=51WkINtcJCwwZeTUq8gJb/7vQB3zosS0zhRrac+XlkA=; b=qmtViPymLpRKCOgD6mrhim6PVBOGZO4dxloLJPBmZwr4Tql/M2z1SrKvIHCpN8gnAI /koFyIXCDVxtGcq5IlKmu5vPMSEMuQjN15CegfqIOEDzuMXGMZZJQLgecHMwEwNMjDMI pSstxRAZW58ewZgzkO+h0tpWrw1uJ8pu2FV0y/LAKPZ5WYsj0k/6kSXOgxNINBtsVYKo KEXyykaYfREfQwceLTSFKE4DZ3CuHbuj26Ky+/HZAE/Hz75qxHSDCvpkrVbbHjE0Gt2o +PcynkOFhpB+/7SogTCoURxTXaxPWbBM3UCSaJHaIJxwOn6WL7LEz49akuGPArUosx7u +Jpg== X-Gm-Message-State: ACgBeo0n2WjKGz15EQItHm7+zahGGYbLx39Rt2jGK8Hnml9fYlLnwKJ/ o7K90Xo9ekyXhDmpaLiNCzk= X-Google-Smtp-Source: AA6agR7z3fTHjKGGciJeJMpkyqAJDuQJ60lx9PoffTbI9ylIW2U2ckFqm1JvoRMHMSAeXUrtXTuUVg== X-Received: by 2002:aa7:d94a:0:b0:446:3372:9eba with SMTP id l10-20020aa7d94a000000b0044633729ebamr892768eds.170.1660861101771; Thu, 18 Aug 2022 15:18:21 -0700 (PDT) Received: from fedora.robimarko.hr (cpe-94-253-165-74.zg.cable.xnet.hr. [94.253.165.74]) by smtp.googlemail.com with ESMTPSA id t19-20020a1709060c5300b00731747c3107sm1378315ejf.73.2022.08.18.15.18.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Aug 2022 15:18:21 -0700 (PDT) From: Robert Marko To: agross@kernel.org, bjorn.andersson@linaro.org, konrad.dybcio@somainline.org, lee@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, jic23@kernel.org, lars@metafoo.de, sboyd@kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org Cc: Robert Marko Subject: [PATCH v8 4/5] arm64: dts: qcom: add PMP8074 DTSI Date: Fri, 19 Aug 2022 00:18:14 +0200 Message-Id: <20220818221815.346233-4-robimarko@gmail.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220818221815.346233-1-robimarko@gmail.com> References: <20220818221815.346233-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 Thu Aug 18 22:18:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 598135 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 2D165C32774 for ; Thu, 18 Aug 2022 22:18:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346195AbiHRWSc (ORCPT ); Thu, 18 Aug 2022 18:18:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346149AbiHRWS0 (ORCPT ); Thu, 18 Aug 2022 18:18:26 -0400 Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E3A82D1E1; Thu, 18 Aug 2022 15:18:24 -0700 (PDT) Received: by mail-ej1-x633.google.com with SMTP id i14so5715647ejg.6; Thu, 18 Aug 2022 15:18:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=zgCw3mKNf4aTWBiNXJ2c1smABguVN3Ohi5HNGBK9C8Y=; b=glfrKr6hJcuMhL5NoNE/J8v5XoYm0swZWQKzvokqRhlfQ91oGUUD/P/Ti+CHCeb523 iaEBFn+1DWlNyy5cLfyXPm+dPL1w/OD5lpyafSzZSpUciZVvUUdttERzGCY9qQYLauzF XEVCcjIhweq1tXUev8J6lTUTyDwEAsQ0yCeFN2Safwq88baUHUlMerubjhnjb5v4vyBs /5O///u0JdNVSKrzITmMNhJkg2PxTRg30rOcnla5ySrY4aPfZqzk9sQNJYEJv8zp8ozR Tw7gLzRNvQbAaagCIihrKOB9qi8INCJflpMv7L7xmd5TJobEKcXEzmDOVW2dt3+qvaF9 VP1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=zgCw3mKNf4aTWBiNXJ2c1smABguVN3Ohi5HNGBK9C8Y=; b=33kpBS8JfFllnSYmfovwCJc5+UI8w1XR620AdvXjKVrGLcSInUiwj5G99L6ODTC15g QuJrCGS+wq+uGcZFOrH5fFifFMGraZZ9JqqNmySpSw6+6T0xi5YZV/Tl3dHo6JSBIIC2 KwGVGWUd55CR0vnPUH1JGXXXyEp6ak7cKdkQr118mvY+i/cd0gWa1VBEywYkgtg5H9yA cxZ2XDAG21wT0hOI5e2rIdbuQ+ZsHAC3qE3lQOTX8fcwI18P9JyGpyjjScmkdXkVAnuc tfccsuOzBXl8WUg0y1GqCQiTXPaNXiSbD0HnGpdpr8lAh0aEEdihY5Ml0Sg6QSdJvo1e I8eQ== X-Gm-Message-State: ACgBeo0qRy+IY1y3LZ3QBZUqopp+i7Piha8xwdX4mrxI822oq48NHCR5 UZf+DubejKYaKIbeIsMItjkU1+jMnxE= X-Google-Smtp-Source: AA6agR5p978Qsjc8SGa18Fvi4tsfZqp5hptsT0eVUbtV812S+4dOCZSEE002GYtT/9kquLLVGI2BRw== X-Received: by 2002:a17:907:8a1a:b0:731:6475:68f7 with SMTP id sc26-20020a1709078a1a00b00731647568f7mr3000313ejc.359.1660861102953; Thu, 18 Aug 2022 15:18:22 -0700 (PDT) Received: from fedora.robimarko.hr (cpe-94-253-165-74.zg.cable.xnet.hr. [94.253.165.74]) by smtp.googlemail.com with ESMTPSA id t19-20020a1709060c5300b00731747c3107sm1378315ejf.73.2022.08.18.15.18.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Aug 2022 15:18:22 -0700 (PDT) From: Robert Marko To: agross@kernel.org, bjorn.andersson@linaro.org, konrad.dybcio@somainline.org, lee@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, jic23@kernel.org, lars@metafoo.de, sboyd@kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org Cc: Robert Marko Subject: [PATCH v8 5/5] arm64: dts: qcom: ipq8074-hk01: add VQMMC supply Date: Fri, 19 Aug 2022 00:18:15 +0200 Message-Id: <20220818221815.346233-5-robimarko@gmail.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220818221815.346233-1-robimarko@gmail.com> References: <20220818221815.346233-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 81dc3a0bcd7d..b788e1605476 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" / { model = "Qualcomm Technologies, Inc. IPQ8074-HK01"; @@ -84,6 +85,7 @@ nand@0 { &sdhc_1 { status = "okay"; + vqmmc-supply = <&l11>; }; &qusb_phy_0 {