Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp3198273lqp; Tue, 26 Mar 2024 02:26:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWHchFWNMM1yXYbtMkmPWaOe21Sdmm3Hqx1n/4kouUx1Lo7GpeNIDmKfG1F8ICJ3GqDi7Y4s5msg/0lLWE7UcathytK0Wp5qxZPznZD3g== X-Google-Smtp-Source: AGHT+IEBhaFsuFZvhYAau2yq9Rw+EJnzgicHTEjrB2+A8AxUK5vOvJvrzoveS80k8BYWPFhO9AHf X-Received: by 2002:ac8:7d84:0:b0:431:481e:fc81 with SMTP id c4-20020ac87d84000000b00431481efc81mr9047058qtd.12.1711445218260; Tue, 26 Mar 2024 02:26:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711445218; cv=pass; d=google.com; s=arc-20160816; b=uXJBak0OVRzNnfGnaITXp4e06X/e4R8pU6MWSr4TmWmWHAqGZWC5y9oaC/b9/hIlHY fQZ8YsxDcBYuvDw2gamVY70remsPistwh8MBEzQ40KK+Duo6NQByMOGPJkoBB4IoAxqK CSLrAiAkJLy4BiUyFsQpuTMG2gtmpLSV5WpbT+RkbKpQThiMZDftuBhTeIeKqJ5OJp4G j45ENJDNmdiKTuQdhCPnH3ImUDAP4z+TSaFUjJUgt9sZbseE97k1SGD7KipoKu9cQa0v 9LhUBsR5eWeQYMx9uy/ibLe63MTSiKV9ECZd0QDgBiLVvV15HWvnhEjDpq5jbYQmdPLj IgvA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=reply-to:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:subject:date:from:dkim-signature; bh=CPCck/vXkk8ITYrd2atryh19tPqjuxWZRUzZCNmqoAg=; fh=tRCDFf4oxjBj47MPLetA88Mp5wmpJ4AMttNl+d2wE9k=; b=BemDC+WsF36IQhia37ds3Aa3aYybi+jqYgZMFKpLSF2BJIn7cgqzRplOPFavtNS/dT kZzYWG1JCToWXQ3FfVYIwP4NhbqR3b3cdujS/qnSlNRV9qhFGEkyN5MNUSywZpsGwQoU RHjzxCZct24wgxvumd3PF6vXW3bChj2tbhUhFo7UThj2xjmejhF45PAxOnaRt3cDSQQl Lhir93OzWTm1gWNSkia2n8JhJALsgWqBYV26csl9BiOY4umW4eOkxCkUoORHK4S+RwZK Ha8GHJ3xsqw1mX2GoBox3Jl+gFei0fc0uJy28cXhM6iLBqOUeo//Y+7Tt6R4UCj0KFW8 g4/w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BTM6tzL2; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-118649-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-118649-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id bp33-20020a05622a1ba100b004313c5fadd1si7027616qtb.33.2024.03.26.02.26.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 02:26:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-118649-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BTM6tzL2; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-118649-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-118649-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id F3C601C292E9 for ; Tue, 26 Mar 2024 09:26:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AD5611272D2; Tue, 26 Mar 2024 09:20:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="BTM6tzL2" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 52E126BFA8; Tue, 26 Mar 2024 09:20:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711444842; cv=none; b=uI/BL9cN7Wgym5k57XI4r2+a8uC0xnH/3FJSBx9GOo3hpIEgLUI76LP+k2RG0l/PPDV5kWTE86gE4lw0GRP7Q4hqWceTG3y862p+ShtwNZmhC8YvouTwva4i8L6hTxT+1Hmgr/vYs5SmzgvXYKtqJtz4qIc4bRPp3SitcciKeLo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711444842; c=relaxed/simple; bh=VNwPggiAWASAvwqtJd7Wj3ItapLp0dhIgz2LnHUWvFk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=nQVyrzjZqnXtaKHg8tzLKFmujJZ7dVlSilg30QoAXegIQ53pqUciu3zc6gCGtGnEABeDFtEx+zo/CNkMV+nBSnspf/7Mx2E62QmxzJniqeAk7cRtVTSfG8vTjUr4fL9CWMxy3CA8VEbIvWMOFuULYzbKYbIxMIWczIJ536UAv4A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=BTM6tzL2; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id A3C15C433F1; Tue, 26 Mar 2024 09:20:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711444841; bh=VNwPggiAWASAvwqtJd7Wj3ItapLp0dhIgz2LnHUWvFk=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=BTM6tzL2cCvRDxqNxd46xEkrq0kBhBKEYFXVCT1za7DkHvhjxKba2MVEbmzEsArU7 JZJwbuz3+OsOZXUgbAS4qk4x5A740YvKq2qWFcevEIFAeou13QTKIoyMygBjderhSt yR8wJPW7x6mydJmTbSWYNTq3WPqu4FBf1otOBufjhmunDgLTxoMTPcjtODxPhzsPPe 8rkno8zRNe3Vkr9tWxlbNTzkf/Z8iCj02Jc7noeOPME8v4m7YXlI3cUZvdKRUzxjyi nRV2FQbYqC8HNcmr05PhvD0Blb2j9OiOXG29hu4t1f/CCDyvlOBZZn7/W3ePbXBAdX OC5rE7SUZDSsQ== 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 9A271CD11DB; Tue, 26 Mar 2024 09:20:41 +0000 (UTC) From: Nikita Shubin via B4 Relay Date: Tue, 26 Mar 2024 12:18:41 +0300 Subject: [PATCH v9 14/38] dt-bindings: spi: Add Cirrus EP93xx Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240326-ep93xx-v9-14-156e2ae5dfc8@maquefel.me> References: <20240326-ep93xx-v9-0-156e2ae5dfc8@maquefel.me> In-Reply-To: <20240326-ep93xx-v9-0-156e2ae5dfc8@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, Arnd Bergmann , Krzysztof Kozlowski X-Mailer: b4 0.13-dev-e3e53 X-Developer-Signature: v=1; a=ed25519-sha256; t=1711444837; l=2297; i=nikita.shubin@maquefel.me; s=20230718; h=from:subject:message-id; bh=eohxXtWd+HuVJyaYSL1l5VkylPnLSM7yKMq6Kko41cI=; b=kSGsuB+72p8qy7PJ4kcUcV/Qs+4JEmP+RISbXjpEWgvvA5u7VRBXFDJjXe2o+J0YHLpOtbcj/Y0b SeavCzdSDy2SwZsjn5WsjosrSC1vqIN0WWZDiYef+9wDNBR9tB0g 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: nikita.shubin@maquefel.me From: Nikita Shubin Add YAML bindings for ep93xx SoC SPI. Reviewed-by: Krzysztof Kozlowski Reviewed-by: Mark Brown 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..73980a27dc00 --- /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