Received: by 10.223.176.5 with SMTP id f5csp2365294wra; Sun, 28 Jan 2018 18:59:04 -0800 (PST) X-Google-Smtp-Source: AH8x227U489bhE76ohJGy4agC+xJuc0yBTg/Sa8lANTsVoK7fbKhTjeUlkgW6OHhaiTUI0oAN6K0 X-Received: by 2002:a17:902:14cb:: with SMTP id y11-v6mr649811plg.294.1517194744579; Sun, 28 Jan 2018 18:59:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517194744; cv=none; d=google.com; s=arc-20160816; b=Izl0YBztWq04hmz7yKVt3rKmnh1AZm6d7Npezp6c5+FYVJYznf+rqqciuyJR8I8caO 0wHsLuKa+U0cIPggAwfTWOeIzERijJNytiT46A3uJZeQ1HPEU0Cjx/ksI8oOUHmqcEvB 4E7EcrKwlHRYDw6Kj/ksOJxQsVhDk8hayPcE6rZtXS4oQqpiKavPtxlsIsptixq9IV8Z +5o577ahrQOd4rC+TjBSLPtO9ji0uH/swkpEYpB/oj6wT12GJT8rdaL0XZpmtJY6peo3 6/eI8slSsb0f809cFZvZlUU25VniNaIV0HB4dka0fvj6mD9swtMtXADlhN/mO6riti4b 2tRg== 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:arc-authentication-results; bh=h9SW8obiZ2fwpI772CKWPhFZEU+9HOmw4prJnMEuq3w=; b=a1jFO1vcVYML7SlqfovbUFGPXnSPghzYoYoHjQ5kZuSaqXwvFx5V3Q91de7AjxiT7O XX1FQQwvgZrNeZgmEjTn6Y9kfrSKkNfDYSPei1otyZ+vB4ViyfHQCkXc21/dtsmZPUG0 uFIpetzZnWRQGVu5jJb8lJg1wC/c/gC1w6O/Fpi4RJFKOUvU5WSAxOgWzkihgdKnFf9L e1a4DzlbABc9b7V/Bxo/3zJ2JOVbjevBTRt1j8X3fLn/j7Vf6Sie+ILmOw6Vk7GJ8ifG sE+BHqihF6C9N+JRhZpykVzjhNOdXzr7DuHN9ESU8CXlxLv8B/ARJ4XbPF2BlycZz088 7r3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=JM8Chptd; 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=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 2-v6si2738532plc.784.2018.01.28.18.58.50; Sun, 28 Jan 2018 18:59:04 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=JM8Chptd; 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=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754491AbeA1Xdd (ORCPT + 99 others); Sun, 28 Jan 2018 18:33:33 -0500 Received: from mail-wm0-f68.google.com ([74.125.82.68]:38317 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751572AbeA1X3Z (ORCPT ); Sun, 28 Jan 2018 18:29:25 -0500 Received: by mail-wm0-f68.google.com with SMTP id 141so30293375wme.3; Sun, 28 Jan 2018 15:29:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=h9SW8obiZ2fwpI772CKWPhFZEU+9HOmw4prJnMEuq3w=; b=JM8Chptd3z001IiILKhVLXC4i4mobuJ+Eyg4jfQYxBtlfj1sdknwK/OXPjUquax9tL 3tf3Xs0qSeuTNecIJq5FDRschoexz0uMNHeEfrQFSz+CmbDa89v5Oas3R6qQVKYeIxZO nyLdZEhLK6lNwQN3bWCWDDZv5xme+QVoLxTO7kKPOM1pvS3iWxcC1kU9yQ/co5g2KvSm rTkZB1xarsrq+MYhsNO+C2hQrMQgOIUcnuvycvSDo5C4sG1QmCP07+MrbO7uMnIXSpVm jJhlLrTvo1ro+zquvieA150515L9GRhPnw3QAFVfW/X0mJ6IFknNA+A0XjdNoId3fLhz k2xw== 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=h9SW8obiZ2fwpI772CKWPhFZEU+9HOmw4prJnMEuq3w=; b=KE1hWuxkMI/GIjKTJRkSUnDtjrpo/RHkIWb3QHm8MVnr9Y9A2lyVjmwFlpQKQGaCvz aZf1+ubnaayBBmH21h5Pi9aNfRkgFuWlynUq44tv/YeJhBWpYYdHTvSwwYtLEPDocX+Y fAD9yly0BkaYKHlTrXHWZUGBThpjcQ15wfWU/jnsnZEJuJItmi2N6BIwjaBKwLV1WcB2 WT4TkCQS2cJYKDSOKQ0UoSPOjyMvpcdiJSLGaNQ4GXXMBFbKDYC7/NT8Ag+8IB/UYANs eR43+/iwSp/M8mWF600e56ejBBMpTkQ7D57LsnUIaIp9aqjfyAB6T1fNUB4MOrFN+jfz viRw== X-Gm-Message-State: AKwxyteR7lIfqNrEhs1eubys0UKf2YWKDFEazF3DpSfVWMrOwJtMmMpr rN4yhnLa6yQTG8WIeT8T+g0= X-Received: by 10.28.134.140 with SMTP id i134mr18396534wmd.57.1517182164207; Sun, 28 Jan 2018 15:29:24 -0800 (PST) Received: from debian-laptop.fritz.box (p578F04D2.dip0.t-ipconnect.de. [87.143.4.210]) by smtp.gmail.com with ESMTPSA id m86sm11839223wmi.40.2018.01.28.15.29.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 28 Jan 2018 15:29:23 -0800 (PST) From: Philipp Rossak To: lee.jones@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, maxime.ripard@free-electrons.com, wens@csie.org, linux@armlinux.org.uk, jic23@kernel.org, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, davem@davemloft.net, hans.verkuil@cisco.com, mchehab@kernel.org, rask@formelder.dk, clabbe.montjoie@gmail.com, sean@mess.org, krzk@kernel.org, quentin.schulz@free-electrons.com, icenowy@aosc.io, edu.molinas@gmail.com, singhalsimran0@gmail.com Cc: linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com Subject: [PATCH v2 01/16] dt-bindings: update the Allwinner GPADC device tree binding for H3 & A83T Date: Mon, 29 Jan 2018 00:29:04 +0100 Message-Id: <20180128232919.12639-2-embed3d@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180128232919.12639-1-embed3d@gmail.com> References: <20180128232919.12639-1-embed3d@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Allwinner H3 features a thermal sensor like the one in A33, but has its register re-arranged, the clock divider moved to CCU (originally the clock divider is in ADC) and added a pair of bus clock and reset. Allwinner A83T features a thermal sensor similar to the H3, the ths clock, the bus clock and the reset was removed from the CCU. The THS in A83T has a clock that is directly connected and runs with 24 MHz. Update the binding document to cover H3 and A83T. Signed-off-by: Philipp Rossak --- .../devicetree/bindings/mfd/sun4i-gpadc.txt | 50 ++++++++++++++++++++-- 1 file changed, 47 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/mfd/sun4i-gpadc.txt b/Documentation/devicetree/bindings/mfd/sun4i-gpadc.txt index 86dd8191b04c..22df0c5c23d4 100644 --- a/Documentation/devicetree/bindings/mfd/sun4i-gpadc.txt +++ b/Documentation/devicetree/bindings/mfd/sun4i-gpadc.txt @@ -4,12 +4,35 @@ The Allwinner SoCs all have an ADC that can also act as a thermal sensor and sometimes as a touchscreen controller. Required properties: - - compatible: "allwinner,sun8i-a33-ths", + - compatible: must contain one of the following compatibles: + - "allwinner,sun8i-a33-ths" + - "allwinner,sun8i-h3-ths" + - "allwinner,sun8i-a83t-ths" - reg: mmio address range of the chip, - - #thermal-sensor-cells: shall be 0, + - #thermal-sensor-cells: shall be 0 or 1, - #io-channel-cells: shall be 0, -Example: +Required properties for the following compatibles: + - "allwinner,sun8i-h3-ths" + - "allwinner,sun8i-a83t-ths" + - interrupts: the sampling interrupt of the ADC, + +Required properties for the following compatibles: + - "allwinner,sun8i-h3-ths" + - clocks: the bus clock and the input clock of the ADC, + - clock-names: should be "bus" and "mod", + - resets: the bus reset of the ADC, + +Optional properties for the following compatibles: + - "allwinner,sun8i-h3-ths" + - nvmem-cells: A phandle to the calibration data provided by a nvmem device. + If unspecified default values shall be used. The size should + be 0x2 * sensorcount. + - nvmem-cell-names: Should be "calibration". + +Details see: bindings/nvmem/nvmem.txt + +Example for A33: ths: ths@1c25000 { compatible = "allwinner,sun8i-a33-ths"; reg = <0x01c25000 0x100>; @@ -17,6 +40,27 @@ Example: #io-channel-cells = <0>; }; +Example for H3: + ths: thermal-sensor@1c25000 { + compatible = "allwinner,sun8i-h3-ths"; + reg = <0x01c25000 0x400>; + clocks = <&ccu CLK_BUS_THS>, <&ccu CLK_THS>; + clock-names = "bus", "mod"; + resets = <&ccu RST_BUS_THS>; + interrupts = ; + #thermal-sensor-cells = <0>; + #io-channel-cells = <0>; + }; + +Example for A83T: + ths: thermal-sensor@1f04000 { + compatible = "allwinner,sun8i-a83t-ths"; + reg = <0x01f04000 0x100>; + interrupts = ; + #thermal-sensor-cells = <1>; + #io-channel-cells = <0>; + }; + sun4i, sun5i and sun6i SoCs are also supported via the older binding: sun4i resistive touchscreen controller -- 2.11.0