Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1295712imm; Sat, 4 Aug 2018 00:05:13 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcCyKuaueDdYi/U5cPl/oU4ByMzO35jpectHZ3s4EVFnthAbP1lAOrLhIAJndAzOASVX0QU X-Received: by 2002:a17:902:aa83:: with SMTP id d3-v6mr6329724plr.242.1533366313044; Sat, 04 Aug 2018 00:05:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533366313; cv=none; d=google.com; s=arc-20160816; b=F+mfRA5UipeLoApJT2bYYYqGyiZR2V7DNctgqHzDhKSMs/LUWp7KWgRkNNnKl/1LQy mCamvqNgzz3o7ynMONI6rUOfaxkKbaH0nTWWvwgwzIekq5Hs+GTQ2QvxO72sA/TAqyMM +OyhC11zExmKv/+29WnpFmHvaZU0jLGbS/mcwKn+gN2eUm/OPnKzGbObvig1Tk8hKFQk qHHkdnlpQ6165QGRQV2p2+wWtxYFiVDuwA9UphpXYQ3NZIIx+ktkR26ZmBd8tGVcsNbU Cs8jtG+/PG4TaS9stpgiF+57dOjMG2iOmx8DLjyWZ9CvxX74nc4HQzsJEH7/WYvceSan 3Rlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=CjTeJw/K74Tc06KcvV4eL4BEDxtQo6QNPJeqFIP/WXo=; b=kLII3q1goYak41pU8DGZWwrZtteRHJ51Mj07VuJKL8uc4otAmCeZXZnkKgJ0GskF1c SgL04+zTuiCReics3XkysukY2U0zL3+D2RIaIiGEbo/gXkcpwiVui+HNGB3etYKOWCga Qk49DUkejUjlkJ0qMK7bYuP5vbUX2mfaebvbqM6Rxujh7kEQjRbR9M6KMxZbcmhOvAHF bxY5LSjycIgn8bHeJLUKPk/oMQv7vHqcet+s9Z0cb3tGE3likda6y+8uggO6jaGwZ0uT baKUn5EXySvZWtF2sxag12SjkTuTpFAwsjZDz9fnK+sJWRbqsGKO1tqJeT9FlG+rTldO lIzg== ARC-Authentication-Results: i=1; mx.google.com; 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 e185-v6si6719419pgc.318.2018.08.04.00.04.58; Sat, 04 Aug 2018 00:05:13 -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; 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 S1727118AbeHDJDs (ORCPT + 99 others); Sat, 4 Aug 2018 05:03:48 -0400 Received: from mx2.freebsd.org ([8.8.178.116]:59333 "EHLO mx2.freebsd.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726186AbeHDJDs (ORCPT ); Sat, 4 Aug 2018 05:03:48 -0400 Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx1.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx2.freebsd.org (Postfix) with ESMTPS id 7B84F664FD; Sat, 4 Aug 2018 07:04:10 +0000 (UTC) (envelope-from manu@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C37C288E31; Sat, 4 Aug 2018 07:04:09 +0000 (UTC) (envelope-from manu@freebsd.org) Received: from skull.home.blih.net (ip-9.net-89-3-105.rev.numericable.fr [89.3.105.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: manu) by smtp.freebsd.org (Postfix) with ESMTPSA id 4566F15D4E; Sat, 4 Aug 2018 07:04:08 +0000 (UTC) (envelope-from manu@freebsd.org) From: Emmanuel Vadot To: rui.zhang@intel.com, edubezval@gmail.com, robh+dt@kernel.org, mark.rutland@arm.com, maxime.ripard@bootlin.com, wens@csie.org, catalin.marinas@arm.com, will.deacon@arm.com Cc: linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Emmanuel Vadot Subject: [PATCH 1/7] dt-bindings: Add DT bindings documentation for Allwinner Thermal Sensor Controller Date: Sat, 4 Aug 2018 09:03:49 +0200 Message-Id: <20180804070355.14857-1-manu@freebsd.org> X-Mailer: git-send-email 2.18.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch adds documentation for Device-Tree bindings for the Allwinner Thermal Sensor Controller found on the H3, H5 and A64 SoCs Signed-off-by: Emmanuel Vadot --- .../bindings/thermal/allwinner-thermal.txt | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 Documentation/devicetree/bindings/thermal/allwinner-thermal.txt diff --git a/Documentation/devicetree/bindings/thermal/allwinner-thermal.txt b/Documentation/devicetree/bindings/thermal/allwinner-thermal.txt new file mode 100644 index 000000000000..5810d44cf495 --- /dev/null +++ b/Documentation/devicetree/bindings/thermal/allwinner-thermal.txt @@ -0,0 +1,41 @@ +* Thermal Sensor Controller on Allwinner SoCs + +Required properties: +- compatible : should be "allwinner,-ths" + "allwinner,sun8i-h3-ths": found on H3 and H2+ SoCs + "allwinner,sun50i-h5-ths": found on H5 SoC + "allwinner,sun50i-a64-ths": found on H5 SoC +- reg : physical base address of the controller and length of memory mapped + region. +- interrupts : The interrupt number to the cpu. The interrupt specifier format + depends on the interrupt controller. +- clocks : Must contain an entry for each entry in clock-names. +- clock-names : Shall be "apb" for the bus, and "ths" for + the peripheral clock. +- resets : Must contain an entry for each entry in reset-names. + See ../reset/reset.txt for details. +- reset-names : Must be "apb". +- #thermal-sensor-cells : Depend on the SoC + For H3 should be 0 + For H5 should be 1 + For A64 should be 2 + See ./thermal.txt for a description. +- nvmem-cells : Phandle to the calibration data +- nvmem-cell-names = Should be "ths-calib" + +Example: + +ths: thermal_sensor@1c25000 { + compatible = "allwinner,sun8i-h3-ths"; + reg = <0x01c25000 0x100>; + interrupts = ; + clocks = <&ccu CLK_BUS_THS>, <&ccu CLK_THS>; + clock-names = "apb", "ths"; + resets = <&ccu RST_BUS_THS>; + reset-names = "apb"; + #thermal-sensor-cells = <0>; + status = "disabled"; + + nvmem-cells = <&ths_calib>; + nvmem-cell-names = "ths-calib"; +}; -- 2.18.0