Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1544811pxu; Thu, 17 Dec 2020 12:31:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJyR2QaI7CK+Hnt5+WYahqJovDG5fxg8IdEg/kEKcOAw+HpuJeXjicRZ7d0323S8xRlxURZ2 X-Received: by 2002:a17:906:1151:: with SMTP id i17mr814959eja.250.1608237091110; Thu, 17 Dec 2020 12:31:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608237091; cv=none; d=google.com; s=arc-20160816; b=QTKPh5ljkU3cOOuuMeVJD5iaM9qBA/Q2vI0FBQWR24D9qYvLeZjPqU5gF4CHYsgvT6 81O3piDLP2WXhk0CR9kbQ/kmbZuC7HLQsZaohQMCsbjg+6N5U9N+8mNYdeqhEfNThu+B 4FmUak1QPz5eZ8Bsn57Rb4eqzIIv1JA8H1fLXDr3/97oNdASSqaH/ep4L1a4b6waih2d pg71F8sLHPNOObhXQK24AXuYw9PsqG8puZIm0yuK7DI3qLt+GDWxZonSu03INCbQQ7Sg hrjcgYMzDsf6T9UdmCTI1xiZNKU5R9isXotiSToQhegwRr0tnsXjP680FW080DAG2SeZ kE5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:dkim-signature:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from; bh=q7FKxM+CGuB7xfbL+aSHeN66VFj3TvwS13fwFoek5Q4=; b=FiHngGCTvj1U1sYxNr/2BqgX/+6wLjYwyQg8GEJY4M9w+sMPYEl36FGkkV316g46Nw CV4oYLfuvScub7QgjJUqMv2oHuqjq1cJTEUYx70WMO+sRujyTAkFQRkhk/oeacVqM0oz bMFnvNQkK1+jIGbkqqHzDqg+Fii7FZGSWdq7/bwd5S5BCqRKv6uNKTFGzi/Batj8P72Q dx65CGsRKeGTd+NXysGeVKqw8SVIivUeGpTfelcua7rnsMXYVHe4+99JdqLt8o2ZEhwX oslT0UI89Wh8NVFSZgcH4FiWL8bNOGrRfA21G7KCPs7qzh7yEzmizVx1pDMSB8SnPtEl WXPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=LebfacZa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bo6si4839452edb.434.2020.12.17.12.31.07; Thu, 17 Dec 2020 12:31:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=LebfacZa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731475AbgLQU3e (ORCPT + 99 others); Thu, 17 Dec 2020 15:29:34 -0500 Received: from hqnvemgate25.nvidia.com ([216.228.121.64]:19148 "EHLO hqnvemgate25.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726988AbgLQU3e (ORCPT ); Thu, 17 Dec 2020 15:29:34 -0500 Received: from hqmail.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate25.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Thu, 17 Dec 2020 12:28:53 -0800 Received: from HQMAIL107.nvidia.com (172.20.187.13) by HQMAIL109.nvidia.com (172.20.187.15) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Thu, 17 Dec 2020 20:28:53 +0000 Received: from skomatineni-linux.nvidia.com (172.20.145.6) by mail.nvidia.com (172.20.187.13) with Microsoft SMTP Server id 15.0.1473.3 via Frontend Transport; Thu, 17 Dec 2020 20:28:52 +0000 From: Sowjanya Komatineni To: , , , , CC: , , , , , , , Subject: [PATCH v4 2/9] dt-bindings: spi: Add Tegra Quad SPI device tree binding Date: Thu, 17 Dec 2020 12:28:40 -0800 Message-ID: <1608236927-28701-3-git-send-email-skomatineni@nvidia.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1608236927-28701-1-git-send-email-skomatineni@nvidia.com> References: <1608236927-28701-1-git-send-email-skomatineni@nvidia.com> X-NVConfidentiality: public MIME-Version: 1.0 Content-Type: text/plain DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1608236933; bh=q7FKxM+CGuB7xfbL+aSHeN66VFj3TvwS13fwFoek5Q4=; h=From:To:CC:Subject:Date:Message-ID:X-Mailer:In-Reply-To: References:X-NVConfidentiality:MIME-Version:Content-Type; b=LebfacZa2WbqM2ta9t57X3a7/JQyFAH5U4gmhsFateCd46OWpzJhc4eeLccpS2AEP NzV4KKjkfo3IZ/o2QMKlBzvuiKXAIg9NFjodX74rzbAfbCHLwRxw0X3FKMaThVLtOK ROm0ImgDMk04gRB7FnK3B3AsrKpS0Pt1NRswixZJinsjT98r4ADsN89Q8f+wBlq7sY fVKwYXxxPBgbP6nvyYYQqfdnxs3KaUlg9+uxk//0TfJt+3e2nsnam272hgbJyRW6a0 okrQnF6gAzpgJi5DLBcnCaKuTil/EE3Phwj7t151dt3L7vnqEF0fhfPR/6rxWyuhnX DkAfJ2ArhXybw== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch adds YAML based device tree binding document for Tegra Quad SPI driver. Signed-off-by: Sowjanya Komatineni --- .../bindings/spi/nvidia,tegra210-quad.yaml | 117 +++++++++++++++++++++ 1 file changed, 117 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/nvidia,tegra210-quad.yaml diff --git a/Documentation/devicetree/bindings/spi/nvidia,tegra210-quad.yaml b/Documentation/devicetree/bindings/spi/nvidia,tegra210-quad.yaml new file mode 100644 index 0000000..35a8045 --- /dev/null +++ b/Documentation/devicetree/bindings/spi/nvidia,tegra210-quad.yaml @@ -0,0 +1,117 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/spi/nvidia,tegra210-quad.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Tegra Quad SPI Controller + +maintainers: + - Thierry Reding + - Jonathan Hunter + +allOf: + - $ref: "spi-controller.yaml#" + +properties: + compatible: + enum: + - nvidia,tegra210-qspi + - nvidia,tegra186-qspi + - nvidia,tegra194-qspi + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clock-names: + items: + - const: qspi + - const: qspi_out + + clocks: + maxItems: 2 + + resets: + maxItems: 1 + + dmas: + maxItems: 2 + + dma-names: + items: + - const: rx + - const: tx + +patternProperties: + "@[0-9a-f]+": + type: object + + properties: + spi-rx-bus-width: + enum: [1, 2, 4] + + spi-tx-bus-width: + enum: [1, 2, 4] + + nvidia,tx-clk-tap-delay: + description: + Delays the clock going out to device with this tap value. + Tap value varies based on platform design trace lengths from Tegra + QSPI to corresponding slave device. + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 31 + + nvidia,rx-clk-tap-delay: + description: + Delays the clock coming in from the device with this tap value. + Tap value varies based on platform design trace lengths from Tegra + QSPI to corresponding slave device. + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 255 + + required: + - reg + +required: + - compatible + - reg + - interrupts + - clock-names + - clocks + - resets + +unevaluatedProperties: false + +examples: + - | + #include + #include + #include + spi@70410000 { + compatible = "nvidia,tegra210-qspi"; + reg = <0x70410000 0x1000>; + interrupts = ; + #address-cells = <1>; + #size-cells = <0>; + clocks = <&tegra_car TEGRA210_CLK_QSPI>, + <&tegra_car TEGRA210_CLK_QSPI_PM>; + clock-names = "qspi", "qspi_out"; + resets = <&tegra_car 211>; + dmas = <&apbdma 5>, <&apbdma 5>; + dma-names = "rx", "tx"; + + flash@0 { + compatible = "spi-nor"; + reg = <0>; + spi-max-frequency = <104000000>; + spi-tx-bus-width = <2>; + spi-rx-bus-width = <2>; + nvidia,tx-clk-tap-delay = <0>; + nvidia,rx-clk-tap-delay = <0>; + }; + }; -- 2.7.4