Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp1501235img; Tue, 19 Mar 2019 08:57:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqw0QizvgkAbO54G2cirrddw7MCp//IAjLSxugLKMrha0MMI/pPHM7PqwlwiatO/0y40sa4/ X-Received: by 2002:a17:902:1e6:: with SMTP id b93mr2743377plb.325.1553011054984; Tue, 19 Mar 2019 08:57:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553011054; cv=none; d=google.com; s=arc-20160816; b=U+22NTW7p9AU7OqggYFHMirkJS0RIcYyDgaswF1L6mqe/+kkiOBNZtp3XSUxZxTvyF So0ouJitw7eXC1VESXS0C3c10lCHFpvqOAYToCnjxhc8A/ElNv01OpP/8NZfmliX9M2V DZtPlOO4SqN7kf33MRd+xNr2oE+irp1RqHiZwq469/LqE5bJnSAc8szMw02+YCkFUy8/ rksRQWADF2UjT7HFDTFx7JMru3BLIvfXOkx7Zn6Broe/rCoOtagE5DSHAQjkGg36DLcC RrK9NRzxr8sZvoDIswH7jwmhM+oda0swAqAmcvXibVa3QRkmdEj08cJCZ1nrobDX2VlX SP5Q== 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=+tZ1K4mZRUboayKVAjPwS53csZ5XI2n7OiCTOPRi9MY=; b=CAG6ey3Jetd3I9xuQgSeLZv/Xrae1rj2nHvvYFDUbfT0iG4IgnzeP85b2yOim9K+Hb ErVHWR14lNJ3nWcxKSmq4NW33IBGmRqjJKR7dopREEUm+z1QPJt6nBhZkxdV55rYPJFu zJkQdaKu5j0PNPx/3Mua12QNu4GjP1djINIBRmIHXzdgGMCNASwakbpGTQ+fdCTOKzXK 8BI4cjOY21r0lCZrOhzEklIIf+15OFa4A/nrDXkoJUinQq0vBjGREfG8zC2XTb6tmYcC Ny/aZUNUuTYOlOTPMlzhqofvQoi2WjkAOiTzuphaQ9fZF4DpEFtheN9bUY1nvX2YYfUn Q/Rg== 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 c24si12224839pgj.502.2019.03.19.08.57.19; Tue, 19 Mar 2019 08:57:34 -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 S1727814AbfCSPzB (ORCPT + 99 others); Tue, 19 Mar 2019 11:55:01 -0400 Received: from relmlor2.renesas.com ([210.160.252.172]:57627 "EHLO relmlie6.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726579AbfCSPzA (ORCPT ); Tue, 19 Mar 2019 11:55:00 -0400 X-IronPort-AV: E=Sophos;i="5.58,498,1544454000"; d="scan'208";a="10591178" Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie6.idc.renesas.com with ESMTP; 20 Mar 2019 00:54:58 +0900 Received: from renesas-VirtualBox.ree.adwin.renesas.com (unknown [10.226.37.56]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id BCD86400F023; Wed, 20 Mar 2019 00:54:56 +0900 (JST) From: Gareth Williams To: Mark Brown , Rob Herring , Mark Rutland Cc: Gareth Williams , Phil Edworthy , linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/3] dt-bindings: snps,dw-apb-ssi: Add optional clock bindings documentation Date: Tue, 19 Mar 2019 15:52:06 +0000 Message-Id: <1553010727-23157-3-git-send-email-gareth.williams.jx@renesas.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1553010727-23157-1-git-send-email-gareth.williams.jx@renesas.com> References: <1553010727-23157-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 Add documentation to the Synopsys SPI dt-bindings to support an optional interface clock that may be used for register access. Signed-off-by: Phil Edworthy Signed-off-by: Gareth Williams --- v2: Created this separate patch to detail the optional interface clock property. This includes the clocks section on working with the two clocks and the clock-names line for pclk. --- Documentation/devicetree/bindings/spi/snps,dw-apb-ssi.txt | 8 +++++++- 1 file changed, 7 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 bcd8f96..f54c8c3 100644 --- a/Documentation/devicetree/bindings/spi/snps,dw-apb-ssi.txt +++ b/Documentation/devicetree/bindings/spi/snps,dw-apb-ssi.txt @@ -8,9 +8,15 @@ 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 : phandle for the core clock used to generate the external SPI clock. +- clocks : phandles for the clocks, see the description of clock-names below. + The phandle for the "ssi_clk" 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: +- 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 -- 2.7.4