Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1259514pxj; Fri, 18 Jun 2021 03:14:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx8VfaQd5R8kQbVsClSBGfLCppC9mmchNTpjCS3367KoeIlrP4+jyreyqxa2VUOLEfL/L6W X-Received: by 2002:a17:906:488a:: with SMTP id v10mr10079283ejq.383.1624011289103; Fri, 18 Jun 2021 03:14:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624011289; cv=none; d=google.com; s=arc-20160816; b=PB/PhXwFdGHOaw3Yis3wGTqYRdVRyu2njL8W8tAKJovSB1wJLBTHFdTNSxJo32QNeo jQ89usiOJsZbBoncoSnWOJ7fOJDEAhhKpXf0McyCmujm/SNA9k0zMcVhhmBgih5cuViI oqREN5dE2cMVgu+1B12jPTpERKDu3C8CQpIaF3bwGMrvZiUPvGPRfJn0e5M/WWgqM73S v7H6LHrKY0eBMsovZ8LdmHuoE0Zg+OZ7CLnMrd3Vy/Rn1boN5A3HWyCsInu1tpGs8USP nG/ign/sP2Mk8jEEqmfxjioS451W2tCgB31RfgzS8T7wOIdM8Uvy3UMTEPc7F55eUBOe NS2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=ziEgOzcP1HByIwM5tzkw38PrntEO3ToJbYWi+oRdGcs=; b=dxumY0IYeaeVYvfKvRnBrQqd/vW7DJi77AWhV6+qzTSxDqWTCNz/sqx/rWw0Xz1zYt PgQxYKI7CiEmDDPXFxqSQpjU1viFepeVotLqCCWFXYpP9RQD5j1cTYbA83SmUOCZegqp YOFUiRPyI85v32Yij1eprO1sUYDVZWkcg+QSl7DzQnpb4hSj/YNOmM2cVraaekoV4mgy EKVYAmYJAcOnxpvkz7uXDqdgjYYyZi1EUY1zn8O5jAx4FcnI7mFPKMXDa4qkRuULQxRj fZcZA7EOQYEzRdxZfIatL3AIE60iY3To1gvTibwloPEZegvfxkUIpldDwackSG2lrn0I ve8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PdJl0ncg; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gf1si2019399ejb.318.2021.06.18.03.14.25; Fri, 18 Jun 2021 03:14:49 -0700 (PDT) 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=@linaro.org header.s=google header.b=PdJl0ncg; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233325AbhFRKPB (ORCPT + 99 others); Fri, 18 Jun 2021 06:15:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231881AbhFRKPA (ORCPT ); Fri, 18 Jun 2021 06:15:00 -0400 Received: from mail-ot1-x32d.google.com (mail-ot1-x32d.google.com [IPv6:2607:f8b0:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 29E05C06175F for ; Fri, 18 Jun 2021 03:12:51 -0700 (PDT) Received: by mail-ot1-x32d.google.com with SMTP id k10-20020a056830168ab029044d922f6a45so805376otr.7 for ; Fri, 18 Jun 2021 03:12:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ziEgOzcP1HByIwM5tzkw38PrntEO3ToJbYWi+oRdGcs=; b=PdJl0ncgrhfekyPHp+KqwLByDJx2Zx1fUgbF2xiq4jALmjPa09pYQTcwt9o5SZ3FDq +mmWaE4r4lH84yr6Q/F09ayO2bq98b2RuKnwAaqZzUXy1D5F6sNGkfD1cdXOPGC+eBXT 3QnVHBsPfKkchYlmwi850FIBz+aseO7hgkfjWNoCil1YxCXyhg1OzuIstRmIUAoLA1gE T41vAbLC7LANLbus+TouLLqdAVDBCRPb5Yoihh14+97GnWw+k8u/txz2z7884qrYQeue NiQEl77YaIM5a9ZxsLj3JTYo+Y8GqNm4LfOvYqwVnXVzPbUQCSeROhWaZo8FGGC8D4Vt 9v9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ziEgOzcP1HByIwM5tzkw38PrntEO3ToJbYWi+oRdGcs=; b=ao8TyCmnOx8JYXzjBqvCpSo0/Ptiq2J94nXZcraAcy2+ZscWt0hsNOpaiMNCVpH5aN YCZ0zh6W79pklG+Vq9EamNV2iHIQSh6OxEbIANWAu1Q+fWdScGEK5q0c21rpqpJRijcZ Aldef/X965XP9nW01FcpBBgnov/RPr40ysM1hQH4ov8usWTIpeUDhum+/9cs5/+p244L sq9WKg7MQwAIkDGrNDmn/0X5wQTAgK4VsP5wO/1AVijDmj9Op3N8+6U6DmFr7CXpGH7l QDb4NHR14gr4uXT38EQ553meagl+3/J7MDMgXB5QKhOyaHvqftFuJYNrdxRiXyCLu8zD YVrQ== X-Gm-Message-State: AOAM533v3jZGEDaw7D0cc+3FrGDZByl28ijqGtFOJmHBdCp18Dy/8Xlb lt7EYqme2Nl8oTk+v+M8vXUCgLWv8LyUrHahPw58eg== X-Received: by 2002:a9d:74d4:: with SMTP id a20mr8644554otl.28.1624011170558; Fri, 18 Jun 2021 03:12:50 -0700 (PDT) MIME-Version: 1.0 References: <20210617054548.353293-1-bhupesh.sharma@linaro.org> <20210617054548.353293-5-bhupesh.sharma@linaro.org> <6011130d-8ce8-420b-6e55-5d168fef0347@somainline.org> In-Reply-To: <6011130d-8ce8-420b-6e55-5d168fef0347@somainline.org> From: Bhupesh Sharma Date: Fri, 18 Jun 2021 15:42:39 +0530 Message-ID: Subject: Re: [PATCH v3 4/5] arm64: dts: qcom: pmm8155au_2: Add base dts file To: Konrad Dybcio Cc: linux-arm-msm@vger.kernel.org, bhupesh.linux@gmail.com, "open list:GPIO SUBSYSTEM" , Linux Kernel Mailing List , devicetree , Rob Herring , Andy Gross , Mark Brown , Vinod Koul , Bjorn Andersson Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Konrad, Thanks for your review. On Fri, 18 Jun 2021 at 04:02, Konrad Dybcio wrote: > > > > Add base DTS file for pmm8155au_2 along with GPIOs, power-on, rtc and vadc > > nodes. > > > > Cc: Mark Brown > > Cc: Vinod Koul > > Reviewed-by: Bjorn Andersson > > Signed-off-by: Bhupesh Sharma > > --- > > arch/arm64/boot/dts/qcom/pmm8155au_2.dtsi | 107 ++++++++++++++++++++++ > > 1 file changed, 107 insertions(+) > > create mode 100644 arch/arm64/boot/dts/qcom/pmm8155au_2.dtsi > > > > diff --git a/arch/arm64/boot/dts/qcom/pmm8155au_2.dtsi b/arch/arm64/boot/dts/qcom/pmm8155au_2.dtsi > > new file mode 100644 > > index 000000000000..0c7d7a66c0b5 > > --- /dev/null > > +++ b/arch/arm64/boot/dts/qcom/pmm8155au_2.dtsi > > @@ -0,0 +1,107 @@ > > +// SPDX-License-Identifier: BSD-3-Clause > > +/* > > + * Copyright (c) 2021, Linaro Limited > > + */ > > + > > +#include > > +#include > > +#include > > + > > +/ { > > + thermal-zones { > > + pmm8155au-2-thermal { > > + polling-delay-passive = <100>; > > + polling-delay = <0>; > > + > > + thermal-sensors = <&pmm8155au_2_temp>; > > + > > + trips { > > + trip0 { > > + temperature = <95000>; > > + hysteresis = <0>; > > + type = "passive"; > > + }; > > + > > + trip1 { > > + temperature = <115000>; > > + hysteresis = <0>; > > + type = "hot"; > > + }; > > + > > + trip2 { > > + temperature = <145000>; > > + hysteresis = <0>; > > + type = "critical"; > > + }; > > + }; > > + }; > > + }; > > +}; > > + > > +&spmi_bus { > > + pmic@4 { > > + compatible = "qcom,pmm8155au", "qcom,spmi-pmic"; > > + reg = <0x4 SPMI_USID>; > > + #address-cells = <1>; > > + #size-cells = <0>; > > + > > + power-on@800 { > > + compatible = "qcom,pm8916-pon"; > > + reg = <0x0800>; > > No common debounce, interrupts, bias- property or pwrkey key code? > > Besides, (as a question to Bjorn and others) do we pad reg to 4 digits in PMIC DTs now? Maybe Bjorn can pitch in with his thoughts here. > > + > > + status = "disabled"; > > + }; > > + > > + pmm8155au_2_temp: temp-alarm@2400 { > > + compatible = "qcom,spmi-temp-alarm"; > > + reg = <0x2400>; > > + interrupts = <0x4 0x24 0x0 IRQ_TYPE_EDGE_BOTH>; > > + io-channels = <&pmm8155au_2_adc ADC5_DIE_TEMP>; > > + io-channel-names = "thermal"; > > + #thermal-sensor-cells = <0>; > > + }; > > + > > + pmm8155au_2_adc: adc@3100 { > > + compatible = "qcom,spmi-adc5"; > > + reg = <0x3100>; > > + #address-cells = <1>; > > + #size-cells = <0>; > > + #io-channel-cells = <1>; > > + interrupts = <0x4 0x31 0x0 IRQ_TYPE_EDGE_RISING>; > > + > > + ref-gnd@0 { > > + reg = ; > > + qcom,pre-scaling = <1 1>; > > + label = "ref_gnd"; > > + }; > > + > > + vref-1p25@1 { > > + reg = ; > > + qcom,pre-scaling = <1 1>; > > + label = "vref_1p25"; > > + }; > > + > > + die-temp@6 { > > + reg = ; > > + qcom,pre-scaling = <1 1>; > > + label = "die_temp"; > > + }; > > + }; > > + > > + pmm8155au_2_gpios: gpio@c000 { > > + compatible = "qcom,pmm8155au-gpio"; > > + reg = <0xc000>; > > + gpio-controller; > > + #gpio-cells = <2>; > > + interrupt-controller; > > + #interrupt-cells = <2>; > > + }; > > Don't we do gpio-ranges anymore? Maybe Bjorn can pitch in with his thoughts here as he may have more historical context, but I personally think that since the mapping between the pin controller local number space and the pins in the GPIO controller local number space is 1:1 (same) here, adding gpio-ranges property here is optional (as it provides little additional information). But I might have missed something here, so I will wait for more thoughts from Bjorn. Thanks, Bhupesh > > > > + }; > > + > > + pmic@5 { > > + compatible = "qcom,pmm8155au", "qcom,spmi-pmic"; > > + reg = <0x5 SPMI_USID>; > > + #address-cells = <1>; > > + #size-cells = <0>; > > + }; > > +}; > > > Konrad >