Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4042126pxj; Tue, 15 Jun 2021 14:11:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzyBEVZlvDrdQCDfzwaLd7jWt/YyiBhGAuV8RWqz0FO2dzPlZemCQeIOWbeHh5MQp7H7Mie X-Received: by 2002:a92:bf02:: with SMTP id z2mr1011425ilh.27.1623791478632; Tue, 15 Jun 2021 14:11:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623791478; cv=none; d=google.com; s=arc-20160816; b=q6N26DtxA/gVl8S36Py/7FDgRaCh8+bRXv/v3VygaPYrJUw2pTCfZiMeQP1MnG/jP8 aOKIyCTbiUZYLafYNoS5fl5IYwbXyAfGNtes/QYbi5MxUYysS5inv0/x7zN9ahwcHVnN gc+KR32JvPmW2Srex/AEza7fMMjiNJgl5+xQOWmB7cHIsGExWnG/ZTG0/b4HupL0XfcV V8xpY+VRS6aFaUAJYBeAz5o0aocvXozp0Ehwa4mgi9n/6LQDClCUuvdBGoM5az+2HHzp Xlc20zOWLvoMIvcZHcBqUZbByly1yUjz68t2HODcnhoO8Xo74uxScKJu9LpyZ1dTaV7F 7awQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=5H/WIGAt2bcGus6syHjeDpEBJBSWGYGK2ZP5DaJq8HI=; b=R2gbRVTZgAhAwVqlrDK+i4vTUVQS1EvN0dCJ+53lQRY1ShF6uVk1IQSJbKuYTtBY3H r85cl/FPCjd+3r9u57lZzNnHxEr/OtTN1dZT9zPiTFkJY8RtV+HEX/noc1bDM0B/E3rp 11eHAvlTUZ4dKwVctzJS5kLQ4vZobUFC9HRlDiYn/u9qJbSjXt8+y9hiTaSzJSomwAWA drMbr7UmaxZdSQZFjP3pJWR6uh2t0RVuTAVkDDlRvBVijZTYmZ6vQ6sm9LuFfmz8oP69 G5qLqyb1uJScw17DyI+yqgDuu//yCS07LZNUzLJ8Q9obGgsHas0nrFfcZsfMeb/KRQYI PTPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Wh0xf1pp; 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 r133si209690jac.80.2021.06.15.14.11.05; Tue, 15 Jun 2021 14:11:18 -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=Wh0xf1pp; 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 S231372AbhFOVKn (ORCPT + 99 others); Tue, 15 Jun 2021 17:10:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45454 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231354AbhFOVKm (ORCPT ); Tue, 15 Jun 2021 17:10:42 -0400 Received: from mail-oo1-xc2f.google.com (mail-oo1-xc2f.google.com [IPv6:2607:f8b0:4864:20::c2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 94D15C061574 for ; Tue, 15 Jun 2021 14:08:37 -0700 (PDT) Received: by mail-oo1-xc2f.google.com with SMTP id y18-20020a4ae7120000b02902496b7708cfso123720oou.9 for ; Tue, 15 Jun 2021 14:08:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=5H/WIGAt2bcGus6syHjeDpEBJBSWGYGK2ZP5DaJq8HI=; b=Wh0xf1ppQyc5kPm+/1GaRANZM62IHN3p08884tek1zX2shuDsH5dVu1BGEv00Se1Qp vxhbERR6ISRbJFFhkNWgfPND/o3svNBm6LCfX7ik+V6iwSgMmUslOsNPMg1pLiuKM7+v VcHManoDf9yvNpprfKQL8MFyRJP+Nuis1popY+w8HvSh22IgpWcXttSzGuc9u8TZI14E kCOusr5iijIFqnCakDFKTuS0fZVRJWu5zSeL0k+RAMgBpRJ971XMXUbAyTJZuLehxudb KYQYmqUohJOzOeFAZdISMjb6w4vvnQdlwogq4L/tUo4qpJ4I7sK2HHDb6nVjVCwVWUeI R5fg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=5H/WIGAt2bcGus6syHjeDpEBJBSWGYGK2ZP5DaJq8HI=; b=K7gf8f/0dxCOXJiuNaapqGlsSgefueqY1dfnKBDlpvfOrz3nu9WR3O+icrHuGJUwM5 okfYHEWY+u2+Rn1MVVJk8HTL5BagOoRU2vUffAYToMswmrZLI6B60PnOtCtE1go7pcxf IWM33eU2fZrXueMVNfMdGzobkkz7SdvRrdWKXzGnsqY3QKlABAS3xTc8xPBOaOVFARUN 6Gm8MrcknE2HWn1kGo/H4Q7KzMk0rtCxCmmQVm0CQM7TSbLyQu1CtbT3oJKUzFO3bMCM PwSsaL6a88teTRH3+FT+eZpI3k0tUawHvfRSLNlEAjXBZOSK1CjGcRVFCzqhedbFWtJN vl/A== X-Gm-Message-State: AOAM530n9bFjh1bppoXYo1tiHpzM7nAJ5rF7EnQW5zxbWA1HQECzS99P tNE9uGb0avV5DhTsC/Q7I2btag== X-Received: by 2002:a4a:49d0:: with SMTP id z199mr909507ooa.67.1623791316982; Tue, 15 Jun 2021 14:08:36 -0700 (PDT) Received: from builder.lan (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id u1sm14300ooo.18.2021.06.15.14.08.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Jun 2021 14:08:36 -0700 (PDT) Date: Tue, 15 Jun 2021 16:08:34 -0500 From: Bjorn Andersson To: Bhupesh Sharma Cc: linux-arm-msm@vger.kernel.org, bhupesh.linux@gmail.com, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Linus Walleij , Liam Girdwood , Mark Brown , Vinod Koul , Rob Herring , Andy Gross Subject: Re: [PATCH v2 08/10] arm64: dts: qcom: pmm8155au_1: Add base dts file Message-ID: References: <20210615074543.26700-1-bhupesh.sharma@linaro.org> <20210615074543.26700-9-bhupesh.sharma@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210615074543.26700-9-bhupesh.sharma@linaro.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 15 Jun 02:45 CDT 2021, Bhupesh Sharma wrote: > Add base DTS file for pmm8155au_1 along with GPIOs, power-on, rtc and vadc > nodes. > > Cc: Linus Walleij > Cc: Liam Girdwood > Cc: Mark Brown > Cc: Bjorn Andersson > Cc: Vinod Koul > Cc: Rob Herring > Cc: Andy Gross > Signed-off-by: Bhupesh Sharma Reviewed-by: Bjorn Andersson Regards, Bjorn > --- > arch/arm64/boot/dts/qcom/pmm8155au_1.dtsi | 134 ++++++++++++++++++++++ > 1 file changed, 134 insertions(+) > create mode 100644 arch/arm64/boot/dts/qcom/pmm8155au_1.dtsi > > diff --git a/arch/arm64/boot/dts/qcom/pmm8155au_1.dtsi b/arch/arm64/boot/dts/qcom/pmm8155au_1.dtsi > new file mode 100644 > index 000000000000..b04c28e54470 > --- /dev/null > +++ b/arch/arm64/boot/dts/qcom/pmm8155au_1.dtsi > @@ -0,0 +1,134 @@ > +// SPDX-License-Identifier: BSD-3-Clause > +/* > + * Copyright (c) 2021, Linaro Limited > + */ > + > +#include > +#include > +#include > +#include > + > +/ { > + thermal-zones { > + pmm8155au-1-thermal { > + polling-delay-passive = <100>; > + polling-delay = <0>; > + > + thermal-sensors = <&pmm8155au_1_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@0 { > + compatible = "qcom,pmm8155au", "qcom,spmi-pmic"; > + reg = <0x0 SPMI_USID>; > + #address-cells = <1>; > + #size-cells = <0>; > + > + pon: power-on@800 { > + compatible = "qcom,pm8916-pon"; > + reg = <0x0800>; > + pwrkey { > + compatible = "qcom,pm8941-pwrkey"; > + interrupts = <0x0 0x8 0x0 IRQ_TYPE_EDGE_BOTH>; > + debounce = <15625>; > + bias-pull-up; > + linux,code = ; > + > + status = "disabled"; > + }; > + }; > + > + pmm8155au_1_temp: temp-alarm@2400 { > + compatible = "qcom,spmi-temp-alarm"; > + reg = <0x2400>; > + interrupts = <0x0 0x24 0x0 IRQ_TYPE_EDGE_BOTH>; > + io-channels = <&pmm8155au_1_adc ADC5_DIE_TEMP>; > + io-channel-names = "thermal"; > + #thermal-sensor-cells = <0>; > + }; > + > + pmm8155au_1_adc: adc@3100 { > + compatible = "qcom,spmi-adc5"; > + reg = <0x3100>; > + #address-cells = <1>; > + #size-cells = <0>; > + #io-channel-cells = <1>; > + interrupts = <0x0 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_1_adc_tm: adc-tm@3500 { > + compatible = "qcom,spmi-adc-tm5"; > + reg = <0x3500>; > + interrupts = <0x0 0x35 0x0 IRQ_TYPE_EDGE_RISING>; > + #thermal-sensor-cells = <1>; > + #address-cells = <1>; > + #size-cells = <0>; > + status = "disabled"; > + }; > + > + pmm8155au_1_rtc: rtc@6000 { > + compatible = "qcom,pm8941-rtc"; > + reg = <0x6000>; > + reg-names = "rtc", "alarm"; > + interrupts = <0x0 0x61 0x1 IRQ_TYPE_NONE>; > + > + status = "disabled"; > + }; > + > + pmm8155au_1_gpios: gpio@c000 { > + compatible = "qcom,pmm8155au-gpio"; > + reg = <0xc000>; > + gpio-controller; > + #gpio-cells = <2>; > + interrupt-controller; > + #interrupt-cells = <2>; > + }; > + }; > + > + pmic@1 { > + compatible = "qcom,pmm8155au", "qcom,spmi-pmic"; > + reg = <0x1 SPMI_USID>; > + #address-cells = <1>; > + #size-cells = <0>; > + }; > +}; > -- > 2.31.1 >