Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp624659ybe; Thu, 19 Sep 2019 00:49:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqxk+rBSr+tu+FGx47QL52gjenUqZUmw1PH/5a5e1F7B/8Qv+9KQJVDph3pyEfh1mpEMuF+S X-Received: by 2002:a50:b0c5:: with SMTP id j63mr890425edd.90.1568879362726; Thu, 19 Sep 2019 00:49:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568879362; cv=none; d=google.com; s=arc-20160816; b=VbP+Sir+GNegi6pStlZflmb2fAvzgjC9Lcjd7X+PSOoiLWUSxi9E1SbVsPfkUyoo4F ZtSJW4aQ7uDJqGtIeZhr4mlIY3UmCZ4ZIN15xZuYSVED1kJgh0VVqZQL95sWHKdlGPDt JV6vfURXUZ39yo8Q+ESoW/+Gfq7nsRKjbdv8jnL4y+nvPowaLGIpZipcdpQi+A67cODx tIuNBWLnqmLDY7gAZ+Yz8ZmBXiEXl4VNp+tyNMDw2ZYu/rHcemOy1izg+Yl58SlnE7mJ 6NbTcVC43bVZNNy3MypQLaNR8cvcxsMBx3IewSxe2Jv4zfJHX/XMexsMug2LMZOZVQpA Hd5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type :content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:cc:to:subject:dkim-signature :dkim-filter; bh=VM4IIbn3EevkeSWzC5pJywlEMfKiPVMT0Ut0ubgYWY4=; b=eySfjA0aViBtYuNPeqSXe0AotBpJsTF/9OkBONpyA/3YRMwFZ+/fOyCptOruXrPBDC 378cZeWN43lEn4Xr9FX6jnaOE4feqUovDSomqsIN9dB1Z7hPzrueZ79/OfWOg8f+/cq3 6bjYqPdNzvDXFI6txq+sgIprGxm7+BaGh8ix+b3X42e0USGhTQDklg1cOhmk3/TY4Bmr asnKiejyUcZFh2fzMkx0hWhdrEVoxyR2MnpRevLKSCbE05qdv9fhswWvXV9yaI8rPIAr H6jfqJRtIFreuU2K5V2yX5AKljnJeYoC7nDWtph0lKwrZgyoNT0Sl6KRjiKAdnxFwmcY 6S2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=M3fIaDoS; 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=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r9si278096eju.10.2019.09.19.00.48.59; Thu, 19 Sep 2019 00:49:22 -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=@samsung.com header.s=mail20170921 header.b=M3fIaDoS; 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=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730834AbfISHnY (ORCPT + 99 others); Thu, 19 Sep 2019 03:43:24 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:35415 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729087AbfISHnY (ORCPT ); Thu, 19 Sep 2019 03:43:24 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20190919074321euoutp01261b039aa82e316e4d1ab9d42f94a553~FxyO9aHBs0904809048euoutp01F for ; Thu, 19 Sep 2019 07:43:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20190919074321euoutp01261b039aa82e316e4d1ab9d42f94a553~FxyO9aHBs0904809048euoutp01F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1568879001; bh=VM4IIbn3EevkeSWzC5pJywlEMfKiPVMT0Ut0ubgYWY4=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=M3fIaDoSEb3ylVYa6JUrMXMcIDPluwbFQjkx+UV92J2JZ1I7MPDhx7/43b3fJ4VfT ZxZ8IabQVghTRSLOgLm/gQYS0E1LIH07FYY1h4+fXiA+5ogjdAX0ZsFFChsc3CBv+m wi4rpVoUcRtyRPp6+p+8YQNqtmjYzqd8A98hd23Y= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20190919074320eucas1p24957c0a000c67fdfceb824fa47a92d0d~FxyOJzSAT1725317253eucas1p2n; Thu, 19 Sep 2019 07:43:20 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 45.6F.04469.891338D5; Thu, 19 Sep 2019 08:43:20 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20190919074319eucas1p161853b43fb7799db11b6eacd89211c98~FxyNSSOKd1048710487eucas1p1w; Thu, 19 Sep 2019 07:43:19 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20190919074319eusmtrp2d1b2797578f57c87f1980419ade35036~FxyNCZqbf2055420554eusmtrp2e; Thu, 19 Sep 2019 07:43:19 +0000 (GMT) X-AuditID: cbfec7f2-54fff70000001175-03-5d8331989d8c Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 09.B5.04166.791338D5; Thu, 19 Sep 2019 08:43:19 +0100 (BST) Received: from [106.120.51.20] (unknown [106.120.51.20]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20190919074318eusmtip1991029d24405dec0743580d437c41e16~FxyMT6ouz1755617556eusmtip1x; Thu, 19 Sep 2019 07:43:18 +0000 (GMT) Subject: Re: [PATCH v2 3/3] dt-bindings: ddr: Add bindings for Samsung LPDDR3 memories To: Krzysztof Kozlowski Cc: devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" , linux-pm@vger.kernel.org, "linux-samsung-soc@vger.kernel.org" , linux-arm-kernel@lists.infradead.org, =?UTF-8?Q?Bart=c5=82omiej_=c5=bbo=c5=82nierkiewicz?= , kgene@kernel.org, mark.rutland@arm.com, robh+dt@kernel.org, Chanwoo Choi , kyungmin.park@samsung.com, Marek Szyprowski , s.nawrocki@samsung.com, myungjoo.ham@samsung.com, willy.mh.wolff.ml@gmail.com From: Lukasz Luba Message-ID: <4e7b0a6d-491f-a764-f038-1aff5534320f@partner.samsung.com> Date: Thu, 19 Sep 2019 09:43:17 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA01Sa0hTYRj22zln52y1+jYr3zSUVtGNrIHRgSwKIlZBVD8qulCrDlpu03a0 O3gJL5lTq1W6LS9gKmtizmFqdGFKWsumBS6KUHQSVKvILkqpbTtG/nu+53ne73kfeBlC8YaK ZI7rUzmDXqNViqVk05NRz4oS1cWDqx4XhbMNJfUU6/3+nmLL219QbNHgR4L1eO7SbFfWJ5p1 DPZS7KtWq5gdNrYjtsTzUMTWtb+j2dveHhH7NrNWzGY/aKfZtk+5FPuzcwBtwGp7mR2pW8zv aLXDdkmsbqxKVxc6bUg97IjeId4njT/GaY+f4gwr1x+WJj6ZsFApz6PPFJq6yQzkg3wkYQDH QeOzKpSPpIwC1yL4OlQpDgoK/B1Bff5uQRhG8KhznPg30XDtIy0IN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o4 ONgE9CR2rCoEaeAVcJOY8GMa2CAWAVWJr6efgA0SBRp6eMcsRogaQYmTM5+wgNicAoESZ1vP soHYzAJmEvM2P2SGsMUlbj2ZzwRhy0tsfzuHeQKj0Cwk7bOQtMxC0jILScsCRpZVjCKppcW5 6bnFhnrFibnFpXnpesn5uZsYgZG97djPzTsYL20MPsQowMGoxMP7Q70pVog1say4MvcQowQH s5II7xxToBBvSmJlVWpRfnxRaU5q8SFGU6DnJjJLiSbnA5NOXkm8oamhuYWlobmxubGZhZI4 b4fAwRghgfTEktTs1NSC1CKYPiYOTqkGRl6BOKdfLowz5Czft+cwzzoYHt1a3vB+6/aZrm8d 3m870Hv5zZlTD/jWMd7I9ok5ejZm/0k7nui/72dcVDRvqJ4bXFNytjvEk5f7ZO5/7Ywd/Rec Zr88UPSr/03vqlef9zQuMkjkD5PaP3cre/7fCV/36RxhO3fY1T1hT4jLRUveI9rnuKUkriqx FGckGmoxFxUnAgBc5KIXAgMAAA== X-CMS-MailID: 20190919074319eucas1p161853b43fb7799db11b6eacd89211c98 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20190916100719eucas1p206fe95982b774840b5d6e62ba9c42c79 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190916100719eucas1p206fe95982b774840b5d6e62ba9c42c79 References: <20190916100704.26692-1-l.luba@partner.samsung.com> <20190916100704.26692-4-l.luba@partner.samsung.com> <4a0d1d2c-cd1d-5df4-d4b1-f2dd1ef3bb72@partner.samsung.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/19/19 9:28 AM, Krzysztof Kozlowski wrote: > On Thu, 19 Sep 2019 at 08:49, Lukasz Luba wrote: >> >> Hi Krzysztof, >> >> On 9/18/19 8:51 PM, Krzysztof Kozlowski wrote: >>> On Mon, 16 Sep 2019 at 12:07, Lukasz Luba wrote: >>>> >>>> Add compatible for Samsung k3qf2f20db LPDDR3 memory bindings. >>>> Introduce minor fixes in the old documentation. >>>> >>>> Signed-off-by: Lukasz Luba >>>> --- >>>> Documentation/devicetree/bindings/ddr/lpddr3.txt | 9 ++++++--- >>>> 1 file changed, 6 insertions(+), 3 deletions(-) >>>> >>>> diff --git a/Documentation/devicetree/bindings/ddr/lpddr3.txt b/Documentation/devicetree/bindings/ddr/lpddr3.txt >>>> index 3b2485b84b3f..49afe794daaa 100644 >>>> --- a/Documentation/devicetree/bindings/ddr/lpddr3.txt >>>> +++ b/Documentation/devicetree/bindings/ddr/lpddr3.txt >>>> @@ -1,7 +1,9 @@ >>>> * LPDDR3 SDRAM memories compliant to JEDEC JESD209-3C >>>> >>>> Required properties: >>>> -- compatible : Should be - "jedec,lpddr3" >>>> +- compatible : should be one of the following: >>>> + Generic default - "jedec,lpddr3". >>> >>> The convention is first compatible, then description. I gave you the >>> example to base on - at25. Why making it different? >> >> I have checked at25 that you pointed me to and also checked at24, which >> has a bit longer "compatible" section. >> >> I found that there are many "jedec,spi-nor" compatible devices, which I >> thought would be a better example for my "jedec,lpddr3". >> For example, two configurations, where you have a single labels or dual >> (with specific device) >> arch/arm/boot/dts/imx6dl-rex-basic.dts: >> compatible = "sst,sst25vf016b", "jedec,spi-nor"; >> arch/arm/boot/dts/imx6q-ba16.dtsi: >> compatible = "jedec,spi-nor"; >> >> The 'compatible' in documentation for the "jedec,spi-nor" is slightly >> different (similar to at24). >> Documentation/devicetree/bindings/mtd/jedec,spi-nor.txt >> It has a long explanation, which is also OK. So I thought that it is >> quite flexible what you put in there. > > It is flexible but I see clear pattern in existing sources: > jedec,spi-nor.txt > compatible : May include a device-specific .. > ... > Supported chip names: > at25df321a > ... > > at25.txt: > - compatible : Should be ",", and generic value "atmel,at25". > Example "," values: > "anvo,anv32e61w" > "microchip,25lc040" > > In these cases the doc says that "compatible should be" and then you > have the list of values. Your example says that the compatible should > be "Generic default" or "For Samsung 542x SoC"... :) The difference is > slight but putting the value first is a simple and elegant solution. > In your case one has to go to the end of sentence to find the most > important information - the compatible value. > >> I have also checked Cadance QSPI controller. >> Documentation/devicetree/bindings/mtd/cadence-quadspi.txt >> The controller might be built-in into different vendor SoC's >> and the "compatible" is ready to reflect it in similar fashion but >> with a short explanation in this section. > > I see. I do not find this pattern as much readable as jedec-spi-nor or > at25 therefore I mentioned them as an example to base on ("Exactly the > same as AT24 or AT25 EEPROM bindings."). We can avoid also this entire > discussion with YAML (which also follows approach of at25 - value > first). > >> Therefore, what you see in the patch draw heavily on Cadence's qspi, >> with a bit of inspiration from jedec,spi-nor usage. >> >> Should I change it to at25 "compatible" style and send next patch? > > Yes, please. Or go to YAML and make entire discussion obsolete. OK I will change it to at25 style. Regards, Lukasz