Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp202180rdb; Thu, 18 Jan 2024 00:29:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IEyZ2tV1AAv/WJnZMHQBV3M6m7ERpVYW4N68fIGRlAgbpIKgX27bl+Qin5E0sjQkjCdw8Kt X-Received: by 2002:a92:d844:0:b0:360:ca9b:db0b with SMTP id h4-20020a92d844000000b00360ca9bdb0bmr595368ilq.52.1705566560920; Thu, 18 Jan 2024 00:29:20 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705566560; cv=pass; d=google.com; s=arc-20160816; b=gfMy5VHRBModt3pUaGwSUtkaKPZJSSG6qtkydqG2Rj84nMEIwuIe0vGxNUGFiBIXnp /XJLEhgYsPDS+25dhdH37NCg6keRm4t8uej1atrsjO8t2ttyA8ItnXdj1wqbxxYYEu34 0KK+F0o3Djfzl3tWLTuZQIgWJr6uu4/KLPJ2mBgWtgEzQOxS7FmIpA6avn/6v00Q6Ecp 2RCr0+nOyBsFsynPSbV7n0IBGPm7dwaoYnLGzN1v4sCwNKGDDFwohTkIrQMe6dg1km95 0MSHKDIvfFWUL1HlqEm2WbHVBcxwuYDOmiv0BRQeH37pv1+eL1gduLlW7amATFmfHE6T b5WQ== 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=mYLOf7Pu25OXz9nqzCadPocTYbZwkvKi1fpUVqbWc8I0eLiNTA2pDhhA9Fw4XOv/Qt nS3vtmgkBOQgTJBj4RgRjPBxQ9qkHjzLMcd0bCe1qI7wsDoXSobMED06o8Fi4sZ7GgkZ BL2h9HpMEhaWn11aM0nRpomdIfVnJ/OtICUvR6DxI4pLkfrwGU38Vf4ktxTLjGc6EBEg 7VGLqNpvCUfPc116XuazcHZ/dwoFzHaHTnsm3DUcOHuD7/G5le6Htnd0jIUqA++xkes7 bAN5YU7o5cc3bXGy7bMiDgS2dNJ9D6a+uMt0byzMPMhsRSUUuZdCXMEuxjBOOZfzR2bZ 9Zig== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=D+ewpRq6; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-29870-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-29870-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id bw26-20020a056a02049a00b005ce13c1baf1si1151270pgb.889.2024.01.18.00.29.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jan 2024 00:29:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-29870-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=D+ewpRq6; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-29870-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-29870-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 8D417282BC4 for ; Thu, 18 Jan 2024 08:29:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 582A32D629; Thu, 18 Jan 2024 08:23:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="D+ewpRq6" 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 E7E1D1D523; Thu, 18 Jan 2024 08:22:59 +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=1705566180; cv=none; b=WusmlIl+j2ox0ZTs/6plpm4tZOy5VP/gr6JjZuoFcEgJo7W+XYn0HCH5uM2wqf3iuGHalvW6AItB6E5FAe8kKGjl0tMlp1qUhuyqawIFjNYSR23234AU4wWekh/32SnhpfR2mFHyO+Y5LBRO+4p8lJPSY6tTauEEjBq1l1Zp6/8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705566180; c=relaxed/simple; bh=VNwPggiAWASAvwqtJd7Wj3ItapLp0dhIgz2LnHUWvFk=; h=Received:DKIM-Signature:Received:From:Date:Subject:MIME-Version: Content-Type:Content-Transfer-Encoding:Message-Id:References: In-Reply-To:To:Cc:X-Mailer:X-Developer-Signature:X-Developer-Key: X-Endpoint-Received:X-Original-From:Reply-To; b=ArmRXcMXJs8ZvE0VCWvUIhLfmHJDcniGA1IkBwjvrFWyus9Lud4LTcg3H2JGQ1PL73S9aSrItP41X2m4N1+jKS7QBiNELtB4j4zYCJigMhS+EbmGc3lBWpWUo8Cp/tUNydCKN6jS2eh05vEz1OGtAlPeloMctZfef2wKZWY5A90= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=D+ewpRq6; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 629AFC32788; Thu, 18 Jan 2024 08:22:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705566179; bh=VNwPggiAWASAvwqtJd7Wj3ItapLp0dhIgz2LnHUWvFk=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=D+ewpRq6K8wILjZfFINR6hAdifU2HaoAq1iXuVPcWEXN9WA0+3+v2TnGpjUwxpdIC JXPY5xGRCuBYYAnm/oDBaKLR4AVlv2PJ3ufnpsiGnTy/ENkmi+CSvfyXnXNw9XuSCW kme8j2QwJ5xifH8nfDr5v7YWnVbnKGfTAMNQohj6uemh3eEVdNklUy464/vhftdP2b EH1dJ/h5NPN4Z/z66J3MWLWlnVbvKMUBLv0PkhZoR0fvOYJh0Zu8YqN9mqiXSmZkj3 w5bI5UDkFRwCBrzowJIAqASAfbk7Ll83ENty4A9vNs2SMMdwt+kaUz6yWaQ5MnCSQ/ bdP0d55/X3Z4w== 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 537D6C47DBA; Thu, 18 Jan 2024 08:22:59 +0000 (UTC) From: Nikita Shubin via B4 Relay Date: Thu, 18 Jan 2024 11:20:58 +0300 Subject: [PATCH v7 15/39] 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: <20240118-ep93xx-v7-15-d953846ae771@maquefel.me> References: <20240118-ep93xx-v7-0-d953846ae771@maquefel.me> In-Reply-To: <20240118-ep93xx-v7-0-d953846ae771@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=1705566176; l=2297; i=nikita.shubin@maquefel.me; s=20230718; h=from:subject:message-id; bh=eohxXtWd+HuVJyaYSL1l5VkylPnLSM7yKMq6Kko41cI=; =?utf-8?q?b=3DmQEAzOl0farN?= =?utf-8?q?UBOtQn1oFUwbsWSBvXpWyIzo2LRm1bY+NQ44RN23AdgDMS4sHHq6raOv6H7eGnBD?= u+2WVGUeC2wEmOduj6HYui1r6p4DawPP2QkRJ3WPS4qdrqN0tRXf 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