From patchwork Wed Feb 12 11:54:19 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nikolay Borisov X-Patchwork-Id: 1236805 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=suse.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 48HdNJ5wXbz9sPJ for ; Wed, 12 Feb 2020 22:54:24 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725874AbgBLLyX (ORCPT ); Wed, 12 Feb 2020 06:54:23 -0500 Received: from mx2.suse.de ([195.135.220.15]:57544 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725781AbgBLLyW (ORCPT ); Wed, 12 Feb 2020 06:54:22 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id B0389AC5C; Wed, 12 Feb 2020 11:54:21 +0000 (UTC) From: Nikolay Borisov To: mripard@kernel.org, bjorn.andersson@linaro.org Cc: devicetree@vger.kernel.org, wens@csie.org, robh+dt@kernel.org, linux-arm-kernel@lists.infradead.org, Nikolay Borisov Subject: [PATCH v3] dt-bindings: hwlock: Document A64 hwspinlock bindings Date: Wed, 12 Feb 2020 13:54:19 +0200 Message-Id: <20200212115419.29038-1-nborisov@suse.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200211122624.16484-4-nborisov@suse.com> References: <20200211122624.16484-4-nborisov@suse.com> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add binding for the hwspinlock found on Allwinner A64 SoC. Signed-off-by: Nikolay Borisov Reviewed-by: Rob Herring --- V3: Added #include directive. This makes the patch pass schema validation. .../allwinner,sun50i-a64-hwspinlock.yaml | 49 +++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwlock/allwinner,sun50i-a64-hwspinlock.yaml -- 2.17.1 diff --git a/Documentation/devicetree/bindings/hwlock/allwinner,sun50i-a64-hwspinlock.yaml b/Documentation/devicetree/bindings/hwlock/allwinner,sun50i-a64-hwspinlock.yaml new file mode 100644 index 000000000000..54270c8bb351 --- /dev/null +++ b/Documentation/devicetree/bindings/hwlock/allwinner,sun50i-a64-hwspinlock.yaml @@ -0,0 +1,49 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/hwlock/allwinner,sun50i-a64-hwspinlock.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Allwinner A64 SoC Hardware Spinlock bindings + +maintainers: + - Nikolay Borisov + +properties: + "#hwlock-cells": + const: 1 + + compatible: + const: allwinner,sun50i-a64-hwspinlock + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + resets: + maxItems: 1 + +required: + - "#hwlock-cells" + - compatible + - reg + - clocks + - resets + +additionalProperties: false + +examples: + - | + #include + #include + hwspinlock@1c18000 { + compatible = "allwinner,sun50i-a64-hwspinlock"; + #hwlock-cells = <1>; + reg = <0x01c18000 0x1000>; + clocks = <&ccu CLK_BUS_SPINLOCK>; + resets = <&ccu RST_BUS_SPINLOCK>; + }; + +...