Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3132641imu; Sun, 27 Jan 2019 22:32:48 -0800 (PST) X-Google-Smtp-Source: ALg8bN7H62KnQfIXvil1BPHH1BjbtNc6BfNAqns6InTF87Q6rug4qiIPODPh+nxdLWkL2gLOuH++ X-Received: by 2002:a17:902:848f:: with SMTP id c15mr13951814plo.119.1548657168742; Sun, 27 Jan 2019 22:32:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548657168; cv=none; d=google.com; s=arc-20160816; b=WoYYX1PNDp7ZsSwtX1k7cwZmF3B9NFNnnNcf9jaaQwKVj8i9AZCa283gXCynv6Qb+A 2mogKGAIUebLQDZ2CIyIYA9rG080l6f2agHPx+8btF5akG8eWeGvf2ILEQz8ImHi5Of1 QaskwUoZCvmuK3igxZksovF0ayptjTR1HV8GFlevrMRPV2k7FVuyDJR2Ezio0CJ41WpR crA63h7IQZcY7f1jaeiHr3L2+pg7ZOeMYp2eM52i7cb9NEg8eJDPRfbTzj/F+DRN3udC zqSP9YIxBEf+AuYOOV6f2/ZyeyAFM0A8v0XaijNRJLIV00Tg7StEhFY3vyZNW6Opj0hd JYxA== 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=5t3cmEHh1vvfm7ygFqjTEJX2xm1vz5qipLHsk+KTPNw=; b=booTB76D228JA5zrVNBOT5/5ZJN4ay/sbmTn4FJ6Hzy/eJlcMv0lnfKjt8ROrrsLOh I1Pc30Za8gh48laiN7f9dGzYnp/Tox3O1bchuI9QWXNwlL59n+yB4qyMM6NYXlsYZRPd wTh/0RNeYl1XuB52+z2ktkh3Nn61+Davlt3N8mEFu8xFaubwLGuD17rcX1C9TCXsiBk5 5F4cHwqNl5nNGIFQNB62Sf21kCPycn/Jta9sjPBI7Ctrroi/m6cWTI95LbEed//loat5 OPThQK5gN+4A/27CB3XyoPcQBwt0fW3P9By1nRgdbCvX1M3E+npxsgh7PPk30AWzfiz+ ojDA== 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 33si33631650plh.245.2019.01.27.22.32.33; Sun, 27 Jan 2019 22:32:48 -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 S1726763AbfA1Gaq (ORCPT + 99 others); Mon, 28 Jan 2019 01:30:46 -0500 Received: from twhmllg4.macronix.com ([122.147.135.202]:64637 "EHLO TWHMLLG4.macronix.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726654AbfA1Gap (ORCPT ); Mon, 28 Jan 2019 01:30:45 -0500 Received: from localhost.localdomain ([172.17.195.96]) by TWHMLLG4.macronix.com with ESMTP id x0S6UHcT052474; Mon, 28 Jan 2019 14:30:19 +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 v8 2/2] dt-bindings: spi: Document Renesas R-Car Gen3 RPC-IF controller bindings Date: Mon, 28 Jan 2019 14:49:18 +0800 Message-Id: <1548658158-5460-3-git-send-email-masonccyang@mxic.com.tw> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1548658158-5460-1-git-send-email-masonccyang@mxic.com.tw> References: <1548658158-5460-1-git-send-email-masonccyang@mxic.com.tw> X-MAIL: TWHMLLG4.macronix.com x0S6UHcT052474 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 | 40 ++++++++++++++++++++++ 1 file changed, 40 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..7dff7e7 --- /dev/null +++ b/Documentation/devicetree/bindings/spi/spi-renesas-rpc.txt @@ -0,0 +1,40 @@ +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. + 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 + +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