Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4637825yba; Tue, 7 May 2019 23:37:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqw6n5e2rhoNVHN8YiPQVMAIxHxJRoLAFLuoFILtOw1hNg6KqZySPhAK0gEbmGGGnnm2Is16 X-Received: by 2002:a63:d252:: with SMTP id t18mr45180450pgi.131.1557297419904; Tue, 07 May 2019 23:36:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557297419; cv=none; d=google.com; s=arc-20160816; b=cQzjb8oMn/Eo5MJVGXY8lLprA6jT2qlKGZnz1oVtHgB7MloPHsGjNiajGfcao0xkgL 3WgTe0KGiWKS+c6lmxa2EPQ5VxkaqgFifa4K5ruM7yP2kfLXMMTfhdr4vEE/lSVcBSMv wLq4OH9g/gfLZBS44dij9l/5gLnQNKxgVaLnaKLh0+YUVXqfiat9Gm38NEtksUiIjBJJ Fq+uhMnzPrsZGAsEc0q+qJkkvBZRzIkKARouK+z7z/gNkXhTX8fV0PKSvlqc7WAE6TqI rIrTNmv8SPRg5+NA3aB7vClj+HZD2pfyjPubHpLIFVnImYBohmFAlNFin45g6yeiZqm5 OnJg== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=GqEqCNgSxd2APLcFtwFmHcxS1CnmhrSkbjU7782mmEA=; b=CEIPoCSz3vXJQlqqftpQyWnhL7xMug9kBojPDsRgJolzA6abFfvU/RZv/LkLDUDIvg 4t+B698zW65W7YtL9JFXi47sjPmoOtsMngWxPkaysxuBagwACdJEaG/fdfNQ7XLNvT/N 0rW1bY/UHA5dIy7yL6OTLMpf+bbQhpT5Q96UfYPCVcrxHUz80XcXD2z+iGZrOsmlH/e5 gVjDJAOgEtTsjPen1CzY/0hquds1OzMi6Pu6upDI4fDx50RBFjouFsfnBI1Y1reDBToO EsgSvCbmW0sFqsaTpK5AxapuOGABAlOeCAUkji6OFV+cHxXe/2dzjwGl6rtSnLJ4G0gJ a5AQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=l13Kn1KU; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bb8si21891153plb.388.2019.05.07.23.36.44; Tue, 07 May 2019 23:36:59 -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=@linaro.org header.s=google header.b=l13Kn1KU; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726967AbfEHGL0 (ORCPT + 99 others); Wed, 8 May 2019 02:11:26 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:43052 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726179AbfEHGL0 (ORCPT ); Wed, 8 May 2019 02:11:26 -0400 Received: by mail-wr1-f65.google.com with SMTP id r4so10191376wro.10 for ; Tue, 07 May 2019 23:11:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=GqEqCNgSxd2APLcFtwFmHcxS1CnmhrSkbjU7782mmEA=; b=l13Kn1KUq5zSRAzSwAktRUo1C6jyppWNyv3HllcCtdXrTu4EpW8geG9Iry0cHA2uMf pOK265Mrbp8iag3zrgfE0qXUaTXZuGC+FNDTwEJgqKa+FoeBCIN84XDRBA9hXZanzAqM dqoOhRA/jPnW2p89bXTLRyO/tq324AKCNEPpsHJ/aiVZUZMXsMogE8I4BrrptyAzy7n+ LRcFr6ISOPot7ORaO23ZT5UHzXRkqgFVYlIC5iqzOFH9ch8nh4cAESOM7wimzrnadnUI zDX67dO/9slLZ91EOtq8okbepSPmze+rKL5wpTtJZTNkH1MPd/T1j9Qk/NXL8lKD4pCX TN5g== 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:content-transfer-encoding :in-reply-to:user-agent; bh=GqEqCNgSxd2APLcFtwFmHcxS1CnmhrSkbjU7782mmEA=; b=otJvAgms/M50dpaCwnQIQFtkM0YdnYCY7DM+FepQ+c8+dFhWpkSkowTs+lY4+ERHXw bz6JTmHICE82N9P3DX2yepHU9RgDNoG9DE5WMXKQRIfm26MN7lTlc1+9BvIgcWBW4xDe z0w1VgnPU4hD9GBPb594fM8t+fBoT40I9n1IoevJm78Iez1KeOy4ztE+XuwRMR/NVCiU S4qcSbqbB8mWHqNY/jQBwhrzp7+l3LxaAktnDR67qU50MNNxdlrtE/OKVu8wbaCPBooY +mQ77ziSJVPcvJBqhH5f9nvpq356JliAWz9Y6J71BkXya7LkM7mxk6OQ16iEqpJX3kqX oP9g== X-Gm-Message-State: APjAAAU2nnS1UcC1qYfdsxP1YMsIEQGA13svmH/6wztJAKglhCMOpn6n INJX5z2EtfpbMOtXYJT3otHk9g== X-Received: by 2002:adf:dc8a:: with SMTP id r10mr9548175wrj.15.1557295883528; Tue, 07 May 2019 23:11:23 -0700 (PDT) Received: from dell ([2.27.167.43]) by smtp.gmail.com with ESMTPSA id k67sm1170939wmb.34.2019.05.07.23.11.21 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 07 May 2019 23:11:22 -0700 (PDT) Date: Wed, 8 May 2019 07:11:19 +0100 From: Lee Jones To: Marek Vasut Cc: masonccyang@mxic.com.tw, bbrezillon@kernel.org, broonie@kernel.org, devicetree@vger.kernel.org, Geert Uytterhoeven , Simon Horman , juliensu@mxic.com.tw, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-spi@vger.kernel.org, mark.rutland@arm.com, Rob Herring , sergei.shtylyov@cogentembedded.com, zhengxunli@mxic.com.tw Subject: Re: [PATCH v12 3/3] dt-bindings: mfd: Document Renesas R-Car Gen3 RPC-IF MFD bindings Message-ID: <20190508061119.GB7627@dell> References: <1556092536-17095-1-git-send-email-masonccyang@mxic.com.tw> <1556092536-17095-4-git-send-email-masonccyang@mxic.com.tw> <20190424212356.GA27103@bogus> <65853dc2-6f3c-1494-7e72-54877797cdd2@gmail.com> <20190507125730.GD29524@dell> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 08 May 2019, Marek Vasut wrote: > On 5/8/19 4:48 AM, masonccyang@mxic.com.tw wrote: > > Hi Jones, > > > >> "Lee Jones" > >> 2019/05/07 下午 08:58 > >> > >> To > >> > >> "Marek Vasut" , > >> > >> cc > >> > >> "Rob Herring" , "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, mark.rutland@arm.com, > >> devicetree@vger.kernel.org, juliensu@mxic.com.tw, "Simon Horman" > >> , zhengxunli@mxic.com.tw > >> > >> Subject > >> > >> Re: [PATCH v12 3/3] dt-bindings: mfd: Document Renesas R-Car Gen3 > >> RPC-IF MFD bindings > >> > >> On Wed, 24 Apr 2019, Marek Vasut wrote: > >> > >> > On 4/24/19 11:23 PM, Rob Herring wrote: > >> > > On Wed, Apr 24, 2019 at 03:55:36PM +0800, Mason Yang wrote: > >> > >> Document the bindings used by the Renesas R-Car Gen3 RPC-IF MFD. > >> > >> > >> > >> Signed-off-by: Mason Yang > >> > >> --- > >> > >>  .../devicetree/bindings/mfd/mfd-renesas-rpc.txt    | 40 ++++++ > >> ++++++++++++++++ > >> > >>  1 file changed, 40 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..668b822 > >> > >> --- /dev/null > >> > >> +++ b/Documentation/devicetree/bindings/mfd/mfd-renesas-rpc.txt > >> > >> @@ -0,0 +1,40 @@ > >> > >> +Renesas R-Car Gen3 RPC-IF MFD Device Tree Bindings > >> > >> +-------------------------------------------------- > >> > > > >> > > Looks like a SPI flash controller from the example. What makes it an > >> > > MFD? > >> > > >> > It supports both SPI NOR and HyperFlash (CFI-compliant flash with > >> > different bus interface). > >> > >> Looks like you're registering one OR the other. > >> > >> Why don't you just do this from DT? > >> > >> No reason for this to be an MFD IMHO. > > > > > > okay, I will patch it back to SPI mode only. > > I don't think that's what Lee meant . The controller supports _both_ > modes , hence it would have the same compatible string. You just need to > extract the mode of operation from the DT. HiSilicon attempted to upstream something similar, only their controller provided NAND and NOR functionality. They used different compatible strings to differentiate between the varying technologies. They too tried to use MFD as a means to select between them (which was also NACKed). Not sure what they ended up doing, but the original submission and (half of) the conversation can be found at [0]. Some more of the thread continues at [1]. Hope that helps. [0] https://groups.google.com/forum/#!topic/fa.linux.kernel/F6i9o8sfOIw [1] https://marc.info/?l=devicetree&m=147669165104431&w=2 -- Lee Jones [李琼斯] Linaro Services Technical Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog