Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp20306rwl; Thu, 6 Apr 2023 12:30:10 -0700 (PDT) X-Google-Smtp-Source: AKy350YqSgrmh6mmCrQ++9/15pAx3g7bHWZnulmTdLPVMwW/o1NA0BxICpU9lMYrIIvArvA0+4ce X-Received: by 2002:a62:1784:0:b0:625:dcc1:620b with SMTP id 126-20020a621784000000b00625dcc1620bmr141568pfx.34.1680809410042; Thu, 06 Apr 2023 12:30:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680809410; cv=none; d=google.com; s=arc-20160816; b=DQC82dmd9pPW82GWLqnwy3ObZaC86JF1+Uv/K6eJMZXejfgat7pJNkYuPwtTVLt68f GEu+QVEhbUGY6EGsY3gBLz1JXIZCVWMPuXvOFaD5w+Y5H78/oEb9IXElsEiFu9Qmlkco 9yeBerxNVSf+j8OomnRWjw6eRKDZW2sOyKFkYe3a3je0RggxDjqCt/0S167z6t/9r84n 5o9UsoOMpa1yu22euqw3aajTENIqsJCNxcoOw3k7fAQc0Q0eOG+U7dJarpOM6V1Vr4bW AdCUsezeSi/idx5+p6BFjruT7sVA/h88uTptCfSpl4ZoY+ul0mjGxNeN4j9x2QhUuDd4 lnDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=UScSyF/9yEg+A+J27SvMF7EuXswm03inLw2PjZuGBjo=; b=zu0pEYjpJR1PWOvFOwHI6AdlypsenAdDgrzAjP4dJN/ZSyswFM0xvqa9+lmHUTJAbT rNIPE94Jhp6kiy/zpKMUNHa5UZr/b4w6vLaHhBko6k+S29BHBiRQ6d+jGAzChNz90qT8 jqhEu41cUixphyrH8LnuBzUUvANOMGzm9aiEEjT7dGI9ID3JTCD8zXX2T5tXhEJIRECa 2CMgOSr1eazxGcd0wf97gu7prJ1EHrsgEpNNSOBWWWOH1FQ2dETYDQoaQBeEfLY3joYH yxaj4kskFnomDA61AnrciYYUUyAlcyOPFl/gn0xYqwiJ4pYamA4vCoNow4M+DXHhKI7I qnoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=j0B+CJu9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k13-20020aa79d0d000000b005a8ee84ba02si1948603pfp.310.2023.04.06.12.29.57; Thu, 06 Apr 2023 12:30:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=j0B+CJu9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229561AbjDFT2f (ORCPT + 99 others); Thu, 6 Apr 2023 15:28:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55740 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236405AbjDFT21 (ORCPT ); Thu, 6 Apr 2023 15:28:27 -0400 Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6BBA55BD for ; Thu, 6 Apr 2023 12:28:24 -0700 (PDT) Received: by mail-wr1-x42d.google.com with SMTP id g5so628385wrb.5 for ; Thu, 06 Apr 2023 12:28:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; t=1680809303; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=UScSyF/9yEg+A+J27SvMF7EuXswm03inLw2PjZuGBjo=; b=j0B+CJu9c+VLrNQhDuTysYaA+454n1tYHdWjFhG1aKymQ30c6fCvit0cWNj+7dOD7J a0rs+nT7kfwWdt6aunpkcTRWrcQWxHhd5XgLsLisMhgWw+HgxmwpXDtFOrwszM+l06IV rKyFcYEvtEX0W7V9fKRrIDBiXFPzLOtIq3OoXhRiI9kw5Q7vb3xa1X8DnCZHzLI9WStQ quX8rB552TLybcvNZqWpIFHqQeaD5nWMNhbn1BVs/4w7KTAxAJehj9QT8C3PNiQYCXoR 7HPgXfzSNwRR9U/te3Z8kXIbVdnKXxQSTm82CYdmMR2TnYFw3/YInz39+j4A8Y77Rjus +X9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680809303; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=UScSyF/9yEg+A+J27SvMF7EuXswm03inLw2PjZuGBjo=; b=t2zFPtciUWDgZC/HnyzXTrzHBDwrsY6Fnhvmi4tNnpWmsK3AaVpZ1WJvBXUd+ozJB/ gRrwJjpQ+wsEUcrHqoir8BfKcDzIrXzT/UzP//PKFSjzL7ffixhAjKFp7binDNmEJz99 FhQl6eFo7Rh22Xh1Z9/Uwm/LF497CxgbAEE+fFQ8AkhxvL36JPDtMdSvVaOJdntRUUdr eD9EOhv837cX25m0liFIN0s3C49nDtC64DyOhUOWowSNjt9MOrdEu0PDieqIy9L5+vn1 PTGxmLPWD4rqGWQtwgbxzoj/QiMUZtvyBRNpIebgVZFhwQBgKQMFfCvu8xIV3Gh35rdv D7wQ== X-Gm-Message-State: AAQBX9e5q0XVP0n8mf1NcqqiKGVeGWtM7y1STKFbaFa3SBNqv1JzQqqY GfPv5sth3+BzRKiB7Qfjv/ZwAuW/jr/YLnqjsU0= X-Received: by 2002:adf:cc8e:0:b0:2e3:99d3:7a5 with SMTP id p14-20020adfcc8e000000b002e399d307a5mr8525092wrj.24.1680809303490; Thu, 06 Apr 2023 12:28:23 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:4793:cb9a:340b:2f72]) by smtp.gmail.com with ESMTPSA id c11-20020adfe74b000000b002d89e113691sm2489321wrn.52.2023.04.06.12.28.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Apr 2023 12:28:23 -0700 (PDT) From: Bartosz Golaszewski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Liam Girdwood , Mark Brown Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH 3/3] arm64: dts: qcom: sa8775p-ride: add PMIC regulators Date: Thu, 6 Apr 2023 21:28:11 +0200 Message-Id: <20230406192811.460888-4-brgl@bgdev.pl> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230406192811.460888-1-brgl@bgdev.pl> References: <20230406192811.460888-1-brgl@bgdev.pl> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bartosz Golaszewski Add PMIC regulators for sa8775p-ride. Signed-off-by: Bartosz Golaszewski --- arch/arm64/boot/dts/qcom/sa8775p-ride.dts | 233 ++++++++++++++++++++++ 1 file changed, 233 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sa8775p-ride.dts b/arch/arm64/boot/dts/qcom/sa8775p-ride.dts index a0d2024a69df..f238a02a5448 100644 --- a/arch/arm64/boot/dts/qcom/sa8775p-ride.dts +++ b/arch/arm64/boot/dts/qcom/sa8775p-ride.dts @@ -5,6 +5,8 @@ /dts-v1/; +#include + #include "sa8775p.dtsi" #include "sa8775p-pmics.dtsi" @@ -25,6 +27,237 @@ chosen { }; }; +&apps_rsc { + regulators-0 { + compatible = "qcom,pmm8654au-rpmh-regulators"; + qcom,pmic-id = "a"; + + vreg_s4a: smps4 { + regulator-name = "vreg_s4a"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1816000>; + regulator-initial-mode = ; + }; + + vreg_s5a: smps5 { + regulator-name = "vreg_s5a"; + regulator-min-microvolt = <1850000>; + regulator-max-microvolt = <1996000>; + regulator-initial-mode = ; + }; + + vreg_s9a: smps9 { + regulator-name = "vreg_s9a"; + regulator-min-microvolt = <535000>; + regulator-max-microvolt = <1120000>; + regulator-initial-mode = ; + }; + + vreg_l4a: ldo4 { + regulator-name = "vreg_l4a"; + regulator-min-microvolt = <788000>; + regulator-max-microvolt = <1050000>; + regulator-initial-mode = ; + regulator-allow-set-load; + regulator-allowed-modes = ; + }; + + vreg_l5a: ldo5 { + regulator-name = "vreg_l5a"; + regulator-min-microvolt = <870000>; + regulator-max-microvolt = <950000>; + regulator-initial-mode = ; + regulator-allow-set-load; + regulator-allowed-modes = ; + }; + + vreg_l6a: ldo6 { + regulator-name = "vreg_l6a"; + regulator-min-microvolt = <870000>; + regulator-max-microvolt = <970000>; + regulator-initial-mode = ; + regulator-allow-set-load; + regulator-allowed-modes = ; + }; + + vreg_l7a: ldo7 { + regulator-name = "vreg_l7a"; + regulator-min-microvolt = <720000>; + regulator-max-microvolt = <950000>; + regulator-initial-mode = ; + regulator-allow-set-load; + regulator-allowed-modes = ; + }; + + vreg_l8a: ldo8 { + regulator-name = "vreg_l8a"; + regulator-min-microvolt = <2504000>; + regulator-max-microvolt = <3300000>; + regulator-initial-mode = ; + regulator-allow-set-load; + regulator-allowed-modes = ; + }; + + vreg_l9a: ldo9 { + regulator-name = "vreg_l9a"; + regulator-min-microvolt = <2970000>; + regulator-max-microvolt = <3544000>; + regulator-initial-mode = ; + regulator-allow-set-load; + regulator-allowed-modes = ; + }; + }; + + regulators-1 { + compatible = "qcom,pmm8654au-rpmh-regulators"; + qcom,pmic-id = "c"; + + vreg_l1c: ldo1 { + regulator-name = "vreg_l1c"; + regulator-min-microvolt = <1140000>; + regulator-max-microvolt = <1260000>; + regulator-initial-mode = ; + regulator-allow-set-load; + regulator-allowed-modes = ; + }; + + vreg_l2c: ldo2 { + regulator-name = "vreg_l2c"; + regulator-min-microvolt = <900000>; + regulator-max-microvolt = <1100000>; + regulator-initial-mode = ; + regulator-allow-set-load; + regulator-allowed-modes = ; + }; + + vreg_l3c: ldo3 { + regulator-name = "vreg_l3c"; + regulator-min-microvolt = <1100000>; + regulator-max-microvolt = <1300000>; + regulator-initial-mode = ; + regulator-allow-set-load; + regulator-allowed-modes = ; + }; + + vreg_l4c: ldo4 { + regulator-name = "vreg_l4c"; + regulator-min-microvolt = <1100000>; + regulator-max-microvolt = <1300000>; + regulator-initial-mode = ; + /* + * FIXME: This should have regulator-allow-set-load but + * we're getting an over-current fault from the PMIC + * when switching to LPM. + */ + }; + + vreg_l5c: ldo5 { + regulator-name = "vreg_l5c"; + regulator-min-microvolt = <1100000>; + regulator-max-microvolt = <1300000>; + regulator-initial-mode = ; + regulator-allow-set-load; + regulator-allowed-modes = ; + }; + + vreg_l6c: ldo6 { + regulator-name = "vreg_l6c"; + regulator-min-microvolt = <1620000>; + regulator-max-microvolt = <1980000>; + regulator-initial-mode = ; + regulator-allow-set-load; + regulator-allowed-modes = ; + }; + + vreg_l7c: ldo7 { + regulator-name = "vreg_l7c"; + regulator-min-microvolt = <1620000>; + regulator-max-microvolt = <2000000>; + regulator-initial-mode = ; + regulator-allow-set-load; + regulator-allowed-modes = ; + }; + + vreg_l8c: ldo8 { + regulator-name = "vreg_l8c"; + regulator-min-microvolt = <2400000>; + regulator-max-microvolt = <3300000>; + regulator-initial-mode = ; + regulator-allow-set-load; + regulator-allowed-modes = ; + }; + + vreg_l9c: ldo9 { + regulator-name = "vreg_l9c"; + regulator-min-microvolt = <1650000>; + regulator-max-microvolt = <2700000>; + regulator-initial-mode = ; + regulator-allow-set-load; + regulator-allowed-modes = ; + }; + }; + + regulators-2 { + compatible = "qcom,pmm8654au-rpmh-regulators"; + qcom,pmic-id = "e"; + + vreg_s4e: smps4 { + regulator-name = "vreg_s4e"; + regulator-min-microvolt = <970000>; + regulator-max-microvolt = <1520000>; + regulator-initial-mode = ; + }; + + vreg_s7e: smps7 { + regulator-name = "vreg_s7e"; + regulator-min-microvolt = <1010000>; + regulator-max-microvolt = <1170000>; + regulator-initial-mode = ; + }; + + vreg_s9e: smps9 { + regulator-name = "vreg_s9e"; + regulator-min-microvolt = <300000>; + regulator-max-microvolt = <570000>; + regulator-initial-mode = ; + }; + + vreg_l6e: ldo6 { + regulator-name = "vreg_l6e"; + regulator-min-microvolt = <1280000>; + regulator-max-microvolt = <1450000>; + regulator-initial-mode = ; + regulator-allow-set-load; + regulator-allowed-modes = ; + }; + + vreg_l8e: ldo8 { + regulator-name = "vreg_l8e"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1950000>; + regulator-initial-mode = ; + regulator-allow-set-load; + regulator-allowed-modes = ; + }; + }; +}; + &i2c18 { clock-frequency = <400000>; pinctrl-0 = <&qup_i2c18_default>; -- 2.37.2