Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp836568imm; Wed, 26 Sep 2018 07:32:49 -0700 (PDT) X-Google-Smtp-Source: ACcGV60y8RYl5IC6/4xeHlEU+g6nTlgNZBXfZpCklGmznE9EgKT7Munhjx12PaiGloH6pFhtNtiv X-Received: by 2002:a63:447:: with SMTP id 68-v6mr5997371pge.409.1537972369415; Wed, 26 Sep 2018 07:32:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537972369; cv=none; d=google.com; s=arc-20160816; b=jJCdgAO9JPQ4xk4cf+gkWL1B+7QYsX/bOdKKiM8digE5rP3AaxHfaELdBwFVqUhpJk 4t073rtMAQ+tIxx6bvnE+I3putsSZOTqXV3tTa2t6cYFpNmHSg6XUw/XIBbuoaBxMP4Q T+Fsv6JtcHxYEpHDTrGQic0On9w7pZXGBAgcm3b2hVWXMa9eawgoxPk11oKUs+Tkqy/n rBEBDKB9YJVqHUjvMi63AbOAJBT95i1kqCJkbupP5Rf7nJj9/S5oNuh9LNejuKGgfchZ D9gLO5X2vFgcYeQZp3gAnt7v5gUNFb1zzZVGOZc6NNK0fQQzngRAUMsO41Ec5+s8KMyL VCYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:organization:references :in-reply-to:message-id:subject:cc:to:from:date; bh=Zm5ZM6eE3t2ZyYcbQ/m4q51rCEvgkV6shE3BP1TxWXw=; b=qPwcuLjhAsol4WpvS8ko/BttQwd9y4N4+ADrhIAZtrDhqYv82IKfEFuHVg/NzmQBJU G2ZeWwp9w0eMxFWxnyfSUAKVGaL3+LG+iFk4nIkSguTShXhVUDuM/99IO1TPciuJu6pV w++h6eqD4k3rsnxgpUlnWBOKK+UrPiFY9snFmY5NzU588z5nb9NPhxUa6Nyq3YI1UN8B Av2h3tWWqNpuid5nM9hJBQGADb7D1vk9kJnfVD0ZWNpPDMiXlsF+kfvHe2RZ7nVQZzqX 0bL2sQQ4iDOhIA8D94/0sGIQHv0OkQpF3MargeednMH5viIo6OQqvaukjd3cZGzAPNSc cmZA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k6-v6si5545890pla.473.2018.09.26.07.32.32; Wed, 26 Sep 2018 07:32:49 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727324AbeIZUpl (ORCPT + 99 others); Wed, 26 Sep 2018 16:45:41 -0400 Received: from mail-out.m-online.net ([212.18.0.10]:52853 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727067AbeIZUpl (ORCPT ); Wed, 26 Sep 2018 16:45:41 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 42L0lC6kHkz1qwJF; Wed, 26 Sep 2018 16:32:23 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 42L0lC5kZnz1qqkL; Wed, 26 Sep 2018 16:32:23 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id cwav_t3pUidQ; Wed, 26 Sep 2018 16:32:21 +0200 (CEST) X-Auth-Info: Pg15wj60j1+C+nT4frh2bYxjuKg5FuJFHP5iVetb9PU= Received: from jawa (85-222-111-42.dynamic.chello.pl [85.222.111.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Wed, 26 Sep 2018 16:32:21 +0200 (CEST) Date: Wed, 26 Sep 2018 16:32:12 +0200 From: Lukasz Majewski To: Rob Herring Cc: Mark Brown , Mark Rutland , linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/3] dt-bindings: spi: Provide bindings for fsl dspi working in slave mode Message-ID: <20180926163212.17646e43@jawa> In-Reply-To: <5baa1aee.1c69fb81.cc7c6.340b@mx.google.com> References: <20180918093437.26799-1-lukma@denx.de> <20180918093437.26799-2-lukma@denx.de> <5baa1aee.1c69fb81.cc7c6.340b@mx.google.com> Organization: denx.de X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/LGoFAwmaqALw0uZRX55V==p"; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Sig_/LGoFAwmaqALw0uZRX55V==p Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi Rob, > On Tue, Sep 18, 2018 at 11:34:35AM +0200, Lukasz Majewski wrote: > > This commit provides the description of new property: > > "fsl,spi-slave-mode" which enables support for DSPI driver working > > in slave mode. > >=20 > > As the new compatible shall be used with SPI bus equipped with > > master device a new "spidev" based node has been introduced to > > avoid confusion. > >=20 > > Signed-off-by: Lukasz Majewski > > --- > > Documentation/devicetree/bindings/spi/spi-fsl-dspi.txt | 8 ++++++++ > > 1 file changed, 8 insertions(+) > >=20 > > diff --git a/Documentation/devicetree/bindings/spi/spi-fsl-dspi.txt > > b/Documentation/devicetree/bindings/spi/spi-fsl-dspi.txt index > > 18eeafe359d8..b30af19a2bc5 100644 --- > > a/Documentation/devicetree/bindings/spi/spi-fsl-dspi.txt +++ > > b/Documentation/devicetree/bindings/spi/spi-fsl-dspi.txt @@ -26,6 > > +26,7 @@ Optional SPI properties for slave nodes: > > - fsl,spi-sck-cs-delay: a delay in nanoseconds between stopping > > the clock signal and deactivating chip select, at the end of a > > transfer. > > - bus-num : the slave chip chipselect signal number. > > +- fsl,spi-slave-mode: if present, controller runs in slave mode. =20 >=20 > There's a standard property for this. I've just realised that there is "spi-slave" property in the Documentation/devicetree/bindings/spi/spi-bus.txt I will convert the code to use it. >=20 > > =20 > > Example: > > =20 > > @@ -56,6 +57,13 @@ dspi0@4002c000 { > > fsl,spi-cs-sck-delay =3D <100>; > > fsl,spi-sck-cs-delay =3D <50>; > > }; > > + > > + spidev3@1 { > > + compatible =3D "fsl,vf610-dspi"; > > + spi-max-frequency =3D <30000000>; > > + reg =3D <1>; > > + fsl,spi-slave-mode; =20 >=20 > This doesn't look right for how slave mode is described. You mean that I shall replace fsl,spi-slave-mode; with "spi-slave" ? Or is there any other issue with this code? Thanks for your review, >=20 > > + }; > > }; > > =20 > > =20 > > --=20 > > 2.11.0 > > =20 >=20 Best regards, Lukasz Majewski -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de --Sig_/LGoFAwmaqALw0uZRX55V==p Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEgAyFJ+N6uu6+XupJAR8vZIA0zr0FAlurmGwACgkQAR8vZIA0 zr04yggAxcFTFmT/2Ptx9RsItXvDRTGISWqky1pCWdlAhttHe6XELQTXBaRQfKox MBP3NP7pIQlAPwHNtJqZWafcEBCAfkg1NL154CbDjoDCtuvSCMsGOUqksg7jNQEz RT9lfEYfopqskhGapo6u1Oi2R+7RF2CcrEr00+VsrqtzXW1vtNaiT3AqwOyq+RFy 8tNghCmdumKKG9md1mS5cCSqsnqUhQjKNW7GQxiVoEye4pY1fJsak4+WHrSH9VCG gPj6S1khWGA8u4qKI5IpXs4r252zRMXy4NPWS+LG1Kms1oCLtcWInGUr98kzrCqp MXzpEfCqjQMiCcpBDTcOHDjv+woAKA== =gVjF -----END PGP SIGNATURE----- --Sig_/LGoFAwmaqALw0uZRX55V==p--