Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp445810imu; Tue, 22 Jan 2019 22:52:26 -0800 (PST) X-Google-Smtp-Source: ALg8bN51PpQmoO5vDpS1iwlAw/tkGr+HwXOKH7aLBlE3DWf6qx246agv4UE7ogQqq6tuINj/iUTk X-Received: by 2002:a62:3943:: with SMTP id g64mr1050921pfa.114.1548226346054; Tue, 22 Jan 2019 22:52:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548226346; cv=none; d=google.com; s=arc-20160816; b=vYEwiOybMJrEbI6w2P24Y6XjIIfTh8V7qrS1q2UGwrLkf3SJeEwjbV0PmXfk/uotBQ Tqx4nuoKwk2irnJQXei48YADzK3tabNIElx4Pk+v+Qc1FBChnOl0GJ2AH7dIQFMCrwrq LWE7hWpy7gLkYIa0/Khxekeao0OspqvciDgt1iUQf0VSXXIMbUiSWgGpsRGfIQRFLI+a pQlIxTiV9nBtiJVmTa/I263Fy9g6xXcH8X1H5wFbVX0QKRcdcw5gocHXy4IcAJ/aoPNk 2aa7fBTQYjNor5Gy+/ChCJ2cFn7qQFBgJZ/jD1wk31Ewlr8IoeKU36g1nqeBN5Dk+bkS Slvw== 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=P1u57MldobVShW4TJ2oUQjfhyqc99406HrhqcgyyKeQ=; b=QNSgsT/Be42Kuab+fO5W6g3gUBrVs2UtknHPAW2URSq3Nj2XKaDxUZY+3zl5i2o5+M gWQDQ+uY6ttuVJ0AM7uxFZzDruA8nJO/c8Spap59VZu2R2CltFlMmrFsmSBgY/0uUcKS 9L2gEDpVQntO2mKkXoCj2kiC+G7fheCDLqNLnurYF5wOHtvuA0yKgN2wAJ0eE2+/RgX/ /spWFxsRu9t+0gwlOQZIFTzRP1LkSvTWE3cpzu1yDNrKd7I8WPvNUvMP80lb9YhQZlVC TwLqGVPS0iiLu3Rg41uPF37DKp27Cg5juoTugmBNzSKeNSmK5IMJ4UKF1OSBC9mz/5TQ hOtw== 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 a8si17814384pgi.359.2019.01.22.22.52.11; Tue, 22 Jan 2019 22:52:26 -0800 (PST) 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 S1726678AbfAWGvG (ORCPT + 99 others); Wed, 23 Jan 2019 01:51:06 -0500 Received: from twhmllg4.macronix.com ([211.75.127.132]:32357 "EHLO TWHMLLG4.macronix.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726029AbfAWGvE (ORCPT ); Wed, 23 Jan 2019 01:51:04 -0500 Received: from localhost.localdomain ([172.17.195.96]) by TWHMLLG4.macronix.com with ESMTP id x0N6o6g8031286; Wed, 23 Jan 2019 14:50:08 +0800 (GMT-8) (envelope-from masonccyang@mxic.com.tw) From: Mason Yang To: broonie@kernel.org, marek.vasut@gmail.com, linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org, bbrezillon@kernel.org, linux-renesas-soc@vger.kernel.org, Geert Uytterhoeven , sergei.shtylyov@cogentembedded.com Cc: juliensu@mxic.com.tw, Simon Horman , zhengxunli@mxic.com.tw, Mason Yang Subject: [PATCH v7 2/2] dt-bindings: spi: Document Renesas R-Car Gen3 RPC-IF controller bindings Date: Wed, 23 Jan 2019 15:09:12 +0800 Message-Id: <1548227352-14910-3-git-send-email-masonccyang@mxic.com.tw> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1548227352-14910-1-git-send-email-masonccyang@mxic.com.tw> References: <1548227352-14910-1-git-send-email-masonccyang@mxic.com.tw> X-MAIL: TWHMLLG4.macronix.com x0N6o6g8031286 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Document the bindings used by the Renesas R-Car Gen3 RPC-IF controller. Signed-off-by: Mason Yang --- .../devicetree/bindings/spi/spi-renesas-rpc.txt | 46 ++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/spi-renesas-rpc.txt diff --git a/Documentation/devicetree/bindings/spi/spi-renesas-rpc.txt b/Documentation/devicetree/bindings/spi/spi-renesas-rpc.txt new file mode 100644 index 0000000..305bd10 --- /dev/null +++ b/Documentation/devicetree/bindings/spi/spi-renesas-rpc.txt @@ -0,0 +1,46 @@ +Renesas R-Car Gen3 RPC-IF controller Device Tree Bindings +-------------------------------------------------------------------- + +Required properties: +- compatible: should be an SoC-specific compatible value, followed by + "renesas,rcar-gen3-rpc" as a fallback, i.e., + "renesas,r8a77995-rpc", "renesas,rcar-gen3-rpc". + "renesas,r8a7795-rpc" (R-Car H3) + "renesas,r8a7796-rpc" (R-Car M3-W) + "renesas,r8a77965-rpc" (R-Car M3-N) + "renesas,r8a77970-rpc" (R-Car V3M) + "renesas,r8a77980-rpc" (R-Car V3H) + "renesas,r8a77990-rpc" (R-Car E3) + "renesas,r8a77995-rpc" (R-Car D3) +- reg: should contain three register areas: + first for the base address of rpc-if registers, + second for the direct mapping read mode and + third for the write buffer area. +- reg-names: should contain "regs", "dirmap" and "wbuf" +- clocks: should contain 1 entries for the module's clock +- clock-names: should contain "rpc" +- #address-cells: should be 1 +- #size-cells: should be 0 + +Example: + + rpc: rpc@ee200000 { + compatible = "renesas,r8a77995-rpc", "renesas,rcar-gen3-rpc"; + reg = <0 0xee200000 0 0x200>, <0 0x08000000 0 0x4000000>, + <0 0xee208000 0 0x100>; + reg-names = "regs", "dirmap", "wbuf"; + clocks = <&cpg CPG_MOD 917>; + clock-names = "rpc"; + power-domains = <&sysc R8A77995_PD_ALWAYS_ON>; + resets = <&cpg 917>; + #address-cells = <1>; + #size-cells = <0>; + + flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <40000000>; + spi-tx-bus-width = <1>; + spi-rx-bus-width = <1>; + }; + }; -- 1.9.1