Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1152941rbb; Sun, 25 Feb 2024 23:34:44 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU9Gio5N4yEt2+n2ARTnK2oa9xWlaDAztJ4Xe0KZEjHkaeeUmMLRyby0IeAPmVPtDnW4HVwE10U3WbizOju4KZHLDuvJWNlCh+yyrzWKQ== X-Google-Smtp-Source: AGHT+IGLikMR+FqkkfAhGXikC2/X7ybB9sV7+0rO8dCGto2zZB3MY+yKp/dqb7MLbGAPvd2W6ItZ X-Received: by 2002:a05:622a:307:b0:42e:7e88:80bf with SMTP id q7-20020a05622a030700b0042e7e8880bfmr3382749qtw.29.1708932884497; Sun, 25 Feb 2024 23:34:44 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708932884; cv=pass; d=google.com; s=arc-20160816; b=T1NGGkgjBaPciaTwJDeTwjLzekepJVW9zkzbbaPf/ppVIrHufvTqffLWkL/3RXxSf6 bmxfHfNhHYgDrAsxIvv0YwlPKSizA/U5N0B8eoQ2rL8LQFsGMT179XpdghVKk6ckheO9 BDCaxIxeHfGfoFAr5GDYmAEa13L0fOjoYG9nF+S3b5F+oOGaHEMRxCQ9Sygig5PqjNee uMUR+JmMIFez0jSZYNVC53fng56gaTQBBXkWGZwm86Fr1hphh3og4j7EJpJEfgBSSTgX ZVAiimrvw75b9g/S2hZcNQZTHyspVsI3RamCOk3vsQocGK9Q/ocVoggS6djQOt8A7arP lf9Q== 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=5K9Ks+efTsUnW/PXHQotwx9AGbXvC5HLYSqZcWfu4Nw=; b=NW+9m0/zcHo5F9C4vWWhlcQbiCiVlTHVAdtcL+NWC3VynMbg5r3mulfUMNyAVPm6dC dbd1TFWs8DnhOLCWwdOD5qDEF6vWvjX+BDzu8pGWVMeKMtaDiq5mZC/qQbjUILbM7GlP iYZBefiC3nm1U+bmBY/xphxrGx45DrBRBYqgL4nRoP76hVmY0JB1q1P+OFHzGEXbolTa Wm9T3+XQ5BqNfiEGmDGxW1/W5jFRp2is+5PzIkowy1euqfs31bxj4TNKqZCMg2rbtpUj t2sYS5ujuT6gzxg1oVbUtDqUe0s4mwOyk+HpcUxEKvvbpM6dtv/ZKhQB0Dlvc4SRAtzD Tsaw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=B9HVHV3U; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-80648-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-80648-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. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id y7-20020ac87087000000b0042e7a4cc504si3323480qto.645.2024.02.25.23.34.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Feb 2024 23:34:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-80648-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=B9HVHV3U; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-80648-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-80648-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 449F21C222ED for ; Mon, 26 Feb 2024 07:34:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6F0553D3B9; Mon, 26 Feb 2024 07:31:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="B9HVHV3U" 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 B56591C6A6; Mon, 26 Feb 2024 07:31:22 +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=1708932682; cv=none; b=fW0UlN+lkWHjE4cLVjI6Nxxh4qEIqOLvWswUkodPr+m0wG5ABzEON6nVUH5KEoilb2l4lglivZtRXmHvbtSS5MrWDNL1k8tzE02bJ9RHHsgIKOPsbnXMdScsWObcPcxrt9JtY9pmGHGVa55oxqqCbAOWxtuX4jNIiiBwexD+P3c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708932682; c=relaxed/simple; bh=VNwPggiAWASAvwqtJd7Wj3ItapLp0dhIgz2LnHUWvFk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=L6ApZPRVcTICfTENi2o0W8cOYDKcCluKVP1XCNEQxNEJN//D1EElA7pp5VIeXwcqZ+OpMShjOvvFNQljZNAgXs9bzQpBIJxdFz1JNodkx8ApCQhfWFq+n2xzqvWdEF4m6YHiygO9BjcMv751wY/Qc3Tug2Rm/b5h+Ea4+IE6rTI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=B9HVHV3U; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 91D58C3278F; Mon, 26 Feb 2024 07:31:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708932682; bh=VNwPggiAWASAvwqtJd7Wj3ItapLp0dhIgz2LnHUWvFk=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=B9HVHV3UkFB7tR9dYbm0goOr3vEwG9eKD//zdA5ODv7h8VWXl29v7PkjCPsSu1Apn JsuJ+QiyH+T1Yf8InkMfqYLf4PaZv68YjkH/78kvuebxyqVSO7OYbgbI5POAK+76Oh qwuzmOgmYbiSTDYj/cVh1RO2e32WFAq+z9h2A8XmwpyWj9i7KZ09akOPzEFUWp+zRc bhxidimDlaLp/yS68cC+ZvxQg4Aak8ROydSCo0vtlzT+sUc0toDBabfFaRPguwgUtu pMX1lSbV5XAWXU2UEkea7u1ebu5nuysTJrhBRrPUSRPMvw+I/Y8pRHM3+uOcbM+5aj 992GEKL0coK9Q== 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 8197FC54E49; Mon, 26 Feb 2024 07:31:22 +0000 (UTC) From: Nikita Shubin via B4 Relay Date: Mon, 26 Feb 2024 10:30:10 +0300 Subject: [PATCH v8 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: <20240226-ep93xx-v8-14-3136dca7238f@maquefel.me> References: <20240226-ep93xx-v8-0-3136dca7238f@maquefel.me> In-Reply-To: <20240226-ep93xx-v8-0-3136dca7238f@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=1708932678; l=2297; i=nikita.shubin@maquefel.me; s=20230718; h=from:subject:message-id; bh=eohxXtWd+HuVJyaYSL1l5VkylPnLSM7yKMq6Kko41cI=; =?utf-8?q?b=3DhcAwMmdAqQDO?= =?utf-8?q?l693wx+eUsED0bdah++zJ1SknBBgZxVCdd1hh/4SJPRPjEdmlMEz+6Wwpyp2GBW3?= 7/QC/hH1CAgkIyEXc4XaifdIfuK1AuF7E0i8BJaof7pfW/DGzMiJ 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: 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