Received: by 2002:a25:5b86:0:0:0:0:0 with SMTP id p128csp1287582ybb; Fri, 29 Mar 2019 01:12:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqyZ6hqrs88qEWKnUgN9Rwn5CW0wadc8GfCbpQKLfRXqOzBBWu7l2IF1FTxCJ8lT1w85rf8R X-Received: by 2002:a17:902:bccc:: with SMTP id o12mr45527176pls.70.1553847171560; Fri, 29 Mar 2019 01:12:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553847171; cv=none; d=google.com; s=arc-20160816; b=ziaKsqIj0rLrd5IPDJL0ga/3WXTv+4qrqajbkVLErBz+1kOLLkhHXdrObXDRKVGpWT PiR9DIk0wkYawVfT2GpJaa7LZujTbkVOF2XOpfxV30PQR7ZeGFHYJzVkRQ5Bs/rwWB4H Gr0gq+CPv5DooJk6bL8gvKXwI7/ATRol2XgWcMJ9h9VaQKPlpuf9an3kgbwECQXWmOSc upI21A1KQrMN9i9zUBtQLDJv/qZOpC4Zfn2LL86pbu7wPenTWyLuM13ym9fpMPfbdBu+ qdh7BPLARh948KEd+ObTe7+CiQVDc6eYLwxCT1nIanWcazi+isaD5TutDee6oQuIKiWC UuYQ== 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=tRuE7AWoiSX/nfctdAjLUD7zQhJN7ER05UhcZc04JXQ=; b=DckUXOHtgNmSAoT5OFEJbgbzP+XcHsicnMrJwU44mSAMOJbyWdkpY9odP8vRU/NxB0 7oMTvnSlIg0XdEw1j19jAod6+snHOUXUDJyv/BGXZvo1KUPECpagHRBR5c50UPJ2bx/K oaxFwX5KtOIGDo7le3Rdoy5JqJIPx6Qx1iQaw9nySLsHEP3lIqhMcO7cXtGdo4RBWPvx DJ3NEyCvGXmTaQQyMz1fmI140tUL3DZhcbz00cfWd9mqY+7TMQ8Fvuiutq81ghhTOCOo feEOOJTvbeobth+1etL+w1jeREBa37RpvwTunByt80Cw9p8+RlE8X8Ta+06WGNyfHehI XBwQ== 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 f16si1354570pgj.149.2019.03.29.01.12.35; Fri, 29 Mar 2019 01:12:51 -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 S1729040AbfC2IL5 (ORCPT + 99 others); Fri, 29 Mar 2019 04:11:57 -0400 Received: from twhmllg3.macronix.com ([211.75.127.131]:11823 "EHLO TWHMLLG3.macronix.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728948AbfC2IL5 (ORCPT ); Fri, 29 Mar 2019 04:11:57 -0400 X-Greylist: delayed 668 seconds by postgrey-1.27 at vger.kernel.org; Fri, 29 Mar 2019 04:11:55 EDT Received: from TWHMLLG3.macronix.com (localhost [127.0.0.2] (may be forged)) by TWHMLLG3.macronix.com with ESMTP id x2T80lgt092456; Fri, 29 Mar 2019 16:00:47 +0800 (GMT-8) (envelope-from masonccyang@mxic.com.tw) Received: from localhost.localdomain ([172.17.195.96]) by TWHMLLG3.macronix.com with ESMTP id x2T804vj091366; Fri, 29 Mar 2019 16:00:07 +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, devicetree@vger.kernel.org, mark.rutland@arm.com, robh+dt@kernel.org, lee.jones@linaro.org Cc: juliensu@mxic.com.tw, Simon Horman , zhengxunli@mxic.com.tw, Mason Yang Subject: [PATCH v9 3/3] dt-bindings: mfd: Document Renesas R-Car Gen3 RPC-IF controller bindings Date: Fri, 29 Mar 2019 16:20:06 +0800 Message-Id: <1553847606-18122-4-git-send-email-masonccyang@mxic.com.tw> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1553847606-18122-1-git-send-email-masonccyang@mxic.com.tw> References: <1553847606-18122-1-git-send-email-masonccyang@mxic.com.tw> X-MAIL: TWHMLLG3.macronix.com x2T804vj091366 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 MFD controller. Signed-off-by: Mason Yang --- .../devicetree/bindings/mfd/mfd-renesas-rpc.txt | 57 ++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/mfd-renesas-rpc.txt diff --git a/Documentation/devicetree/bindings/mfd/mfd-renesas-rpc.txt b/Documentation/devicetree/bindings/mfd/mfd-renesas-rpc.txt new file mode 100644 index 0000000..577986b --- /dev/null +++ b/Documentation/devicetree/bindings/mfd/mfd-renesas-rpc.txt @@ -0,0 +1,57 @@ +Renesas R-Car Gen3 RPC-IF MFD controller Device Tree Bindings +--------------------------------------------------------------------- + +Required properties: +- compatible: should be an SoC-specific compatible value, followed by + "renesas,rcar-gen3-rpc" as a fallback. + supported SoC-specific values are: + "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 + +Required nodes: + spi: + Node for configuring the SPI controller driver. + Required properties: + compatible = "renesas,rcar-rpc-spi"; + + hf: + Node for configuring the hyperflash controller driver. + Required properties: + compatible = "renesas,rcar-rpc-hf"; + +Example: + + rpc_mfd: rpc-mfd@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>; + + spi { + compatible = "renesas,rcar-rpc-spi"; + #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