Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp5711433pxu; Wed, 23 Dec 2020 03:37:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJz3/wDzTh9ur+EPdRcLWnkMsDMacL0L9ZStsLPNhZPFCqUvaBZLaZ5zuSCvdJa6NnJTdPKa X-Received: by 2002:aa7:cf85:: with SMTP id z5mr24501087edx.274.1608723478906; Wed, 23 Dec 2020 03:37:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608723478; cv=none; d=google.com; s=arc-20160816; b=g1kINOt/xcl1tQtjhdyZyX1GHqphA9bldmSYYoJz28ITWrHstdV9KmGfPQQmypjaP2 XENmQurEWIFUiO/taZUsKkIwe+rnzodjAH2yG+jQH9RPaZ/zx0m3qjmomRlG9zskOf5e /kKQK8FvNmYldFBNg8AgGMTamyXIEI3B13pk835YwkgmC1WneHPZK5eyp6A/rax83UvL iSmfqt3YfmHZefwgcJ67KnciTvoyJD8OsCgQHIyPy7mJ9Pi+rA1KPEBXfzVTWmlpBD99 E9VsLwQLKsmotv1V0pWLs+BN2dfnDq5gdTbwXU/37CZT5pswlEd1XThpUEYuDav56vbQ Xhhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=KI4P+CuWA9WbYRQyyZq0IQ9wrutqbhMfEr8Jzi7/uqQ=; b=DQuH5HxbJ/UpmmrZIfvIj2ehnHWcn2O11dsOvnxj3qSjp5xMBJDgt3NnLeHYaEWkuJ BMzPTLSSqVgGIH0058e4qHEfap8Sg3meFPlt1gvF+e8lD4QL8yWylC74sKjiy2V8c/K3 RLBcH6iigLzYc/BkkJGm9vOTaz+iziQpsfLh+c5WrG6LmIwWo7Rxwv7mhyhJE1p0uQFY zkbbggdSJM4GAW5KRPjsaptiIyKn/2a46o0U1NMOcnkL6GmL6wYqeQfZY63RAxXYzrB1 wMMH0H7cBvOT7tEtIcAqXvieuEvlxH+11xeSgPrzqgSvXL/drXt13dClrLmfv06rnu8G owDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=EDKn08M6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id eb11si14089341edb.446.2020.12.23.03.37.36; Wed, 23 Dec 2020 03:37:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=EDKn08M6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728415AbgLWLfh (ORCPT + 99 others); Wed, 23 Dec 2020 06:35:37 -0500 Received: from mout02.posteo.de ([185.67.36.66]:44011 "EHLO mout02.posteo.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726022AbgLWLfh (ORCPT ); Wed, 23 Dec 2020 06:35:37 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 492792400FB for ; Wed, 23 Dec 2020 12:34:40 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1608723280; bh=vPEZFjnAwEL31lLaOjrnVmImH4lB2/Ft8e/cvHRPkgU=; h=Date:From:To:Cc:Subject:From; b=EDKn08M6zofvcEXXWL3b/rnb6tyb+UuZn40EKnouf8qIEKM5Bxsizi840xuQkw8Vr pRtEWDIs3zxjpyiFrKxm0RB50Jh5RpRZaQ+k0YfwGcSnIon6Ln0J3xmB1ciVjnXoj2 ZjircccJVQi/rTcRhFGUhZsFdQctwVXqjC5LV0d07jtqXTqgvINr5Vab+jMW40ZPZR 6UdBxgWwhUwYlUiWyainN4vmWj1cdEgG4eTNYxVYMBJSHy49i2Wc94hliaM308PfKn qVp5U8XnJ0CEN/xejtJcba+QpiGNhgQVXlY66knM/PxnBDcOMXyZx9Ka/4JOgMUbJQ V/ZLhIu8dvQ6Q== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4D1B263Kr1z6tm9; Wed, 23 Dec 2020 12:34:38 +0100 (CET) Date: Wed, 23 Dec 2020 12:34:37 +0100 From: Wilken Gottwalt To: linux-kernel@vger.kernel.org Cc: Ohad Ben-Cohen , Bjorn Andersson , Baolin Wang , Rob Herring , Maxime Ripard , Chen-Yu Tsai , Jernej Skrabec Subject: [PATCH v5 1/2] dt-bindings: hwlock: add sun6i_hwspinlock Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Adds documentation on how to use the sun6i_hwspinlock driver for sun6i compatible SoCs. Signed-off-by: Wilken Gottwalt --- Changes in v5: - changed binding to earliest known supported SoC sun6i-a31 - dropped unnecessary entries Changes in v4: - changed binding to sun8i-a33-hwpinlock - added changes suggested by Maxime Ripard Changes in v3: - changed symbols from sunxi to sun8i Changes in v2: - fixed memory ranges --- .../bindings/hwlock/sun6i-a31-hwspinlock.yaml | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwlock/sun6i-a31-hwspinlock.yaml diff --git a/Documentation/devicetree/bindings/hwlock/sun6i-a31-hwspinlock.yaml b/Documentation/devicetree/bindings/hwlock/sun6i-a31-hwspinlock.yaml new file mode 100644 index 000000000000..481c5c995ad7 --- /dev/null +++ b/Documentation/devicetree/bindings/hwlock/sun6i-a31-hwspinlock.yaml @@ -0,0 +1,44 @@ +# SPDX-License-Identifier: (GPL-2.0-only or BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/hwlock/sun6i-hwspinlock.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: SUN6I hardware spinlock driver for Allwinner sun6i compatible SoCs + +maintainers: + - Wilken Gottwalt + +description: + The hardware unit provides semaphores between the ARM cores and the embedded + companion core on the SoC. + +properties: + compatible: + const: allwinner,sun6i-a31-hwspinlock + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + resets: + maxItems: 1 + +required: + - compatible + - reg + - clocks + - resets + +additionalProperties: false + +examples: + - | + hwspinlock@1c18000 { + compatible = "allwinner,sun6i-a31-hwspinlock"; + reg = <0x01c18000 0x1000>; + clocks = <&ccu CLK_BUS_SPINLOCK>; + resets = <&ccu RST_BUS_SPINLOCK>; + }; -- 2.29.2