Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp86826imm; Thu, 20 Sep 2018 15:43:19 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaDrMA7BtunKIIYr+XNPWrZ7p9EK/f2aq9RSv4o86qVW38vpP2q5dpGWsz5y4ypDbBmmGbS X-Received: by 2002:a62:5047:: with SMTP id e68-v6mr42731612pfb.157.1537483399097; Thu, 20 Sep 2018 15:43:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537483399; cv=none; d=google.com; s=arc-20160816; b=PtKVHGSWe9xJPHSfrAoFX/uzMgSMXPMQlSY7aiqhdlSPdmwEhIBnP7GK6DJkPZ7c0a Z3UFrA9F8HXObjEaqrEcEpADif84aAjvugmnTiBHJ6+YHQb1uz9XbWdPJgrkz28YWwET xfX2ZbI6NTN7tE+M5Bj/4hHMSZxwkq21NRH5vhvaLHDq/Thv+8CaJNUqgfPFSGoCLeIn pTZm/k1YsrPZRLFDt8PVQbKKq0CfW4Yh1JWGZCaYADcEX6vecTlpVEvgjgjTMdgP4sws ssMGE6DSpHkxY9LjUGs4JFVm5ofvkUz4AM9so6zZRYxluw5cHxQ8duQGgstKMdU6LqcF cbRw== 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=RiuVd/eZH5Dz5Al4lGnHguqs2hmX6x+p1WFc9tapVFo=; b=TY50RkEzNWzNMJBZQh5XSxAGgcNipJRzp+dLfoR4UH0FxWyKoo56tPFkhassH7fjgi r1WFox5UVp4U3oAdYcu0Oz86rAi9rpzAMjRmbhZ+vawW4fclea4JLDIY57sSHRS8gNm/ BAMGmo3GWYvpmPBxPprseObLMS4gB16OC+fjWTxoks4+WsZ40wu+wcywd/ne1HmEX54o IkjFbX/qXzGdeRhyryfb0gFOdsQ3gZDMP1T2r8UzIsB/1XZZMhsUD4t8KSvSzVmiQylE HUh26wYjAc5lfzWjWksj5r1wtUqb2dDkTyZNfr4j0sAy95/wNtl3rNzIVe+7D0jyUkXz aN5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=UMjB5ZsO; 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 y129-v6si1494045pgy.551.2018.09.20.15.43.03; Thu, 20 Sep 2018 15:43:19 -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=UMjB5ZsO; 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 S2388386AbeIUE2e (ORCPT + 99 others); Fri, 21 Sep 2018 00:28:34 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:37529 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726135AbeIUE2e (ORCPT ); Fri, 21 Sep 2018 00:28:34 -0400 Received: by mail-pl1-f196.google.com with SMTP id q5-v6so1534578pli.4 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=k/G5RzSvsdbt9ocIeNWDy3eEdVYRj3nb7k8D6wvyBejO1XRAXoHQfsf5fPhBPPbXYN BAKGYCX/+l3OEa5D1hDwxSP7Ai+CcqjmHicZXHK6SW3kK2EcRew6ah6EXYroO8+ylRIm KgWznWoA5E5mPJHepR8SmHFDZdvJEz7g6Qtf2l183QR/M0gq2kg/w2TMt6KWZQ9OhHtd ZvHdcLMKn6xQoPnpFO472rWuZP0snWvMBNp3rQaFYccFTYps6RLPFFblBPfQHJtimgyx VwBn1VR51QTy7bmBvxlBlTA5iqcJP57sBV02ySnGo9rQZ2R/dDLidXI0NpAP3d4A+ip0 SO1w== X-Gm-Message-State: APzg51DIeWdNjz0GIWaNTeILCjYcfe4/TyJlnAHSZesw0Pmug9MTZMjw LsoZWLvb6uGkbQjuxhOOOGjAv6F+WoxXAA== 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 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 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>; + }; + }; -- 2.19.0.444.g18242da7ef-goog