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: 10558515 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D69341057 for ; Tue, 7 Aug 2018 10:43:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B9B9529443 for ; Tue, 7 Aug 2018 10:43:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AD2512967B; Tue, 7 Aug 2018 10:43:58 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0FCA629443 for ; Tue, 7 Aug 2018 10:43:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726073AbeHGM5k (ORCPT ); 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-Google-Smtp-Source: AAOMgpcapeW5UKOHkjUUwjQpH9++0a8wr4LafmyZGZ6zjyk+CAJMEJdsSpKTiWj5XaVWzfdvtb9Cbw== 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 X-Virus-Scanned: ClamAV using ClamSMTP 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 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>; +};