From patchwork Tue Nov 23 17:41:27 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dominik Kobinski X-Patchwork-Id: 12634897 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 B9776C433F5 for ; Tue, 23 Nov 2021 17:42:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239375AbhKWRp1 (ORCPT ); Tue, 23 Nov 2021 12:45:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238958AbhKWRp0 (ORCPT ); Tue, 23 Nov 2021 12:45:26 -0500 Received: from mail-lj1-x232.google.com (mail-lj1-x232.google.com [IPv6:2a00:1450:4864:20::232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A9A7C061574; Tue, 23 Nov 2021 09:42:18 -0800 (PST) Received: by mail-lj1-x232.google.com with SMTP id v15so12821601ljc.0; Tue, 23 Nov 2021 09:42:18 -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:mime-version :content-transfer-encoding; bh=klioHbiKDOj23wJ2ag02+ri9HjhHB0e0XDitPdnTUKE=; b=jqu3l7OMPjegIvzh95GLnRoNekIQeM70R2xijFnWweilxN0ALne43+QG+msvzf/71m lvThgOSIm2mVPbAAAHB7egFiHnQ+GQf//xc5yY0SYNEpnQ6e0yNnHXYubDJXVf5sdaYK 9exeSd+ShN56wnRH/hueQeKlMAikBeGJ9OQBjo5raFS4wguzx8zPIiK9/cY8xYhbLHZU Fh8CiAoVN8DRNF02wxwAzup4QNlRQDZyy2hkxlrgJR5sGND3KZTnutwhliv0rmVjY0XK ueQJxQC/BG0m0xT9RV27ZvhxaV8rSzESBDvS96fqY3PQqXbBOyZpcBqzJDxMUqJ4eX/A 7C6w== 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=klioHbiKDOj23wJ2ag02+ri9HjhHB0e0XDitPdnTUKE=; b=bpV/5sOM3ynrvAPYtcAZ5DplQI7heL2tasuFVS6XISYaOtX79WyEckZM6u3xvyaR21 EzndaVwNviCMAYhKj2ireKvj3oI4oozg+YR3SUz1NLlB3MNt3vJG0Gn6ZJ47w1nT5Qei l6cc7BCXj0UIEKBMOp7Tq67HMBm70eHpYzwxWoWjiqn7hUOsJQul05eeIZcqPplZZIxV gwCUXjfPL5jciBfmonzteRTovPKlhh/juebkYp4jWzr40tjQPI3gsjEvsgxFcPkfRdvJ SqNiVMxwOpaDAaEajVzZ9hnLxvmqykvuXU/C7Nk37RRQFo2E12pVV/h0Z0Kd7nzRLMle Lb3Q== X-Gm-Message-State: AOAM533aCRNMAO5pW3KQ8zaNp4AZJSNLeKrTewmhnJ+J05708s0Vxxgh QqDTIRF2qniNdT9U6rlJ+38= X-Google-Smtp-Source: ABdhPJwU6PsiQz2y0XovRimIF2l/X+gdP6soUOaF2IniBdFEDST5rjRdPc+qy8hEqPk/KJRw6ZBu6w== X-Received: by 2002:a2e:781a:: with SMTP id t26mr7379120ljc.90.1637689336549; Tue, 23 Nov 2021 09:42:16 -0800 (PST) Received: from localhost.localdomain (public-gprs375115.centertel.pl. [37.47.96.140]) by smtp.googlemail.com with ESMTPSA id l12sm1349371lfk.212.2021.11.23.09.42.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Nov 2021 09:42:16 -0800 (PST) From: Dominik Kobinski To: agross@kernel.org Cc: bjorn.andersson@linaro.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 1/4] pinctrl: qcom: spmi-gpio: Add pm8226 compatibility Date: Tue, 23 Nov 2021 18:41:27 +0100 Message-Id: <20211123174127.2261-1-dominikkobinski314@gmail.com> X-Mailer: git-send-email 2.34.0 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. Suggested-by: Ivaylo Ivanov Signed-off-by: Dominik Kobinski Reviewed-by: Bjorn Andersson --- 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 Tue Nov 23 18:02:24 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dominik Kobinski X-Patchwork-Id: 12634987 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 6FD9BC433FE for ; Tue, 23 Nov 2021 18:03:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239430AbhKWSGH (ORCPT ); Tue, 23 Nov 2021 13:06:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229674AbhKWSGH (ORCPT ); Tue, 23 Nov 2021 13:06:07 -0500 Received: from mail-lj1-x242.google.com (mail-lj1-x242.google.com [IPv6:2a00:1450:4864:20::242]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A9F25C061574; Tue, 23 Nov 2021 10:02:58 -0800 (PST) Received: by mail-lj1-x242.google.com with SMTP id u22so12785390lju.7; Tue, 23 Nov 2021 10:02:58 -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=XkRRgNSIKJA+KL4lvhEPdfl4M7/lL3095XbjqfJKGR5T2tPClqoganY1qr8ZoNkCoM sVMh0rygRtxoykrMRuRiWlUblmvUhMBnUtA+rmdDLyuuVgTKDgq+x8JnZVnXvW5wX89m dd8p9h+OiunRY7nZARMZ1ZHiSURDMo0tiB+KAUQiiT4r3UiS8g2chmseEBO5Iw9ET5gb z864elY8U3h/nZEWQIjwd3U5R99vZfEoLNN4FSzesVnfPTQNTFs7xZJjMBi6pdLEDiZ+ sFaTgz+CTpkQP8vmvNeJWIj0GTzyvi1T1Os7GVWOf3rTisxiiqcby7U3lBSgJx3ejydx XYPg== 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=PvjaXumtXhsITkTWBzGi3PyvSbOxn95GUyXgsndQq7f4rC1C5VvGmgAO/D9oJSQO8a P9mGnr5z0BzskO5U/o53ZDIvGMsj5JOpROsCnrGav29cuBo2N6qgccDxs+jxdAoezRj/ QuiVuncN/O8qD23tssR79WKGH7PaZ0Pnh9tfqHZgm2JC12lxvWe56BZF99QwyVPTiX7V hDAMpZGguy4tTvHp6s6edtQFo5BoXzwiFJj5/CrJTQXovmfebCoJq52M6BGMTIRPHO4C oBy8nmFSTnBnnwOcK+hGMLB2XIAyKBH0U9lg4iLGbriDm+zh1TywKGvITREemUwa8SCH xLRA== X-Gm-Message-State: AOAM531P0icvDjs4GhPgowfFlAzxUXvMdJpo7ZqepAuTBFZwrF0hcDJu hS5SV7H+0b794KAw/H5OLeE= X-Google-Smtp-Source: ABdhPJyQKVczbO9Ysn5CcRlL7RMpM5Wdm1PgdHRQqlqakpz+n0cghsCDOkoQ594avR8B87GumXXBBA== X-Received: by 2002:a2e:9acf:: with SMTP id p15mr7822834ljj.213.1637690576876; Tue, 23 Nov 2021 10:02:56 -0800 (PST) Received: from localhost.localdomain (public-gprs375115.centertel.pl. [37.47.96.140]) by smtp.googlemail.com with ESMTPSA id g22sm1357724lfr.237.2021.11.23.10.02.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Nov 2021 10:02:56 -0800 (PST) From: Dominik Kobinski To: agross@kernel.org Cc: bjorn.andersson@linaro.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 2/4] dt-bindings: pinctrl: qcom: pmic-gpio: Document pm8226 compatible Date: Tue, 23 Nov 2021 19:02:24 +0100 Message-Id: <20211123180224.2733-1-dominikkobinski314@gmail.com> X-Mailer: git-send-email 2.34.0 In-Reply-To: <20211123174127.2261-1-dominikkobinski314@gmail.com> References: <20211123174127.2261-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 Tue Nov 23 18:08:16 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dominik Kobinski X-Patchwork-Id: 12635011 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 9DF7AC433EF for ; Tue, 23 Nov 2021 18:08:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239618AbhKWSL5 (ORCPT ); Tue, 23 Nov 2021 13:11:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58372 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239498AbhKWSL4 (ORCPT ); Tue, 23 Nov 2021 13:11:56 -0500 Received: from mail-lj1-x242.google.com (mail-lj1-x242.google.com [IPv6:2a00:1450:4864:20::242]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E252C061574; Tue, 23 Nov 2021 10:08:48 -0800 (PST) Received: by mail-lj1-x242.google.com with SMTP id e11so12756639ljo.13; Tue, 23 Nov 2021 10:08:48 -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=CR7mbvgSr/cJkFxHEQ+ms+toHQcxH851XqAFwpfJzz543FrfgIc8MQpdwUhXzzYFKl pXCW3vi6SXprCzAHzHVeXJN+yOs7hkyZOPNDX99021nhSF61L6Twl4ck/S3kVGT+bEHU GF/NbWcjnyKmGnVoD0zzGEi8OO8t6Bm95pHTmTCYznQ5E7tKCCRtS0lNjZTyk0x66ulK PybjJTn7CSRs+exbZihltyyqAP+vsIHYIhfhiFeJBGMfM4HxGSYvp1MHuUSz6wulADJq zwS6HgizVuyYE6Cs7ifNG1N5GaGW9viZpcd6ZTHtdKyTf2+D4vN4O+NXz+QD2YT8k6q+ Dv2Q== 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=u4lkkB17NaTjUxkr0a8f03v6n651Q95PagGe+RmpXTThNTPHy+rD+6W/RTJmcrdaub 2VMl8pljUeMNck9n60hireMbPqxxldUgBaUNV65Am1bgUbyuawEgJQTRLK2i8Ff4EDsq WVN4nm1IMP8CxoJHV2H48vJSZfyCLnnITkLx+dsAT/VPuwlm4j2VaKFlFMVvmDGh9R2D kX1sCHtJhVEXl/BVvv3h4wzq6ZlYWMkQyqO3YFnfTtPomb8UNeg2Imu0RbA98etCG5Bo ypfMl/Gbfswv/wK8w5wUooZEkgFx2IIJj8TD4mtDyb8YGYBQBTyXeQoKgv3j6VisWi67 INvA== X-Gm-Message-State: AOAM533rrkdyDVmlK23r4MPBKVTaoMl4av9GcOaIxTkMLWi/Q7U9ehEG K05nJCfGblq2A5IEE6DdE7M= X-Google-Smtp-Source: ABdhPJzSLfpSBsiDXgtGymQV5xPGQ2oxpL3HVL4A7epVul9quMnngyVM0xyR9B/ohIxO24hH2VUneg== X-Received: by 2002:a2e:a483:: with SMTP id h3mr7641944lji.106.1637690926436; Tue, 23 Nov 2021 10:08:46 -0800 (PST) Received: from localhost.localdomain (public-gprs375115.centertel.pl. [37.47.96.140]) by smtp.googlemail.com with ESMTPSA id q1sm874981lfh.234.2021.11.23.10.08.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Nov 2021 10:08:46 -0800 (PST) From: Dominik Kobinski To: agross@kernel.org Cc: bjorn.andersson@linaro.org, lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Dominik Kobinski , Ivaylo Ivanov Subject: [PATCH 3/4] dt-bindings: regulator: qcom: spmi-regulator: Document pm8226 compatible Date: Tue, 23 Nov 2021 19:08:16 +0100 Message-Id: <20211123180816.2835-1-dominikkobinski314@gmail.com> X-Mailer: git-send-email 2.34.0 In-Reply-To: <20211123174127.2261-1-dominikkobinski314@gmail.com> References: <20211123174127.2261-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 Tue Nov 23 18:11:19 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dominik Kobinski X-Patchwork-Id: 12635035 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 4C912C433EF for ; Tue, 23 Nov 2021 18:13:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234284AbhKWSQz (ORCPT ); Tue, 23 Nov 2021 13:16:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59482 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234236AbhKWSQy (ORCPT ); Tue, 23 Nov 2021 13:16:54 -0500 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50927C06173E; Tue, 23 Nov 2021 10:13:46 -0800 (PST) Received: by mail-lf1-x132.google.com with SMTP id r26so230150lfn.8; Tue, 23 Nov 2021 10:13:46 -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=R1lbh8ML36PgHeRnKDif3BwxyPuxLNdG8GTZu7LkVeA=; b=KotJzgbsynvTermYNoEMjjHIGET9jkXyB3eCLYnPXPQRo9jt6x9lsNUqVfhyIyBGCm zXURN8Y+pVZqvTEkp4B4skI1YRS/QubtLPIj0wuPRHXDyvlmRWZf/jJSwjWhSvfD7Nh0 FuYFwxAoM5+S9Fb/LuFxQSlJh+5yNuwLrBGVwI0VjjAwSXdRBN+RHiK8T/DgiUaTocl4 0enW/BeSWQsaNts6Qyu7K0wf111+kD7kOoSBZnkRLddzlH0eCrApyFtL9sMW9pznLbl3 DUk9wXRBA1dzSdpR2haPCEvvvSomC6b93ICsU+gLiPTTPuK0Xd35T3cA9XLSgAT6tJxc gROQ== 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=R1lbh8ML36PgHeRnKDif3BwxyPuxLNdG8GTZu7LkVeA=; b=o9XlP/A8gLpVq6XJfRv1ksX3Kd4eGoee70EPYKIkV0LHTuVi9jhKCOOYFpRURZSTyl 4Bz+kmsOvvl9GsYIjGjSryMAWKY6PyvrlsnT6M+s7BtsGjv9kitAs7oXt7USjG+S3K3I zTq/mynI0RnJtQu3vNWlB2jR++yBTXFW/RNhM0rLCwz5Q2zM2BKn4QRt/qkQza0G4GHm Q+LvNDaVbytGC68kbsXDTQjaeBnzfVKc3PibodAFjianxTlBUIWbWAkPBTwS32/UdG1J k0mE0tcwIJQPcqSwcRhQuLWFuXF+x1JqUGcAaZ+gfnhplrqb52UEwDv+f/5tT6dxV1PA FJTg== X-Gm-Message-State: AOAM533wByUNBnB19ERdKta4BY2x6aSoFvg91oyToyBo22eJ85pNWf4q +ZV6SlbRdOdqab13ZIyjVso= X-Google-Smtp-Source: ABdhPJyISSExpQ0FjzL5Bgs+xMN/c6GKyOxriIc2gCgUlYE5aIozMsnXIYIvj5wQtHQc3pFfw400Vw== X-Received: by 2002:a05:6512:3f96:: with SMTP id x22mr6968408lfa.389.1637691223076; Tue, 23 Nov 2021 10:13:43 -0800 (PST) Received: from localhost.localdomain (public-gprs375115.centertel.pl. [37.47.96.140]) by smtp.googlemail.com with ESMTPSA id 138sm1335777ljf.89.2021.11.23.10.13.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Nov 2021 10:13:42 -0800 (PST) From: Dominik Kobinski To: agross@kernel.org Cc: bjorn.andersson@linaro.org, lgirdwood@gmail.com, broonie@kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Dominik Kobinski , Ivaylo Ivanov Subject: [PATCH 4/4] regulator: qcom_spmi: Add pm8226 regulators Date: Tue, 23 Nov 2021 19:11:19 +0100 Message-Id: <20211123181119.2897-1-dominikkobinski314@gmail.com> X-Mailer: git-send-email 2.34.0 In-Reply-To: <20211123174127.2261-1-dominikkobinski314@gmail.com> References: <20211123174127.2261-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. Suggested-by: Ivaylo Ivanov Signed-off-by: Dominik Kobinski Reviewed-by: Bjorn Andersson --- 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 },