Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1576608pxb; Tue, 8 Feb 2022 22:52:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJwuVokZTcBGF5Vw4njzg5uRPcDnCq6zh/KQyIWrzXC+xtHPPLKwRMslnAGBVgD8Nhc7rger X-Received: by 2002:a17:90b:4acb:: with SMTP id mh11mr1013890pjb.72.1644389565397; Tue, 08 Feb 2022 22:52:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644389565; cv=none; d=google.com; s=arc-20160816; b=kusP/+SGT/ywJ6I1MJT0XqxPRVNulR7nH1yD7zxpTvwSGPCtS6AuylRdWu9lzaxC/h g2M2UMCHfcAd1gkLN9XtjKnFyr0/fYB8OXxeXy3MsFKOflL+FJocepsME8n0DY3Enmzr NShyhIomtoKyaRpN7+4Ert4tS7OLih19LKOPLJYFUpTtQ2uNC4pnKnjr6ATzxRS/jYez yo+nnAZjAadCZf4Oyn85zuvxFSS4vP9R86WeoEIOpeT+qttfslbt9ZtM36TzwyEecsQr rmH+enPhR174F2o2pc4E9AZLioahwoq6X+gpN7X5hb02VrGIfIuEYzJ9Yc2BMbrdt7t9 h+rQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:message-id:user-agent :references:in-reply-to:subject:cc:to:from:date:mime-version :dkim-signature:dkim-signature; bh=AEtROBqGP+jR5/7k+vesyxPbPrG5TrVHsHV0dRCttac=; b=feqMiMmUfczGCkIUh4YTMHl6A3NE0QBevCiz0rnEIRJcTVv6oHwe8ryKX1qGndpeG1 JwLhcg7mkEb150yB8IBpwev4ty1AK0ks1scE27AsLqejxEGA3tOEXIzuP+DsJXs25mlU RfhRr61Gf9T9T3+hP41paugHt4tbb91I4VGo1U4aK5MU2SNLntcMXfiOK4eknRSlofHC KSK2MVsatxBqbFPA+/j7Nkhl9mh0DiVSM7v1j7KxWPvaGsKrZGnHuT0Eb+zfYH6wGrh0 Mom4iqpIF7MLT3vaRCkuTvKvnxNOqm/LS97HbK0Oio3eNRrVYcj2HtrQeTtJEub4Q4NH yLng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ansari.sh header.s=default header.b=rByPbPnP; dkim=pass header.i=@ansari.sh header.s=default header.b=ZowXWhFx; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=ansari.sh Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id t76si2020723pfc.56.2022.02.08.22.52.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Feb 2022 22:52:45 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@ansari.sh header.s=default header.b=rByPbPnP; dkim=pass header.i=@ansari.sh header.s=default header.b=ZowXWhFx; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=ansari.sh Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A49FEC1038CD; Tue, 8 Feb 2022 22:30:11 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236661AbiBGVIl (ORCPT + 99 others); Mon, 7 Feb 2022 16:08:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231445AbiBGVIf (ORCPT ); Mon, 7 Feb 2022 16:08:35 -0500 Received: from fwd1.porkbun.com (fwd1.porkbun.com [52.10.174.57]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B91F9C0401DC; Mon, 7 Feb 2022 13:08:32 -0800 (PST) Received: by fwd1.porkbun.com (Postfix, from userid 497) id 2B02241D0D; Mon, 7 Feb 2022 21:08:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ansari.sh; s=default; t=1644268112; bh=AEtROBqGP+jR5/7k+vesyxPbPrG5TrVHsHV0dRCttac=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=rByPbPnPa+x8igDKssb1ZXs3Nq8PdEeFMpTk2fePlNXhOqBzm8j2dILWc5UryruxT 4HtekvThgUKzYRxUQctWKopmhknG8Ngrovei5fGBdWXzBXgKhIe1Q0H5BvnoDShn1/ A4OJgFFZcntes+z+JpPQCz1xtcXqUMd+79KbVywo= X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net X-Spam-Level: X-Spam-Status: No, score=-6.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLACK autolearn=unavailable autolearn_force=no version=3.4.6 Received: from webmail.porkbun.com (unknown [35.86.129.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: rayyan@ansari.sh) by fwd1.porkbun.com (Postfix) with ESMTPSA id 40DFA41BD1; Mon, 7 Feb 2022 21:08:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ansari.sh; s=default; t=1644268099; bh=AEtROBqGP+jR5/7k+vesyxPbPrG5TrVHsHV0dRCttac=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=ZowXWhFxvTLt67TGpC0v5YQ1O65hMBhkNW0QviykJ92mkzCyS+M0GKxfAOTbGruLT Ac0fhz2G2d3xa521urTiC229ZUDPenFchxg3aaHH3tlQqWZy6sHUAJs+tAmonWHGLP dwzFA1tkxh76+DUKFpDSCspRn4W0gfJSvoEnbFLQ= MIME-Version: 1.0 Date: Mon, 07 Feb 2022 21:08:19 +0000 From: rayyan@ansari.sh To: Luca Weiss Cc: linux-arm-msm@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Vladimir Lypak , Konrad Dybcio , Andy Gross , Bjorn Andersson , Rob Herring , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 11/15] arm64: dts: qcom: Add PM8953 PMIC In-Reply-To: <20220112194118.178026-12-luca@z3ntu.xyz> References: <20220112194118.178026-1-luca@z3ntu.xyz> <20220112194118.178026-12-luca@z3ntu.xyz> User-Agent: Roundcube Webmail/1.4.11 Message-ID: <5e2c2d486c1d1f4794328f7b6c9035d1@ansari.sh> X-Sender: rayyan@ansari.sh Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2022-01-12 19:41, Luca Weiss wrote: > From: Vladimir Lypak > > Add a base DT for PM8953 PMIC, commonly used with MSM8953. > > Signed-off-by: Vladimir Lypak > Signed-off-by: Luca Weiss > Reviewed-by: Konrad Dybcio > --- > arch/arm64/boot/dts/qcom/pm8953.dtsi | 90 ++++++++++++++++++++++++++++ > 1 file changed, 90 insertions(+) > create mode 100644 arch/arm64/boot/dts/qcom/pm8953.dtsi > > diff --git a/arch/arm64/boot/dts/qcom/pm8953.dtsi > b/arch/arm64/boot/dts/qcom/pm8953.dtsi > new file mode 100644 > index 000000000000..102555b3f313 > --- /dev/null > +++ b/arch/arm64/boot/dts/qcom/pm8953.dtsi > @@ -0,0 +1,90 @@ > +// SPDX-License-Identifier: BSD-3-Clause > +/* Copyright (c) 2022, The Linux Foundation. All rights reserved. */ > + > +#include > +#include > +#include > +#include > + > +&spmi_bus { > + pmic@0 { > + compatible = "qcom,pm8953", "qcom,spmi-pmic"; > + reg = <0 SPMI_USID>; > + #address-cells = <1>; > + #size-cells = <0>; > + > + rtc@6000 { > + compatible = "qcom,pm8941-rtc"; > + reg = <0x6000>, <0x6100>; > + reg-names = "rtc", "alarm"; > + interrupts = <0x0 0x61 0x1 IRQ_TYPE_EDGE_RISING>; > + }; > + > + pm8953_pon: pon@800 { > + compatible = "qcom,pm8916-pon"; > + reg = <0x800>; > + mode-bootloader = <0x2>; > + mode-recovery = <0x1>; > + > + pwrkey { > + compatible = "qcom,pm8941-pwrkey"; > + interrupts = <0x00 0x08 0 IRQ_TYPE_EDGE_BOTH>; > + debounce = <15625>; > + bias-pull-up; > + linux,code = ; > + }; > + > + pm8953_resin: resin { > + compatible = "qcom,pm8941-resin"; > + interrupts = <0x00 0x08 1 IRQ_TYPE_EDGE_BOTH>; > + debounce = <15625>; > + bias-pull-up; > + status = "disabled"; > + }; > + }; > + > + temp-alarm@2400 { > + compatible = "qcom,spmi-temp-alarm"; > + reg = <0x2400>; > + interrupts = <0x0 0x24 0x0 IRQ_TYPE_EDGE_RISING>; > + io-channels = <&pm8953_vadc 0x08>; > + io-channel-names = "thermal"; > + #thermal-sensor-cells = <0x00>; > + }; > + > + pm8953_vadc: vadc@3100 { > + compatible = "qcom,spmi-vadc"; > + reg = <0x3100>; > + interrupts = <0x00 0x31 0x00 0x01>; > + #address-cells = <1>; > + #size-cells = <0>; > + #io-channel-cells = <1>; > + > + die_temp@8 { > + reg = ; > + }; > + ref_625mv@9 { > + reg = ; > + }; > + ref_1250v@a { > + reg = ; > + }; > + ref_buf_625mv@c { > + reg = ; > + }; > + ref_gnd@e { > + reg = ; > + }; > + ref_vdd@f { > + reg = ; > + }; Could you use the generic names for each VADC channel as recommended in qcom,spmi-vadc.yaml? > + }; > + }; > + > + pmic@1 { > + compatible = "qcom,pm8953", "qcom,spmi-pmic"; > + reg = <1 SPMI_USID>; > + #address-cells = <1>; > + #size-cells = <0>; > + }; > +};