From patchwork Thu Sep 20 22:40:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ryan Case X-Patchwork-Id: 10608837 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 2D22E112B for ; Thu, 20 Sep 2018 22:43:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1FC3829194 for ; Thu, 20 Sep 2018 22:43:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1309B2E089; Thu, 20 Sep 2018 22:43:08 +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 2FC142E07E for ; Thu, 20 Sep 2018 22:43:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388165AbeIUE2e (ORCPT ); Fri, 21 Sep 2018 00:28:34 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:39074 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727237AbeIUE2e (ORCPT ); Fri, 21 Sep 2018 00:28:34 -0400 Received: by mail-pl1-f195.google.com with SMTP id w14-v6so5003367plp.6 for ; Thu, 20 Sep 2018 15:42:48 -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=RiuVd/eZH5Dz5Al4lGnHguqs2hmX6x+p1WFc9tapVFo=; b=UMjB5ZsOkYGRBEBUN6VY8V8MlY4QpwKCyMWxqjhMskEmH2c/yuoDTHUgAQI64Td16y Tse4b6oxcDl0NXszrxXrHVUOmOp6+AoSUMNEfSi2UpsXJtGAfRQmXTpna+dzoOQWNmdV 3+ktGArbsRjZIoy3pUK2VzJ45l5mxDr4Fw7bw= 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=RiuVd/eZH5Dz5Al4lGnHguqs2hmX6x+p1WFc9tapVFo=; b=YAZw6YLuPu1VRJxSf2Gjw4R+5UZOjGJemOFZbt2tg32qUMPsO66l/i94hc+yYBXf1Z 4ybHXAcZNNL+Csc1dWQ8YIIpwRCsN96kqPrgar3pB8+5LE62tfjhTtafcebxnJ9i4YF5 M+/1UWLpfcCM3hEomeMYQu8ATOpogpJnWW0UkLrteegKKgeuknp0cBa6mPKmIw2CqA32 2UnMAZwa47r/TzaV6gRg/D+pg1WJqn/651Rbb1jE2jJirPC2YkpakfKzXVJymwU5Bjqk RjODeIcHWYMZLTShKHoS5ZnT6h695Gb6mkenYBATJV/r+RLArbLqE/vfwXg5zEAd/3P5 f8yw== X-Gm-Message-State: APzg51Dx2XA388Bg9p8qOmPdC9TKS2TwiI4Vpr23ciHQk8jSKAmfTF08 eJsGxB0Vw7nvUPV2/frba9pO1w== X-Google-Smtp-Source: ANB0VdY7/jrOf08BnYvB0mIfE1cfdUJfmMhOyMxXZHwXXXeTZ1v9ad11S6BfFqOEzxyjWLQO2EJgzw== X-Received: by 2002:a17:902:be07:: with SMTP id r7-v6mr40715365pls.275.1537483368108; Thu, 20 Sep 2018 15:42:48 -0700 (PDT) Received: from ryandcase.mtv.corp.google.com ([2620:15c:202:201:ed1c:3d1c:9d92:99cb]) by smtp.gmail.com with ESMTPSA id t15-v6sm38704730pfa.158.2018.09.20.15.42.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Sep 2018 15:42:47 -0700 (PDT) From: Ryan Case To: Mark Brown Cc: Boris Brezillon , Stephen Boyd , Doug Anderson , linux-arm-msm@vger.kernel.org, Girish Mahadevan , Ryan Case , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org, Rob Herring , Mark Rutland Subject: [PATCH v2 1/2] dt-bindings: spi: Qualcomm Quad SPI(QSPI) documentation Date: Thu, 20 Sep 2018 15:40:54 -0700 Message-Id: <20180920224055.164856-1-ryandcase@chromium.org> X-Mailer: git-send-email 2.19.0.444.g18242da7ef-goog MIME-Version: 1.0 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: Girish Mahadevan Bindings for Qualcomm Quad SPI used on SoCs such as sdm845. Signed-off-by: Girish Mahadevan Signed-off-by: Ryan Case --- 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..ecfb1e2bd520 --- /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: Should contain: + "qcom,sdm845-qspi" +- 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: qspi@88df000 { + compatible = "qcom,sdm845-qspi"; + 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>; + + device@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <25000000>; + spi-tx-bus-width = <2>; + spi-rx-bus-width = <2>; + }; + };