Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp460646imm; Fri, 28 Sep 2018 01:10:49 -0700 (PDT) X-Google-Smtp-Source: ACcGV63/RjXU6SBxr/mnfKus9h68ZiiZfxDEoUBwkG2Atxzz6nnFiXnIYp3Ty0sKcdE/DniF9rMH X-Received: by 2002:a63:1e15:: with SMTP id e21-v6mr1459640pge.430.1538122248950; Fri, 28 Sep 2018 01:10:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538122248; cv=none; d=google.com; s=arc-20160816; b=koX7YwcoFdWLZgpeugd+psYruo2rkSRWa1zOOhHKDTNmVUlRTpxtDbAJjMhLb9fa8v PNPoHF9GywRP9vqyO219Fw/+YRAG2JIylh0T5EwkYtIsB73eyr2qF6eRYYIrt94g6EtP rcEPyVIiMg4jl2XMRSy8uDsRACb4iIZ1z7Y1Vt8AbMoTV+8vuAt1KbMKOzATy8sKQkg0 7OsbNKT13IjBCfRZplmO2dvrg4/r8i1wjoU7ahoeku16Os3T/PzA9yHBGMQnjsQdlitS jHlzWs0oyM3t9C2GjtUrnz5bxwPy17t5KIgIz4r2tIEJExgiQJFjASH1pVCKuA5QJnIT sUHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=dr4L01Zlq1CFbD4ZacjPNVQSOeZ6OvWvl+nyqjF9MSM=; b=zmUeqAJr5o2J0v/SbDiIs3jcesY2BMAArW2klENjIyx/64Ir0MuCLqzbZqZYe3uQ/D 68CR4Jp+RRHqq3IgoHONl3Jx/QvD2ZXt+HNvr4fLCstGkZkfG+txuyio5puwQdnrVmmK K1sF714s8NN03G9RNEv7Fy0coDMy3NcGEA3F7azdFAk/keGSi8fbhL/+Xcb4PPRDGoSv Ha6nzrsfVWhxPngHqP0DuCcR6JiYcqx9U8AKfT/CzQh/U8azWWvcaIKIarBKBJNrq1jo 4x6QQUecesPEZm9n+hBmN+7Svw2BknBc0gSN+DTgiRhIER/41jJvW4x8yHDjHTJXXET2 jQFA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y3-v6si3953955pgi.338.2018.09.28.01.10.32; Fri, 28 Sep 2018 01:10:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729094AbeI1Ob2 (ORCPT + 99 others); Fri, 28 Sep 2018 10:31:28 -0400 Received: from twhmllg4.macronix.com ([122.147.135.202]:53004 "EHLO TWHMLLG4.macronix.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729015AbeI1Ob0 (ORCPT ); Fri, 28 Sep 2018 10:31:26 -0400 Received: from TWHMLLG4.macronix.com (localhost [127.0.0.2] (may be forged)) by TWHMLLG4.macronix.com with ESMTP id w8S7ZSY8019012 for ; Fri, 28 Sep 2018 15:35:28 +0800 (GMT-8) (envelope-from masonccyang@mxic.com.tw) Received: from localhost.localdomain ([172.17.195.96]) by TWHMLLG4.macronix.com with ESMTP id w8S7ZEhN018803; Fri, 28 Sep 2018 15:35:16 +0800 (GMT-8) (envelope-from masonccyang@mxic.com.tw) From: masonccyang@mxic.com.tw To: broonie@kernel.org, tpiepho@impinj.com, linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org Cc: boris.brezillon@bootlin.com, juliensu@mxic.com.tw, zhengxunli@mxic.com.tw, masonccyang@mxic.com.tw Subject: [PATCH v3 2/2] dt-bindings: spi: Document Macronix controller bindings Date: Fri, 28 Sep 2018 15:35:12 +0800 Message-Id: <1538120112-15530-3-git-send-email-masonccyang@mxic.com.tw> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1538120112-15530-1-git-send-email-masonccyang@mxic.com.tw> References: <1538120112-15530-1-git-send-email-masonccyang@mxic.com.tw> X-MAIL: TWHMLLG4.macronix.com w8S7ZEhN018803 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Mason Yang Document the bindings used by the Macronix controller. Signed-off-by: Mason Yang --- Documentation/devicetree/bindings/spi/spi-mxic.txt | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/spi-mxic.txt diff --git a/Documentation/devicetree/bindings/spi/spi-mxic.txt b/Documentation/devicetree/bindings/spi/spi-mxic.txt new file mode 100644 index 0000000..529f2da --- /dev/null +++ b/Documentation/devicetree/bindings/spi/spi-mxic.txt @@ -0,0 +1,34 @@ +Macronix SPI controller Device Tree Bindings +-------------------------------------------- + +Required properties: +- compatible: should be "mxicy,mx25f0a-spi" +- #address-cells: should be 1 +- #size-cells: should be 0 +- reg: should contain 2 entries, one for the registers and one for the direct + mapping area +- reg-names: should contain "regs" and "dirmap" +- interrupts: interrupt line connected to the SPI controller +- clock-names: should contain "ps_clk", "send_clk" and "send_dly_clk" +- clocks: should contain 3 entries for the "ps_clk", "send_clk" and + "send_dly_clk" clocks + +Example: + + spi@43c30000 { + compatible = "mxicy,mx25f0a-spi"; + reg = <0x43c30000 0x10000>, <0xa0000000 0x20000000>; + reg-names = "regs", "dirmap"; + clocks = <&clkwizard 0>, <&clkwizard 1>, <&clkc 18>; + clock-names = "send_clk", "send_dly_clk", "ps_clk"; + #address-cells = <1>; + #size-cells = <0>; + + flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <25000000>; + spi-tx-bus-width = <4>; + spi-rx-bus-width = <4>; + }; + }; -- 1.9.1