Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1223778imm; Wed, 26 Sep 2018 13:55:02 -0700 (PDT) X-Google-Smtp-Source: ACcGV63zNAI0qF+S+vMwKX03xmQWhF5D4rfbyRxiDT/dcBTIt5JizjtVPK1k8ry0fgnxGfamB91t X-Received: by 2002:a63:e443:: with SMTP id i3-v6mr7301446pgk.381.1537995302784; Wed, 26 Sep 2018 13:55:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537995302; cv=none; d=google.com; s=arc-20160816; b=HeU5mYshYtuAWSWRNJjV5YDgeR3bESJpMgt4fknGVS1memuNWvMd0viNkZzYX4Ufcu 834cBBk7P2T9xnTFtVwRPcCW2QyknRTMbg4pzE6Ckp3TxG07bFisjkw67W4kOeTThnuc WMKhrnV7VXhQt3JvycqytYtZF/2yptYtRWXj05sBehJEkYd1nEm3NSUoNTzm+AYB/GfV XdWUvoryUpKuI4JGMmikmvI71LCQqG7+l3HjATle9nCGo7I/mBCylCbxQNhpRwv7Aq1B kf+Fdu4zjNf9Jjxen5HVHFLxZRFtbGZpcWOCLcn7u4THEnXBJvaCDuAnuQxOw0rDO9yd hXlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=6oPXfRUavzh753OXkq9vHdENqWn9BcDJg+SBrDcsIEI=; b=Vl09SBs2UDZGZIyFU7noNH9hNxIVxRDRJnZtwfokLwejQzttAX88vOy8i2hxDYk7G/ FhJPA3kzQ7abNa+TFBjnnolQVVaT3kV+I0lmUTyxdtFc2cB4XHLNPh2KoK4V09QoTb55 9XD4nN5gFgqFv9KT1JuP5czI34bhxTzG3brgFJX4HwloF37tWktwDZJir2b0yiiGCofy jZiu/68AN/TIO2/4SS4u+svxjJMajeYrzrlv2yl3eR7qRyxGMt8A5oBz1qWihMhFf2yq GgZCwYVmg+5uPYQ/if3/0oRAj2fLGpcU+BOlNh+24+sxHVZRUUNrccbcJswrmX63DPGT 5djw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=AxF5SgW9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y11-v6si21031pgj.171.2018.09.26.13.54.47; Wed, 26 Sep 2018 13:55:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=AxF5SgW9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727083AbeI0DJZ (ORCPT + 99 others); Wed, 26 Sep 2018 23:09:25 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:43884 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726877AbeI0DJZ (ORCPT ); Wed, 26 Sep 2018 23:09:25 -0400 Received: by mail-pf1-f193.google.com with SMTP id j26-v6so194569pfi.10 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=FeOfr/bDI+FU0UMXnPPUooapauHsTckJENLqfriZHaRc5zarUxajhL4XkBQpYN6X26 4q8k+IEBDOSSMaRfPBP3osS1H9qI/kXPbdjN5fleajvyKPQcP85YMfFKo2WigCvWCS1C 0CiYtt6/CrchwlqsdkwIkjliiG4iSQE6Znoio3DtOWh4cCOkvdven/7pgLOi/ymmij8y msYS8OFrbczOOL7Yh6R7HRz/+920WW1Ot2BBJrrhRsz24P2PRYhY1ODNyZYnyhKbsrLZ dZnGSYcv51hAHSSvK8qOOMICBUOIb2RPRRGwv9pVTW4KJ3uDt/C5XpcGMuo3eFrQnvX6 dhQw== X-Gm-Message-State: ABuFfojXMDBgdZEtL0fgnIQWHQqxVEX1Bx0HLORqnGGu/y5rXFpWTOJr d8/EVYd29V+eGtffSIz456g6GivZDT4= 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 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 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>; + }; + }; -- 2.19.0.605.g01d371f741-goog