Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp964589ybe; Fri, 13 Sep 2019 09:02:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqztZtGRfAuztCtS64Qu7FxCHmSgTk7GGzpuBr15tNTSJQI3BoSmUCWruTq7kfF5ULgbyTKW X-Received: by 2002:a50:e611:: with SMTP id y17mr13642056edm.66.1568390538497; Fri, 13 Sep 2019 09:02:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568390538; cv=none; d=google.com; s=arc-20160816; b=uLWHqGP7EuXtowFq/c/i83/gFTdqwTxOg9s45GAvVh6LmOi3e/3N2TIlzhSmgPmdkM iPTEEkK3t+ekEFKp7DoTiL2KgVyfbs+soiRvj0zAjHtYdcCzlmrHRJ/hAnyxOYwe6/ay kJ20O57uVSWSIAM39DAG1X9aIJNDH//7wP8/SxkP/xLy5yt/Cb3Q5w+TLTMxf9i/tWuN 2L/efnkRp74LEoDydOZG40ahh06ZrkgO9GkkPp928Yug7CBjH2ONC/l1fFaYCQWXaWFj 29MlNdEBuDapdHGHaTPXpdNL/BV0c7+TrIGnn5YxKtmE+GKGsr9gb+9ClBzuLuU/P/Fk WX8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:subject:cc:to:from:date:message-id; bh=Udp1qs2PnQd+suer1OhTIlkS/OekkcPK9CiDkJDjShA=; b=w4b+/SQUZzvKbz0lNj4u0qqriqd/LM3xps6vzxFfNjbATDuv7b+uVY4tVWXPE02DVv SevIkWNLMuheKg5z51FCMN/Q3kB2TWdoCEFW8rZb6BrA4PhSH67H0o10voAEBkzfjfPc V7gvhq9BtNaCOCIRDxNNVSaQN8xCX/8JBfIBZEWNaKQKyrlXZprCyhsxq0npHFaObvkW z+IvBO6yKYzmjVRMO92zvxU9l3G4uoe6NKnKytFzwcYRiWbtESxx35a6U8nXkUMsiU+G Uh1XjWF4WJArv1geZM6u8e0cE81uWOzkKEmooeqrBZpw9zKvFmbmGkRdahf9HtOUnDOS v/0Q== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m21si6138695edc.153.2019.09.13.09.01.45; Fri, 13 Sep 2019 09:02:18 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730932AbfIMOhI (ORCPT + 99 others); Fri, 13 Sep 2019 10:37:08 -0400 Received: from mail-ot1-f67.google.com ([209.85.210.67]:41422 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730579AbfIMOgM (ORCPT ); Fri, 13 Sep 2019 10:36:12 -0400 Received: by mail-ot1-f67.google.com with SMTP id g16so14495337otp.8; Fri, 13 Sep 2019 07:36:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:from:to:cc:subject:references :mime-version:content-disposition:in-reply-to; bh=Udp1qs2PnQd+suer1OhTIlkS/OekkcPK9CiDkJDjShA=; b=slHt68/wZWZvVdF3p3n3Z3/kpIZrKM7cr7RoZ2CJUVnCJdw3nVxU2W9AELUPlBTQFw fJR1bGq1EGIN5El8UcUCoUqNK9UHci2itT0n/Wpx3baC5ZdKqT6F0SaDzVXMLoPYbQhQ sB+who7kl2LkF2w2KSgaltJEnHSPkAJyBtVr+SMh54W/f00wOhlQ8OxQ2HlTY6BVb4uj zsEyNc4Hzsy78kh2ussv9hL9Zy9Fvge6TXdqRuXeNcKeNe160RfQwmff4TMzJnI0wA/g KNdrEXJ/wTVmc4cpL8A6d8M3citjNPkCvTd9XespvXkUmqqL1IciAjy3g3eTv5zvpzrE 76ZQ== X-Gm-Message-State: APjAAAWluZmqw48+dtPVdHNyb3kyvghpIGe0u1SxpRwUxA/6+Xw+rBpn IY8GOGcKMBPlW/BNrUj4mg== X-Received: by 2002:a9d:5f9a:: with SMTP id g26mr9285769oti.27.1568385371763; Fri, 13 Sep 2019 07:36:11 -0700 (PDT) Received: from localhost (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id j3sm1115259oih.52.2019.09.13.07.36.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Sep 2019 07:36:10 -0700 (PDT) Message-ID: <5d7ba95a.1c69fb81.bfd81.77ba@mx.google.com> Date: Fri, 13 Sep 2019 15:36:10 +0100 From: Rob Herring To: Krzysztof Kozlowski Cc: Lukasz Luba , 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, Chanwoo Choi , kyungmin.park@samsung.com, Marek Szyprowski , s.nawrocki@samsung.com, myungjoo.ham@samsung.com, willy.mh.wolff.ml@gmail.com Subject: Re: [PATCH 3/3] dt-bindings: ddr: Add bindings for Samsung LPDDR3 memories References: <20190906101344.3535-1-l.luba@partner.samsung.com> <20190906101344.3535-4-l.luba@partner.samsung.com> <52963d0d-cf48-7085-5581-a94c6e15e0bd@partner.samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Mutt-References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 06, 2019 at 01:50:26PM +0200, Krzysztof Kozlowski wrote: > On Fri, 6 Sep 2019 at 13:39, Lukasz Luba wrote: > > > > Hi Krzysztof, > > > > On 9/6/19 12:56 PM, Krzysztof Kozlowski wrote: > > > On Fri, 6 Sep 2019 at 12:14, Lukasz Luba wrote: > > >> > > >> Add description of bindings for Samsung k3qf2f20db LPDDR3 memory. > > >> Minor fixes in the old documentation. > > >> > > >> Signed-off-by: Lukasz Luba > > >> --- > > >> .../devicetree/bindings/ddr/lpddr3.txt | 29 +++++++++++++++++-- > > >> 1 file changed, 27 insertions(+), 2 deletions(-) > > >> > > >> diff --git a/Documentation/devicetree/bindings/ddr/lpddr3.txt b/Documentation/devicetree/bindings/ddr/lpddr3.txt > > >> index 3b2485b84b3f..de0905239767 100644 > > >> --- a/Documentation/devicetree/bindings/ddr/lpddr3.txt > > >> +++ b/Documentation/devicetree/bindings/ddr/lpddr3.txt > > >> @@ -40,10 +40,34 @@ Child nodes: > > >> a given speed-bin. Please see Documentation/devicetree/ > > >> bindings/ddr/lpddr3-timings.txt for more information on "lpddr3-timings" > > >> > > >> +Samsung K3QF2F20DB LPDDR3 memory > > >> +------------------------------------------------------------ > > >> + > > >> +This binding uses the LPDDR3 binding (described above) > > >> + > > >> +Required properties: > > >> +- compatible: Should be: > > >> + "samsung,K3QF2F20DB" > > >> + followed by "jedec,lpddr3" > > >> +- density : representing density in Mb (Mega bits) > > >> +- io-width : representing bus width. Possible value 32 > > >> +- #address-cells: Must be set to 1 > > >> +- #size-cells: Must be set to 0 > > > > > > If you decided to repeat all properties again, then it deserves its > > > own bindings file. However I though about simpler solution - just > > > document compatible. Exactly the same as AT24 or AT25 EEPROM bindings. > > > There is not much benefit from copying all these properties. > > OK, I see. I will add only 'compatible' and skip the rest then. > > So the lpddr3.txt file will get this addition: > > > > +Samsung K3QF2F20DB LPDDR3 memory > > +------------------------------------------------------------ > > + > > +This binding uses the LPDDR3 binding (described above) > > + > > +Required properties: > > +- compatible: Should be: > > + "samsung,K3QF2F20DB" > > + followed by "jedec,lpddr3" > > + > > +Optional properties: > > + > > +The optional properties are the same as in the LPDDR3 generic bindings and > > +values should be taken from the data-sheet. Detailed bindings are described > > +above. > > + > > +Child nodes: > > + > > +Detailed bindings are described in LPDDR3 generic bindings described above. > > + > > > > Is it OK? > > To me it is still a lot of text just for one compatible and I can > image more of such entries for other memories... However I do not mind > and anyway, YAML will simplify it. If you're in doubt, wait for Rob's > reply as this is his part. We can't have multiple (top-level) schema in one file, so better to add in where the existing compatible strings are. Rob