From patchwork Wed Nov 22 08:59:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nikita Shubin via B4 Relay X-Patchwork-Id: 168174 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2b07:b0:403:3b70:6f57 with SMTP id io7csp1189370vqb; Wed, 22 Nov 2023 01:05:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IGRp9e2F0HyvTEBHSt9bSD6AyGdGSBdAoe2nop7Euhil0aUrBam+iQTtdA3/FiqasMrspPu X-Received: by 2002:a17:902:eb4b:b0:1c9:e4f2:a39d with SMTP id i11-20020a170902eb4b00b001c9e4f2a39dmr1772572pli.49.1700643901402; Wed, 22 Nov 2023 01:05:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700643901; cv=none; d=google.com; s=arc-20160816; b=d2dsLnApkkRopcxGTOBeddIiwulv36H6hy4uIl1x25Vh9qKvdLZNqCkSw//KEUQ+vY hMkcb1d7jZHeMyqICLXYjxVKy+WWuvriJJwLJflRH8I8P6AUNkDyYR9t0SjFX/JYkrOA deP7s3CQQGt9qdGX6zYyhg7flSetKPzeJGhEj3YPqcejXaJRJ75klr37S+FoO7uxWW+u nljMUp0DQPM51bz3BvV8A7ymUCjPHbx8sgHG5pT7/YzenEFsVFWKITwXu7N/+hN9oDXt dB0M6wEs0T8gduQaLiUck+4xpzcbYXd1AAjR2u4ztZnYzWThtuawEt/QVycjk8in2zTv wpXg== 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 23.128.96.33 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 lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id u10-20020a170902e80a00b001cf65aa6256si5356391plg.386.2023.11.22.01.05.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 01:05:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; 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 23.128.96.33 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 1667D80963A2; Wed, 22 Nov 2023 01:02:40 -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 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:02:40 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783254379415764424 X-GMAIL-MSGID: 1783254379415764424 From: Nikita Shubin Add YAML bindings for ep93xx SoC SPI. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Nikita Shubin Reviewed-by: Mark Brown --- .../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>; + };