Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp638028img; Thu, 28 Feb 2019 05:34:12 -0800 (PST) X-Google-Smtp-Source: AHgI3IZl3jeztvTBkJNziZ7ik+JmMYZqKTrdndjlczmUMWTJVXA7rqu4lHCUgQWE9n0WpYAG0JTK X-Received: by 2002:a17:902:f095:: with SMTP id go21mr7830603plb.199.1551360852383; Thu, 28 Feb 2019 05:34:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551360852; cv=none; d=google.com; s=arc-20160816; b=eprIV1t/aHOVrfTtef87a/u3Zixxubm50oRsCjdhrz1SG29wFQt/elonXYhK0uy6RB oHUZ67MmQmYmlty5mHJrGD47P4wNq1JBgWuJrvkRS8Ef6OU26ZVLlUE7Mx2gCu7xzEi5 RNcQGt6/ncdihfNaAbP3dR/0yjbnRPvAqj4IgtByVmZ7kUO6WPLSytHXUQuW8PwoyaFx ocBI1AQlTwbOKryEK0AcIgMcp7UASOtxg6NqyplPS3cyi1d7Sm9D+W+nypIyiVNmls8r pUbmuNDicmRApH/5RDtyTGsOpGYXqChAi0mJLxiatFmsklzPavyRPBy7GhlZZOp6ahjM 5sug== 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=W4zAM4uEsxvPwwiy7zLT/jzkuc2gLNmT568CHciNWlk=; b=0vMp84IzAZkrZJqd0x5AexnTJjaTDuT0locyW+gCOjuhEIo5VLp7wc8nyAKHu41QUN b6+Jonts3UJe2VXnhbb/or5zPKFlkD3EP2j5MQFJ0sDBMrgugVhbkmUKc52GN9IN8pFO btMHiHAtWVBfcoCI/WQwIf5VXmnKADAv5uSax1dJHnF5nRv4o6CO+6inuabtFPfO8ca8 bj5jXd5BSaJxy42AeEYUp6UqFNE14Z6hsuvrSXT9peIXHs8oxAE6Xm3FsI1UZ315vDXi gZs0ar/H8BjhtnGRoiiBmsbBT4GuDbKuNBmzW3tKr51uCzyzaWMPFcueLe0XzH6BnurP 63Ew== 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 f73si18110825pff.184.2019.02.28.05.33.57; Thu, 28 Feb 2019 05:34:12 -0800 (PST) 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 S1731573AbfB1N1H (ORCPT + 99 others); Thu, 28 Feb 2019 08:27:07 -0500 Received: from relmlor1.renesas.com ([210.160.252.171]:20317 "EHLO relmlie5.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727869AbfB1N1G (ORCPT ); Thu, 28 Feb 2019 08:27:06 -0500 X-IronPort-AV: E=Sophos;i="5.58,423,1544454000"; d="scan'208";a="9122308" Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie5.idc.renesas.com with ESMTP; 28 Feb 2019 22:27:04 +0900 Received: from renesas-VirtualBox.ree.adwin.renesas.com (unknown [10.226.37.56]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id 7A2B844683AE; Thu, 28 Feb 2019 22:27:02 +0900 (JST) From: Gareth Williams To: Mark Brown , Rob Herring , Mark Rutland Cc: Phil Edworthy , linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Gareth Williams Subject: [PATCH 1/2] dt: snps,dw-apb-ssi: Add clock bindings documentation Date: Thu, 28 Feb 2019 13:25:41 +0000 Message-Id: <1551360342-23981-2-git-send-email-gareth.williams.jx@renesas.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1551360342-23981-1-git-send-email-gareth.williams.jx@renesas.com> References: <1551360342-23981-1-git-send-email-gareth.williams.jx@renesas.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Phil Edworthy The driver requires a clock property, so detail it in the docs. Fix a typo, 'pis' to 'pins'. Add documentation for a separate, optional, interface clock. Signed-off-by: Phil Edworthy Signed-off-by: Gareth Williams --- Documentation/devicetree/bindings/spi/snps,dw-apb-ssi.txt | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/spi/snps,dw-apb-ssi.txt b/Documentation/devicetree/bindings/spi/snps,dw-apb-ssi.txt index 2864bc6..7971193 100644 --- a/Documentation/devicetree/bindings/spi/snps,dw-apb-ssi.txt +++ b/Documentation/devicetree/bindings/spi/snps,dw-apb-ssi.txt @@ -8,9 +8,16 @@ Required properties: - interrupts : One interrupt, used by the controller. - #address-cells : <1>, as required by generic SPI binding. - #size-cells : <0>, also as required by generic SPI binding. +- clocks : phandles for the clocks, see the description of clock-names below. + The phandle for the "ssi_clk" clock is required. The phandle for the "pclk" + clock is optional. If a single clock is specified but no clock-name, it is + the "ssi_clk" clock. If both clocks are listed, the "ssi_clk" must be first. Optional properties: -- cs-gpios : Specifies the gpio pis to be used for chipselects. +- clock-names : Contains the names of the clocks: + "ssi_clk", for the core clock used to generate the external SPI clock. + "pclk", the interface clock, required for register access. +- cs-gpios : Specifies the gpio pins to be used for chipselects. - num-cs : The number of chipselects. If omitted, this will default to 4. - reg-io-width : The I/O register width (in bytes) implemented by this device. Supported values are 2 or 4 (the default). @@ -25,6 +32,7 @@ Example: interrupts = <0 154 4>; #address-cells = <1>; #size-cells = <0>; + clocks = <&spi_m_clk>; num-cs = <2>; cs-gpios = <&gpio0 13 0>, <&gpio0 14 0>; -- 2.7.4