Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5516767ybi; Tue, 4 Jun 2019 07:50:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqzmjGRmaHZORGVtvRJZLow50gQvmd1s/KyuZzf1wAaqJmt5DnACMXAyUwfAQRsxCnZ8LSd6 X-Received: by 2002:a63:1b22:: with SMTP id b34mr2965191pgb.382.1559659832191; Tue, 04 Jun 2019 07:50:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559659832; cv=none; d=google.com; s=arc-20160816; b=TI2KLQ0xfBAItLeGtrMLLe9o4rJHZSGIZ5xbfT61kBXIKmPMximJBTqMbaXHL7TF1c Pf0lv6YNuMTJnUMv3DJTDnoN7t+ArysJkG6+xQ9BuGAQSjbBlDdO5Qkp1foFFRSumOOd vMfbFrBa94Z6SabnUhLYo5wQmNqxAzo9jIgWoPemat66hYtgVoc7vRtBI5NTlzMYulH3 fGGd57/0HB7JjKa5njWC/IFINtgBAHC0+wgA9vBO8Tl4HqY5yKao0210dtVNbr5SZeHu 3YT27TSQ9yAl3QfOMc2UKluVSq1obmyS/jW4uOza1F+dGFq+2HdgpQIkJIdOq8sI9l+W lNvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=SnjvT/D0cW1JiliaxzQrnOjeQzlchEAI6VR+JZ5y+Qk=; b=nHNVK6K2VyifjBegs68xJjL/+Fmq9uaBKtwO8gSoe11J1j80B++LFnSrcq42TjprPX SYK8sNf9I/PqIu21MaMiJ9L6mBzsX0QI59ImEHxHJCeHlouaPYLZvnYR4v3UvxC9djt1 c8f4IxVaJ9ZWEhSvkRgl38O5H9Ct7V0WqD9PJG1r9yH9akEo2IXVkI49p4EzScz1cOBZ 4zL1WhPHC0+tc7RVRvnYv0pdHb6hgXLZ2Gll6IfAgdsJyHDH0Ihng7sejnzfNkxQaUG+ l45RMbZJZZp9Op5kdrdJ3YOLjGkuDbTeATe/ckoGnEyiVSNPpdYA7RUzZyuiEncAjekr 563A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=b1GKNOnN; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x19si23024668pgj.92.2019.06.04.07.50.14; Tue, 04 Jun 2019 07:50:32 -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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=b1GKNOnN; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727877AbfFDOrV (ORCPT + 99 others); Tue, 4 Jun 2019 10:47:21 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:38056 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727822AbfFDOrT (ORCPT ); Tue, 4 Jun 2019 10:47:19 -0400 Received: by mail-wr1-f66.google.com with SMTP id d18so16135705wrs.5 for ; Tue, 04 Jun 2019 07:47:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=SnjvT/D0cW1JiliaxzQrnOjeQzlchEAI6VR+JZ5y+Qk=; b=b1GKNOnN95jk6p9sY+UTKLGXWVTPtbcumXKRhyS/7BVQ0GSsVUG3onM+bQfdjl6yoc ukbAzcipgmBZWkOSbAkttBYNgCq6tDvGfhzOFjJAodCqZKHhLdCtnFSdGB+EhpvJVWVv Ao5yFwm+UVLgGbs0siLkS87AK9ePzyhi+lbK6avLEqyfxa2tcWEtIsf8/g+PA8vxqy0a XzPgCwVb972Ddl9WFCD+0q8Qg0S6z4D/KffGpWfog+syujg7OJWZPxJemwHT44InwjGo +8Z8xPxWQpIyOay3xiAVFFEa5JWwSWFNWlvuDSWLPeUWykVajK4/5dpKHsoeVERZzb2i hWIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=SnjvT/D0cW1JiliaxzQrnOjeQzlchEAI6VR+JZ5y+Qk=; b=Tw2Hvlasin/01EDzhBkl2mh7LSxdm1G4rN0pFDFgKhgNFZ3NM0ujPj6vJQ9YbIRUGi wDFcbeHn5Dnuf8SCA1gKC1lNVPcUDjBFXaiPvb8fgcUNXX45bWXCZ7c0gke8r6W1EUvI iDjwDBhSz6hH72eWuuydm0F7kgaHChRqcT/0bTzcJ0If/nh2HTKyHMS4p5BbL4Q5xV0s duiHEEhueRGO1tTaXkyPQa+ap+qTQn7JmU40GXXuYg131+pwwWEEcNGj70zdKo1i18cT ZmcyAW5zUjQDyUjNLZEuzTspuwIHRVNYA4y/TpetT9QBJ44ybHcDpHDR2rvy5hlbEaZB 4vYQ== X-Gm-Message-State: APjAAAUJuIoGiNaEf6tqSsYGXm46Eh4X5/LIy9SiSb/ms00PlgsVfGuj HpYTPHyU6b0iBawXchqc4quKOQ== X-Received: by 2002:adf:e54b:: with SMTP id z11mr6859295wrm.198.1559659637766; Tue, 04 Jun 2019 07:47:17 -0700 (PDT) Received: from glaroque-ThinkPad-T480.baylibre.local (lmontsouris-657-1-212-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.gmail.com with ESMTPSA id v184sm3649639wme.10.2019.06.04.07.47.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 04 Jun 2019 07:47:17 -0700 (PDT) From: Guillaume La Roque To: jic23@kernel.org, khilman@baylibre.com Cc: 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: [PATCH 1/3] Documentation: dt-bindings: add the Amlogic Meson Temperature Sensor Date: Tue, 4 Jun 2019 16:47:12 +0200 Message-Id: <20190604144714.2009-2-glaroque@baylibre.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190604144714.2009-1-glaroque@baylibre.com> References: <20190604144714.2009-1-glaroque@baylibre.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- .../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>; + }; -- 2.17.1