Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2096517pxj; Wed, 19 May 2021 23:26:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw6YjvPb4Feom9ILdI/Ss5hImBhtCrLJ+8bPN0Ub8L/MsEFXcSldkuHDbp964whvvwSVhNh X-Received: by 2002:a05:6402:4389:: with SMTP id o9mr3215606edc.368.1621491979983; Wed, 19 May 2021 23:26:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621491979; cv=none; d=google.com; s=arc-20160816; b=LE/kjemo07SzR0jdZoKvaYjR00PrZuYiSMPa4TJd9mma7yQQ0caYrzSuVn1QzwVvRS h8sZTkcPy+n1F8RrmyFwO1rpSf8GX/Mc9sDtmyn9TPAavbCecsjFlJSApvhUwcwNwXxX WP6G2jgFtdLT0Y/6kRim+tQGSoG/JNtG2R7GSTOKn0Xaddpaoqfimy50TZcjzicb3ULA NfDFQMahts4eiTltOsKWq39OYWTj+zDi35iuH5gCBxzCrbwWFSbh6QDZONCDcmUk64a7 e/GbI5EA7vy0XZ86qbhgY+tqjqvoCuyjQaCjtHwH0dEmwVuHbNaWoHPP6EtCCphZdwNv i+Dw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version :sender:dkim-signature; bh=scwzDElaxzWWoWbTHGwqnJCdL3UYqFstfV4+c/snyVA=; b=w+lShNVuPHeaR5HlfS6b/RleEhOgKAdbmdBsCUvafvRbwwRJ0p8R9jOYjxMQWs/5UZ ljlGpOcU80pTMGPyb7WiYLG9nhzQdidYl8Gw79+dR1pkrOKkQ/flW2RkCpFpV2PW+fVI wzgFxrzB1uy38MtEHj7N0t3uscx8QDN1WzXzFAT96VAVh7zBzTkaqHaUt+Kj8/cLzYJ9 LLVfYy8btd4nPlzIYGxKT9scNPOImy0MSFrFbkh3MkNETRfwxnbw7iBG0bYWqy5Aldmi ++dCWgMLqje8hrGjE4I8DGodZ779wrbZC9uPsAJHWjF+UWC+utNDak8vCBxPcj8eWBqo BHdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=HmSnPoxq; 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 b10si2141094ejj.523.2021.05.19.23.25.56; Wed, 19 May 2021 23:26:19 -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=@mg.codeaurora.org header.s=smtp header.b=HmSnPoxq; 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 S229953AbhETG00 (ORCPT + 99 others); Thu, 20 May 2021 02:26:26 -0400 Received: from so254-9.mailgun.net ([198.61.254.9]:33857 "EHLO so254-9.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230102AbhETG0Z (ORCPT ); Thu, 20 May 2021 02:26:25 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1621491905; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=scwzDElaxzWWoWbTHGwqnJCdL3UYqFstfV4+c/snyVA=; b=HmSnPoxqxTw08njL+3UupcJRQRgx4tnh+5m6KVuyezVuhDYbCyDN7oJI21PUO4OrUCNYnk6Y HUbJpmuvqYlM3p/vvtttQuOUuYsB97TiDNiF7fbjFOP/CbZIS8+JtEdF6ga376+NESRXoUs9 hLSlrS3T99QKcZMZjFDVVsmSIfs= X-Mailgun-Sending-Ip: 198.61.254.9 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n05.prod.us-west-2.postgun.com with SMTP id 60a600be7b5af81b5cdc9923 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Thu, 20 May 2021 06:25:02 GMT Sender: skakit=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 1970CC43460; Thu, 20 May 2021 06:25:02 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: skakit) by smtp.codeaurora.org (Postfix) with ESMTPSA id A0FBDC433F1; Thu, 20 May 2021 06:25:01 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 20 May 2021 11:55:01 +0530 From: skakit@codeaurora.org To: Vinod Koul Cc: Andy Gross , Bjorn Andersson , Rob Herring , mka@chromium.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, kgunda@codeaurora.org Subject: Re: [RESEND PATCH V4 4/8] arm64: dts: qcom: pm8350c: Add temp-alarm support In-Reply-To: References: <1621318822-29332-1-git-send-email-skakit@codeaurora.org> <1621318822-29332-5-git-send-email-skakit@codeaurora.org> Message-ID: X-Sender: skakit@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021-05-18 17:18, Vinod Koul wrote: > On 18-05-21, 11:50, satya priya wrote: >> Add temp-alarm node for PM8350C pmic and also modify gpio >> node to add gpio ranges and "qcom,spmi-gpio" compatible. > > These should be two patches explaining why things are done like that > Okay, will split them. >> >> Signed-off-by: satya priya >> Reviewed-by: Matthias Kaehlcke >> --- >> Changes in RESEND V4: >> - No Changes. >> >> arch/arm64/boot/dts/qcom/pm8350c.dtsi | 32 >> +++++++++++++++++++++++++++++++- >> 1 file changed, 31 insertions(+), 1 deletion(-) >> >> diff --git a/arch/arm64/boot/dts/qcom/pm8350c.dtsi >> b/arch/arm64/boot/dts/qcom/pm8350c.dtsi >> index 2b9b75e..e1b75ae 100644 >> --- a/arch/arm64/boot/dts/qcom/pm8350c.dtsi >> +++ b/arch/arm64/boot/dts/qcom/pm8350c.dtsi >> @@ -13,13 +13,43 @@ >> #address-cells = <1>; >> #size-cells = <0>; >> >> + pm8350c_temp_alarm: temp-alarm@a00 { >> + compatible = "qcom,spmi-temp-alarm"; >> + reg = <0xa00>; >> + interrupts = <0x2 0xa 0x0 IRQ_TYPE_EDGE_BOTH>; >> + #thermal-sensor-cells = <0>; >> + }; >> + >> pm8350c_gpios: gpio@8800 { >> - compatible = "qcom,pm8350c-gpio"; >> + compatible = "qcom,pm8350c-gpio", "qcom,spmi-gpio"; > > why is this changed? As per the Documentation[1], either "qcom,spmi-gpio" or "qcom,ssbi-gpio" must be added based on whether the device is on an spmi bus or an ssbi bus respectively. [1] https://github.com/torvalds/linux/blob/master/Documentation/devicetree/bindings/pinctrl/qcom%2Cpmic-gpio.txt#L41 > >> reg = <0x8800>; >> gpio-controller; >> + gpio-ranges = <&pm8350c_gpios 0 0 9>; >> #gpio-cells = <2>; >> interrupt-controller; >> #interrupt-cells = <2>; >> }; >> }; >> }; >> + >> +&thermal_zones { >> + pm8350c_thermal: pm8350c-thermal { >> + polling-delay-passive = <100>; >> + polling-delay = <0>; >> + thermal-sensors = <&pm8350c_temp_alarm>; >> + >> + trips { >> + pm8350c_trip0: trip0 { >> + temperature = <95000>; >> + hysteresis = <0>; >> + type = "passive"; >> + }; >> + >> + pm8350c_crit: pm8350c-crit { >> + temperature = <115000>; >> + hysteresis = <0>; >> + type = "critical"; >> + }; >> + }; >> + }; >> +}; >> -- >> QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a >> member >> of Code Aurora Forum, hosted by The Linux Foundation