Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1826738imm; Tue, 2 Oct 2018 14:50:35 -0700 (PDT) X-Google-Smtp-Source: ACcGV63N7ryvM2TFAVbjd7VHwsrQNqBZPN0zCRtMlB/h3Jaj0SktEYKdmKuCf5DGJopete3Jk3x6 X-Received: by 2002:a63:fd09:: with SMTP id d9-v6mr14341932pgh.164.1538517035294; Tue, 02 Oct 2018 14:50:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538517035; cv=none; d=google.com; s=arc-20160816; b=Oa+6fm0awJN9qabQv+Q+xXLuCF4/AZGncxjOLI16G90XYJTrhFgLXEVRpgz/F0HINc 3cvBzUC9MKiormON3mHQoRKoBzGg+bKOe5bh2XE4Tqy/YY1S+7TJ8nNbvL7o3Y+Uvbqn jly+rOIQxyPxR8l9kK7XpuStoG3Ffh1MyEfMCEREfdZaFTLBys4Qn8V1eIEdeuxEDKuN DbCpiTA2bU/UshSh4aHVFbkRW37/j8LwRQg7E41stlZ1fQdxvYNc8L/P24b8XIi1mIE5 ATpvhJQJnyIkcEMz16ZBZDXYnyR4rULnGfIbh6jVTj719erB9wvbgTO5D8e7a3h0F56X bSbg== 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=CAWn/MCat9imowTLcWTJbWTBWu0DvQZeFmhEx8GmINg=; b=0Do8M2d2yTRTQl5cWbcNDtt3Qoo5tzeGb2ozm+wd7b3nQS2nw1yeD1TH8j5WBNzGmZ aUMfAJimsd/Ku00smy1dHABJG6dqM+70BenvQXPL8kgXHfbItWCOO7RBu6d/svl8Dtnw ku1ntHBe6HUSVNE7K9uCpGcb1EOh4kgqefphukWmPMAfrysnlOxsHaYH2lfmMQ61Vx/A 271Q52tV7qsAmmh4pilWcFtenJTY+OphQ4123cOXZN+6WqANWIkeSQokoBR3zIFDoT1h bwHExHL7phpcqIdOWgKjnKKEOg76Ubd6fwD1Dlqslmb1DlADkLb+oRQFdRowp/DDhl15 aIhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=L36rxzaI; 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 u7-v6si15145076pgj.443.2018.10.02.14.50.19; Tue, 02 Oct 2018 14:50:35 -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=L36rxzaI; 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 S1727278AbeJCEdS (ORCPT + 99 others); Wed, 3 Oct 2018 00:33:18 -0400 Received: from mail-pl1-f193.google.com ([209.85.214.193]:35290 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725767AbeJCEdS (ORCPT ); Wed, 3 Oct 2018 00:33:18 -0400 Received: by mail-pl1-f193.google.com with SMTP id f8-v6so2384799plb.2 for ; Tue, 02 Oct 2018 14:47:52 -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=CAWn/MCat9imowTLcWTJbWTBWu0DvQZeFmhEx8GmINg=; b=L36rxzaI3kJMp8VhLHSkJ5GMznqOFIl0kd3fQo2gT4w2igugbJLSBpzH1s17GVl1h2 1RTME+F7TF1uYInTK+Pf/8X3c+knbqO2BVJOCQk5UCDg+5J5xghT08FbJREcM3Eyyj8l DAkL81zqaL9RhjOuFME9xcb9/O1QEW6g3Ggbo= 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=CAWn/MCat9imowTLcWTJbWTBWu0DvQZeFmhEx8GmINg=; b=riSdJbiJf+bjYQfFPxj0uTQzUiaK0/wNg8W+HDsLIe2T7VHLu86jiBK7qn5doNZEZw tlj8Bovzoawc5ax8L1xwBHwqIOM95c8spYrLDHDzX5gOrI0BY+Io4PkxQ26XgQlnnp7/ /ciZKUdjkQMha/QugN0GzENDnj/qQl+53IOW8d3m4rYQcySNp/TDkPiRd2w0C5odJ5hi B9Og1BlVFNsA1T28cg0RQrqTDHdJMKffKM7jLwPQxT1KBDz1d5K84poSQ7HVcQHOxe1C SczG/7vme6WJC19hHy2Sc52IBQQ5NoQwfYF+duZ1gF+Cmzb5rUDOymDN135VmRrsJebZ YDvQ== X-Gm-Message-State: ABuFfoj0C6zIvb6t8dXvqKGrzb71nVangC9aqr2chkqsc1RY3hwUQsVJ 1ZpPsSNDxGzjS5/PhTBgsgs3ag== X-Received: by 2002:a17:902:b585:: with SMTP id a5-v6mr18131125pls.259.1538516872111; Tue, 02 Oct 2018 14:47:52 -0700 (PDT) Received: from ryandcase.mtv.corp.google.com ([2620:15c:202:201:ed1c:3d1c:9d92:99cb]) by smtp.gmail.com with ESMTPSA id w2-v6sm21070910pfk.140.2018.10.02.14.47.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 02 Oct 2018 14:47:51 -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 v6 1/2] dt-bindings: spi: Qualcomm Quad SPI(QSPI) documentation Date: Tue, 2 Oct 2018 14:47:07 -0700 Message-Id: <20181002214709.162330-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 Reviewed-by: Douglas Anderson Reviewed-by: Rob Herring Reviewed-by: Stephen Boyd --- Changes in v6: - None 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>; + }; + }; -- 2.19.0.605.g01d371f741-goog