From patchwork Tue Oct 2 01:31:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ryan Case X-Patchwork-Id: 10622989 X-Patchwork-Delegate: agross@codeaurora.org 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 325D115A7 for ; Tue, 2 Oct 2018 01:32:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 22326286DB for ; Tue, 2 Oct 2018 01:32:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 15808286E0; Tue, 2 Oct 2018 01:32:33 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI 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 A87EC286DB for ; Tue, 2 Oct 2018 01:32:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726027AbeJBINM (ORCPT ); Tue, 2 Oct 2018 04:13:12 -0400 Received: from mail-io1-f68.google.com ([209.85.166.68]:38588 "EHLO mail-io1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726471AbeJBINL (ORCPT ); Tue, 2 Oct 2018 04:13:11 -0400 Received: by mail-io1-f68.google.com with SMTP id y3-v6so376387ioc.5 for ; Mon, 01 Oct 2018 18:32:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ZRLEg/khkM0SzLqkCsZQ/zq/wkAgq0+EC+MlucU/IsA=; b=SkmjrjhhgUfcXDzfzIiIP9ycIycVITzYkuuhcBNPPAPwS2PeLv3ss8pfjt89/tslVl 22XzIypRA/Hk1pv0RTSMagiPtU6KjJu+0gL08Vof/VsYP9bnC2IxxyHPcde7v0+oMDgw PrsNdjT+PhxpRrBvQkcI7eqt+GBb0Z5FNZ7IM= 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:mime-version :content-transfer-encoding; bh=ZRLEg/khkM0SzLqkCsZQ/zq/wkAgq0+EC+MlucU/IsA=; b=iIX/kxci304+Ay9OMDRDmEXV+i06bAb4yP/MlV77j4Cd1ST97mQFE5wLKdQgd9Jink OcaGvQIUQUQUJNfofGo21iDUZ5I2M/nxrnncS7gq2iFmMTBKRT2MRumN0cQzzRDjhNiQ GYffmP2YpLnez+zVrccmB1SbK5BdhWJH339i1EDWOgQnZJOiEuye8SzqtcAzdYfd0Xnq 8S8R+E6/IauyaeLQaFUR1oIAoI3DfLMrFNrAEmiyHqWIALRsnkfB2yUA0GRM8XqV3kP4 tuV79qPM8ggL/s0jJIGkMXFTud6GmLKf84jMT80FLqiQ0aguut0XFPXPUcTaq989cn4T NyOg== X-Gm-Message-State: ABuFfoitsNxhijyzFzK0Rp+j965llcUqTb8yVfzTmFKeCkxUYH7aRsY2 TkDvYUBnxv+L23Hkqp8ryQID+A== X-Google-Smtp-Source: ACcGV618PuKLNWPtYK2nilaDbMlBqKoeBzz5skkz2FUUxWljHkTHw/Ywi3ep4NLeDwKi06IrETUXjA== X-Received: by 2002:a62:2ec2:: with SMTP id u185-v6mr14060774pfu.134.1538443950581; Mon, 01 Oct 2018 18:32:30 -0700 (PDT) Received: from ryandcase.mtv.corp.google.com ([2620:15c:202:201:ed1c:3d1c:9d92:99cb]) by smtp.gmail.com with ESMTPSA id t69-v6sm26865095pgd.43.2018.10.01.18.32.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Oct 2018 18:32:30 -0700 (PDT) From: Ryan Case To: Mark Brown Cc: Randy Dunlap , Stephen Boyd , linux-arm-msm@vger.kernel.org, Doug Anderson , Trent Piepho , Boris Brezillon , Girish Mahadevan , Ryan Case , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org, Rob Herring , Mark Rutland Subject: [PATCH v5 1/2] dt-bindings: spi: Qualcomm Quad SPI(QSPI) documentation Date: Mon, 1 Oct 2018 18:31:41 -0700 Message-Id: <20181002013142.209751-1-ryandcase@chromium.org> X-Mailer: git-send-email 2.19.0.605.g01d371f741-goog MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Girish Mahadevan Bindings for Qualcomm Quad SPI used on SoCs such as sdm845. Signed-off-by: Girish Mahadevan Signed-off-by: Ryan Case Reviewed-by: Stephen Boyd Reviewed-by: Rob Herring Reviewed-by: Douglas Anderson --- Changes in v5: - None Changes in v4: - Changed qspi@ to spi@ and device@ to flash@ to match Rob's review Changes in v3: - Added generic compatible string in addition to specific SoC Changes in v2: - Added commit text - Removed invalid property - Updated example to match sdm845 with attached spi-nor .../bindings/spi/qcom,spi-qcom-qspi.txt | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/qcom,spi-qcom-qspi.txt diff --git a/Documentation/devicetree/bindings/spi/qcom,spi-qcom-qspi.txt b/Documentation/devicetree/bindings/spi/qcom,spi-qcom-qspi.txt new file mode 100644 index 000000000000..1d64b61f5171 --- /dev/null +++ b/Documentation/devicetree/bindings/spi/qcom,spi-qcom-qspi.txt @@ -0,0 +1,36 @@ +Qualcomm Quad Serial Peripheral Interface (QSPI) + +The QSPI controller allows SPI protocol communication in single, dual, or quad +wire transmission modes for read/write access to slaves such as NOR flash. + +Required properties: +- compatible: An SoC specific identifier followed by "qcom,qspi-v1", such as + "qcom,sdm845-qspi", "qcom,qspi-v1" +- reg: Should contain the base register location and length. +- interrupts: Interrupt number used by the controller. +- clocks: Should contain the core and AHB clock. +- clock-names: Should be "core" for core clock and "iface" for AHB clock. + +SPI slave nodes must be children of the SPI master node and can contain +properties described in Documentation/devicetree/bindings/spi/spi-bus.txt + +Example: + + qspi: spi@88df000 { + compatible = "qcom,sdm845-qspi", "qcom,qspi-v1"; + reg = <0x88df000 0x600>; + #address-cells = <1>; + #size-cells = <0>; + interrupts = ; + clock-names = "iface", "core"; + clocks = <&gcc GCC_QSPI_CNOC_PERIPH_AHB_CLK>, + <&gcc GCC_QSPI_CORE_CLK>; + + flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <25000000>; + spi-tx-bus-width = <2>; + spi-rx-bus-width = <2>; + }; + };