Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp733786imm; Mon, 1 Oct 2018 18:16:20 -0700 (PDT) X-Google-Smtp-Source: ACcGV60MGtEUxVhhnnDvTuU+eEnENN6pSCg9wELqzfmVx0jGB87uv60vJXEIDOcrVfa8VSmuMS3z X-Received: by 2002:a17:902:2924:: with SMTP id g33-v6mr12295437plb.201.1538442980633; Mon, 01 Oct 2018 18:16:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538442980; cv=none; d=google.com; s=arc-20160816; b=iXSzfPusnzyannmCuNTiLLWlFfSvk0N5Kz4IwfViKUqbEwsGLthUmyV4KnC4TArNfx 1Yxl6n62zHnYhN8SZjwhRqIqmQg4G7U4WtGozMqkFLqiDoxXxw+5plyUxm0fK2vsHSAS ELskZYX/KKKhkk4adEhSmWvF0stWS3vtEehfyVIkMH4xX0g9Wz3ti+BmqWIjPIbam2ck 6mHNK5X1sP8ZLeec2vMJks1naXVQSMp/zq412d0ApVcYzpDoqiLq3fb124FzWAMehUyZ ncVi25QqijaYeehSuAGB/CukMRStzFBX3hwwN3z41wZ+rnfjmpo3m1qhyz7bP39vtz9+ B4oA== 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=8I6Jym4kLTCHfh2W4EcwaZ+ucwVAPiGe+Zc/eOX2fVc=; b=ygPt74l0Xi3676b9l3d8PFXdCWCrumiKnkyt5TDvUTnQDBgpythkaMMoffT3YKO7hc 4BCqnex5xOR2U+E3T3g21bSVAUBBvPi7eDHBgJ6CvSYWZDtQ5lGCEVw/vN+sBjkyf01r lum7BXAtxtkseLU76P57inPNH9vuKg5OYajd7UZnYimi9fg9UmEGEYHyySlrFnIIoLj1 clJlCk4FM9Y0ENU3g6/cLoOTohCOPb7oqlMRXTJDkVre2CB8CFFAUTIFdfDW2rXAhnHx EsY98M6UT9wCol5Ndh3Wy0ycsxT2HeQDAwq5LWVcXLY4SPcUCdL6cWGsYds20EWg6Jjv 3dmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=fa990wLZ; 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 d23-v6si13250635plr.127.2018.10.01.18.16.06; Mon, 01 Oct 2018 18:16:20 -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=fa990wLZ; 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 S1727403AbeJBH4f (ORCPT + 99 others); Tue, 2 Oct 2018 03:56:35 -0400 Received: from mail-io1-f66.google.com ([209.85.166.66]:34858 "EHLO mail-io1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727374AbeJBH4e (ORCPT ); Tue, 2 Oct 2018 03:56:34 -0400 Received: by mail-io1-f66.google.com with SMTP id w11-v6so333159iob.2 for ; Mon, 01 Oct 2018 18:16:00 -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=8I6Jym4kLTCHfh2W4EcwaZ+ucwVAPiGe+Zc/eOX2fVc=; b=fa990wLZSBy4aJLxxpSUgz93kSJ3z+0IPqpUbgrwb6SMVnYjnC3foUWNbTaXQHuPXx UvmE6PiKmmQ2HKmvqVXPJBHx+TLSvr1PhsLms6+vmSKjH4YFRpulWJcv28v9de+VGLv8 PU4SVtJYA9ykyRfUnkbfnpRqqdjnLf5eWjEOA= 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=8I6Jym4kLTCHfh2W4EcwaZ+ucwVAPiGe+Zc/eOX2fVc=; b=UT3l2RYgfCBL5ge5xQJV+SfSEGfjZq27tgwyFPI/Mc9+FkXg8c1+HtAxtO6x9O7qf1 0VWzwt0ozvJybiD90n+DTL6z0qfGnCMCO/C7tFB+Vf/HFkamv7Y120z7vTrei9TjU6Ej hiMEvmhxQLrKRQllHqDXJulDUwtPTge/kpKkBE3xXf2GKlaJtal+PjGLXEjhZSYBN9Tr nvemiTzREnkspJbSSN8gmk/4uvk4tiSWc+zKHzHWR6QtGd0Bln6EziRnSvSG3GA6bnBi e8iAWiwdGCAIFuVfSfk/PWinOoyNEyxLAUbLn3Q4uQiB3D8g1xLnbY3c0MsrTz/fdvgE FA3A== X-Gm-Message-State: ABuFfoixAgMK0EgNd/vIQKGER0sbCo7IpXNuYbZa8RMWaxebbppqt/an lmXIJ3UwR7/kH4vK4b5cZhcgIA== X-Received: by 2002:a17:902:1566:: with SMTP id b35-v6mr14260350plh.135.1538442959383; Mon, 01 Oct 2018 18:15:59 -0700 (PDT) Received: from ryandcase.mtv.corp.google.com ([2620:15c:202:201:ed1c:3d1c:9d92:99cb]) by smtp.gmail.com with ESMTPSA id q23-v6sm22065835pfd.44.2018.10.01.18.15.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Oct 2018 18:15:58 -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 v4 1/2] dt-bindings: spi: Qualcomm Quad SPI(QSPI) documentation Date: Mon, 1 Oct 2018 18:15:41 -0700 Message-Id: <20181002011542.204937-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 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>; + }; + }; -- 2.19.0.605.g01d371f741-goog