Received: by 2002:aa6:c46f:0:b029:96:faae:e639 with SMTP id i15csp344316lkq; Thu, 5 Nov 2020 04:06:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJxA7sW5BRaEH8C2KFO0xwj9gQ46LXFIu0wDTuOTt9LZQ/sveaKTokrEcFeUq6rrXUo3LE+1 X-Received: by 2002:a17:907:2166:: with SMTP id rl6mr1979947ejb.61.1604578004199; Thu, 05 Nov 2020 04:06:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604578004; cv=none; d=google.com; s=arc-20160816; b=Gvxqs171OHADMnL6Zgmmd8FkACyr/Qeqq8QcpYizDx2SBJsPxBxFwqY9AYsKpdOWLv DuQEEqthsk6fkwB5+ISjmNAYXDo7n+7s7CfRpds9FdRVA2JAdt8/+hbdQ2uPp2jbZrbA TGWIeJvIFV2bYn+pbVTwkvKOoizkNOMzm2N3atwuxE5omp4K6w7ulpvmIBic4uA1RiYT Kk4mATMkA/X1tkMntHYVE+llpQt+h/wBbEwTK708kQzcTMsenZ5NWF8C89yI+KOif5GQ 7g9sF9SotDMVO8elhuXekLO+WDNuDsb2qfIGZBLg3iCfPXDAP6Lqe7dydhfLsffLLDfy UmCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=3jA9d63QDJmBYIJpfW8OycabyEtTXf1DhSsC12YjZdI=; b=lqTNasYJP7NnMBhgeGvyQizKJxUim1rM4K5jcGe4s5Z5FTrXxVePfJuijB2UTwU+QN kZt+fPNFA76FtCTl/GfVI57cSfoNwcmMILTjePPB/aq+7vBxJQNtS0W3ZB9HkXOPRoSF aP0q07WgyiYKAGDYk+/yPgSWnnxztOxZdXjqUYHc4zeZhK9dsTOAtkkC29qXv2PC2JTg 9xVrpNnZQd5/0kKRXYfKTScvNhNvUs49kR275ac7S1/XhDesTWsAKUz+6o9TqmC5DUhS F5HefVM6K+sfDR/zHTsrrOvxdWWp3eu/CAXqsBhEr9ZLELyh56DZE0f1HNucK3+AAoZH 57/Q== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h12si1164889ejx.35.2020.11.05.04.06.21; Thu, 05 Nov 2020 04:06:44 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730567AbgKEMEh (ORCPT + 99 others); Thu, 5 Nov 2020 07:04:37 -0500 Received: from twspam01.aspeedtech.com ([211.20.114.71]:48530 "EHLO twspam01.aspeedtech.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730465AbgKEMEd (ORCPT ); Thu, 5 Nov 2020 07:04:33 -0500 Received: from mail.aspeedtech.com ([192.168.0.24]) by twspam01.aspeedtech.com with ESMTP id 0A5BxvqA068678; Thu, 5 Nov 2020 19:59:57 +0800 (GMT-8) (envelope-from chin-ting_kuo@aspeedtech.com) Received: from localhost.localdomain (192.168.10.9) by TWMBX02.aspeed.com (192.168.0.24) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 5 Nov 2020 20:03:35 +0800 From: Chin-Ting Kuo To: , , , , , , , , , CC: Subject: [v3 1/4] dt-bindings: spi: Add binding file for ASPEED FMC/SPI memory controller Date: Thu, 5 Nov 2020 20:03:28 +0800 Message-ID: <20201105120331.9853-2-chin-ting_kuo@aspeedtech.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201105120331.9853-1-chin-ting_kuo@aspeedtech.com> References: <20201105120331.9853-1-chin-ting_kuo@aspeedtech.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [192.168.10.9] X-ClientProxiedBy: TWMBX02.aspeed.com (192.168.0.24) To TWMBX02.aspeed.com (192.168.0.24) X-DNSRBL: X-MAIL: twspam01.aspeedtech.com 0A5BxvqA068678 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Create binding file with YAML syntax for ASPEED FMC/SPI memory controller. Signed-off-by: Chin-Ting Kuo --- .../bindings/spi/aspeed,spi-aspeed.yaml | 66 +++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/aspeed,spi-aspeed.yaml diff --git a/Documentation/devicetree/bindings/spi/aspeed,spi-aspeed.yaml b/Documentation/devicetree/bindings/spi/aspeed,spi-aspeed.yaml new file mode 100644 index 000000000000..41b9692c7226 --- /dev/null +++ b/Documentation/devicetree/bindings/spi/aspeed,spi-aspeed.yaml @@ -0,0 +1,66 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/spi/aspeed,spi-aspeed.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: SPI memory controller for ASPEED SoCs + +maintainers: + - Chin-Ting Kuo + +description: | + There are three SPI memory controllers embedded in a ASPEED SoC. + They are usually connected to SPI NOR flashes. Each of them has + more than a chip select. They also support SPI single, dual and + quad IO modes for SPI NOR flash. + +allOf: + - $ref: /spi/spi-controller.yaml# + +properties: + compatible: + oneOf: + - items: + - enum: + - aspeed,ast2600-fmc + - aspeed,ast2600-spi + + reg: + items: + - description: the control register location and length + - description: the flash memory mapping address and length + + clocks: + description: AHB bus clock which will be converted to SPI bus clock + +required: + - compatible + - reg + - clocks + - num-cs + +unevaluatedProperties: false + +examples: + - | + #include + spi1: spi@1e630000 { + compatible = "aspeed,ast2600-spi"; + reg = <0x1e630000 0xc4>, <0x30000000 0x10000000>; + reg-names = "spi_ctrl_reg", "spi_mmap"; + clocks = <&syscon ASPEED_CLK_AHB>; + num-cs = <2>; + #address-cells = <1>; + #size-cells = <0>; + flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <50000000>; + }; + flash@1 { + compatible = "jedec,spi-nor"; + reg = <1>; + spi-max-frequency = <50000000>; + }; + }; -- 2.17.1