From patchwork Thu Dec 29 10:32:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 638086 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 102C9C4708D for ; Thu, 29 Dec 2022 10:33:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233085AbiL2Kct (ORCPT ); Thu, 29 Dec 2022 05:32:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233201AbiL2Kc3 (ORCPT ); Thu, 29 Dec 2022 05:32:29 -0500 Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F107EE27 for ; Thu, 29 Dec 2022 02:32:26 -0800 (PST) Received: by mail-lf1-x135.google.com with SMTP id b3so26988160lfv.2 for ; Thu, 29 Dec 2022 02:32:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=x5CzpVg95POFzeTwzqnlV+4RYF9UaX7PA+joTg3brhk=; b=o/Kp6wDqmmyOQeik9o1Ct9pTdOkmbqYwMJRctWiKoT69CTeREP1bGaLahI89fua4GL CxF8Bw/aRDDElMGD2yBA8PP32zylu+FHCfDt5B6LgS7mTneVU3EGonCNsOveHZ8ilan6 hpTaTrVBdpypOq57R2ovvbuCQh+mDregK4MKmVRn4rIWCcmT6Q99d2M/ZmnUdnNxaSib 17wPx9C1a/BTdKEfC99OEYYN/ExGHYIAxegGv0Xm7EMgZyTL4ZoEh4HPjUBsGE3oXvY2 5JozILjG6YjC6rvdl4BQI+bnrZOxG/o/GQTUrcTEpeBe7Tn2pXKu+3zXtltjJ5dS/9n4 vaMQ== 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 :subject:date:message-id:reply-to; bh=x5CzpVg95POFzeTwzqnlV+4RYF9UaX7PA+joTg3brhk=; b=FMri7mWTfQTNplZt6i+A/0C+df1gZHCgxQvAHVFlgsoT431MFEfGu8pkfdCuz4BXQy eeM/2p/Zg+alvtiE7eNVCHcG2RKbiXr9KEkNun/e7VXjxYCcy6N91jXpkw8IKMxj6BgN GJUq4Jvp47zhF9ak6gGRQs2c17WZxocJg81IWpVm5YrhTI2VaPJGQQMDMRd+K5j7x+t9 WXikz8GhFaeN/ACNq6x1pZxBI+zCKFI0Dmsna4xwaRfpEWMR/6KQZoy8uI7bA7wWCH+u tCoITxKq1QD22NKKqsB3puTm3dPIyr64TK06Lfy1ivI2W/9YrHPHA+FeF4AX1DvKGtfS Yv9w== X-Gm-Message-State: AFqh2kopFOLyQSdVdMNZW1GddL+XMyK8c3f3NdGLlTX8A1Fq4HqXqoKP KSMaytFo5gphEIhgbq5f9L6uxw== X-Google-Smtp-Source: AMrXdXsT3QKQBp99Umq5n7BvdZ9gxZpz+t+mSJf4TJAT/1oTXgPsndAzzCkT1Zituu6YRYY7mQeTvQ== X-Received: by 2002:ac2:5ec9:0:b0:4b5:b6e8:bb53 with SMTP id d9-20020ac25ec9000000b004b5b6e8bb53mr7390757lfq.24.1672309944440; Thu, 29 Dec 2022 02:32:24 -0800 (PST) Received: from localhost.localdomain (abyl184.neoplus.adsl.tpnet.pl. [83.9.31.184]) by smtp.gmail.com with ESMTPSA id m1-20020a056512114100b004a478c2f4desm2993526lfg.163.2022.12.29.02.32.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Dec 2022 02:32:24 -0800 (PST) From: Konrad Dybcio To: linux-arm-msm@vger.kernel.org, andersson@kernel.org, agross@kernel.org, krzysztof.kozlowski@linaro.org Cc: marijn.suijten@somainline.org, Vinod Koul , Konrad Dybcio , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 7/7] arm64: dts: qcom: sm8450-nagara: Configure SLG51000 PMIC Date: Thu, 29 Dec 2022 11:32:12 +0100 Message-Id: <20221229103212.984324-7-konrad.dybcio@linaro.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20221229103212.984324-1-konrad.dybcio@linaro.org> References: <20221229103212.984324-1-konrad.dybcio@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Nagara devices use the Dialog SLG51000 PMIC for powering some camera sensors. Add the required nodes to support it. Signed-off-by: Konrad Dybcio --- v1 -> v2: No changes .../dts/qcom/sm8450-sony-xperia-nagara.dtsi | 62 ++++++++++++++++++- 1 file changed, 61 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sm8450-sony-xperia-nagara.dtsi b/arch/arm64/boot/dts/qcom/sm8450-sony-xperia-nagara.dtsi index 15709d73b264..8869495c397e 100644 --- a/arch/arm64/boot/dts/qcom/sm8450-sony-xperia-nagara.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8450-sony-xperia-nagara.dtsi @@ -513,7 +513,58 @@ &i2c5 { clock-frequency = <400000>; status = "okay"; - /* Dialog SLG51000 CMIC @ 75 */ + pmic@75 { + compatible = "dlg,slg51000"; + reg = <0x75>; + dlg,cs-gpios = <&pm8350b_gpios 1 GPIO_ACTIVE_HIGH>; + + pinctrl-names = "default"; + pinctrl-0 = <&cam_pwr_a_cs>; + + regulators { + slg51000_a_ldo1: ldo1 { + regulator-name = "slg51000_a_ldo1"; + regulator-min-microvolt = <2400000>; + regulator-max-microvolt = <3300000>; + }; + + slg51000_a_ldo2: ldo2 { + regulator-name = "slg51000_a_ldo2"; + regulator-min-microvolt = <2400000>; + regulator-max-microvolt = <3300000>; + }; + + slg51000_a_ldo3: ldo3 { + regulator-name = "slg51000_a_ldo3"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <3750000>; + }; + + slg51000_a_ldo4: ldo4 { + regulator-name = "slg51000_a_ldo4"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <3750000>; + }; + + slg51000_a_ldo5: ldo5 { + regulator-name = "slg51000_a_ldo5"; + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <1200000>; + }; + + slg51000_a_ldo6: ldo6 { + regulator-name = "slg51000_a_ldo6"; + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <1200000>; + }; + + slg51000_a_ldo7: ldo7 { + regulator-name = "slg51000_a_ldo7"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <3750000>; + }; + }; + }; }; &i2c9 { @@ -612,6 +663,15 @@ vol_down_n: vol-down-n-state { }; &pm8350b_gpios { + cam_pwr_a_cs: cam-pwr-a-cs-state { + pins = "gpio1"; + function = "normal"; + qcom,drive-strength = ; + power-source = <1>; + drive-push-pull; + output-high; + }; + snapshot_n: snapshot-n-state { pins = "gpio5"; function = "normal";