From patchwork Thu Nov 25 21:53:10 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dominik Kobinski X-Patchwork-Id: 12639901 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 E7447C433F5 for ; Thu, 25 Nov 2021 21:59:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234283AbhKYWC3 (ORCPT ); Thu, 25 Nov 2021 17:02:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45100 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229618AbhKYWA3 (ORCPT ); Thu, 25 Nov 2021 17:00:29 -0500 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0CCB2C06179C; Thu, 25 Nov 2021 13:53:37 -0800 (PST) Received: by mail-lf1-x129.google.com with SMTP id bu18so19483096lfb.0; Thu, 25 Nov 2021 13:53:36 -0800 (PST) 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=YVJr77gpEIa8Ln6f/UcL4zgGfSDpE2hZ3y/G1TUsxAU=; b=G/EQy0KJe/9NsLEsLM0Wr0mCHcKU31I4esiYXF9+4c9lv1PZdoJ9n7WicClBi5JvYq tgeEDiQjUVlQ3bQdLchk61LpABjIfU6UGzIVAkYqSQjIDByldlcEBHsfd9efnUatLh5k AFGY6BmQW/E8tTL7pmFTFzQfx1/9KLT5ee8Iw/OXphjeLwTkYapwpXlFD/PdxpleyOp4 FjPFzEs9JZBchf8yVdnaZ3gNARXohCXmeIRM0lGZrba1Tm6QBWvN/EmRcDqAYRIQqq/S zN7eQHS+Zmy2lXDQSqtyvbZN+tEqgbMdNVNKjM3otR4EvoAI/OruYkZeIqoDhFJrOXO1 kDHA== 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=YVJr77gpEIa8Ln6f/UcL4zgGfSDpE2hZ3y/G1TUsxAU=; b=2VIvD0XMN5WyjtGKapJRcza7Hwt1R+/hRT417JaiyEmEgRw7fqnQe26Mc0j9/W+Fyg iF0A6Ht6om9oZ7Sa7W+5PWGd3vL590scLUFw47ohWTmtDPK/9CWlxt9Blq3VnIF7i4ub R/QUThNox3syGoAfHRNL7pi255bWMfJkFV3iBzqc7sFZ3oNci7icq9SYojuXtCVCEXlh 0WW0rLBEqhITquTbXxHfPhxbbV7UEyIGTRGE8eBkHYRXicmyRdgsPqjpUBgTYbgo6kmP XN3dr3Oox5pV58PYzDV2HZXB1h119dMzb5Nik8kPUBN6l8taWw7SyYwYhtRpjZURDfMh XEiQ== X-Gm-Message-State: AOAM533GrELRjrSw/2Nw2gjswFwXnLbNEdsKWpTES2GmlRmodprx8rzK ++Bsl2xdrHqD5KjRkr72tE3NdJ7GHfTATA== X-Google-Smtp-Source: ABdhPJz/GZxIjRFQoFp6qOwdkagNuEdAKF7VFzquwQ25bln+kcdz1nHW484XxCWkwsl222IDzokBLQ== X-Received: by 2002:ac2:5df6:: with SMTP id z22mr25919312lfq.230.1637877215416; Thu, 25 Nov 2021 13:53:35 -0800 (PST) Received: from localhost.localdomain (public-gprs212807.centertel.pl. [46.134.170.136]) by smtp.googlemail.com with ESMTPSA id c12sm341606lji.29.2021.11.25.13.53.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Nov 2021 13:53:35 -0800 (PST) From: Dominik Kobinski To: bjorn.andersson@linaro.org Cc: agross@kernel.org, linus.walleij@linaro.org, linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Dominik Kobinski , Ivaylo Ivanov Subject: [PATCH v2,1/5] pinctrl: qcom: spmi-gpio: Add pm8226 compatibility Date: Thu, 25 Nov 2021 22:53:10 +0100 Message-Id: <20211125215310.62371-1-dominikkobinski314@gmail.com> X-Mailer: git-send-email 2.34.0 In-Reply-To: <20211125213451.62010-1-dominikkobinski314@gmail.com> References: <20211125213451.62010-1-dominikkobinski314@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add support for pm8226 SPMI GPIOs. The PMIC features 8 GPIOs, with no holes inbetween. Reviewed-by: Bjorn Andersson Suggested-by: Ivaylo Ivanov Signed-off-by: Dominik Kobinski --- drivers/pinctrl/qcom/pinctrl-spmi-gpio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c b/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c index 5283d5e9e8bc..0f0102f38cbb 100644 --- a/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c +++ b/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c @@ -1159,6 +1159,7 @@ static const struct of_device_id pmic_gpio_of_match[] = { /* pm8150l has 12 GPIOs with holes on 7 */ { .compatible = "qcom,pm8150l-gpio", .data = (void *) 12 }, { .compatible = "qcom,pmc8180c-gpio", .data = (void *) 12 }, + { .compatible = "qcom,pm8226-gpio", .data = (void *) 8 }, { .compatible = "qcom,pm8350-gpio", .data = (void *) 10 }, { .compatible = "qcom,pm8350b-gpio", .data = (void *) 8 }, { .compatible = "qcom,pm8350c-gpio", .data = (void *) 9 }, From patchwork Thu Nov 25 21:56:26 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dominik Kobinski X-Patchwork-Id: 12639903 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 77403C433FE for ; Thu, 25 Nov 2021 21:59:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343843AbhKYWCl (ORCPT ); Thu, 25 Nov 2021 17:02:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45152 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229735AbhKYWAk (ORCPT ); Thu, 25 Nov 2021 17:00:40 -0500 Received: from mail-lf1-x144.google.com (mail-lf1-x144.google.com [IPv6:2a00:1450:4864:20::144]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 527CAC061746; Thu, 25 Nov 2021 13:56:45 -0800 (PST) Received: by mail-lf1-x144.google.com with SMTP id k37so19405314lfv.3; Thu, 25 Nov 2021 13:56:45 -0800 (PST) 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=+xEZeptIFxKUhbqhiFVnqGqN6Ab8HrFfKJKYFIcuna8=; b=j2jrdtKDfjIF2/VQumwah3x35qghBAF7rFhqOYBOVWX6j1XP7FenYr7ZaGu0DT64RC IcDufkGKwb9awNbIS3un1qGBCRE+qQ4hzaVcTokthbyUfGTLRZPO4Fu4+il3hXokqzFh 1wm4cxOYo5pM57dSkpwH0DIfniwJ4bJ3hQg0F+OuYCql0TPLz2T2DskvAMtSlv5nQ2vB WFydVv9DeLwSLnyDsoN4kitLK801s/dkTsBSOgMmGoSsR5yRqtQmKMk56BiQvDZ72E30 6XcdWgQz5CleDItEeVR2CMK1nMWhL8HT2CA33Q818jEWRqSFnSQlnq5moY9q23wOIjRH hLPw== 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=+xEZeptIFxKUhbqhiFVnqGqN6Ab8HrFfKJKYFIcuna8=; b=gJvdSZSBZgo250modi/bnshj0RN3VCUi8aOcrEUaLpuwW6lbuyxyUgDfDRIuirBHpZ SRFp09IWU53YdER9wByflNjGqChSBhd2xG8wypsxAYc6XHXUBCFW1dFpWL4h8Tg5bUhg e+SqWn3FPFVbVYMB+Ep8Q2tLWArcMGbQs5/EzJ7FW4/H0ruQnbXJzIaHwnpZPUy4U5Wm RDyHqlagWYXxLsvB/HoN5BcC/5VszkrDY0woKbdRxV0GQKQpREA8d6NtaMzz52dJG21z vE4BQDZNfFCuTELMKexrU0SxY2EmvXdfJp0MNn4PIKDRDoGvkzNKIz4iKs9MnCNWXPRK 2YUw== X-Gm-Message-State: AOAM530WZqgjtCkJusYXt1b3YxENhVviCf2BskHKMh7do1vZBY71II0q kQ1Z6MlvVhlEAl+S7QmDGWo= X-Google-Smtp-Source: ABdhPJx1mrubuqNyQ0dooCVOTMGD+K7aLr/k7C1mFcvBED8jX1uELx0eBU7Rl+Ez/uWq+6ymci64vQ== X-Received: by 2002:ac2:4119:: with SMTP id b25mr25681466lfi.3.1637877403556; Thu, 25 Nov 2021 13:56:43 -0800 (PST) Received: from localhost.localdomain (public-gprs212807.centertel.pl. [46.134.170.136]) by smtp.googlemail.com with ESMTPSA id l16sm404861lfg.90.2021.11.25.13.56.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Nov 2021 13:56:43 -0800 (PST) From: Dominik Kobinski To: bjorn.andersson@linaro.org Cc: agross@kernel.org, linus.walleij@linaro.org, robh+dt@kernel.org, linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Dominik Kobinski , Ivaylo Ivanov Subject: [PATCH v2,2/5] dt-bindings: pinctrl: qcom: pmic-gpio: Document pm8226 compatible Date: Thu, 25 Nov 2021 22:56:26 +0100 Message-Id: <20211125215626.62447-1-dominikkobinski314@gmail.com> X-Mailer: git-send-email 2.34.0 In-Reply-To: <20211125213451.62010-1-dominikkobinski314@gmail.com> References: <20211125213451.62010-1-dominikkobinski314@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Suggested-by: Ivaylo Ivanov Signed-off-by: Dominik Kobinski --- Documentation/devicetree/bindings/pinctrl/qcom,pmic-gpio.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,pmic-gpio.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,pmic-gpio.yaml index 8952b4cc1262..293f480ad0b4 100644 --- a/Documentation/devicetree/bindings/pinctrl/qcom,pmic-gpio.yaml +++ b/Documentation/devicetree/bindings/pinctrl/qcom,pmic-gpio.yaml @@ -30,6 +30,7 @@ properties: - qcom,pm8058-gpio - qcom,pm8150-gpio - qcom,pm8150b-gpio + - qcom,pm8226-gpio - qcom,pm8350-gpio - qcom,pm8350b-gpio - qcom,pm8350c-gpio From patchwork Thu Nov 25 21:59:14 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dominik Kobinski X-Patchwork-Id: 12639905 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 A298FC433EF for ; Thu, 25 Nov 2021 22:01:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236645AbhKYWE4 (ORCPT ); Thu, 25 Nov 2021 17:04:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46106 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244108AbhKYWCz (ORCPT ); Thu, 25 Nov 2021 17:02:55 -0500 Received: from mail-lf1-x143.google.com (mail-lf1-x143.google.com [IPv6:2a00:1450:4864:20::143]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D46DFC061756; Thu, 25 Nov 2021 13:59:43 -0800 (PST) Received: by mail-lf1-x143.google.com with SMTP id n12so19424700lfe.1; Thu, 25 Nov 2021 13:59:43 -0800 (PST) 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=56dyo2B5WxLSRjH8dLU5dNlhfoG71/Hfm6ftni52IYk=; b=Gj9ioyeu5vxUD/HRx+xbfHF3E4RnJfN7f2/LwnnVv3oBkGHAlqpW4z39byD07iqRX4 IX9Ndya6zYUAI96mlNEV8/l42XS+j3AYE/nQ7J0bFqHJ9Nz8dzu3abMqY+pubG7/7dVJ ArowD055ei/XIvUsfp21sTz9PSkj3SjnSaDqi5DGB9iUnj+i4xAV74hUUyWLVl2pEf0U iisDp8CBLNkszEZac1BpVc2jUfssLVz7LRuZNrNkZbgUSVukxBWZQnUQxHxbXj8632xB q348tVJVa231eeOzmu7Dpu5EnBGoWxZC2g71NrAw4ArFyu3yZ217xoKX9mZxblKk+kJS yy1A== 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=56dyo2B5WxLSRjH8dLU5dNlhfoG71/Hfm6ftni52IYk=; b=SZy8gpSMxiKF+Yf2CbyvKhbhOdGJ8xH5QttrpmxXhSTCdxD3Ga3cziC7Q35iPy3b9T M2BlDPkA1KGTpF8h2+xbjmCqZx6eGpRJGYov3GWK3Mo5PsyRpuwovQ0L9T1vw4yMrle2 H1kKRPtuyNkZSbgXiowEd087JmVV9fjE7DBauP37DHTI8rqIGXb3CuRQKT51MSVVqEHM HS6QDsMCjxz9XuPKy0qai38ne6jF9CxkY+6i55vTmEP3Dg8UmyN5pMItTD498rdqQeFf ckosdBfigbIbBNjL8XJceTIYI6Vv0zzPZ7bXTqlFlbyijbZiXdhl2+VDyHipKCE7MhAq vSqA== X-Gm-Message-State: AOAM530MUKPZ331h2bVn61s5HHS7LkIXqGWDINZmZH7YWFdMNGy5MSIX IekZeDFgsxws/zwPTbFSTK0= X-Google-Smtp-Source: ABdhPJwbBvp5EjMkUyfLTw86uq+ddhDMAjDtc0EQrDqaLK8kdNN4KN2BSmxr/Yq/nrnQ20afqzbaDw== X-Received: by 2002:a05:6512:90f:: with SMTP id e15mr27532185lft.552.1637877582147; Thu, 25 Nov 2021 13:59:42 -0800 (PST) Received: from localhost.localdomain (public-gprs212807.centertel.pl. [46.134.170.136]) by smtp.googlemail.com with ESMTPSA id m10sm338611lji.11.2021.11.25.13.59.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Nov 2021 13:59:41 -0800 (PST) From: Dominik Kobinski To: bjorn.andersson@linaro.org Cc: agross@kernel.org, lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Dominik Kobinski , Ivaylo Ivanov Subject: [PATCH v2,3/5] dt-bindings: regulator: qcom: spmi-regulator: Document pm8226 compatible Date: Thu, 25 Nov 2021 22:59:14 +0100 Message-Id: <20211125215914.62508-1-dominikkobinski314@gmail.com> X-Mailer: git-send-email 2.34.0 In-Reply-To: <20211125213451.62010-1-dominikkobinski314@gmail.com> References: <20211125213451.62010-1-dominikkobinski314@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Suggested-by: Ivaylo Ivanov Signed-off-by: Dominik Kobinski --- .../devicetree/bindings/regulator/qcom,spmi-regulator.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/regulator/qcom,spmi-regulator.txt b/Documentation/devicetree/bindings/regulator/qcom,spmi-regulator.txt index 2b544059e029..c2a39b121b1b 100644 --- a/Documentation/devicetree/bindings/regulator/qcom,spmi-regulator.txt +++ b/Documentation/devicetree/bindings/regulator/qcom,spmi-regulator.txt @@ -6,6 +6,7 @@ Qualcomm SPMI Regulators Definition: must be one of: "qcom,pm8004-regulators" "qcom,pm8005-regulators" + "qcom,pm8226-regulators" "qcom,pm8841-regulators" "qcom,pm8916-regulators" "qcom,pm8941-regulators" From patchwork Thu Nov 25 22:00:47 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dominik Kobinski X-Patchwork-Id: 12639907 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 C5B28C433EF for ; Thu, 25 Nov 2021 22:03:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245086AbhKYWGn (ORCPT ); Thu, 25 Nov 2021 17:06:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46048 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343562AbhKYWEn (ORCPT ); Thu, 25 Nov 2021 17:04:43 -0500 Received: from mail-lj1-x233.google.com (mail-lj1-x233.google.com [IPv6:2a00:1450:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 32D43C0613F9; Thu, 25 Nov 2021 14:01:06 -0800 (PST) Received: by mail-lj1-x233.google.com with SMTP id t11so14928661ljh.6; Thu, 25 Nov 2021 14:01:06 -0800 (PST) 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=3dhxg8En0E5Dy0T1fUht5yDxcC0QMFDHbqiSALx+1hc=; b=EZHM/ujpEkiszbFTFg2/eUYdAySF4sOjsbWD+9wMnjewyQpVNtnPaAv4crp6UxSwqy XsgP9HTzngXgTZHPvLQfsnJ6/TgJ9z+EzsEVOq2VNxfbaR7hj+Mi2sZRLjLigbvgOeAi nR9M2YfEQ3wc9o2V4nFTyl8ZiiBu3L4n3ZSBlyyV1QcDVz1c1Jh3um3J8osJv3oyvQoI 9xwgWoHFB1jAbl3XUH/2suTBuqk5TO8fp6+BI6r0dlxvTrxaca9IkAaeD7qom0Crk/6r G7q8y2AfwT2+/reX9XjHE/U8mxzUYF9adhkB97NTDAQxI9TYcHUpyud8ppGbpo8nBJQ4 A91w== 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=3dhxg8En0E5Dy0T1fUht5yDxcC0QMFDHbqiSALx+1hc=; b=zCBsPsO2RPt/fmo3so1hS8JaDNSr1hGSnMcM+YP9oe4RBddkxPzC4zahxMpomNwJmL 95NI44czWQ3f9KGWRu5U0P9Q6JgdscXaqGtBWd3NL9aLQfuG7bRuhxSD3OSLWzL+gGrY 54JOLMaLj00fVXAWIYuJlXl8DJ9KTjzs2hubc5zuhbsFhgMAsfmTOH/fDhhJ/38RBk6Y PMU/sO1gbxtNC/GkI4NP78D0rchVD+HneI6Kjt8sKckmZBkwD0efldoeOCkBRd0ClPHl BtPu3lNgt3anczGT8vSr6NJSH5DUCU+pyJ2sY9Gn1IK5nbURc7CzpTNhUVIe/Fa7wxBd 1M/g== X-Gm-Message-State: AOAM530E2VlmeMc7bIsndXZGo4xE8Jw3szf2xgCPOVumuyikIG1WjA0t /1TgzSJL5uhYjkZ1Th7mOY0= X-Google-Smtp-Source: ABdhPJww0zNElnW4e+ODN23UOnrINeu6Uj2Wr69uac8o6ADiXWKUNZtDMpYKUlTVVrdy5lJ3wJ93fA== X-Received: by 2002:a2e:9718:: with SMTP id r24mr28019242lji.406.1637877664477; Thu, 25 Nov 2021 14:01:04 -0800 (PST) Received: from localhost.localdomain (public-gprs212807.centertel.pl. [46.134.170.136]) by smtp.googlemail.com with ESMTPSA id g26sm326249ljn.107.2021.11.25.14.01.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Nov 2021 14:01:04 -0800 (PST) From: Dominik Kobinski To: bjorn.andersson@linaro.org Cc: agross@kernel.org, lgirdwood@gmail.com, broonie@kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Dominik Kobinski , Ivaylo Ivanov Subject: [PATCH v2,4/5] regulator: qcom_spmi: Add pm8226 regulators Date: Thu, 25 Nov 2021 23:00:47 +0100 Message-Id: <20211125220047.62545-1-dominikkobinski314@gmail.com> X-Mailer: git-send-email 2.34.0 In-Reply-To: <20211125213451.62010-1-dominikkobinski314@gmail.com> References: <20211125213451.62010-1-dominikkobinski314@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The PM8226 PMIC is very often seen on MSM8x26 boards. Reviewed-by: Bjorn Andersson Suggested-by: Ivaylo Ivanov Signed-off-by: Dominik Kobinski --- drivers/regulator/qcom_spmi-regulator.c | 39 +++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/drivers/regulator/qcom_spmi-regulator.c b/drivers/regulator/qcom_spmi-regulator.c index 41424a3366d0..02bfce981150 100644 --- a/drivers/regulator/qcom_spmi-regulator.c +++ b/drivers/regulator/qcom_spmi-regulator.c @@ -1895,6 +1895,44 @@ static const struct spmi_regulator_data pm8941_regulators[] = { { } }; +static const struct spmi_regulator_data pm8226_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_l4_l5", }, + { "l2", 0x4100, "vdd_l1_l2_l4_l5", }, + { "l3", 0x4200, "vdd_l3_l24_l26", }, + { "l4", 0x4300, "vdd_l1_l2_l4_l5", }, + { "l5", 0x4400, "vdd_l1_l2_l4_l5", }, + { "l6", 0x4500, "vdd_l6_l7_l8_l9_l27", }, + { "l7", 0x4600, "vdd_l6_l7_l8_l9_l27", }, + { "l8", 0x4700, "vdd_l6_l7_l8_l9_l27", }, + { "l9", 0x4800, "vdd_l6_l7_l8_l9_l27", }, + { "l10", 0x4900, "vdd_l10_l11_l13", }, + { "l11", 0x4a00, "vdd_l10_l11_l13", }, + { "l12", 0x4b00, "vdd_l12_l14", }, + { "l13", 0x4c00, "vdd_l10_l11_l13", }, + { "l14", 0x4d00, "vdd_l12_l14", }, + { "l15", 0x4e00, "vdd_l15_l16_l17_l18", }, + { "l16", 0x4f00, "vdd_l15_l16_l17_l18", }, + { "l17", 0x5000, "vdd_l15_l16_l17_l18", }, + { "l18", 0x5100, "vdd_l15_l16_l17_l18", }, + { "l19", 0x5200, "vdd_l19_l20_l21_l22_l23_l28", }, + { "l20", 0x5300, "vdd_l19_l20_l21_l22_l23_l28", }, + { "l21", 0x5400, "vdd_l19_l20_l21_l22_l23_l28", }, + { "l22", 0x5500, "vdd_l19_l20_l21_l22_l23_l28", }, + { "l23", 0x5600, "vdd_l19_l20_l21_l22_l23_l28", }, + { "l24", 0x5700, "vdd_l3_l24_l26", }, + { "l25", 0x5800, "vdd_l25", }, + { "l26", 0x5900, "vdd_l3_l24_l26", }, + { "l27", 0x5a00, "vdd_l6_l7_l8_l9_l27", }, + { "l28", 0x5b00, "vdd_l19_l20_l21_l22_l23_l28", }, + { "lvs1", 0x8000, "vdd_lvs1", }, + { } +}; + static const struct spmi_regulator_data pm8841_regulators[] = { { "s1", 0x1400, "vdd_s1", }, { "s2", 0x1700, "vdd_s2", NULL, 0x1c08 }, @@ -2095,6 +2133,7 @@ static const struct spmi_regulator_data pms405_regulators[] = { static const struct of_device_id qcom_spmi_regulator_match[] = { { .compatible = "qcom,pm8004-regulators", .data = &pm8004_regulators }, { .compatible = "qcom,pm8005-regulators", .data = &pm8005_regulators }, + { .compatible = "qcom,pm8226-regulators", .data = &pm8226_regulators }, { .compatible = "qcom,pm8841-regulators", .data = &pm8841_regulators }, { .compatible = "qcom,pm8916-regulators", .data = &pm8916_regulators }, { .compatible = "qcom,pm8941-regulators", .data = &pm8941_regulators }, From patchwork Thu Nov 25 22:02:44 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dominik Kobinski X-Patchwork-Id: 12639925 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 C190EC433EF for ; Thu, 25 Nov 2021 22:05:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344293AbhKYWIi (ORCPT ); Thu, 25 Nov 2021 17:08:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46028 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344915AbhKYWGi (ORCPT ); Thu, 25 Nov 2021 17:06:38 -0500 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24D03C061758; Thu, 25 Nov 2021 14:02:59 -0800 (PST) Received: by mail-lf1-x136.google.com with SMTP id bu18so19521785lfb.0; Thu, 25 Nov 2021 14:02:59 -0800 (PST) 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=sjNM0SmpprH2Ybt3lGnDr03lBtbdsYNvqzNEYejWd8Q=; b=PYKkfTiTWkYf8HvGWbMcVxPSDsJb6kPY2+lTxviXtA5LgWGkD258oHR5zzlBWjHM8B u/z3UH+Qd67RTQvNeQo6oCo3lH30Hm8uniImTK2FEvYh5RrmkjOtwP++L/fjtI9NPrsq xX1mvH4fTNr4xsF4IfqAzgSZYLGJNvLdxZS1d8iKfQN0DXT5gZNnhgDMeA0SwGMvUsAZ V402AE4RUTLHq2eV1UYmow6l1cGGK9+KmBvBpronprAICQINMNOmpzp3Fvy6GkFi+SyQ yadvmffsnm+2Uv3mNvRGUWyjbPwL6Zn85zKtDwuusg1AMVJa20hd666a0clnTIFiyY6v qOCQ== 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=sjNM0SmpprH2Ybt3lGnDr03lBtbdsYNvqzNEYejWd8Q=; b=XmDCM/xjsKi2noinCtyZW1c1MKdPrGsS31fAGIg0k6XF1U2ZQBX91UWVa4v7miLfpM BN8p+vUHyRMxT9l6/I1qRn0tOALxkYOtLT+QFp4kx4W/fJ2xYQms/AV6w1xFJq9uLJwe f1/IdumYrLP8P69QZJyYEO3veB+2rKWsAkf+NVxcCCSrGI6GZDZ5sa3WwxnDv8t1HG9V oDZclypp7U6PgzOla5sBEKTSVXpau/pcJtMEZZdiUQxCMXGozFNGpIRPbrzZnKALjqbk 3e24H4PQFYx93q6fmlLz5qcwpGZVfqs1wuuip9cs9RObKgMfVKigDFidZwT4KgkK50dG vkxQ== X-Gm-Message-State: AOAM530bXMHXs7bQwlfCEsrti2lM2D33Zktg8ubep6TQIA51Bj5oSEm8 f7yC60dN7sQNbEO9mw8FVgo= X-Google-Smtp-Source: ABdhPJxNL52UiWFbYeqwEGrMXJ+nV0qL6DktEPN4uXUgMqYCgi03MNvgXvsPFqudLKWRhqupELw6OQ== X-Received: by 2002:a05:6512:398b:: with SMTP id j11mr25360757lfu.170.1637877777392; Thu, 25 Nov 2021 14:02:57 -0800 (PST) Received: from localhost.localdomain (public-gprs212807.centertel.pl. [46.134.170.136]) by smtp.googlemail.com with ESMTPSA id b27sm342732ljf.52.2021.11.25.14.02.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Nov 2021 14:02:57 -0800 (PST) From: Dominik Kobinski To: bjorn.andersson@linaro.org Cc: agross@kernel.org, robh+dt@kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Dominik Kobinski , Ivaylo Ivanov Subject: [PATCH v2,5/5] arm: dts: qcom: pm8226: Support SPMI regulators on PMIC sid 1 Date: Thu, 25 Nov 2021 23:02:44 +0100 Message-Id: <20211125220244.62586-1-dominikkobinski314@gmail.com> X-Mailer: git-send-email 2.34.0 In-Reply-To: <20211125213451.62010-1-dominikkobinski314@gmail.com> References: <20211125213451.62010-1-dominikkobinski314@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The PM8226 PMIC has SPMI regulators on the PMIC SID 1: add the spmi vregs compatible to probe them. Suggested-by: Ivaylo Ivanov Signed-off-by: Dominik Kobinski > --- This patch is based on changes done in the following patches : - https://patchwork.kernel.org/project/linux-arm-msm/patch/20211118210210.160895-3-luca@z3ntu.xyz/ - https://patchwork.kernel.org/project/linux-arm-msm/patch/20211122235230.2467246-1-jm5112356@gmail.com/ - https://patchwork.kernel.org/project/linux-arm-msm/patch/20211123003256.2467776-1-jm5112356@gmail.com/ arch/arm/boot/dts/qcom-pm8226.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/qcom-pm8226.dtsi b/arch/arm/boot/dts/qcom-pm8226.dtsi index 25780c8fa2e9..49c2fac6f287 100644 --- a/arch/arm/boot/dts/qcom-pm8226.dtsi +++ b/arch/arm/boot/dts/qcom-pm8226.dtsi @@ -62,6 +62,10 @@ pm8226_1: pm8226@1 { #address-cells = <1>; #size-cells = <0>; + pm8226_spmi_regulators: pm8226-regulators { + compatible = "qcom,pm8226-regulators"; + }; + pm8226_vib: vibrator@c000 { compatible = "qcom,pm8916-vib"; reg = <0xc000>;