Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1000616pxj; Thu, 17 Jun 2021 19:48:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz9Jow+q5KFJaM5+POcX3QytZamX95Sk/PvPheC8Qxm9gcVDyYexyM9Wqqpi56tPg1v0GiN X-Received: by 2002:a05:6402:2790:: with SMTP id b16mr1873830ede.115.1623984519830; Thu, 17 Jun 2021 19:48:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623984519; cv=none; d=google.com; s=arc-20160816; b=K6YColN9ci9VfG5UNUjDho6aztM9upyGP313qAqu4bQ8nCWG6+c0EnyuCJNQg7C+SC n9G8rcPDYC9REXc5RS1TBPrceqsP/f5VAmzscu7g5aKEX0YjjYeAalONrFz5hPDsyz8N 5W8MchpAZMh1eIY+fWou82SGWIuvBAI1jpkCaMTOI96rmJ72BnX7b0H0qu+mKoCgZ6kL FDixQabyNtjnK0URzAovo4H7etMZgQ/r6pEIK7n8D913FNigL3MEEnSVzSJAQ7y2x09D /us/bE4Vk/geebWiv0SMrl6DgvqMjYZVRupxblmuWj/RiuMzJs36Su521ZnGcpdA6Xvo WUcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=cDYB3Q/xUdAgoTNM/KTW1jRDkury/7+B5b0cBG6ylF8=; b=RvjVNHGCiwW8cV4bkah7AMzgRUhJzSsUMiPoA7QXc1gSPw+QYiTpjzm7JtbYUZKwRd ECSAfnrmD+aWhCfJ+bUUobcQu1nzJ8nkEXP7M/Him3i2c8PTKRrjPFqBcdKKk8aRNjB8 kdpQ8HgedRotLjcx03IPl9+i0IxbxBYqvMYlwT/X3dXY91aFCci+9r/Ud0I4IsbuMGx8 swUG7v61saOFmyo0sgBpQl24YbBCyLFSQSdOOR8OadhLX+iA7Z8dOtlctFsNlXcwvTR9 JvNzUYuTFni2kRdSLQDzPBf5nzRbuzHIYvv9i5fZjhC1RILsMkyHGz/e+eIQ4AcIzl9N S0Kg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o4si7025898edc.544.2021.06.17.19.48.17; Thu, 17 Jun 2021 19:48:39 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232439AbhFQWet (ORCPT + 99 others); Thu, 17 Jun 2021 18:34:49 -0400 Received: from relay05.th.seeweb.it ([5.144.164.166]:36317 "EHLO relay05.th.seeweb.it" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231766AbhFQWes (ORCPT ); Thu, 17 Jun 2021 18:34:48 -0400 Received: from [192.168.1.101] (83.6.168.10.neoplus.adsl.tpnet.pl [83.6.168.10]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by m-r2.th.seeweb.it (Postfix) with ESMTPSA id 601FC3F647; Fri, 18 Jun 2021 00:32:38 +0200 (CEST) Subject: Re: [PATCH v3 4/5] arm64: dts: qcom: pmm8155au_2: Add base dts file To: Bhupesh Sharma , linux-arm-msm@vger.kernel.org Cc: bhupesh.linux@gmail.com, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, robh+dt@kernel.org, agross@kernel.org, Mark Brown , Vinod Koul , Bjorn Andersson References: <20210617054548.353293-1-bhupesh.sharma@linaro.org> <20210617054548.353293-5-bhupesh.sharma@linaro.org> From: Konrad Dybcio Message-ID: <6011130d-8ce8-420b-6e55-5d168fef0347@somainline.org> Date: Fri, 18 Jun 2021 00:32:37 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210617054548.353293-5-bhupesh.sharma@linaro.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > 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? > + > + 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? > + }; > + > + pmic@5 { > + compatible = "qcom,pmm8155au", "qcom,spmi-pmic"; > + reg = <0x5 SPMI_USID>; > + #address-cells = <1>; > + #size-cells = <0>; > + }; > +}; Konrad