Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp950753rdf; Wed, 22 Nov 2023 01:05:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IH//cYyj8uWf5We8aw/LAmppgD/CYVqS1f164Psc8+2l5U3yluGvVIy50wuBsdzDIqQNu5x X-Received: by 2002:a05:6a20:9188:b0:189:bf74:19ce with SMTP id v8-20020a056a20918800b00189bf7419cemr1763530pzd.4.1700643902919; Wed, 22 Nov 2023 01:05:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700643902; cv=none; d=google.com; s=arc-20160816; b=xOPB8l5sFKTzesWgH3prFA+7Y7qc49Towk+skz5sgzexy2TiIh0RxxYZU8x3BNu1ne Vp1Ko89Sbg0c7Zhzm72y6ci5N6GeNIpG8athDlU3Pl8QgUS+4BLmbLXdz3VbtrDWkEno GFDJGOb6e1m+vysvOwNywgpflOY7EDokqvkKUghjRQCUjaOmLkjTay814n+8De2B+/bi d/fhTSx8Rjrej9p2yjR4v4n7HgaGpFLStFWcl0l29ZW4TXe0G2ww6TKGOFi1EQzA6w/R YSSyShzAmiecinKYkKkpB5+tvAfHseskDL18nx2a3i50JNX6RYKj7jttZGG2pQW7lFsS aXPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:reply-to:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=h8laA33BNhlLBg3QxHlMe7im3HXi2rAdet9hUAVlH0w=; fh=XjwOa6pyKopYroFxZbin7nG6wKcpzHQ/VJcEvcBux8A=; b=ZNlijdBlBQ6Cdg38s59SeioqYFSJoORMI+KMeaRfFUXzBcVL+9PgMgXhEhrEop3RJR PU3peYbQGL7b5GIWLQnDP2QiU8yf585bynHVe4XBTlHIC2hI+tg22zEQi308xpT4KB2k /z7XhmSJG+mBwjtmJ/5TmEkTS4NfS1AvEJya2Cl05EK+wqY4GMu6FHoj3iy/aY3ls6qF Oo73tTTffjaSVTxfg64PV3oodBgXO7coy5s0pdgrBeVsPZeQafjSvthxWRctuo/692B9 Pal4nDTYXvvJDsy7KWApaq4MrdPw93ciAmwOKd/vTB3U/dGmfg4p2FiP9amOy5isfy8y jvCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JIp+wyxx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id t1-20020a17090aae0100b0027d33155aefsi1041333pjq.99.2023.11.22.01.05.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 01:05:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JIp+wyxx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 89D358097150; Wed, 22 Nov 2023 01:03:06 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343677AbjKVJCX (ORCPT + 99 others); Wed, 22 Nov 2023 04:02:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235093AbjKVJBW (ORCPT ); Wed, 22 Nov 2023 04:01:22 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6149C9E for ; Wed, 22 Nov 2023 01:01:18 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPS id 1DA75C116B1; Wed, 22 Nov 2023 09:01:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700643675; bh=0RqHB9PnuVV/vsO87D5tAkCkE4lheAOLKkN4oxERFro=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=JIp+wyxxepTQ3404MSlH8/Scmym+54L1VqfOXQcrJfR7gjb+Zbi+kgfjFNMhMXdgj WcMEyUjNVBRhkQ9Izu1woQojtj98q0WMCaJTP2a4McaOmnq1s+tkAWCiHuTGVuyTei E5G/so+3Rqpiyq8LlnUC7G1jjjhvkjm6z3fr6TfeTgbpsmMwTrVrw12oEhJqT+gm4+ /PSciPmlDoQaTFWQsr5WlF5SCSNv7Ep9QPJPnXI0Z5fuiMKa1h/1kxFtLeQje/ZXL+ TIPNflpgZQ2aIF2skyEgsTX8oxlkVABENTVemAoxyeiaaWPOieEYIz2bVbsjg36NED GptsaZVRC9hZA== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 08696C61D92; Wed, 22 Nov 2023 09:01:15 +0000 (UTC) From: Nikita Shubin via B4 Relay Date: Wed, 22 Nov 2023 11:59:52 +0300 Subject: [PATCH v5 14/39] dt-bindings: spi: Add Cirrus EP93xx MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20231122-ep93xx-v5-14-d59a76d5df29@maquefel.me> References: <20231122-ep93xx-v5-0-d59a76d5df29@maquefel.me> In-Reply-To: <20231122-ep93xx-v5-0-d59a76d5df29@maquefel.me> To: Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Alexander Sverdlin , Nikita Shubin Cc: linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Alexander Sverdlin , Krzysztof Kozlowski X-Mailer: b4 0.13-dev-e3e53 X-Developer-Signature: v=1; a=ed25519-sha256; t=1700643671; l=2249; i=nikita.shubin@maquefel.me; s=20230718; h=from:subject:message-id; bh=p8nigAGltJtSlh1QYGLdck6FshaUl1GLyOnIiPiTqq0=; =?utf-8?q?b=3DGqeMvj/fL+0Z?= =?utf-8?q?b0bHD46t00H7ox+nn5GeqsnFa7eq2RFx5yvCzSQQLuH+nZu525ZGdYt/IrZuyly0?= jA/04TUoB4p+F4D7Lt06bA3tXhRM7HDOcotKVF6Sx3QqSEU3+qKE X-Developer-Key: i=nikita.shubin@maquefel.me; a=ed25519; pk=vqf5YIUJ7BJv3EJFaNNxWZgGuMgDH6rwufTLflwU9ac= X-Endpoint-Received: by B4 Relay for nikita.shubin@maquefel.me/20230718 with auth_id=65 X-Original-From: Nikita Shubin Reply-To: X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Wed, 22 Nov 2023 01:03:06 -0800 (PST) From: Nikita Shubin Add YAML bindings for ep93xx SoC SPI. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Nikita Shubin --- .../devicetree/bindings/spi/cirrus,ep9301-spi.yaml | 70 ++++++++++++++++++++++ 1 file changed, 70 insertions(+) diff --git a/Documentation/devicetree/bindings/spi/cirrus,ep9301-spi.yaml b/Documentation/devicetree/bindings/spi/cirrus,ep9301-spi.yaml new file mode 100644 index 000000000000..ba249840e7e5 --- /dev/null +++ b/Documentation/devicetree/bindings/spi/cirrus,ep9301-spi.yaml @@ -0,0 +1,70 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/spi/cirrus,ep9301-spi.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: EP93xx SoC SPI controller + +maintainers: + - Alexander Sverdlin + - Nikita Shubin + +allOf: + - $ref: spi-controller.yaml# + +properties: + compatible: + oneOf: + - const: cirrus,ep9301-spi + - items: + - enum: + - cirrus,ep9302-spi + - cirrus,ep9307-spi + - cirrus,ep9312-spi + - cirrus,ep9315-spi + - const: cirrus,ep9301-spi + + reg: + items: + - description: SPI registers region + + interrupts: + maxItems: 1 + + clocks: + items: + - description: SPI Controller reference clock source + + dmas: + items: + - description: rx DMA channel + - description: tx DMA channel + + dma-names: + items: + - const: rx + - const: tx + +required: + - compatible + - reg + - interrupts + - clocks + +unevaluatedProperties: false + +examples: + - | + #include + #include + spi@808a0000 { + compatible = "cirrus,ep9301-spi"; + reg = <0x808a0000 0x18>; + interrupt-parent = <&vic1>; + interrupts = <21>; + clocks = <&syscon EP93XX_CLK_SPI>; + dmas = <&dma1 10 2>, <&dma1 10 1>; + dma-names = "rx", "tx"; + cs-gpios = <&gpio5 2 GPIO_ACTIVE_HIGH>; + }; -- 2.41.0