Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp1040271rdb; Tue, 19 Sep 2023 19:33:02 -0700 (PDT) X-Google-Smtp-Source: AGHT+IExlcMh5ErQ4Yz9bZb7nppMqoeZ+9/OhQy7m/CXKxuPqi79kSuWrq+xT8dFb1u4084ZaK1u X-Received: by 2002:a17:902:ef82:b0:1c5:bc83:556b with SMTP id iz2-20020a170902ef8200b001c5bc83556bmr454076plb.52.1695177182312; Tue, 19 Sep 2023 19:33:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695177182; cv=none; d=google.com; s=arc-20160816; b=KBcx3eLye+R9WM15rXMAknfTMi1MdUGzsX6YAL4SK4gTXN902Q0Q8D4ItnSl5AoZNO nLbrUJY/dECyLNDvdfoGfgVzupMM/+ZJZoheODOMUoGtu7GLqUg5RkItelrmns5jZQ0q 1j78264RVEZlzVIlV5EFXJP6wS05g91JEeGMSgbEJfqZnWsNNcC6RGmybyMr4qsDNlL1 sRsP6HNfNF9yorQ0ELThXP+lFkqQiUyjfhv/UFLyO1TAXHHRy7KLzHUwJbLJZbq5rOWe Y9TtNStqYL9DExPCcoGNCdPISQm9qdRR17Eu898bY0TVhGGZJ4dpN38Y4uSCF6vtUQwB ZnWQ== 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=uieqmWVOL9N7+i80lQ8yJpqqKoKCEXtKmfIfaKdrc78=; fh=AUrQk6C8SRWY33LF+hKN7QCH6695jomet5y8A4Jz/7Q=; b=TDD3AZBI5eVuXdqhqvJKNIp+BYI9xpTXWTIQDd25VYRBMAuUDq5oP20oi/FBdBD1Ba szA/8c4TQW1q39rICUsEjP9xwNYrXe9SDUcgfsRLoArPPmF1ca0ZLtQ3UZ5zEx6+mxrh e5pdjvxo/vYKKzYoz5++LcULd4pU+ZXmCXtdjzI3e5TieRbxUFeBItGovZWBIghJfmur kPEKVq5Yyfhu5IJ3iEH3eycJjYwgaSPrpbd7nLePuw5G7UvAXm66Cd1huW0cF1CDFwGx bQg5O44NAnPPR8LRQjok3Da4Z/HfjdVrGqIF1ZbCAtwEUjK65y2EQdoqv9RYEqVkaIlZ qnxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Y8ElquWi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id h4-20020a170902f54400b001bbdd44bbd4si11452196plf.74.2023.09.19.19.33.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Sep 2023 19:33:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Y8ElquWi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 4D041825831F; Tue, 19 Sep 2023 19:32:59 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232037AbjITCcs (ORCPT + 99 others); Tue, 19 Sep 2023 22:32:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229641AbjITCcr (ORCPT ); Tue, 19 Sep 2023 22:32:47 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 45885C5; Tue, 19 Sep 2023 19:32:42 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 85B06C433C8; Wed, 20 Sep 2023 02:32:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695177161; bh=QAx4rLvgG+w2aUwmQ646qZI9UZ3PUZjDBZgyQ3QPOgw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Y8ElquWin/1W6/gst+K+zSMiCjreKw+YozMNHyehraxBXhuXMcVV+hZwskCJLqNha MxnqpZRhjeD95kEld9liGXQ7dtH+RgEn4IL2NYKcc05md50yX07ns2Zoyc3X3QuAwz llgw/dpXPLy2cfdJaBIDO6LsHVAzj0HuwAPVJwruDa4VfrNLkU0lS+ot+ysrRs6RXV HkYYTcbhLL4Iye8RUnhQbP0sczSe7U+5up81d2UMJf3YAkqNOswz3kMTeXNKdNj3/C T+Z8jeNvQ+8IWg68+Yo0nIIsw6BkzAjZNZ38dbKXtdwqb0sFbFzhO8XUfrEQkJXvaR e0Rl2xBV3Q9DA== Date: Tue, 19 Sep 2023 19:36:49 -0700 From: Bjorn Andersson To: Priyansh Jain Cc: Andy Gross , Konrad Dybcio , Amit Kucheria , Thara Gopinath , "Rafael J . Wysocki" , Daniel Lezcano , Zhang Rui , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, quic_manafm@quicinc.com Subject: Re: [PATCH v2 2/2] arm64: dts: qcom: Enable tsens and thermal for sa8775p SoC Message-ID: References: <20230824123001.26778-1-quic_priyjain@quicinc.com> <20230824123001.26778-3-quic_priyjain@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230824123001.26778-3-quic_priyjain@quicinc.com> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Tue, 19 Sep 2023 19:32:59 -0700 (PDT) On Thu, Aug 24, 2023 at 06:00:01PM +0530, Priyansh Jain wrote: > Add tsens and thermal devicetree node for sa8775p SoC. > > Signed-off-by: Priyansh Jain > --- > arch/arm64/boot/dts/qcom/sa8775p.dtsi | 1096 +++++++++++++++++++++++++ > 1 file changed, 1096 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sa8775p.dtsi b/arch/arm64/boot/dts/qcom/sa8775p.dtsi > index b130136acffe..abba42ea5946 100644 > --- a/arch/arm64/boot/dts/qcom/sa8775p.dtsi > +++ b/arch/arm64/boot/dts/qcom/sa8775p.dtsi > @@ -2306,6 +2306,1102 @@ > > #freq-domain-cells = <1>; I believe this would be the tail of the cpufreq_hw node, @0x18591000. > }; > + > + tsens0: thermal-sensor@c222000 { > + compatible = "qcom,sa8775p-tsens", "qcom,tsens-v2"; > + reg = <0x0 0x0c263000 0x0 0x1ff>, If so, then this is not inserted to maintain the sort order (by address) of the nodes under /soc. Please update the placement of this node. Also, the unit address above is c222000, but based on this cell it should be c263000. > + <0x0 0x0c222000 0x0 0x8>; > + interrupts = , > + ; > + #qcom,sensors = <12>; > + interrupt-names = "uplow", "critical"; > + #thermal-sensor-cells = <1>; > + }; > + > + tsens1: thermal-sensor@c223000 { > + compatible = "qcom,sa8775p-tsens", "qcom,tsens-v2"; > + reg = <0x0 0x0c265000 0x0 0x1ff>, > + <0x0 0x0c223000 0x0 0x8>; > + interrupts = , > + ; > + #qcom,sensors = <12>; > + interrupt-names = "uplow", "critical"; > + #thermal-sensor-cells = <1>; > + }; > + > + tsens2: thermal-sensor@c224000 { > + compatible = "qcom,sa8775p-tsens", "qcom,tsens-v2"; > + reg = <0x0 0x0c251000 0x0 0x1ff>, 0x0c251000 < 0x0c265000, please order them properly. > + <0x0 0x0c224000 0x0 0x8>; > + interrupts = , > + ; > + #qcom,sensors = <13>; > + interrupt-names = "uplow", "critical"; > + #thermal-sensor-cells = <1>; > + }; > + > + tsens3: thermal-sensor@c225000 { > + compatible = "qcom,sa8775p-tsens", "qcom,tsens-v2"; > + reg = <0x0 0x0c252000 0x0 0x1ff>, > + <0x0 0x0c225000 0x0 0x8>; > + interrupts = , > + ; > + #qcom,sensors = <13>; > + interrupt-names = "uplow", "critical"; > + #thermal-sensor-cells = <1>; > + }; > + > + thermal_zones: thermal-zones { This does not belong alongside the mmio-devices under /soc, move this out (and keep / sorted alphabetically on the node name). > + aoss-0-thermal { > + polling-delay-passive = <0>; > + polling-delay = <0>; > + > + thermal-sensors = <&tsens0 0>; > + > + trips { > + aoss0_alert0: trip-point0 { Why does all these nodes have labels? > + temperature = <105000>; > + hysteresis = <5000>; > + type = "passive"; > + }; > + > + aoss0_alert1: trip-point1 { > + temperature = <115000>; > + hysteresis = <5000>; > + type = "passive"; > + }; > + }; > + }; > + [..] > + }; /soc does not end here anymore, please remember to rebase the change on v6.6-rc1. Thanks, Bjorn > }; > > arch_timer: timer { > -- > 2.17.1 >