From patchwork Tue Aug 7 10:43:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "\(Exiting\) Baolin Wang" X-Patchwork-Id: 143572 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp4343299ljj; Tue, 7 Aug 2018 03:43:58 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfIhDOgHR95uyrR+G3X6A66Vq72O/b0lk09jKB4/bmuyJAe+6q8mm+mBDZ9LLONrxoXKw/J X-Received: by 2002:a17:902:8bc4:: with SMTP id r4-v6mr17076356plo.257.1533638638242; Tue, 07 Aug 2018 03:43:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533638638; cv=none; d=google.com; s=arc-20160816; b=wXzN0wVVghdj99LdjW6TdQoQOXnuioRgeymVYwThhj5iSND4hNWpbWlrBNr06qD4ai O8FpjqENaAjVa6iWAnkNLZkBmg214X+LEQ6HWD1EX4Cl44DHZflpCYkiPGYYQhJ1cjaB L8qKzjtVTfiwTah5h/bn4ZCNhG2yk/gG5XtMOiRv9KS/VqgH3GT+Xq5K5cmku6ByENGc QK7qVPyVoJ6SLWvkwtWsO7fyVEBQQW4KUBIHYAAs7x1QpcUJEmOtGrscssXKTm+juLSe MDaQm5gLBCYWocKdjn3kX7R/was7fAj8wIXJKiHrrzLvk0VJ+TmJtZCgjK/diGzlwcy2 3OCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=wAjxXTrauaXBEMfI/FU/grfR7Wc7NxIPMLBf6pvHTxo=; b=IIgE5yZAE6RR7+3aU0WFdEK3Rq6jlFART0uN2sNc5orTLa5zhMPA/yF7KPQhScMe19 G+qAUwtgVgFZjP9TtncZDaBId4X0pNvo6cwjaBUGTwEOzs6Ui3Z0Zk/xctmFDN/YNm0o sB87naAG9CBiJK1WmbDzEimuAQe2XR3VAxVwM8muQAZeK7jBLBIkpuixoRgYEiWxkVJ2 VcT+hGb9alNSE2F5E6bX2ECki39Hpoy+2i9e+bx0ohXfEbpqZWH5Rlc7TfDZA81Rvazs t02zNMbJyM/U/tTzS6Ie1JUwMOmcDWqTcDcJJ9iTRBuhl7DB2XemJuwWw1r1GkN/Ch3K FGNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="Jc2u/rJx"; spf=pass (google.com: best guess record for domain of linux-spi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-spi-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 36-v6si1243842pgr.176.2018.08.07.03.43.58; Tue, 07 Aug 2018 03:43:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-spi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="Jc2u/rJx"; spf=pass (google.com: best guess record for domain of linux-spi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-spi-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726073AbeHGM5k (ORCPT + 1 other); Tue, 7 Aug 2018 08:57:40 -0400 Received: from mail-pl0-f66.google.com ([209.85.160.66]:33730 "EHLO mail-pl0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726419AbeHGM5j (ORCPT ); Tue, 7 Aug 2018 08:57:39 -0400 Received: by mail-pl0-f66.google.com with SMTP id b90-v6so6173940plb.0 for ; Tue, 07 Aug 2018 03:43:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=ni9lYCCJ1DN/2Vf0QZIqF72U+f3npylLIvSbMNmcQyA=; b=Jc2u/rJxX49nKk3ledHSW0qa+3DjKge/MKOOHVVXFU7Z4a3Qw6n6akwx1y2VTGF++i Rtk8U5XRUwHukoR+Tsu6qXf4j3XqrUH1bDtTsCPoxyqx2e3g3yfUqNs9XK7DbKXoFr1H FiNWcyhNI5+QnocMmmz9VbIIfK+yesSKgG6og= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=ni9lYCCJ1DN/2Vf0QZIqF72U+f3npylLIvSbMNmcQyA=; b=OyFLRYfk0OspzUdcXFukooevVsHRlGpN+YG5OxPtv5g58lNd1iC4/tFS8pV8K7/2g7 DJ+otmSc6DPJP/bRg5xA81ZS26EY8p6Njaoowu6fIDMNrTIhqR1UHiKY2xSopK126ABI EXBs/Xo28kACkybT5aKPXnaTB3IHUFK17ZkLoUYIw4H9gzOX195H8z89jvrkSM+P9lES gEC4toJiXD6iUqFd9JxjJo0E+3mZNQy7Uw9bsWfxHRmdsDgjd47hbnYUyS6B+umFcCHF w2lD1lH7dRWqUEWqzQebKUDjLOLzRUAN6qBg6ySq4omBPecbHyFYGpkhyKr7SdcpiYAp kR8g== X-Gm-Message-State: AOUpUlEiuDAsh/7KwlBbdajWN73bbT4c5OyZuJbChib2oS1uvUMYchsD LFKBXm34hZsR4M2pZiZgRPwchQ== X-Received: by 2002:a17:902:2d24:: with SMTP id o33-v6mr17486946plb.38.1533638636738; Tue, 07 Aug 2018 03:43:56 -0700 (PDT) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.102]) by smtp.gmail.com with ESMTPSA id l127-v6sm2305547pfc.55.2018.08.07.03.43.53 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 07 Aug 2018 03:43:56 -0700 (PDT) From: Baolin Wang To: broonie@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com Cc: orsonzhai@gmail.com, zhang.lyra@gmail.com, lanqing.liu@spreadtrum.com, baolin.wang@linaro.org, linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] dt-bindings: spi: Add Spreadtrum SPI controller documentation Date: Tue, 7 Aug 2018 18:43:37 +0800 Message-Id: <64681bf903104c8a02f118294e616e2a12a5ebe4.1533638405.git.baolin.wang@linaro.org> X-Mailer: git-send-email 1.7.9.5 Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org From: Lanqing Liu This patch adds the binding documentation for Spreadtrum SPI controller device. Signed-off-by: Lanqing Liu Signed-off-by: Baolin Wang --- Documentation/devicetree/bindings/spi/spi-sprd.txt | 31 ++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/spi-sprd.txt -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/Documentation/devicetree/bindings/spi/spi-sprd.txt b/Documentation/devicetree/bindings/spi/spi-sprd.txt new file mode 100644 index 0000000..06ff746 --- /dev/null +++ b/Documentation/devicetree/bindings/spi/spi-sprd.txt @@ -0,0 +1,31 @@ +Spreadtrum SPI Controller + +Required properties: +- compatible: Should be "sprd,sc9860-spi". +- reg: Offset and length of SPI controller register space. +- interrupts: Should contain SPI interrupt. +- clock-names: Should contain following entries: + "spi" for SPI clock, + "source" for SPI source (parent) clock, + "enable" for SPI module enable clock. +- clocks: List of clock input name strings sorted in the same order + as the clock-names property. +- #address-cells: The number of cells required to define a chip select + address on the SPI bus. Should be set to 1. +- #size-cells: Should be set to 0. + +Optional properties: +- sprd,spi-interval: Specify the intervals of two SPI frames, which can be + converted to the delay clock cycles = interval number * 4 + 10. + +Example: +spi0: spi@70a00000{ + compatible = "sprd,sc9860-spi"; + reg = <0 0x70a00000 0 0x1000>; + interrupts = ; + clock-names = "spi", "source","enable"; + clocks = <&clk_spi0>, <&ext_26m>, <&clk_ap_apb_gates 5>; + sprd,spi-interval = <9>; + #address-cells = <1>; + #size-cells = <0>; +};