Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1268549ybi; Sat, 8 Jun 2019 06:11:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqzguR4+UcOBT6mBdq7STFeSaDzaD8K+5y5nfJH56ic3P+j5QAXan6TKxBJzgS5m0iX1uf/i X-Received: by 2002:a17:902:1e6:: with SMTP id b93mr17846494plb.295.1559999460491; Sat, 08 Jun 2019 06:11:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559999460; cv=none; d=google.com; s=arc-20160816; b=m12LI4PJi7cnaonScAqKna4VOSzIOYOVwU/7XEqBn8qjAqkz70SsTdtYJ4llBa61Xb cDK+6Wjrd2aIZQrcIlXlrzAGvrbdT3eAcFuTG2vQOldgS6rPJG2H4DEgEAp9THeM2W3Q ERMQGje3x4jaxBhqr8LLS7IH+dz2GwpmzreLxFxVTQyVIJ1pqLHvKXQS2UYXk4jrMAIe A/IWlxToTVy+GCmU7hgD3/lVd4+H6rdfVah31T+/3W4TTfxPjlNlh8yp6p9Gym6qanE6 YwHsgQUVzBqq/m/WJXXm/opDFRpNgOJXFWcyhCNqAygLtZv2P3jQ8o4qKTVZ4FmQtwVO Yj/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=rOl1KdWA5ABg9GajFxkrqJDva2JzMNU0kr9zG9Gi5WI=; b=kiC0Fi4vhaHOJ/raqUoy0jpEZ08jdWnpbDGSeNWk8be9Fa2ip98IZerZjZxwu7QwF+ SNMfx6oDI+6qEdkuvgVT05+Ouf0EznG3SFUeL4tqiq3vkz72MVR1FG5hO+KdmBrZ01SJ nGSdVAb7nfXl/r1+jOc3W9t/OSf1tEfAHiYfbmkd+FXf6WDWQEIEsY3ngoYJHm+Ya5uY A+L6ZBHROatAiGoFDaNtpE5QcSIy+2r/okH7p8q3Uuy+b4Jpd9FNMfxGeA7KdoeYdppe CYb8SRGCKcnzWVYDC3ehTe5gGRvOctiUqBOsPaty56/N4xPe6+jcCE8+w+PPJRvss11G 3ngA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=kTRP1lkB; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u11si4620906pgp.200.2019.06.08.06.10.44; Sat, 08 Jun 2019 06:11:00 -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=@kernel.org header.s=default header.b=kTRP1lkB; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727038AbfFHNIn (ORCPT + 99 others); Sat, 8 Jun 2019 09:08:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:48148 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726870AbfFHNIm (ORCPT ); Sat, 8 Jun 2019 09:08:42 -0400 Received: from archlinux (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D235C214D8; Sat, 8 Jun 2019 13:08:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1559999322; bh=qibYb2+Tw2dU1CRX2K6Pe0fUHlSQcrMnJPszrmFTEhU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=kTRP1lkBO7Th+hJvCqVvf+XqzIVK/0uWu3eIEfvOUMeo08sbbZhNqAWA4tBhpRAAU cxZT+WUFVo+JH59Hs5VOuMgzNoEe2MsbRoE+A3YnHo+I1inieh/m26DbgtMebGfp3g QTlveRLXp53g509Wy8dIXpS6xQCnxcwBp/vZKkEw= Date: Sat, 8 Jun 2019 14:08:37 +0100 From: Jonathan Cameron To: Guillaume La Roque Cc: khilman@baylibre.com, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/3] Documentation: dt-bindings: add the Amlogic Meson Temperature Sensor Message-ID: <20190608140837.34a499a4@archlinux> In-Reply-To: <20190604144714.2009-2-glaroque@baylibre.com> References: <20190604144714.2009-1-glaroque@baylibre.com> <20190604144714.2009-2-glaroque@baylibre.com> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 4 Jun 2019 16:47:12 +0200 Guillaume La Roque wrote: > This adds the devicetree binding documentation for the Temperature > Sensor found in the Amlogic Meson G12 SoCs. > Currently only the G12A SoCs are supported. > > Signed-off-by: Guillaume La Roque Hi Guillaume, I'm afraid we decided a month or so back that all new dt bindings proposed for IIO drivers should be in yaml format. Please reformat this appropriately for v2 and make sure to run make dt_bindings_check. There are a few examples in tree already, but we are deliberately not converting existing bindings too quickly to avoid overloading reviewers. Thanks, Jonathan > --- > .../iio/temperature/amlogic,meson-tsensor.txt | 31 +++++++++++++++++++ > 1 file changed, 31 insertions(+) > create mode 100644 Documentation/devicetree/bindings/iio/temperature/amlogic,meson-tsensor.txt > > diff --git a/Documentation/devicetree/bindings/iio/temperature/amlogic,meson-tsensor.txt b/Documentation/devicetree/bindings/iio/temperature/amlogic,meson-tsensor.txt > new file mode 100644 > index 000000000000..d064db0e9cac > --- /dev/null > +++ b/Documentation/devicetree/bindings/iio/temperature/amlogic,meson-tsensor.txt > @@ -0,0 +1,31 @@ > +* Amlogic Meson Temperature Sensor > + > +Required properties: > +- compatible: depending on the SoC and the position of the sensor, > + this should be one of: > + - "amlogic,meson-g12a-cpu-tsensor" for the CPU G12A SoC sensor > + - "amlogic,meson-g12a-ddr-tsensor" for the DDR G12A SoC sensor > + followed by the common : > + - "amlogic,meson-g12a-tsensor" for G12A SoC family > +- reg: the physical base address and length of the registers > +- interrupts: the interrupt indicating end of sampling > +- clocks: phandle identifier for the reference clock of temperature sensor > +- #io-channel-cells: must be 1, see ../iio-bindings.txt > +- amlogic,ao-secure: phandle to the ao-secure syscon > + > +Optional properties: > +- amlogic,critical-temperature: temperature value in milli degrees Celsius > + to set automatic reboot on too high temperature > + > +Example: > + cpu_temp: temperature-sensor@ff634800 { > + compatible = "amlogic,meson-g12a-cpu-tsensor", > + "amlogic,meson-g12a-tsensor"; > + reg = <0x0 0xff634800 0x0 0x50>; > + interrupts = ; > + clocks = <&clkc CLKID_TS>; > + status = "okay"; > + #io-channel-cells = <1>; > + amlogic,meson-ao-secure = <&sec_AO>; > + amlogic,critical-temperature = <115000>; > + };