Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp813208yba; Thu, 18 Apr 2019 09:58:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqyviaCDhSrxli4QfAhFJBZ7hHPsYvq9ZNDUSUH+pkpU+O3VG8ApTbP1VTfG5kSyJEBYiKzg X-Received: by 2002:a65:6148:: with SMTP id o8mr90710201pgv.153.1555606706771; Thu, 18 Apr 2019 09:58:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555606706; cv=none; d=google.com; s=arc-20160816; b=R+UNF1V/ZZShyX8e7QbtdkZGoGc5+Fcv3URImXLY163X/vmqF3C2ebSCWE8RG+rERT Fn76SO6KIeDJBicuvycrsl4wdxrAhMFFPtfGdErBKapB5gFXRChV++1oKlBksAnKt6N6 ngQbghyoPiJGi0TBykJKnvs+uLFz0NlJquWdBlbQKmqLT6mK2l1GrXPpcAYtNEUgHm85 9++JFroDkaoSMuYjx+4iIZ6acFsF434D5brzS/0n5ECS7P1rVUuHOITvUAMj6656Qkzp AoYUtttDjLXEXG7T52ZuXBKer3wO8dpTikRdrn1ZzV90frzd4IyvmS5b7mMbh3Y+RtDg u/pg== 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:from:references:cc:to:subject :dkim-signature; bh=a65YTKMZPVfyr/OzNwVWAH0nGUFxpw6A5T7wD1qw9X0=; b=HGpF/us4PWpB2pBGIhhzhUCFEXk4g6DDPJZVdpbIPTXqvBWMuyf767aw1jylAgIrIS 7IJOdJTDtAnPSL+nGqSPWur5fV2ld5lI1ldeDfFXDmFQ9YbdN6zSV5yNnr+v8zTjBCuA zVt6YpWwfYEcEr0OTpO5DPrtGbkQ1sPt2O+zU/Lgml5e1VkGDR9+bhClJg2oNFl5wS2p 3AGJFBS1um0K7J+JZh1eFwfgBTWQCoR1e0iAmZRoP/NxBTgl3QNge/r1oR8PwDIAo2M1 hrx5f7Zj1ziHpcnCVAD4H9SOkqpkJIrK622tEMy2LD14jao24IJooMKVG+ElhkL9TVs9 uNDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cogentembedded-com.20150623.gappssmtp.com header.s=20150623 header.b="bMQh9r/u"; 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 j30si1647501pgb.176.2019.04.18.09.58.11; Thu, 18 Apr 2019 09:58:26 -0700 (PDT) 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="bMQh9r/u"; 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 S2389452AbfDRQ4E (ORCPT + 99 others); Thu, 18 Apr 2019 12:56:04 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:43978 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388819AbfDRQ4E (ORCPT ); Thu, 18 Apr 2019 12:56:04 -0400 Received: by mail-lj1-f194.google.com with SMTP id f18so2490463lja.10 for ; Thu, 18 Apr 2019 09:56:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogentembedded-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:organization:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=a65YTKMZPVfyr/OzNwVWAH0nGUFxpw6A5T7wD1qw9X0=; b=bMQh9r/umT6ptFa2YD+uz0RncohLw6hge3i0y3wJ+g+EjOMbPT0taoCo0llGhHyxFQ 0AtfmnKS3E7pbNNB43Z7mEbh4cA/a/3KPyEaB8sOUMn1CjthxpefXmHz2yfG8J70QUz0 deec+4UNl5R6cicLlBU6zyYTnkhyygfjzudsr/G6P8HUraxKL7z8TXAKx3Po+K2vKo8B NEB5F91/m2F3Y9Wvn4BOu0nCM5ANdv3M+FmLfGLjd0hGSHKL+S+v047mQtNJc8fTMZOO aBQoBpZ6pLHAT86MvcsJ1CTug85DvdPFFTasaCEI7hHFboZ1PvPELEUZjvGKXMjHRhat yXIA== 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:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=a65YTKMZPVfyr/OzNwVWAH0nGUFxpw6A5T7wD1qw9X0=; b=Sr3cbgp3ZEMXumDJS3Wscf3Yk+JDxmG0iJuddm0mjVKPdll92xFUXuo7zxPShjsoJj Gl4wLIv7kGZlqIvpkOzMoM6YceFE8Vf7FfjDYFdZimjc97Wyc4nSPbsSAi36XxHUxNVx i2sOPjTrur/iAE3GyzZVHuD17Vs+RvA67hIWilFIUnj9fTHCfQ1kH8yii2FvAchCTGAc f/TAw9f8n/QijIAgBLR5KGEMx5xO4cjs0KI069s4dDbYGQ3r5oVIcaX4CoSiqCJ3h6jg SmfofhrllzBzP+4GWz2cFn4uFtS6Z+VM+1pbbIFM1LA7qAFLBOZACPMcI5wPCwtVyVle npCA== X-Gm-Message-State: APjAAAX+ihdB7e9KTdiDvTCZ6ASew/jeipqCzPEuCyIlyMJTXEOLfrM6 uGMBHURT429o4jJ3fMpOqazPow== X-Received: by 2002:a2e:7a09:: with SMTP id v9mr540275ljc.167.1555606561942; Thu, 18 Apr 2019 09:56:01 -0700 (PDT) Received: from wasted.cogentembedded.com ([31.173.82.67]) by smtp.gmail.com with ESMTPSA id a17sm550157lfg.88.2019.04.18.09.56.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Apr 2019 09:56:01 -0700 (PDT) Subject: Re: [PATCH v10 3/3] dt-bindings: mfd: Document Renesas R-Car Gen3 RPC-IF controller bindings To: masonccyang@mxic.com.tw Cc: bbrezillon@kernel.org, broonie@kernel.org, devicetree@vger.kernel.org, Geert Uytterhoeven , Simon Horman , juliensu@mxic.com.tw, lee.jones@linaro.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-spi@vger.kernel.org, marek.vasut@gmail.com, mark.rutland@arm.com, robh+dt@kernel.org References: <1555313834-15107-1-git-send-email-masonccyang@mxic.com.tw> <1555313834-15107-4-git-send-email-masonccyang@mxic.com.tw> <907f2e87-1cb4-fa37-5406-82bf2bf71188@cogentembedded.com> <8720224d-76f4-c620-9e3f-91605d6fa1e3@cogentembedded.com> From: Sergei Shtylyov Organization: Cogent Embedded Message-ID: <9bc4847f-8e7e-3627-5394-6f2b5c5972bc@cogentembedded.com> Date: Thu, 18 Apr 2019 19:55:59 +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 Hello! On 04/18/2019 08:55 AM, masonccyang@mxic.com.tw wrote: >> > > > Document the bindings used by the Renesas R-Car Gen3 RPC-IF >> MFD controller. >> > > > >> > > > Signed-off-by: Mason Yang >> > > > --- >> > > > .../devicetree/bindings/mfd/mfd-renesas-rpc.txt | 37 +++++++++ >> > > +++++++++++++ >> > > > 1 file changed, 37 insertions(+) >> > > > create mode 100644 Documentation/devicetree/bindings/mfd/mfd- >> > > renesas-rpc.txt >> > > > >> > > > diff --git a/Documentation/devicetree/bindings/mfd/mfd-renesas- >> > > rpc.txt b/Documentation/devicetree/bindings/mfd/mfd-renesas-rpc.txt >> > > > new file mode 100644 >> > > > index 0000000..bfb3d29 >> > > > --- /dev/null >> > > > +++ b/Documentation/devicetree/bindings/mfd/mfd-renesas-rpc.txt >> > > > @@ -0,0 +1,37 @@ >> > > > +Renesas R-Car Gen3 RPC-IF MFD 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 2 entries, one for the base address of rpc- >> > > if registers, >> > > > + and one for the direct mapping area >> > > > +- reg-names: should contain "regs", and "dirmap" >> > > >> > > The device tree describes the hardware, not the driver. Why >> did you remove >> > > the "wbuf" area? >> > >> > I don't think we should describe the hardware that driver did not >> implement it >> > because there are still many RPC registers we don't use them. >> >> I have to repeat: we describe the hardware, not the driver capabilities. > > how about: > > - 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 an optional write buffer area. > - reg-names: should contain "regs", "dirmap" and "wbuf"(optional). > > is it OK ? No, the write buffer area is always there, at least on the gen3 chips. (I forgot which other Renesas SoC has RPC-IF as well). > thanks & best regards, > Mason MBR, Sergei