Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2383580ybl; Thu, 19 Dec 2019 12:39:11 -0800 (PST) X-Google-Smtp-Source: APXvYqzf094PrhU3Gjr9umm2FeYdC1qpY40mUjPvIOjnXZIE5k+QkBNNxYHsIsIN7KLYOuJIiAFs X-Received: by 2002:a9d:6647:: with SMTP id q7mr10208851otm.269.1576787951502; Thu, 19 Dec 2019 12:39:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576787951; cv=none; d=google.com; s=arc-20160816; b=zWHavsC5euHZAoyRMk5EDNv1sfdTMqsQszrwWAm/Vg1WngfhPx8mqGU8/kLkE0Kcej RSdNjuzzv3+6UISM9W7Cv0Y9eZeudV4L9zKEVCeWiVcrFAJ3Ulv+cBAqFewXB3fN449p Eb2n1oGaDM0k2m28JncCWT70UVZu1E/t5vRNI5OOz+xaJpC5kT7ddzBpHQ5xTwk6OuTw 8fd/Rdfw/nU95MxibhQWcjteGa9RDFskqHFBksKWALcSx+3RbOnLmyMK8LSpba2vcXVT ol8+dNhWWyxWRxakcdabaK6UVPqne1qaRH+ijoWcHYwo77nAnRWuNsYMPinomDfvh1dg AxYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=lvcWgSs9CsFC10Off4IxnD7dpuy8j7JrLycgYVcspt0=; b=MlFde8tGiWSCQlmV+z1YTzFO4cdN2xLXnxSTJ28TiY3ZQ5uv/XREB29l9Crn/ZkR9w TmajnIGIHyCOgiZApINNvOonWKa2WeZIDKxwjzDe3747ztjaHqiZF3h8th8lkxfa0Vqv 7og1LY2phNcXVgWg7oyMB4K8sr/NxSxdc5Dl/H4ddV9G6TsAB10PMvTzgX8hnjfsyI3N J3yzT59RuGZJaTT+flv0BYNdaCW4o8zNAohDpBA1NQ22zP3+RB8hK4CcQtC5DZWva7vF nbmrmb6qFW1i6/e1mxTpL/okuWrtG4yr0gZs1IKT9CgDBj4qUxrfnDrLySREylHXHKCy LQ4g== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 8si3633683ota.266.2019.12.19.12.38.59; Thu, 19 Dec 2019 12:39:11 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727114AbfLSUiW (ORCPT + 99 others); Thu, 19 Dec 2019 15:38:22 -0500 Received: from mail-oi1-f193.google.com ([209.85.167.193]:35152 "EHLO mail-oi1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726906AbfLSUiW (ORCPT ); Thu, 19 Dec 2019 15:38:22 -0500 Received: by mail-oi1-f193.google.com with SMTP id k4so3688934oik.2; Thu, 19 Dec 2019 12:38:22 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=lvcWgSs9CsFC10Off4IxnD7dpuy8j7JrLycgYVcspt0=; b=X9RHNnr4pPvAblRReJl7bH4TK0QS0ApYlqHEvdz5b9cexw/lVNNHvufv/kVNxTj1Oy 3aAoJlWlaruijp7OwYiH/ES3iNUqLWvnEILuJIARSL+alfks+YSEMGRyb3DhQhFIBkkj ERJg80mxXh563onKBU76Jk1JjWUQ/3ND1s6Yph7D/IpvBuKsgx99CJjBLvYhVDkqvIUZ Pl2LpMe31l8a1B+pQH/9ZHSy/Uij2wrLhzJ+QWxLn85dANiRfZe0dmUIAFWdSfz41/iN Lvz5WeORjZJxUHFtkoMHOD1BXcIlOM8nwI5QlqYF8H2ucQb/e8io+ce57h1/d9uSNelK uXKw== X-Gm-Message-State: APjAAAWYMMCGJccsbiD9fuJEVlL8dWfV8XWe4QgQFuZTtKL4SMIVx3l1 ALYAHA27Kq1r4OrWYK88Nf8G/GbCyg== X-Received: by 2002:aca:b7c5:: with SMTP id h188mr3123999oif.100.1576787901767; Thu, 19 Dec 2019 12:38:21 -0800 (PST) Received: from localhost (ip-184-205-110-29.ftwttx.spcsdns.net. [184.205.110.29]) by smtp.gmail.com with ESMTPSA id b3sm2340330oie.25.2019.12.19.12.38.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Dec 2019 12:38:21 -0800 (PST) Date: Thu, 19 Dec 2019 14:38:09 -0600 From: Rob Herring To: Sergei Shtylyov Cc: devicetree@vger.kernel.org, Mark Rutland , linux-kernel@vger.kernel.org, Mason Yang , linux-spi@vger.kernel.org, Chris Brandt Subject: Re: [PATCH RFC 1/2] dt-bindings: memory: document Renesas RPC-IF bindings Message-ID: <20191219203742.GA27539@bogus> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 10, 2019 at 10:37:34PM +0300, Sergei Shtylyov wrote: > Renesas Reduced Pin Count Interface (RPC-IF) allows a SPI flash or > HyperFlash connected to the SoC to be accessed via the external address > space read mode or the manual mode. > > Document the device tree bindings for the Renesas RPC-IF found in the R-Car > gen3 SoCs. > > Based on the original patch by Mason Yang . > > Signed-off-by: Sergei Shtylyov > > --- > Documentation/devicetree/bindings/memory-controllers/renesas,rpc-if.txt | 52 ++++++++++ > 1 file changed, 52 insertions(+) Please convert to DT schema. > > Index: linux/Documentation/devicetree/bindings/memory-controllers/renesas,rpc-if.txt > =================================================================== > --- /dev/null > +++ linux/Documentation/devicetree/bindings/memory-controllers/renesas,rpc-if.txt > @@ -0,0 +1,52 @@ > +Renesas Reduced Pin Count Interface (RPC-IF) > +-------------------------------------------- > + > +Renesas RPC-IF allows a SPI flash or HyperFlash connected to the SoC to > +be accessed via the external address space read mode or the manual mode. > + > +Required properties: > +- compatible: should be an SoC-specific compatible value, followed by > + "renesas,rcar-gen3-rpc-if" as a fallback. > + supported SoC-specific values are: > + "renesas,r8a77980-rpc-if" (R-Car V3H), > + "renesas,r8a77995-rpc-if" (R-Car D3). > +- reg: should list 3 register areas: > + 1st for the RPC-IF registers, > + 2nd for the direct mapping read mode, > + 3rd for the write buffer area. > +- reg-names: should contain "regs", "dirmap", and "wbuf". > +- clocks: should contain the clock phandle/specifier pair for the module clock. > +- power-domains: should contain the power domain phandle/specifier pair. > +- resets: should contain the reset controller phandle/specifier pair. > +- #address-cells: should be 1. > +- #size-cells: should be 0. > + > +The flash chip itself should be represented by a subnode of the RPC-IF node. > +The flash interface is selected based on the "compatible" property of this > +subnode: > +- if it contains "jedec,spi-nor", then SPI is used; > +- if it contains "cfi-flash", then HyperFlash is used. > + > +Example: > + > + rpc: spi@ee200000 { > + compatible = "renesas,r8a77995-rpc-if", > + "renesas,rcar-gen3-rpc-if"; > + reg = <0 0xee200000 0 0x200>, > + <0 0x08000000 0 0x4000000>, > + <0 0xee208000 0 0x100>; > + reg-names = "regs", "dirmap", "wbuf"; > + clocks = <&cpg CPG_MOD 917>; > + 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>; > + }; > + };