Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp959068pxu; Fri, 11 Dec 2020 20:17:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJwd88TE+JhXd3GwTjkkd8j1rt9b1NRVNL5ekCSOTx1Wr3yfS7XfeZv/13IPivgs88FQOfxc X-Received: by 2002:aa7:cb0e:: with SMTP id s14mr15070505edt.122.1607746672274; Fri, 11 Dec 2020 20:17:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607746672; cv=none; d=google.com; s=arc-20160816; b=0GmhbeJ45nP91Xr85WA/0HMmR7a1exUKooiy5oxzSHih3vxX+B9JHOC2hW2udlRI3d 1siToO0a2FASHAZ3OyT7A0VAV/ltJ+T1uO3JjZz2R4GpQibHHwveFoQ6UzRLzCxSmEZU /Cm0CRtVAe122CIjr9sCuFJIz7R2QYC1XTMdUP0/jpp8HfNj2+VzEqHjkmDR37TNdbqp Vv0LCg1JY9y6E9Y4pvM2qND1jiasGmYNVL5COQgPc46MNuaGnEAw2/AIByfOk9nSZMKL 99bWBGb3C2lLoSPya3BzXEia+XgPVSdnSyQTszZ+w6RfelpR/1JO0Sf+dyCpMt6AJl2x nCjg== 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=wN52if9R4Dn1ntBAT3KNStF/ImvX5/JP26Fcpqu9xh0=; b=PbKGM2g3Uwyjv9ht12SqKMwXOj0oRegmwAsd7FKNUfApPmWsNe/wLjWx+ScISdXBZJ iKsV4Z80opoZhHK6MaaT/GGOBoW6z6k8x7BjCao3aZhREzpBPzM5ojMNM4ttibKvG3dZ vHwcmKdbNy1oHP64REevIgYQrij2GuUge8jUceMtVOUkJaHmXTZyWxs+2S7w1WcZBZKY hNjCpebXiIs60ZluhxJfSb5wpqRz/Q5po4YQ8AhMp8u0RrFAD0CFviacM/qSotgT7R2l b5koVB4bnYiTnyXBoiY7rZoSEajGcdzRBgS5gZzDGUeQdEES2uNiBwN+gM7zmF5JZXrb TkHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=acmTgQbP; 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 y7si6217437edp.7.2020.12.11.20.17.29; Fri, 11 Dec 2020 20:17:52 -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=acmTgQbP; 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 S2436929AbgLKI0P (ORCPT + 99 others); Fri, 11 Dec 2020 03:26:15 -0500 Received: from mout02.posteo.de ([185.67.36.66]:54291 "EHLO mout02.posteo.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2436895AbgLKIYt (ORCPT ); Fri, 11 Dec 2020 03:24:49 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id D0BD12400FF for ; Fri, 11 Dec 2020 09:23:50 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1607675030; bh=ELHJ+HjagMGq3J68GvyToGsJJtKkqWCZWW3r3lJihx0=; h=Date:From:To:Cc:Subject:From; b=acmTgQbPu5APoqoxe653lB026rpKbNjYpE2fMiQi3l/jnDRNNW7R69J/kWpI8Qgdr sHYIE8kX9ja1RpzsaXXlK1106omPfJ1fYTa5DTb6bAb0slA3Wy9ucO/VocajwGivoV 2zRheOBT1CZoiDdSwmMdD/6CQMAR7o4ivFrvw6Uveii4/BftXV3wr96ri5KTmS8Btx rXECxwi92Z1R0arlMPJsv9HutyxzQrkH3ac2d3f7yVbv/IrVjXzJhzg53zxA8YkN2O tnkaTfSmmcUKj6MaGCfI6/QDCwpbNE/E4KJkjIHYG5XuC2b5lXG9F+0j8u8jkYSIN5 RslYB41KnSUgg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4CskMT5zJ3z9rxc; Fri, 11 Dec 2020 09:23:49 +0100 (CET) Date: Fri, 11 Dec 2020 09:23:48 +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 v4 1/2] dt-bindings: hwlock: add sun8i_hwspinlock Message-ID: <8b0c0b80bfc2dbb9010bac00fe0c90493ad8db09.1607674518.git.wilken.gottwalt@posteo.net> 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 sun8i_hwspinlock driver for sun8i compatible SoCs. Signed-off-by: Wilken Gottwalt --- 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/sun8i-hwspinlock.yaml | 56 +++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwlock/sun8i-hwspinlock.yaml diff --git a/Documentation/devicetree/bindings/hwlock/sun8i-hwspinlock.yaml b/Documentation/devicetree/bindings/hwlock/sun8i-hwspinlock.yaml new file mode 100644 index 000000000000..76963d8abd5f --- /dev/null +++ b/Documentation/devicetree/bindings/hwlock/sun8i-hwspinlock.yaml @@ -0,0 +1,56 @@ +# SPDX-License-Identifier: (GPL-2.0-only or BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/hwlock/sun8i-hwspinlock.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: SUN8I hardware spinlock driver for Allwinner sun8i compatible SoCs + +maintainers: + - Wilken Gottwalt + +description: + The hardware unit provides sempahores between the ARM cores and the embedded + OpenRisc core on the SoC. + +properties: + compatible: + const: allwinner,sun8i-a33-hwspinlock + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + clock-names: + items: + - const: ahb + + resets: + maxItems: 1 + + reset-names: + items: + - const: ahb + +required: + - compatible + - reg + - clocks + - clock-names + - resets + - reset-names + +additionalProperties: false + +examples: + - | + hwspinlock@1c18000 { + compatible = "allwinner,sun8i-a33-hwspinlock"; + reg = <0x01c18000 0x1000>; + clocks = <&ccu CLK_BUS_SPINLOCK>; + clock-names = "ahb"; + resets = <&ccu RST_BUS_SPINLOCK>; + reset-names = "ahb"; + }; -- 2.29.2