Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5798567ybl; Tue, 10 Dec 2019 11:39:40 -0800 (PST) X-Google-Smtp-Source: APXvYqziodaLY/5npah2R208qyKhZZxWqA6NnQA3JvjIRvkSa9FHpw+1CqhruHLLgqZ51idBfjiV X-Received: by 2002:a05:6830:1141:: with SMTP id x1mr27568453otq.120.1576006780312; Tue, 10 Dec 2019 11:39:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576006780; cv=none; d=google.com; s=arc-20160816; b=wR81rC4TZNVhdeiJ7EFT6WB30ZuI6cSzfMT/cjTGAgrYOPP9swf3FRVwS0dNxRibUN Hr69PEoHb75UcucrQtv0nyHljDB2o9fUy/9WCJa3y2y1Ci12eUUyhQBZrWOLFqU6EnRj yYSkwK8vp0SsiUyE0dPbsF2Gd4sPg6fCRp40s8vJAgcQBROg4x0ySqwIllu+GvVkiyFC mUDEF52DUyrKV3Lfdsj6O6IG+LwFyfzEk4pivCV/Vfpf4i7dOK5t7k26nKMBIyT+rAVL RPxEQ2IzWfg0WWaI5JqwVK0DgRJkfepOoM+S6zNhQNE5KJ7lR5/JVCYzVGRYeXkoEwRq w1gA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:references:cc:to:from:subject :dkim-signature; bh=iVJKBlhEYT6S4kQZRu/hdIVpnnDPFI8gf9sf12wfx90=; b=omsGxO4JfU7uwvycHlGhv65/9VaLkzDvVV/bQUninMyCxpdiy/H+QOzvITjllMePns X0tHffaba9wOFyGdMRWMe5dwTTd+y4nHZVeYG3H/pCgFh4NddQrCp/y4zo4CAItm+uoI Bm5F4B7QYfhlSlNKwy+eQHoDan9BIcEsZQ2DwiYQ8piGVGwBYwIuueJq2N8AXYgb+9HU omMVb+06jp2m39KKxR/2xYOtZEddGha7l+5jZmUAEKxne/0Ihnl6hKIRwoDLaLepIEZp /aJ52wZMkdLzKAeQkVzO61cGB4n+13TPm80TUEZ5rYlN1h8xJueDAfXQG5/R9W13pYFx MbHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cogentembedded-com.20150623.gappssmtp.com header.s=20150623 header.b=CNMRtLPl; 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 l1si98784otn.98.2019.12.10.11.39.28; Tue, 10 Dec 2019 11:39:40 -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; dkim=pass header.i=@cogentembedded-com.20150623.gappssmtp.com header.s=20150623 header.b=CNMRtLPl; 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 S1726810AbfLJThj (ORCPT + 99 others); Tue, 10 Dec 2019 14:37:39 -0500 Received: from mail-lf1-f67.google.com ([209.85.167.67]:37956 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726687AbfLJThj (ORCPT ); Tue, 10 Dec 2019 14:37:39 -0500 Received: by mail-lf1-f67.google.com with SMTP id r14so14703316lfm.5 for ; Tue, 10 Dec 2019 11:37:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogentembedded-com.20150623.gappssmtp.com; s=20150623; h=subject:from:to:cc:references:organization:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=iVJKBlhEYT6S4kQZRu/hdIVpnnDPFI8gf9sf12wfx90=; b=CNMRtLPlIp77f0IVCJYc6IX1Y09b5Wqnv9CF96KD6ytBL4eDUSJ80kH1zFvGs0aGpB SkmFjdxaicjcndoWwMrAm3tQ5Vw4g1iE/Pe7QQ5xWiwGDSGnJRJHjD4QHxyhTfGIdhj3 4ueE3qEswRNpoLloqIKeAKd6Sw4d8+IC3pPHu+5zgVcw9k8z0biTS6cvB6pjcSYuoqyG 6RmjKc+jctS4BGy769thvk+IfJabmbWSzKC8OK5lnqhP6prbF2PTR8w1m3rWL6Rp05Fm 2TUqqdigReR2A4kQ3NbA/klRYOF+v62hjosjyK32VddWLcz5+VcfGE1z2OQji383Hm6S rzoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:cc:references:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=iVJKBlhEYT6S4kQZRu/hdIVpnnDPFI8gf9sf12wfx90=; b=fBVZJKqRlNusA3eT5PhdDI4APT26/PwMRd2G53WrS9oFN9yl/YHj1kENxDCWm+KZzi cCereeKmVOGEodE4Rc/3ZFHXjGOqnTgyM9BdrEjSnpSaQD0Vvx4WONhrgsrAv4B4PLCJ L6iCYYnTiw9Y9HRuOBraFZ1UE7OaePu9J5XQEa+3cyOTv6WLkVGmTAkCnbXdaNG9/zLS cpSYLA/JTnpWXwolC5WKwTu3PhstHnqp4wNzNqtQy/r+ezRNACBr/u9Ypb4SUZlO5SRx j94vsBDTNCXy6LHEzb2O34fRfGS6uMA28e1EDzVoSDwziecAYb6bKBEog+RFpJzry657 nosA== X-Gm-Message-State: APjAAAVvP16ePQOIttLqsWGBgavfkU65vQ4LlPeNSwlrMMWHuoklJ56A 0BxOFZvVmaMnlA/7jHkOHgc6xw== X-Received: by 2002:ac2:5dc7:: with SMTP id x7mr20113199lfq.24.1576006656477; Tue, 10 Dec 2019 11:37:36 -0800 (PST) Received: from wasted.cogentembedded.com ([2a00:1fa0:88a:ffe6:e26c:e506:75a0:c93a]) by smtp.gmail.com with ESMTPSA id y29sm2311376ljd.88.2019.12.10.11.37.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 10 Dec 2019 11:37:35 -0800 (PST) Subject: [PATCH RFC 1/2] dt-bindings: memory: document Renesas RPC-IF bindings From: Sergei Shtylyov To: Rob Herring , devicetree@vger.kernel.org Cc: Mark Rutland , linux-kernel@vger.kernel.org, Mason Yang , linux-spi@vger.kernel.org, Chris Brandt References: Organization: Cogent Embedded Message-ID: Date: Tue, 10 Dec 2019 22:37:34 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-MW Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(+) 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>; + }; + };