Received: by 2002:a05:7412:a9a3:b0:f9:93eb:408e with SMTP id o35csp62571rdh; Wed, 20 Dec 2023 23:08:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IFqu/EdiHtqQejWPzTVEvdSUQ6hd7Ld0Gvo0l2RWmuaM4DLdgyZPLCA+JWOMPnJ1glTbGmV X-Received: by 2002:a17:906:2207:b0:a1f:9f16:2cfd with SMTP id s7-20020a170906220700b00a1f9f162cfdmr10688166ejs.63.1703142497571; Wed, 20 Dec 2023 23:08:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703142497; cv=none; d=google.com; s=arc-20160816; b=BLIVlRc9NsAc3N5hbhxGqH7Hqci3FWjtsEGiGUvJR7gaMHtaD7Gf8Qc1C4QKsj/cMk HfcLwRzhEjDkP4IYG1btdezha5CfCFyul5y4EnUpEEhR6qRDfYLwtbZck2e8bvhOo2+V dJ5R0e1nI7d4UcV76daLiAIvjuzGxF7IlpSwHogGEBU9Udn6I9XpKcTzpXYll4ZOGZpp u57LXYLbGl3Z4iaX5nX2HTm6LGzYTxiPf60I95kfQy8clK558D2igoq4M08IAATxXfrL GKwo56Sypcci8zU21IsdVfo39QHjO7VZDS/oCvSnYPu4T8sZs1staeivGpWt80lmUZDE 4etw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=x3mqWSg4PAag/N8HBMk+GPM7NiqUuxDSinfcR+EyoZg=; fh=L3AM7+I5pCBod0S4MR2oiq9JGSLDML4h1Ls6b2vxIm8=; b=g5LVquDbMzrOCjwWXiLtlb31wjn/F5olC+Y3tjKsaYG5mvYqEZwoo217zXn2rNqwHJ fXjyjFAsNlYqF8h20QhUeLBFakwq2hzhfo3JwMqIFaVnnrFewbIZaabjCUHpg9a+QwDI sbvbBV+afW4gbj9/q+4XWgbxMopzCX2X1gVu1lfJBKFLVIH6l/rHzazGz+4UX3f+Al9B MqvqzqkXI6fHcv3NB5L+ug9NyOs5bjpGh/kqOGvTqOMIDVaf26fq8KQffBzbovZ+PFzn 2lFkHfSfw+kAfR0OzF/96vp4ZIuPeRuKMERPlhKxxSPMzxb1SnoC7Cg6SBbA0yos9SLy gYuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PY7vT8jZ; spf=pass (google.com: domain of linux-kernel+bounces-7916-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7916-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id c9-20020a1709060fc900b00a26a6b53272si242776ejk.337.2023.12.20.23.08.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 23:08:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-7916-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PY7vT8jZ; spf=pass (google.com: domain of linux-kernel+bounces-7916-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7916-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 545871F23A1D for ; Thu, 21 Dec 2023 07:08:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0CF13D310; Thu, 21 Dec 2023 07:08:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="PY7vT8jZ" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-yw1-f174.google.com (mail-yw1-f174.google.com [209.85.128.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 80C28C2FD for ; Thu, 21 Dec 2023 07:08:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-yw1-f174.google.com with SMTP id 00721157ae682-5d226f51f71so5361307b3.3 for ; Wed, 20 Dec 2023 23:08:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703142483; x=1703747283; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=x3mqWSg4PAag/N8HBMk+GPM7NiqUuxDSinfcR+EyoZg=; b=PY7vT8jZP3nkYNsSaZr+1CtHZHTrAPvNAr8kHQKXpZLxFWykaWFxaCKscuXveJmzMV KpziNfR0yUSvW7CK4Z2r/y36JDiiWVIrs55BRK6Q+3ezQBM/LOb50mU0PGkbqm7jTS6p 7MYG1KI+jb7bKv/0IMCKD8Kid2pzBMK4EzrlSAmrX0HyAK2RRHGFYvBRoZCNSLI3cQsI fx0gpJ0/5u2hAr4IxGWS2/AiSGUaWB22RGtztsYZvnObgc41o0C3XR9ra9ydKdkgGCg8 5Fo9TrSVp8DCE6M4IXAzsFMNX6wbZM9C/aezuMy+ilIad444lFzy/x9f19spYMmz+6ly hiig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703142483; x=1703747283; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=x3mqWSg4PAag/N8HBMk+GPM7NiqUuxDSinfcR+EyoZg=; b=NjEvUtbAgaRhtnEt54p3VuMzuqL7qv3jzjnYTc3AUC8+Y/oHSZyjHFX+hTphThs+3Q bvimeLrDaMQ9h7IHue3lu7w7mzo7Qgy2tAnTmflF43oTqx3xRD2BGIlKwTis4Z0SIlKC V1SggtDbK0DoAvdqXBiFxEUcKANa8PvJs9iuzzCA+fBcUJKu1xoUZsoFwESwHf/Wj0TX eyqAn38FH1qm2Ab5IJdiA5JK83xiPKCBCuGg9swliofd4/N3KO7BJ103lF/S7taxrE7W Ut4iqzXaOTUaGb5imBfqWNhZu4oZfZtLOZwg0nRgn10Op0hkj5zBCXWy0WVraiXskYCs 2CYw== X-Gm-Message-State: AOJu0YxONyJO52ItqbmnCNp/+Qef6dlxmcJAW4tDVl2LoDKtrGFPtMu/ ww5bmQdE7dcuAHUGlkv+aUyaGsdUwfe1eEtSKbA95Q== X-Received: by 2002:a81:9215:0:b0:5d7:1940:dd71 with SMTP id j21-20020a819215000000b005d71940dd71mr851157ywg.71.1703142483496; Wed, 20 Dec 2023 23:08:03 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20231220-sa8295p-gpu-v1-0-d8cdf2257f97@quicinc.com> <20231220-sa8295p-gpu-v1-6-d8cdf2257f97@quicinc.com> In-Reply-To: <20231220-sa8295p-gpu-v1-6-d8cdf2257f97@quicinc.com> From: Dmitry Baryshkov Date: Thu, 21 Dec 2023 09:07:52 +0200 Message-ID: Subject: Re: [PATCH 6/8] arm64: dts: qcom: sa8295p-adp: add max20411 To: Bjorn Andersson Cc: Bjorn Andersson , Konrad Dybcio , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Taniya Das , Ulf Hansson , Johan Hovold , Catalin Marinas , Will Deacon , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="UTF-8" On Thu, 21 Dec 2023 at 05:52, Bjorn Andersson wrote: > > From: Bjorn Andersson > > The SA8295P ADP has a MAX20411 LDO regulator on I2C 12, supplying the > VDD_GFX pads. Enable the bus and add the maxim,max20411 device on the > bus. > > Signed-off-by: Bjorn Andersson > --- > arch/arm64/boot/dts/qcom/sa8295p-adp.dts | 40 ++++++++++++++++++++++++++++++++ > 1 file changed, 40 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sa8295p-adp.dts b/arch/arm64/boot/dts/qcom/sa8295p-adp.dts > index fd253942e5e5..e16406c9c19d 100644 > --- a/arch/arm64/boot/dts/qcom/sa8295p-adp.dts > +++ b/arch/arm64/boot/dts/qcom/sa8295p-adp.dts > @@ -266,6 +266,26 @@ &dispcc1 { > status = "okay"; > }; > > +&i2c12 { > + pinctrl-names = "default"; > + pinctrl-0 = <&qup1_i2c4_state>; > + > + status = "okay"; > + > + vdd_gfx: regulator@39 { > + compatible = "maxim,max20411"; > + reg = <0x39>; > + > + regulator-min-microvolt = <800000>; > + regulator-max-microvolt = <968750>; > + > + enable-gpios = <&pmm8540a_gpios 2 GPIO_ACTIVE_HIGH>; > + > + pinctrl-names = "default"; > + pinctrl-0 = <&max20411_en>; > + }; > +}; > + > &mdss0 { > status = "okay"; > }; > @@ -476,6 +496,10 @@ &pcie4_phy { > status = "okay"; > }; > > +&qup1 { > + status = "okay"; > +}; > + > &qup2 { > status = "okay"; > }; > @@ -728,4 +752,20 @@ wake-n-pins { > bias-pull-up; > }; > }; > + > + qup1_i2c4_state: qup1-i2c4-state { > + pins = "gpio0", "gpio1"; > + function = "qup12"; > + > + drive-strength = <2>; > + bias-pull-up; > + }; > +}; > + > +&pmm8540a_gpios { I think pmm8540a_gpios comes before tlmm in the dictionary order. Other than that LGTM > + max20411_en: max20411-en-state { > + pins = "gpio2"; > + function = "normal"; > + output-enable; > + }; > }; -- With best wishes Dmitry