Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp911027imm; Wed, 26 Sep 2018 08:39:15 -0700 (PDT) X-Google-Smtp-Source: ACcGV60XzkPTXb2EvuqTn9egtZ+ceGV/gzBpLcFucV4qx8hLt660H+UpCD8asE2GaaxyBp4PaMhJ X-Received: by 2002:a62:25c5:: with SMTP id l188-v6mr6752434pfl.179.1537976354972; Wed, 26 Sep 2018 08:39:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537976354; cv=none; d=google.com; s=arc-20160816; b=dQM4nGjlNm5u1e2ppCBSyLrlbuTGu0KZQ8Zk4ouOmMDKleQaOwl6T8sS8+4Lt6q79g Dqk9rlsgPXrTJL+vPI2MKVF8kiU1irVa25/DnWoWqx4VIkObSesghi+Cl8JNNkSjCu+T qsCL4VfmJYpRGDmrmyHgkEF4mw1HtcidPpbqbQU7cDjE7IphcB4e2neioe4umznOzhYv wl3Zw8OoFCGAeJMhXXKKQB/jpxWNS7BsR8xmL+FxSODTQ3m+hQJJfY4QTTX1XRfdqTH1 i+f7cYuMzdBNZrPYBmVgZ2Mrz78Smdjo0zerfgxJUuq1WMCdt0uPzGDe302BNgWRdctz i6ZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=vVtwsIhmCH4FS/GMHih6iL0Go+1ueTnSWieXyWwaaAg=; b=kdzywEdvZ0/1qs/xGvrcy9eD4MnzyoKZypdnWqUgPm0HLDyU/0OF4Ia2K10maOjfu1 5RrKWJDUxzI5nXwxHh5gkCEB1vsIMUMObi2wGapP7ZrxVXUb1uouAtJAvJzX5LMGbI7F kTbi+L5cIknOQ5McJF89CMsv7+H7IjDvP/ME+cEl4QTf3VmYKxL+Y8A2zjvfr+804DfH 5JSuG1CoXf63q8arKQ9ilyUQzKYWRVusJtcAnF+JkCHV9TErQPsjhTDAozIFtc1Jm0w9 B/KG6iscZLFkXTk2EtE8w8aqyyNnkwc2qbEUu6y3zwjrHfNwTKcKj8yCawYy8cc8uwo3 ij/w== 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 w5-v6si4890412plz.175.2018.09.26.08.38.57; Wed, 26 Sep 2018 08:39:14 -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 S1728137AbeIZVuy (ORCPT + 99 others); Wed, 26 Sep 2018 17:50:54 -0400 Received: from mail-vs1-f68.google.com ([209.85.217.68]:35202 "EHLO mail-vs1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726937AbeIZVux (ORCPT ); Wed, 26 Sep 2018 17:50:53 -0400 Received: by mail-vs1-f68.google.com with SMTP id l3-v6so6268657vsc.2; Wed, 26 Sep 2018 08:37:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=vVtwsIhmCH4FS/GMHih6iL0Go+1ueTnSWieXyWwaaAg=; b=mFoIFlosHQ1nGL8O/H0PSKHN/1B62HuPOelzcDJFFzFwCz3uCxK3BCMYt05A6Zu1Gt ddLJTz8PoAPzWld3n/zdUzSHNIY64EGx0xs/9DznjgptBIC4atk9jdfRTqef9mp1UOxW tAOdksoQWab3CsEW9tdO7Z20gw3ljwum6bAnvee3NiANTLk6/vRkfMJ/IXgG60/FfzQl 2nRzBZ0MUuURn/B9EI30euR2rJhauoSKEWUD8aNXW91MrWiPaBLTCIHKDUyS1BGqsN5E d4I0C0PuxrBjd4DZxoc7a31OhXT9/2Wx6Z5BOUn/9X7kUgxkcKAbZSdFWL3oc7gbwf8D UL+Q== X-Gm-Message-State: ABuFfoilyh+vwEINYt8i8RmAFrWx/SbDHja8+sdvKLh7VgwyBANChcmv uQzWkFUlOxTIRCR1xdz2MAqZc0OPTwO0jpOe3/4= X-Received: by 2002:a67:6582:: with SMTP id z124-v6mr675337vsb.11.1537976242271; Wed, 26 Sep 2018 08:37:22 -0700 (PDT) MIME-Version: 1.0 References: <20180918093437.26799-1-lukma@denx.de> <20180918093437.26799-2-lukma@denx.de> <5baa1aee.1c69fb81.cc7c6.340b@mx.google.com> <20180926163212.17646e43@jawa> In-Reply-To: <20180926163212.17646e43@jawa> From: Geert Uytterhoeven Date: Wed, 26 Sep 2018 17:37:10 +0200 Message-ID: Subject: Re: [PATCH 1/3] dt-bindings: spi: Provide bindings for fsl dspi working in slave mode To: lukma@denx.de Cc: Rob Herring , Mark Brown , Mark Rutland , linux-spi , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Lukasz, On Wed, Sep 26, 2018 at 4:33 PM Lukasz Majewski wrote: > > 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. > > > > > > 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. > > > > > > Signed-off-by: Lukasz Majewski > > > --- > > > Documentation/devicetree/bindings/spi/spi-fsl-dspi.txt | 8 ++++++++ > > > 1 file changed, 8 insertions(+) > > > > > > 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. > > > > 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. > > > > > > > > > Example: > > > > > > @@ -56,6 +57,13 @@ dspi0@4002c000 { > > > fsl,spi-cs-sck-delay = <100>; > > > fsl,spi-sck-cs-delay = <50>; > > > }; > > > + > > > + spidev3@1 { > > > + compatible = "fsl,vf610-dspi"; > > > + spi-max-frequency = <30000000>; > > > + reg = <1>; > > > + fsl,spi-slave-mode; > > > > 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? According to Documentation/devicetree/bindings/spi/spi-bus.txt: 1. "spi-slave" should be a property of the controller node, not of the slave node, 2. the slave node should be called "slave", without unit address, and without "reg" property. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds