From patchwork Wed Sep 26 20:52:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ryan Case X-Patchwork-Id: 10616805 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 9839B3CF1 for ; Wed, 26 Sep 2018 20:54:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 844832B828 for ; Wed, 26 Sep 2018 20:54:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 77F4E2B833; Wed, 26 Sep 2018 20:54:40 +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 55AF82B828 for ; Wed, 26 Sep 2018 20:54:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726914AbeI0DJZ (ORCPT ); Wed, 26 Sep 2018 23:09:25 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:40310 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726817AbeI0DJZ (ORCPT ); Wed, 26 Sep 2018 23:09:25 -0400 Received: by mail-pf1-f196.google.com with SMTP id s5-v6so204675pfj.7 for ; Wed, 26 Sep 2018 13:54:38 -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=6oPXfRUavzh753OXkq9vHdENqWn9BcDJg+SBrDcsIEI=; b=AxF5SgW9GX0qb7nuKAJfmzUT/RdDlS1FlSDoI1rB48xYiwKwVwQgk2n2+WaWpVoSxp UUUWGw/Vul0PYxeTmV+bDx0usUZCa5nplWD22yPKflOEFcVjFSOmD2b1/2LhJlHBvqof A2hLYHgM5McyFfNcfdaAGMNgwezKLbPwa8Wkg= 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=6oPXfRUavzh753OXkq9vHdENqWn9BcDJg+SBrDcsIEI=; b=t3m918zzCiAq0s19KIV3YzohozwxS7NSw8APSuroggaX38i9nYZW26WOIYu+FAHrwS 50SQhFlTJkekdBxhv8vdhAUDO7OweK0taudUXUC9c60IQ8xUGp7xnnUtDHcmlIOrrp2e zgIOWEElGeIZS9WSRi937bUItcsIrdptt7jLM9QMScA5KWo2nXoQMaz/3eC39sVPjiSC dQhKamvLask5T6P1PUmCsYmrN28z11TUibYwef/TCX29rH9ZR1PwB4xo6uNBG3lvbCx4 g1t9u0sG13XNECiPMLNjnZXbBq1SMwW5UT8HpL9P6lwoibaja0jgRiBneV7at1HpeFop g06A== X-Gm-Message-State: ABuFfohSBzc5DjqV0/0PVXQEAUfo4lN5DsCpuA2zCE1WV3hzyaqFDiPh +foLkP+X5YZ0K57OJ6K2Mgy+KQ== X-Google-Smtp-Source: ACcGV63WojWa3kZ009DeB5XXPQ/Yh+ruY4c4HrdJLR9+YzgJSNMO0HGMiHp82jv8HaNVu7BjAJLbIA== X-Received: by 2002:a17:902:50e3:: with SMTP id c32-v6mr7752322plj.194.1537995278267; Wed, 26 Sep 2018 13:54:38 -0700 (PDT) Received: from ryandcase.mtv.corp.google.com ([2620:15c:202:201:ed1c:3d1c:9d92:99cb]) by smtp.gmail.com with ESMTPSA id s23-v6sm22091pgg.67.2018.09.26.13.54.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 26 Sep 2018 13:54:37 -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 v3 1/2] dt-bindings: spi: Qualcomm Quad SPI(QSPI) documentation Date: Wed, 26 Sep 2018 13:52:03 -0700 Message-Id: <20180926205204.184898-1-ryandcase@chromium.org> X-Mailer: git-send-email 2.19.0.605.g01d371f741-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 Reviewed-by: Douglas Anderson Reviewed-by: Stephen Boyd Reviewed-by: Rob Herring --- 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..e13f5bb314ad --- /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: qspi@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>; + + device@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <25000000>; + spi-tx-bus-width = <2>; + spi-rx-bus-width = <2>; + }; + };