Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3324424imu; Sun, 23 Dec 2018 22:54:38 -0800 (PST) X-Google-Smtp-Source: ALg8bN4Oaxz0tFO8A4mIh0sfyUvMvXi2pMUkwJRpDhBnE2uHXG2xGdSbS5HXQoz10/ixy0Ng23i1 X-Received: by 2002:a63:70c:: with SMTP id 12mr11165638pgh.352.1545634478387; Sun, 23 Dec 2018 22:54:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545634478; cv=none; d=google.com; s=arc-20160816; b=QUVuZk7J4yw/RnYLRH+evEFBsMUJdNQHERXPnM0kDDASLwddMNRltm4vy6fazmVCk/ y20mgSzmRXU19Rwk8fiThiKgld2GKzic3IBrn+DAwt70ej/y+mJAun9C+mLttOt4koLO hF5sF5a0zkfKUDKMyYAP6Zc2VFkYOnn8gDJ+GKwLVJ67Tvzmn3HpLv3f8kCPLKXjBIq+ dVLTMyeOVlrshWOn4E8aYtHu+NECWcG/Hembq5BzcyiqR07kDFsCgBg1lhRBLFL+CMM1 8bbMrS5cO2aqjtK7LHezAeX7eQMHD22o5MS+4LkzGq74hAJaEy9q+DZXfG0B5/jYYfVq 2xeA== 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=wqPj1uB3FeKA8fsoJIHrGGDJEci7mED6PblWY6WtjdM=; b=LljOoGkXKFeQUcghrnYhHhMvXRE9JeAcwgmjpNxaVLdRiY6MaCqEs/6H0jrMBkKT6R 9EwWQLOBJvG8Wq0gY8kRKnl+YPf9wJ37Ixbh6ouaQxL+5rcj4swt4wFThhA6rTEv2A1+ JDQNL1sgWW/fX6iWIRPbNEGvvm9PRa3ybSWSi9EjtX7G0Wq9QxNcMYPWhXIn8YeQXNS0 iC8zhLfuriyxE2mB9arxoZ2UH0QlS4aFWsl9YTc+M3Qu9XuNQXgiNvFz9VtxEO5D1CaN 4YpPShxCXQlTz9vrGgEWaSBPFza6c47cBYAfb00cXisMT4YijswYTJVpdsGlwO+y/T/o IjWA== 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 x191si27845182pfd.220.2018.12.23.22.54.23; Sun, 23 Dec 2018 22:54:38 -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 S1726776AbeLXGxS (ORCPT + 99 others); Mon, 24 Dec 2018 01:53:18 -0500 Received: from twhmllg3.macronix.com ([122.147.135.201]:10582 "EHLO TWHMLLG3.macronix.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726764AbeLXGxS (ORCPT ); Mon, 24 Dec 2018 01:53:18 -0500 Received: from localhost.localdomain ([172.17.195.96]) by TWHMLLG3.macronix.com with ESMTP id wBO6qemU051271; Mon, 24 Dec 2018 14:52:42 +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, boris.brezillon@bootlin.com, 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 v4 2/2] dt-bindings: spi: Document Renesas R-Car Gen3 RPC controller bindings Date: Mon, 24 Dec 2018 14:52:38 +0800 Message-Id: <1545634358-17485-3-git-send-email-masonccyang@mxic.com.tw> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1545634358-17485-1-git-send-email-masonccyang@mxic.com.tw> References: <1545634358-17485-1-git-send-email-masonccyang@mxic.com.tw> X-MAIL: TWHMLLG3.macronix.com wBO6qemU051271 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 controller. Signed-off-by: Mason Yang --- .../devicetree/bindings/spi/spi-renesas-rpc.txt | 37 ++++++++++++++++++++++ 1 file changed, 37 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..ba863d7 --- /dev/null +++ b/Documentation/devicetree/bindings/spi/spi-renesas-rpc.txt @@ -0,0 +1,37 @@ +Renesas R-Car Gen3 RPC controller Device Tree Bindings +------------------------------------------------------ + +Required properties: +- compatible: should be "renesas,r8a77995-rpc" +- #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" +- clock-names: should contain "rpc" +- clocks: should contain 1 entries for the module's clock +- renesas,rpc-mode: should contain "spi" for rpc spi mode or + "hyperflash" for rpc hyerflash mode. + +Example: + + rpc: rpc@ee200000 { + compatible = "renesas,r8a77995-rpc"; + reg = <0 0xee200000 0 0x8100>, <0 0x08000000 0 0x4000000>; + reg-names = "regs", "dirmap"; + clocks = <&cpg CPG_MOD 917>; + power-domains = <&sysc R8A77995_PD_ALWAYS_ON>; + resets = <&cpg 917>; + clock-names = "rpc"; + renesas,rpc-mode = "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