Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4994886imm; Tue, 18 Sep 2018 02:36:25 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdbfb2+MaYcdJBCGnRUSPNzPnRRlVK3EWtfYoWesy7LiR2UtoRGc+qELa5eDL+9i9BVXeetS X-Received: by 2002:a63:ee15:: with SMTP id e21-v6mr27044484pgi.421.1537263385406; Tue, 18 Sep 2018 02:36:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537263385; cv=none; d=google.com; s=arc-20160816; b=Pt/mnqGKgCoreMCzfq97J76AbkenYxon3dBoAA65VRgm5O408THqVYjwLrkItWUQHj xkOJKA9J0D0ahmBX1b/WYNYRmQ1xY6fFjfIyoSFdgwkbBUWNnbOAHW8PhtHmJn477koc +CvzMzIopUh8FHriN0V0m5qiCgWupuLelJR2E9h7STAQ6c7IIuADerSngP4mOCRYm6yz zIBoEE7KZJ65z1FbsHG8t4JvbXZ0G68DrKhAvfS+hkAwA4uPdH4LsKNU3a2v5n+jZsru YFGdoX1fRtkSUNu/CnFtI74cJwvKn0uvFVQZTDmHs4V0SdEVqCkUrDMwhwma30r4sBwD Sqxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=Lyj+oh3jAgEOK59WgYUnkfR6hoSGadnMZsC37/JK2U4=; b=GF3uTw+B0zWTRpp2oar/TxKTTmSEO/ueSs49r3Xe8z9Jmr3EC47Mi6unmCdRIvS0v4 jaXNv5WJI472BvZ6YAGgvkyhKqHWSX9AoqMNzIBye8bZYba7CqftBo7qGqDvTDfES7xf rdtrCin7mCQnthRCSKvfvyO0SsubvHCQ073z6o1iSaRyeIO8TDOseiQAO0VSngJKdMmS eG1BSoLxZpbMLsNPb8JPvvDim0hoN9t1LB/dJ8rzdLrjndcJaJ4UItRsZ6br9lH+5n9+ 2vEM8W6hAx18zRKMr5C3dHA6qHwHBpV82iB5Mj/QYKVml3j//g4m4lfE9rMCGRTG1WJE hWwg== 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 142-v6si20200537pfy.182.2018.09.18.02.36.09; Tue, 18 Sep 2018 02:36:25 -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 S1729707AbeIRPGt (ORCPT + 99 others); Tue, 18 Sep 2018 11:06:49 -0400 Received: from mail-out.m-online.net ([212.18.0.10]:53143 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729650AbeIRPGs (ORCPT ); Tue, 18 Sep 2018 11:06:48 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 42DyWl63Znz1qwwF; Tue, 18 Sep 2018 11:34:59 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 42DyWl57VHz1qr2Y; Tue, 18 Sep 2018 11:34:59 +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 hZq7Dylz8JCJ; Tue, 18 Sep 2018 11:34:58 +0200 (CEST) X-Auth-Info: rsVpbuj/3Npz3LsVjZx+PJVvQVZeitB3ryYtOsO6s7Y= Received: from localhost.localdomain (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; Tue, 18 Sep 2018 11:34:58 +0200 (CEST) From: Lukasz Majewski To: Mark Brown Cc: Rob Herring , Mark Rutland , linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Lukasz Majewski Subject: [PATCH 1/3] dt-bindings: spi: Provide bindings for fsl dspi working in slave mode Date: Tue, 18 Sep 2018 11:34:35 +0200 Message-Id: <20180918093437.26799-2-lukma@denx.de> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180918093437.26799-1-lukma@denx.de> References: <20180918093437.26799-1-lukma@denx.de> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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; + }; }; -- 2.11.0