Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2052129pxb; Wed, 9 Feb 2022 09:53:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJzPkirDxjwCOpchiEmEFB0zFtpp99aXdnZRj2jhzXy1DdxgOPkW8a7yNSDjPwh2xmr/OJdx X-Received: by 2002:aa7:d7c3:: with SMTP id e3mr3737771eds.417.1644429221435; Wed, 09 Feb 2022 09:53:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644429221; cv=none; d=google.com; s=arc-20160816; b=E6Dmq6Twz5/QRmlEsLRDUyW5+iGm0+O1/nFpHJWCyHL7IVm/HfL2ttftAFZ3OkqQvj +9iCJLSIFWORg53ZOK2HeYB9EgXYTOacQQwYk3hpz6/eFG0K7XxCszyg5tstbDNlotqz Dl5tcBOFOgUpoSIALtJ/tyP7xsT4qkIv6OUm8sig3/Sk0rZBBeqW/55BGq9atqxSHSld ak9Yi3FUC2W4OvJJ2a+YaQITb9eRoLewPK21NBzAavmF+UxQ4Ogv6IXj9lLuLi6bJPzQ UmtF0NH9o7PxaLSlkWZaQNIICnDVwTYkV+ney4YN9yG5wzf/raCEQicXtLSGFFduORP3 eqyA== 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=na7xW0UcmevfG+Vzc+SF/qFmYtwaEfbasz0l3EQ9fgY=; b=0raxCgu+Q1cmqRAla2PyAUeYwlXJeVqEaNAjUyKwRXun95dLVdOyaNB5C7c7aDSC9j 9j356MOHK1rnYu00iQClghfUYeoY3nZSH/4/dsWla6NcPeGP755iYjjiSlC/wVzCKXeN BvsPYFAh8NhBTTQRqjGMycmMqx3rgrgKAxySt8rrpHrprrOLoCFPzxMHxnMw0QOVp/Fh hHjXa/f+o5enWnE6Ot2r3vTKaCrDN1ythTd0WyeQiLU829tgkZMfwrnzrndCfELFQT+Q DA8MpvZ9EWgN4aMLSSikioNVfHGPael9Mg6kcmWOtiC6PSEvACvMRgnyHQngeHtfYzT3 Hr5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ansari.sh header.s=default header.b=C1pHPIxN; dkim=pass header.i=@ansari.sh header.s=default header.b=iqbAOYJD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hr8si11138241ejc.723.2022.02.09.09.53.13; Wed, 09 Feb 2022 09:53:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ansari.sh header.s=default header.b=C1pHPIxN; dkim=pass header.i=@ansari.sh header.s=default header.b=iqbAOYJD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=ansari.sh Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236975AbiBIQaR (ORCPT + 99 others); Wed, 9 Feb 2022 11:30:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234737AbiBIQaO (ORCPT ); Wed, 9 Feb 2022 11:30:14 -0500 X-Greylist: delayed 528 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Wed, 09 Feb 2022 08:30:16 PST Received: from fwd1.porkbun.com (fwd1.porkbun.com [52.10.174.57]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E40E4C0613C9; Wed, 9 Feb 2022 08:30:16 -0800 (PST) Received: by fwd1.porkbun.com (Postfix, from userid 497) id B1FED40F95; Wed, 9 Feb 2022 16:19:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ansari.sh; s=default; t=1644423687; bh=na7xW0UcmevfG+Vzc+SF/qFmYtwaEfbasz0l3EQ9fgY=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=C1pHPIxNQi/h1f2RvhJfT1tI6ceLC6NYOASTQ5CzxTiLyy0NWyP1tdvY5E3Fha/OH tQ7WOm2UTgdUL10RKgn/9HclH4GOBrXMh9HBZsueij3FBoUe8HnT9izKqpj4LuRAIB 48kbkUwzgTkKfaDCDWikCSxwl1E2WfPK9TXbixOY= X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 A00D943588; Wed, 9 Feb 2022 16:19:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ansari.sh; s=default; t=1644423560; bh=na7xW0UcmevfG+Vzc+SF/qFmYtwaEfbasz0l3EQ9fgY=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=iqbAOYJD8e6WhMLQHy4VtjP6PH+6cUPl8kFvrViFRxgnV6HkTgbvFa+4aFsNfWNnG qmK+HrLFApA4Vlsc/FJS/BfFwVtxis3LZkfzf8KRM6rc7PpkWLJf9lTnUtOsK3SycB 9n3TVfbzJRg+OcSdxr2/yvDDLqr1C9zCqGBnSWWs= MIME-Version: 1.0 Date: Wed, 09 Feb 2022 16:19:19 +0000 From: Rayyan Ansari 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: 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>; > + }; Could you sort the nodes by order? The rtc@6000 node should be after vadc@3100. > + > + 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>; Could you use VADC_DIE_TEMP here instead of 0x08 like in qcom-spmi-temp-alarm.txt? > + io-channel-names = "thermal"; > + #thermal-sensor-cells = <0x00>; This should be "#thermal-sensor-cells = <0>;" as recommended by docs. > + }; > + > + 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>; > + }; > +}; With this sorted, add my Reviewed-by. Reviewed-by: Rayyan Ansari