Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp128663imm; Fri, 5 Oct 2018 00:44:57 -0700 (PDT) X-Google-Smtp-Source: ACcGV60SWP3tP0TWS4jqzNxqUBIBZilnZ89rD3SCZ3QT45J9T9LLctj05Jy36SiJ9PhyhOZfHDb8 X-Received: by 2002:a17:902:4001:: with SMTP id b1-v6mr10421671pld.89.1538725497701; Fri, 05 Oct 2018 00:44:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538725497; cv=none; d=google.com; s=arc-20160816; b=aSERcPZrNryZG9wEuF/t3Dswd90IccmOfs+MYA/YA7YAbMqiCvX5oY3F0dAmQmrDnO d+H960hadsuF+k6GGE5tB9L5cM70uMpIcVykGJTLDVmqqKV1RA+4qHSO5V+rZ78mTrms YdZfattNusx/uedkNLatRjkpxytcjc8NsFOLWapOVO3Kk3Kge+G4bi7Ejv7sr6sY1zPZ JmQsRoyqqJn5hDAitmha1DuJZvuXUpe6y/johq/5VK6V17XWJTX+k92MNVDtHE75Fko8 dAOKhxjZkOS/1IPolwiXHaWbSe0PgB/0E1/y774W6eomibIj5VM6CnpE61jbV8LZYD3M lNkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=+S0KkQArmWhdrWGxpJMvKbWA8GgBlcksDf4xmi3EVhg=; b=JTRNUlqH2oC/PH8O5/ZVrNGxWTnn2EwfWH686P/j3dTIHQwiafGT4mUDpRw2Aqiypg oqaXTryoEHAnmcjqCqZK/xexvjsmjqMBkoPu71DMsLqipfhulo45Yb9OlM4f0YQSgXWF l8lO75yfK9Elp8LMRztPLjXtGjEGtNumcz/5J2KXRpk5+13++e504CqhckklhriqZub8 00sG2HJD4/AigRTlDs92rw2NfAHkADLgcuJ+qn6nlregxkfHIZXVZUqQQZRfYhuTJxin h99Eb4O70vEMMZZYEbjqGJ/WeYU/baWWhV4Ac52he7P/NEjKFdo25aljViT4IK7kBqzl k2eQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 77-v6si8322602pfu.154.2018.10.05.00.44.41; Fri, 05 Oct 2018 00:44:57 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728532AbeJEOl7 (ORCPT + 99 others); Fri, 5 Oct 2018 10:41:59 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:52701 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728382AbeJEOl6 (ORCPT ); Fri, 5 Oct 2018 10:41:58 -0400 Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx08-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id w957dsFd013010; Fri, 5 Oct 2018 09:44:04 +0200 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2msxh71ngr-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 05 Oct 2018 09:44:04 +0200 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 4887231; Fri, 5 Oct 2018 07:44:04 +0000 (GMT) Received: from Webmail-eu.st.com (Safex1hubcas21.st.com [10.75.90.44]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 12CD81BC7; Fri, 5 Oct 2018 07:44:04 +0000 (GMT) Received: from SAFEX1HUBCAS22.st.com (10.75.90.93) by SAFEX1HUBCAS21.st.com (10.75.90.44) with Microsoft SMTP Server (TLS) id 14.3.361.1; Fri, 5 Oct 2018 09:44:04 +0200 Received: from lmecxl0923.lme.st.com (10.48.0.237) by Webmail-ga.st.com (10.75.90.48) with Microsoft SMTP Server (TLS) id 14.3.361.1; Fri, 5 Oct 2018 09:44:03 +0200 From: Ludovic Barre To: Mark Brown , Marek Vasut , Boris Brezillon , Rob Herring CC: Maxime Coquelin , Alexandre Torgue , , , , , , Ludovic Barre Subject: [PATCH 1/2] dt-bindings: spi: add stm32 qspi controller Date: Fri, 5 Oct 2018 09:43:02 +0200 Message-ID: <1538725383-19781-2-git-send-email-ludovic.Barre@st.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1538725383-19781-1-git-send-email-ludovic.Barre@st.com> References: <1538725383-19781-1-git-send-email-ludovic.Barre@st.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.48.0.237] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-10-05_03:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ludovic Barre This patch adds the documentation of device tree bindings for the STM32 QSPI controller. It is a specialized communication interface targeting single, dual or quad SPI Flash memories (NOR/NAND). Signed-off-by: Ludovic Barre --- .../devicetree/bindings/spi/spi-stm32-qspi.txt | 44 ++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/spi-stm32-qspi.txt diff --git a/Documentation/devicetree/bindings/spi/spi-stm32-qspi.txt b/Documentation/devicetree/bindings/spi/spi-stm32-qspi.txt new file mode 100644 index 0000000..adeeb63 --- /dev/null +++ b/Documentation/devicetree/bindings/spi/spi-stm32-qspi.txt @@ -0,0 +1,44 @@ +* STMicroelectronics Quad Serial Peripheral Interface(QSPI) + +Required properties: +- compatible: should be "st,stm32f469-qspi" +- reg: the first contains the register location and length. + the second contains the memory mapping address and length +- reg-names: should contain the reg names "qspi" "qspi_mm" +- interrupts: should contain the interrupt for the device +- clocks: the phandle of the clock needed by the QSPI controller +- A pinctrl must be defined to set pins in mode of operation for QSPI transfer + +Optional properties: +- resets: must contain the phandle to the reset controller. + +A spi flash (NOR/NAND) must be a child of spi node and could have some +properties. Also see jedec,spi-nor.txt. + +Required properties: +- reg: chip-Select number (QSPI controller may connect 2 flashes) +- spi-max-frequency: max frequency of spi bus + +Optional property: +- spi-rx-bus-width: see ./spi-bus.txt for the description + +Example: + +qspi: spi@a0001000 { + compatible = "st,stm32f469-qspi"; + reg = <0xa0001000 0x1000>, <0x90000000 0x10000000>; + reg-names = "qspi", "qspi_mm"; + interrupts = <91>; + resets = <&rcc STM32F4_AHB3_RESET(QSPI)>; + clocks = <&rcc 0 STM32F4_AHB3_CLOCK(QSPI)>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_qspi0>; + + flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-rx-bus-width = <4>; + spi-max-frequency = <108000000>; + ... + }; +}; -- 2.7.4