Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp1220691ybh; Sat, 3 Aug 2019 20:57:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqwPadKmfdBOEm3/6VnttoOdB02nSrl0a659caU4DMYL3oUu2zPC7xRBIGpVkxV16JZgHnzN X-Received: by 2002:a17:902:b696:: with SMTP id c22mr42248211pls.305.1564891049326; Sat, 03 Aug 2019 20:57:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564891049; cv=none; d=google.com; s=arc-20160816; b=yxeXGh2K8WBU/LIUh6dWlFUb/OMuso7WMgxftme3VdypWQZ3bK3KCG8rTk91YFF/bB oTXV+Vc3NILvw6xzFbbW3prS8AOyvgOm0dROVGVitPfFS3FYSUGW586hmrvTNh6yS9P0 ZWD1ohmmbmFIFqBF5gHXuipY8UXQDQhGr+SxYfopUjIwm7tta8i6CzNv5hlGcvGfTQQN 3ceW/F74tm4AFrwbgMvNVxj+VBR9mOF73N3kcFCJKS2R9gkO0o8P/OmKq5gy3nPfvoJt yMcyFhp6H0EWS0O3NfvRSOTtxfNB2arSwz3dG8GbUnbQxjydQW32Y0gdVzxoU+iawMw4 1U/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=giFFxAwzHVZcTDv5cDCIurtf5E8rD1w0AM4tyzYzsnQ=; b=URgUt5ruzDhyhhdUbVqLNXUKNGvMa560Vm0eCbPaD1VgZbtPJY9EiLraaGqHoGGw0w ot8O5x4tT/bZBcY0b9JpQikmIqR6ZqpllX0YrGd3F3Su8+3P7+RzAAD1OYCGF0QK9+Le 3KjxtPe620kU5x8BC87FhS1qdBNlzKckapw9gPGireW7f1UIne7nw1OqDmjEUWR8t8jc hitKzW2lkVyPzZfY7MpimV83DSya6qRNScX5yiujG/pkXIywgU/YvnUz0dZryRrCIEXS 09rnrA1X+dfXXbFWY9OzAj0dPFsvhaHC3x0h6Ap2YAY59qJa7ioFRTbRJD2ZdeBrrVLo 24Sg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@googlemail.com header.s=20161025 header.b=AqJbCsXD; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d4si43906601pgm.357.2019.08.03.20.57.14; Sat, 03 Aug 2019 20:57:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@googlemail.com header.s=20161025 header.b=AqJbCsXD; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728422AbfHCRwj (ORCPT + 99 others); Sat, 3 Aug 2019 13:52:39 -0400 Received: from mail-oi1-f196.google.com ([209.85.167.196]:34702 "EHLO mail-oi1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728389AbfHCRwi (ORCPT ); Sat, 3 Aug 2019 13:52:38 -0400 Received: by mail-oi1-f196.google.com with SMTP id l12so59250628oil.1; Sat, 03 Aug 2019 10:52:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=giFFxAwzHVZcTDv5cDCIurtf5E8rD1w0AM4tyzYzsnQ=; b=AqJbCsXDWob/b1bzOngByMcRxPfvkbkLz4G34Vbw2MZRlyroyApUC5Yw87zvK1Fur+ ApIUWtaYUtyP4jsJhLc+gdiuuNvpHs9jHIzxCAp91ZlfGebQMuEfPKgOhEWoSqbDqinM 3YB973dJ2gsupR7H4uAehDFoKZ1fLBkDf88snzFgsNMMy7LP8S6V1Su/qea2eX6LY5Bt Mc6LCYXIshNWNXUKtet/Mh2yuJdoqwCUDVkt+1FRiqqMLXrb6YtQA9OZYz3dM3MX/M9n vQ3zQo6Y/m6jnWotG6iMVH6ooG0O9XcBCoDO1up9zhMyWlMXB4Fb3B3GP4rc4bjb0ox3 3rQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=giFFxAwzHVZcTDv5cDCIurtf5E8rD1w0AM4tyzYzsnQ=; b=FpbYxujpCJTsMzFZAPUjNAMswInY0YLzPMevTlgUq3jU9T+PUY0WFTZ9BHmLr3o4aj d2GpInraScqm5qqoKHlwrqTqAra6pZ5h8hc10GMhmBJJd10rflOKzaLLkzzVBdjTNFfl VpWfbbYV08jZzgmUeJjiegoak3e/MWWyeJlsc8h2ORfA+tPfMYRfwXMKjeX5P86EYnGa +O7HHp3HUHfNy4HFejhzw6FWOTkdcwCQndSttA3WwQfG2XTetrZrf5o7FVHFR4I8+goC i7m0RCK0lHrxmTn0tlDgfetAi6hxXW40HufDLYASaVtSf7R5hF23PtJY9ZjPyMTQJ5/G yUNg== X-Gm-Message-State: APjAAAWsX83Um/775s0DJSl2ws8qkGD4rA2kAIEOmw/kAXKaPwchJteh nU60tCspBoQvuxnStpPS0qxPD35TLX8fIMqU+pxaTdBP X-Received: by 2002:a05:6808:3d6:: with SMTP id o22mr6383634oie.140.1564854757760; Sat, 03 Aug 2019 10:52:37 -0700 (PDT) MIME-Version: 1.0 References: <20190731153529.30159-1-glaroque@baylibre.com> <20190731153529.30159-4-glaroque@baylibre.com> In-Reply-To: <20190731153529.30159-4-glaroque@baylibre.com> From: Martin Blumenstingl Date: Sat, 3 Aug 2019 19:52:26 +0200 Message-ID: Subject: Re: [PATCH v2 3/6] arm64: dts: amlogic: g12: add temperature sensor To: Guillaume La Roque Cc: daniel.lezcano@linaro.org, khilman@baylibre.com, devicetree@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Guillaume, On Wed, Jul 31, 2019 at 5:36 PM Guillaume La Roque wrote: > > Add cpu and ddr temperature sensors for G12 Socs > > Signed-off-by: Guillaume La Roque with the nit-pick below addressed: Reviewed-by: Martin Blumenstingl > --- > .../boot/dts/amlogic/meson-g12-common.dtsi | 22 +++++++++++++++++++ > 1 file changed, 22 insertions(+) > > diff --git a/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi b/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi > index 06e186ca41e3..7f862a3490fb 100644 > --- a/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi > +++ b/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi > @@ -1353,6 +1353,28 @@ > }; > }; > > + cpu_temp: temperature-sensor@34800 { > + compatible = "amlogic,g12-cpu-thermal", > + "amlogic,g12-thermal"; > + reg = <0x0 0x34800 0x0 0x50>; > + interrupts = ; > + clocks = <&clkc CLKID_TS>; > + status = "okay"; I believe nodes are enabled automatically if they don't have a status property > + #thermal-sensor-cells = <0>; > + amlogic,ao-secure = <&sec_AO>; > + }; > + > + ddr_temp: temperature-sensor@34c00 { > + compatible = "amlogic,g12-ddr-thermal", > + "amlogic,g12-thermal"; > + reg = <0x0 0x34c00 0x0 0x50>; > + interrupts = ; > + clocks = <&clkc CLKID_TS>; > + status = "okay"; same here Martin