Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2815482imu; Thu, 17 Jan 2019 23:13:19 -0800 (PST) X-Google-Smtp-Source: ALg8bN7ekIMVNsiaW1a3cwcP+zHr4qf3VfUbIW/02qsLlbyWXsSD9BlHhqk6jzVPWPfjVcEuS6HF X-Received: by 2002:a63:ea4f:: with SMTP id l15mr16170673pgk.102.1547795599461; Thu, 17 Jan 2019 23:13:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547795599; cv=none; d=google.com; s=arc-20160816; b=wDgwDRvvOPS1dolzwGzq12C7ytkBWixnC/pS1Rb1aTDbYAf0014IcHVBp8zxxc3Nbp zkT2Fu44G/TdAiSRNna2sI43ONNEA2tNAYbxEJXLmuCQ7H/x5dSOMamc9mCd08zBr8B1 yM5y9w/rpWc5C81SElmWgvt03iz0lHpVfIW2ec4uQNass8I8N0ew/apZ310hCt/UPWGF svJ/F7UrHHj3r62muStrkIa5NLdtCq60zhVPMZxuGxnBPEQV9Ua1obVf7BBa6Fevqj42 exHqmRovEZDo4JiiHSTFCh1nKo1D9PA+nd1V6J/6mBrtR4jlQhyr7s9/yylk1C7y7ub5 FCCg== 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:openpgp:from:references:cc:to:subject:dkim-signature; bh=ieSd4tJvQpH/Zh+ShMVdXd0xFUuzbkCtoalJTuqaM0s=; b=LCEXO3KdZoCiYiX3gg1tqJWuZE1ni1TuKrYrzU1mhL4D7qoNhwnqMXT5NB6SvRZtL5 oWp6F0s0wW/WzYlg9V/skF3NwVlhbiFDLdzAFX9ozyBjS0i7pwGk/oiOrFgS+yBlGXcr /O3QhBEp9pO4Zbku2UWclNQKW187W0zuwPeja2rsfLxjk0gDNwKoghZ/Z5fiaC1Xq8su PUYCP2vVNrnWAMbyAXRBkJGaFUT1LFPpUpsV6LJM5Y2LbODmM4Y255sf2E/l9YpE0SzW j0oyz8ieNeHfbc3GbT1UBSmLoYTbiS97DU8frLtMOLvwUdFYL0Ci79KgUI38MSbvWjq5 /6mA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=kMxY37O9; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o10si3854757pgg.373.2019.01.17.23.13.00; Thu, 17 Jan 2019 23:13:19 -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=@gmail.com header.s=20161025 header.b=kMxY37O9; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727327AbfARHKB (ORCPT + 99 others); Fri, 18 Jan 2019 02:10:01 -0500 Received: from mail-pl1-f194.google.com ([209.85.214.194]:41449 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727080AbfARHKA (ORCPT ); Fri, 18 Jan 2019 02:10:00 -0500 Received: by mail-pl1-f194.google.com with SMTP id u6so5929475plm.8; Thu, 17 Jan 2019 23:09:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:openpgp:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=ieSd4tJvQpH/Zh+ShMVdXd0xFUuzbkCtoalJTuqaM0s=; b=kMxY37O93xsvj9Fpzo+qgODrD/kYzqNxgXhyUBY53+kN/mxCDqLEEq3sVVJ6IpxmBf XIP3h2HJRYRuTE+avO19/tTHKqXccucubfGtLMpzuscXLaP0hGh0O/vrXDV8tqMlXRVP 8I6vH7jZ8fOE2i77UbAljWYZgzf7GeKKHotiZYkgpBymu9m54grEx4MRv94GpK9OhbVm 8tAK0rJvOGJmNphMfDRwFDRtz5suqUDwQOJLENrb2Ib3ER2b8oKjrBO9owyvaZv7/Vnj h9QBwng0yMcNxxnN1DxyBqStWOjmoWNr1/E5gG8/fjbEkUec9NdfPKPR2ndxeuAxYlVj jJ1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:openpgp:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=ieSd4tJvQpH/Zh+ShMVdXd0xFUuzbkCtoalJTuqaM0s=; b=EB5npcIrBJF9dg68dix4Dns74SZvNpUpaf8N3XyAkTzs2nfEJRj5o0lx3rPO75QaQ/ ALoQ9bHHGx0ZYGFWfxovxlokXQybnV2oxSMWH7VOfR9hbVBt7lqi6mejUYNq3CdwYi2S /UV0Fe8vyyeTw7rCpEyZ2h80K4RwT4QMELbRe2EcmyvesG+1nrvdtcVZe1b9A+RS72ql J9ZSm9o+wOAt6MbW3jO9FJ+ZEu01ZNFwHq/4oasg6YpdvwGExa+CglKtzbQ/WO7JuQIZ TKQ5vqjYsYRq4RV4sPAxUycr2/wsoCm5V5Vs9KroLtEJ4kbzT3qfdD3Qj/xs4Fjwl0U6 7RoQ== X-Gm-Message-State: AJcUukcyoAm8YAgfoyiKsJtmD9xmO2bUVZ5J2WFI7CTDNVLkAzB70iH3 AwlMn8xTZKyzNHNnFy9ZTnQ= X-Received: by 2002:a17:902:2b84:: with SMTP id l4mr18185565plb.191.1547795398868; Thu, 17 Jan 2019 23:09:58 -0800 (PST) Received: from [192.168.42.184] ([103.44.164.150]) by smtp.gmail.com with ESMTPSA id g3sm5951429pfe.37.2019.01.17.23.09.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 Jan 2019 23:09:58 -0800 (PST) Subject: Re: [PATCH v6 2/2] dt-bindings: spi: Document Renesas R-Car Gen3 RPC-IF controller bindings To: Mason Yang , broonie@kernel.org, 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 References: <1547790855-22120-1-git-send-email-masonccyang@mxic.com.tw> <1547790855-22120-3-git-send-email-masonccyang@mxic.com.tw> From: Marek Vasut Openpgp: preference=signencrypt Message-ID: <8367577a-9717-92e3-cbc8-8dee52876bcb@gmail.com> Date: Fri, 18 Jan 2019 07:16:10 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <1547790855-22120-3-git-send-email-masonccyang@mxic.com.tw> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/18/19 6:54 AM, Mason Yang wrote: > 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 | 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..9b5001e > --- /dev/null > +++ b/Documentation/devicetree/bindings/spi/spi-renesas-rpc.txt > @@ -0,0 +1,37 @@ > +Renesas R-Car Gen3 RPC-IF controller Device Tree Bindings > +---------------------------------------------------------- > + > +Required properties: > +- compatible: should be "renesas,rcar-gen3-rpc" > +- #address-cells: should be 1 > +- #size-cells: should be 0 > +- 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" > +- clock-names: should contain "rpc" > +- clocks: should contain 1 entries for the module's clock > + > +Example: > + > + rpc: rpc@ee200000 { > + compatible = "renesas,rcar-gen3-rpc"; > + reg = <0 0xee200000 0 0x7fff>, <0 0x08000000 0 0x4000000>, 0x7fff should be 0x8000 , right ? > + <0 0xee208000 0 0x100>; Isn't the write buffer part of the RPC-IF register set ? > + reg-names = "regs", "dirmap", "; > + clocks = <&cpg CPG_MOD 917>; > + power-domains = <&sysc R8A77995_PD_ALWAYS_ON>; > + resets = <&cpg 917>; > + clock-names = "rpc"; > + #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>; > + }; > + }; > -- Best regards, Marek Vasut