From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.6 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7D904C47E49 for ; Wed, 6 Nov 2019 04:21:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3E9A721D6C for ; Wed, 6 Nov 2019 04:21:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1573014070; bh=mrjftNi6/P18OSnIqf5qMJ0xzQjeDuEcLg2K8XmayZU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=lyjPnj8Uh5fxB1joABmiaOltQsLmI8v/NkmMIyrSGw0bH0vGNdzQXQcJIqeyvjWYu 5eGycULx90lOo2XsaTgXzClXaR4oVmhBiJxHkZa9fzYDm58YpDqowxueGkWL5+baVM nLId+7rabo7uXI/1qrglq7R2ODiQmkbDpMXLO0ms= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729705AbfKFEVJ (ORCPT ); Tue, 5 Nov 2019 23:21:09 -0500 Received: from mail-oi1-f196.google.com ([209.85.167.196]:36597 "EHLO mail-oi1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726368AbfKFEVJ (ORCPT ); Tue, 5 Nov 2019 23:21:09 -0500 Received: by mail-oi1-f196.google.com with SMTP id j7so19803250oib.3; Tue, 05 Nov 2019 20:21:09 -0800 (PST) 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:user-agent; bh=GC1/ksdOjIfMA8r88prdxzosO6y9Ard78ftKzJT3YRs=; b=tq2sGz1cHZBlYtsVVU+Si2bktDKtjxGp+01cAwlXEQZlEkxa6HvJuxPrOmySqHjimX PsMe3A1D3neCtPDh4h4fGkDjPe/bPTmKgA58m5RKYZSse7j9vAJC6M/I6s906mC9rGGV 2XK6ZQcrRZRtcTWbZRh48sGezn4gb6L9QE3hZlD+E2W3vDE359tUkA/1hc8cl/vyyoiO JpPOilRclK9p4OfMzgIPzTFC6nhuquAVvsJDBEr/yy8khVWs+uopPRXjWiNcKY3NCPt+ +aUGbRNclCG1iY4/DBaSS1GYSIqxDQ3H1JX4usf8VoudX2/3uGQ4CTPolqhFx9aWuN9s 1faA== X-Gm-Message-State: APjAAAUzdhdjydj05VIYBi3fdrW8tJzf4MT91w0NKp4O0/c5SOC9ua09 DQipNvCw5E+oc4oYnLsSXQ== X-Google-Smtp-Source: APXvYqxb3gJ3FVF2f7SF5xK93QdhFdGOiFF3vebJkIxP4iOZGB1hOKdkRk9PCd9/I6GEDKwfvdOhYg== X-Received: by 2002:aca:5942:: with SMTP id n63mr481764oib.56.1573014068494; Tue, 05 Nov 2019 20:21:08 -0800 (PST) Received: from localhost (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id z16sm101924oih.56.2019.11.05.20.21.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Nov 2019 20:21:07 -0800 (PST) Date: Tue, 5 Nov 2019 22:21:07 -0600 From: Rob Herring To: Stefan Wahren Cc: Zhang Rui , Eduardo Valentin , Daniel Lezcano , Amit Kucheria , Mark Rutland , Eric Anholt , Florian Fainelli , Catalin Marinas , Will Deacon , Markus Mayer , Chen-Yu Tsai , bcm-kernel-feedback-list@broadcom.com, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH 1/4] dt-bindings: Add BCM2711 thermal Message-ID: <20191106042107.GA27699@bogus> References: <1572615749-9524-1-git-send-email-wahrenst@gmx.net> <1572615749-9524-2-git-send-email-wahrenst@gmx.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1572615749-9524-2-git-send-email-wahrenst@gmx.net> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org On Fri, Nov 01, 2019 at 02:42:26PM +0100, Stefan Wahren wrote: > Since the BCM2711 doesn't have a AVS TMON block, the thermal information > must be retrieved from the AVS ring oscillator block. So add a new > suitable binding. Anything else in that block? > > Signed-off-by: Stefan Wahren > --- > .../bindings/thermal/brcm,bcm2711-thermal.txt | 39 ++++++++++++++++++++++ > 1 file changed, 39 insertions(+) > create mode 100644 Documentation/devicetree/bindings/thermal/brcm,bcm2711-thermal.txt > > diff --git a/Documentation/devicetree/bindings/thermal/brcm,bcm2711-thermal.txt b/Documentation/devicetree/bindings/thermal/brcm,bcm2711-thermal.txt > new file mode 100644 > index 0000000..5531d3f > --- /dev/null > +++ b/Documentation/devicetree/bindings/thermal/brcm,bcm2711-thermal.txt > @@ -0,0 +1,39 @@ > +Binding for Thermal Sensor driver for BCM2711 SoCs. > + > +Required properties: > +- compatible: must be: "brcm,bcm2711-thermal" If the block is called 'AVS ring oscillator', then the compatible name should mirror that. > +- reg: Address range of the thermal registers. > +- clocks: Phandle of the clock used by the thermal sensor. > +- #thermal-sensor-cells: should be 0 (see thermal.txt) > + > +Example: > + > +thermal-zones { > + cpu_thermal: cpu-thermal { > + polling-delay-passive = <0>; > + polling-delay = <1000>; > + > + thermal-sensors = <&thermal>; > + > + trips { > + cpu-crit { > + temperature = <80000>; > + hysteresis = <0>; > + type = "critical"; > + }; > + }; > + > + coefficients = <(-487) 410040>; > + > + cooling-maps { > + }; > + }; > +}; > + > +thermal@7d5d2200 { > + compatible = "brcm,bcm2711-thermal"; > + reg = <0x7d5d2200 0x4>; > + clocks = <&clocks BCM2835_CLOCK_TSENS>; > + #thermal-sensor-cells = <0>; > +}; > + > -- > 2.7.4 > From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.5 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3267BC5DF65 for ; Wed, 6 Nov 2019 04:21:13 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E42132166E for ; Wed, 6 Nov 2019 04:21:12 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="DHphTUsx" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E42132166E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=5+ri6YROzjcsl0UYlDhruLqa52QbdbpBro1EE7LvT+Q=; b=DHphTUsxbxdN5w 0WCcw52/tA/6sT+pZ/O4SB9NvqyUMKfqYfLtGVvOAPX1W7YN5ZGGf1IxTwbHct5QsGM7sn1iUH1KU gOhiDXqiaTfUE7NaIXO+j3mD+tzukxtqMQL+u6wiD4IwG9gOhHj6922yqCoQaEs0NNK4KTvVEI2t/ FsaQ3bcSVMC2+882PUF+QxVtUKdx5rCLTLu4UxLLug7hqyEsy/GUn96BGiaHD4dB3r+/TVav06N71 feV8DecuodYMXNVbxtHJs3qaR87M3O14BRnB6blIgkGwPfHBauLcO1cew46wa4rdbyconrs0B6jpD Zq6ri639eljWegmNwUgg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iSCoi-0001H8-GK; Wed, 06 Nov 2019 04:21:12 +0000 Received: from mail-oi1-f196.google.com ([209.85.167.196]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iSCog-0001GR-1W for linux-arm-kernel@lists.infradead.org; Wed, 06 Nov 2019 04:21:11 +0000 Received: by mail-oi1-f196.google.com with SMTP id n16so19783688oig.2 for ; Tue, 05 Nov 2019 20:21:09 -0800 (PST) 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:user-agent; bh=GC1/ksdOjIfMA8r88prdxzosO6y9Ard78ftKzJT3YRs=; b=cqL8XE6ipDTYW46iPpCafusVRcvU9iR4EL2BWn6Ce/g2fdwDH/loEHGC3rf/m0vhSs DgzPEYoW1YA5Or8PtxZtNx2IGdkdbTYRr/VfsfYox7AVxsPY8EDtAfmCYv9EuBc1hOF0 jHk6Yc4dTL29PErnyOnrL7aV5MSqkgZc+yr6TLDRhYPpIMqlLU9vSRrOaOEzejwIjmTX tevZnE4xZfD+1s4zxnqh37QOaTQNaHPAvg414N+o8wBfMMYtpFu/qidsp7FeYiGURzc+ WZrD+2xn/KgQzRkbB5XZRcAAim2OXrQ97B+7JyWCRdHs8fhfmtf14BB/ukoEOcANtUTt 99iA== X-Gm-Message-State: APjAAAWgedt3HVAmv9IqcrY6mkhB/5ApBnAI5NHxuwJwRl4CIDStqqEZ NShq3oFseLJYkfqhO7qZCQ== X-Google-Smtp-Source: APXvYqxb3gJ3FVF2f7SF5xK93QdhFdGOiFF3vebJkIxP4iOZGB1hOKdkRk9PCd9/I6GEDKwfvdOhYg== X-Received: by 2002:aca:5942:: with SMTP id n63mr481764oib.56.1573014068494; Tue, 05 Nov 2019 20:21:08 -0800 (PST) Received: from localhost (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id z16sm101924oih.56.2019.11.05.20.21.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Nov 2019 20:21:07 -0800 (PST) Date: Tue, 5 Nov 2019 22:21:07 -0600 From: Rob Herring To: Stefan Wahren Subject: Re: [PATCH 1/4] dt-bindings: Add BCM2711 thermal Message-ID: <20191106042107.GA27699@bogus> References: <1572615749-9524-1-git-send-email-wahrenst@gmx.net> <1572615749-9524-2-git-send-email-wahrenst@gmx.net> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1572615749-9524-2-git-send-email-wahrenst@gmx.net> User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191105_202110_083979_CC57B34D X-CRM114-Status: GOOD ( 19.69 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, Amit Kucheria , Florian Fainelli , linux-pm@vger.kernel.org, Catalin Marinas , Daniel Lezcano , Eduardo Valentin , Eric Anholt , bcm-kernel-feedback-list@broadcom.com, Markus Mayer , Zhang Rui , Chen-Yu Tsai , Will Deacon , linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Nov 01, 2019 at 02:42:26PM +0100, Stefan Wahren wrote: > Since the BCM2711 doesn't have a AVS TMON block, the thermal information > must be retrieved from the AVS ring oscillator block. So add a new > suitable binding. Anything else in that block? > > Signed-off-by: Stefan Wahren > --- > .../bindings/thermal/brcm,bcm2711-thermal.txt | 39 ++++++++++++++++++++++ > 1 file changed, 39 insertions(+) > create mode 100644 Documentation/devicetree/bindings/thermal/brcm,bcm2711-thermal.txt > > diff --git a/Documentation/devicetree/bindings/thermal/brcm,bcm2711-thermal.txt b/Documentation/devicetree/bindings/thermal/brcm,bcm2711-thermal.txt > new file mode 100644 > index 0000000..5531d3f > --- /dev/null > +++ b/Documentation/devicetree/bindings/thermal/brcm,bcm2711-thermal.txt > @@ -0,0 +1,39 @@ > +Binding for Thermal Sensor driver for BCM2711 SoCs. > + > +Required properties: > +- compatible: must be: "brcm,bcm2711-thermal" If the block is called 'AVS ring oscillator', then the compatible name should mirror that. > +- reg: Address range of the thermal registers. > +- clocks: Phandle of the clock used by the thermal sensor. > +- #thermal-sensor-cells: should be 0 (see thermal.txt) > + > +Example: > + > +thermal-zones { > + cpu_thermal: cpu-thermal { > + polling-delay-passive = <0>; > + polling-delay = <1000>; > + > + thermal-sensors = <&thermal>; > + > + trips { > + cpu-crit { > + temperature = <80000>; > + hysteresis = <0>; > + type = "critical"; > + }; > + }; > + > + coefficients = <(-487) 410040>; > + > + cooling-maps { > + }; > + }; > +}; > + > +thermal@7d5d2200 { > + compatible = "brcm,bcm2711-thermal"; > + reg = <0x7d5d2200 0x4>; > + clocks = <&clocks BCM2835_CLOCK_TSENS>; > + #thermal-sensor-cells = <0>; > +}; > + > -- > 2.7.4 > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel