From patchwork Fri Nov 18 15:20:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 22381 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp262895wrr; Fri, 18 Nov 2022 07:37:28 -0800 (PST) X-Google-Smtp-Source: AA0mqf6hAs4bpeQX1vbWN0QEwnq3iaLIfoufoSXaxVtzzD/pkmT1RE5X8L6g3A+Yt1NnCFT3mnc/ X-Received: by 2002:a17:902:f111:b0:186:ee56:4a1e with SMTP id e17-20020a170902f11100b00186ee564a1emr8142782plb.167.1668785848432; Fri, 18 Nov 2022 07:37:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668785848; cv=none; d=google.com; s=arc-20160816; b=OBzoNcv5fROTlF+2g4CvGskIaed6yKKFFENZJTwHXIxwN32yrikGrQG9i9qcVpKLSb xpHW2wTpc4rrIYF8UaWTxxctYGHnFQIeEXGmwU3oggkpAXVhm3lQ1KM50e5Wp28saWjB KZSWdllxfTBCARJ1jiTSF6OLTGo3iva4LAiw2CAEMnAFPj36fPxy7tft1dyKDC2i9yDY YwOR7zdrtq3m8H2ODRnBnlrTuh1h8QWyUVry1sfUQUApGl4dpwMwhBSgcasMT2Ve896i cFOaw55XHDaKRe2yQuo2LDXRwzX3ypzkp+8S/je05JFJDjayqj1S9WtCxW7d9my9xzle Wvww== 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=Mt1Oc0ujq+8ARYNZpTY4my+ocgdokMPqWBidtFrPicc=; b=hLHRjtpQ10Ie5eyUuHkksUO2OAZtokxL60R7WIy31qE//jpZasuyeo4mBpo6QouXNb pdD3WtC3nAhhtEAXJXavOTkcnClVwNNgUnSRknIrBRVNjeFmkDR+ojRUNbz3QsouI636 bkw+XrCI3uXG+Trq30vfyPTE+hzZIzRLoXip7hz6l4aliw5VRfpTqFhdMbxD4/iZpQSo uqbyp1J0VqsgbTND/hxbugHrmwwdCEBGhC9AyvfCuRNExZXNxL6+rcRO6oTBLeosN4c9 JB8IUtg4ZqZ64MDaQDZJ7r/HydwtPSYLfrNv6F6teX/ivdpLEyyPg6Zr5zJiDuOOt1vW iZCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=veZLUju0; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d22-20020a631d16000000b00464858cf6b1si3679354pgd.192.2022.11.18.07.37.13; Fri, 18 Nov 2022 07:37:28 -0800 (PST) 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=@linaro.org header.s=google header.b=veZLUju0; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242235AbiKRPUi (ORCPT + 99 others); Fri, 18 Nov 2022 10:20:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241919AbiKRPUg (ORCPT ); Fri, 18 Nov 2022 10:20:36 -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 B18481CB08 for ; Fri, 18 Nov 2022 07:20:35 -0800 (PST) Received: by mail-lj1-x232.google.com with SMTP id b9so7172925ljr.5 for ; Fri, 18 Nov 2022 07:20:35 -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=Mt1Oc0ujq+8ARYNZpTY4my+ocgdokMPqWBidtFrPicc=; b=veZLUju0OZcLrca1Tev5vJEV7hltIl62XDCxKODQ7PQNYvXwgWv3nvesnEEirRUohl WhWgbXoZbyh1Sg4IMRI9qfX9O/mVR1YpWEeC54qRL0iDTxGVXcOxlhRmOO8DbGV8BZqD 0KnQrkXnAQeSXMQGFYN5CW5sude1YMPaEEG9fCmSnJofMGn1ht4V//QLi5osUMWZCwWB RyW6/tBlkq8AvndrloX6PNOGxsmvnKz9nUdsWcbp6NQfepPC4S7EBsNNxoJBKZpicFM1 Cdj4D20aEsaeKGjZrQocGO5Fq7gi2PZ1kAVK4sOPQQ/uw9/D1kgkkaalKVvoYQxpqFNQ 2Clw== 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=Mt1Oc0ujq+8ARYNZpTY4my+ocgdokMPqWBidtFrPicc=; b=2IxyHoRCwo9fDe0kC3HUaSQgfTS5ixW2wWgDpu6WiQizOfb30tDG2lyoAht0iPNusR yMb5F0VLmSb6RhUE191/TNNm0VTNpZRC+JYKDSXEQMwf6x7pkjXIWjuJT/q4jqBJubqo bNBTkZR7lF4s9oYFn3D/+fb7Gp/7jhHYYdtB/X0e3cQmwa2dDYOtrdtWSLPW9knpthC+ M0Po2pO3Ax5Sq2/5G7iWA09JeDBFK6WqnXiXUB2ws8WaIZK0sJgaqdVpUWsJ8B0lEsMz Tho4VXsskZtj0hxuVEYnxoXPimjhTlpGtK6p1rtP9TdtCVD1kjqOZmKA6qS9xZBiptGu lb5g== X-Gm-Message-State: ANoB5pl7HtHCYdFuyjP6fLGup2CQD7eovAeWAConBfCgLhHu5EwT76nq 9TyPN61S0ioL+QCm703VPp6QQQ== X-Received: by 2002:a05:651c:1250:b0:279:d87:7bc6 with SMTP id h16-20020a05651c125000b002790d877bc6mr2564785ljh.225.1668784834094; Fri, 18 Nov 2022 07:20:34 -0800 (PST) Received: from localhost.localdomain ([194.29.137.22]) by smtp.gmail.com with ESMTPSA id 12-20020ac25f0c000000b004948ddb4e4dsm690597lfq.301.2022.11.18.07.20.32 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 18 Nov 2022 07:20:33 -0800 (PST) From: Konrad Dybcio To: linux-arm-msm@vger.kernel.org, andersson@kernel.org, agross@kernel.org, krzysztof.kozlowski@linaro.org Cc: patches@linaro.org, Konrad Dybcio , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] arm64: dts: qcom: sm8350-sagami: Configure SLG51000 PMIC on PDX215 Date: Fri, 18 Nov 2022 16:20:27 +0100 Message-Id: <20221118152028.59312-2-konrad.dybcio@linaro.org> X-Mailer: git-send-email 2.37.1 (Apple Git-137.1) In-Reply-To: <20221118152028.59312-1-konrad.dybcio@linaro.org> References: <20221118152028.59312-1-konrad.dybcio@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749848790117945352?= X-GMAIL-MSGID: =?utf-8?q?1749848790117945352?= Remove the mention of this PMIC from the common DTSI, as it's not used on PDX214. Add the required nodes to support it on PDX215. Signed-off-by: Konrad Dybcio --- .../qcom/sm8350-sony-xperia-sagami-pdx215.dts | 66 +++++++++++++++++++ .../dts/qcom/sm8350-sony-xperia-sagami.dtsi | 2 +- 2 files changed, 67 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sm8350-sony-xperia-sagami-pdx215.dts b/arch/arm64/boot/dts/qcom/sm8350-sony-xperia-sagami-pdx215.dts index c74c973a69d2..d4afaa393c9a 100644 --- a/arch/arm64/boot/dts/qcom/sm8350-sony-xperia-sagami-pdx215.dts +++ b/arch/arm64/boot/dts/qcom/sm8350-sony-xperia-sagami-pdx215.dts @@ -12,6 +12,72 @@ / { compatible = "sony,pdx215-generic", "qcom,sm8350"; }; +&i2c13 { + 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>; + }; + }; + }; +}; + +&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; + }; +}; + &tlmm { gpio-line-names = "APPS_I2C_0_SDA", /* GPIO_0 */ "APPS_I2C_0_SCL", diff --git a/arch/arm64/boot/dts/qcom/sm8350-sony-xperia-sagami.dtsi b/arch/arm64/boot/dts/qcom/sm8350-sony-xperia-sagami.dtsi index 6ae700e72d1e..8f32b2799bcb 100644 --- a/arch/arm64/boot/dts/qcom/sm8350-sony-xperia-sagami.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8350-sony-xperia-sagami.dtsi @@ -3,6 +3,7 @@ * Copyright (c) 2021, Konrad Dybcio */ +#include #include #include "sm8350.dtsi" #include "pm8350.dtsi" @@ -506,7 +507,6 @@ &i2c13 { clock-frequency = <100000>; /* Qualcomm PM8008i/PM8008j (?) @ 8, 9, c, d */ - /* Dialog SLG51000 CMIC @ 75 */ }; &i2c15 {