From patchwork Wed May 22 07:20:52 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Smirnov X-Patchwork-Id: 10955223 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8847117E0 for ; Wed, 22 May 2019 07:21:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6EC2C28A9C for ; Wed, 22 May 2019 07:21:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 62B4528AA1; Wed, 22 May 2019 07:21:30 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id EE8E028A9C for ; Wed, 22 May 2019 07:21:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=n9wTFt6NCr3ekD5wh5Y15742l2rppUhblkAAa2v/xLo=; b=tft9qm0q8JsMpN NA3Z0D0Iqqo2AqqGGxFkJGxKMEuBxGraZsACoYh7cBTR/zUUE/UXrW5lepfN3tDrC7pE7vtg6rVnx A19ctmIqtNzu+OxjRduYqhOZZzA2BVX1rJ5yry+CIesJwWIOhmEZyBNCETgCR8fpbKkZR1BXHwSRL gPeQj5KFTKMOluUHNvaVroB78cNdd0bQTWrMV3P+etDtfw+RodHk4hey9FRUbqKb1k3fpN+2mB2Vx TiwXyS8bb8B0raNjBXCOk8wEWyzBcam39G3rtIyGx+4ee97AEBAXtlUAYt1DU53/sueS1oYx+Oh6k /CH8ZcsxGGDe0irrtyDg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hTLZ0-0006nM-1p; Wed, 22 May 2019 07:21:26 +0000 Received: from mail-pg1-x543.google.com ([2607:f8b0:4864:20::543]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hTLYo-0006b8-Rv for linux-arm-kernel@lists.infradead.org; Wed, 22 May 2019 07:21:16 +0000 Received: by mail-pg1-x543.google.com with SMTP id o11so660406pgm.13 for ; Wed, 22 May 2019 00:21:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=kHSgRkcaDJjRSdqELdkMhZEbAHoVQntlFI0IvZxHj3E=; b=k5tgs8yggvJF5OSHf7bQhIAln+SBF+Tg3xuz4GJO96CgvDj/1RGgOW1SGICp1U1leY 1HUBAfYy3otMIAtn7gD9kuKxovYH1YP+Ej56K5w7v57kbmW7lQUeYiecQUwsvUQJhy+e vlHsaaHlgB1qW+xeCwctGWMp0Al27Oy6dUQsQxCkcOYWvZdqbf1C7LndUuwSbc3nGbss N5BAzrRoQ/kJMylK/VsARNBUqZovu01oHYx4sAahMyfEOoVOrvGD2EvvngsIXXj/Gper mr4sduB4o1fhwrFiDj23V7VZaUAMo1h9xDRuO+9Qf3MJB/YVgRjZhcl9xTpEfZYh56kF o7sA== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=kHSgRkcaDJjRSdqELdkMhZEbAHoVQntlFI0IvZxHj3E=; b=rYAOZ6tqiznKJNXfKpRUtHlyH0H5POSk/+iPAftqj28ShH4wNQKnh4YzNiRPnfuXp1 1Q4jHsET6KUjw2xLckQQfxC40iL4klteDTP1/cTTBshJ9fl5/+pwYMYaEx+VWIPiqwoz 1603bWSJCjywhq+Q7VsQUuiCjno0NEDIeeA2C/8VkpaKRQDPTaKkkSWxd6Wv7H0c05tY 4ssJ4yapHilgnkJvDnuD4GUCF5wOfXVJqDKiLnDojhi73LPSpQYB6L9CQYIHiRRDa6Qp F+AJfYxvrRLDNh/Vbtmc1e54HjJlH9pY2MxD5X8X6LZVShHHHhiyJRAt2X3uZRY1TpUU xuxw== X-Gm-Message-State: APjAAAUdKJFNRJsXAI44N85BZFQHRVHw6dLpFO1NpuirkZvQpJzQ1hIN HwPwGx24bZLCbz3JwGLZ6suZRwMkUpM= X-Google-Smtp-Source: APXvYqwY/1cQhdKm4eoDKJUfcXRp7vhDSoXaJFpJ1OsO2RNViu3fuL+yZi8dla0AvbG8t2ACUvyyrw== X-Received: by 2002:a63:4a4f:: with SMTP id j15mr87678043pgl.338.1558509673946; Wed, 22 May 2019 00:21:13 -0700 (PDT) Received: from localhost.lan (c-24-22-235-96.hsd1.wa.comcast.net. [24.22.235.96]) by smtp.gmail.com with ESMTPSA id t5sm25307204pgn.80.2019.05.22.00.21.12 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 22 May 2019 00:21:12 -0700 (PDT) From: Andrey Smirnov To: linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 2/2] ARM: dts: vf610-zii-dev: Add QSPI node Date: Wed, 22 May 2019 00:20:52 -0700 Message-Id: <20190522072052.2829-2-andrew.smirnov@gmail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190522072052.2829-1-andrew.smirnov@gmail.com> References: <20190522072052.2829-1-andrew.smirnov@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190522_002114_900469_E5DC9657 X-CRM114-Status: GOOD ( 13.81 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Andrew Lunn , Andrey Smirnov , Shawn Guo , linux-kernel@vger.kernel.org, Fabio Estevam , Chris Healy Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Both rev C and rev B of the board come with two QSPI-NOR chips attached to the SoC. Add DT code describing all of this. Signed-off-by: Andrey Smirnov Cc: Shawn Guo Cc: Chris Healy Cc: Andrew Lunn Cc: Fabio Estevam Cc: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org --- Changes since [v1]: - Small spelling fixes in comment block [v1] lore.kernel.org/r/20190513035909.30460-2-andrew.smirnov@gmail.com arch/arm/boot/dts/vf610-zii-dev.dtsi | 48 ++++++++++++++++++++++++---- 1 file changed, 42 insertions(+), 6 deletions(-) diff --git a/arch/arm/boot/dts/vf610-zii-dev.dtsi b/arch/arm/boot/dts/vf610-zii-dev.dtsi index 1f2e65ae2bd6..a1b4ccee2a10 100644 --- a/arch/arm/boot/dts/vf610-zii-dev.dtsi +++ b/arch/arm/boot/dts/vf610-zii-dev.dtsi @@ -177,6 +177,36 @@ status = "okay"; }; +&qspi0 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_qspi0>; + status = "okay"; + + /* + * Attached MT25QL02 can go up to 90Mhz in DTR and 166 in STR + * modes, so, spi-max-frequency is limited to 90MHz + */ + flash@0 { + compatible = "jedec,spi-nor"; + #address-cells = <1>; + #size-cells = <1>; + spi-max-frequency = <90000000>; + spi-rx-bus-width = <4>; + reg = <0>; + m25p,fast-read; + }; + + flash@2 { + compatible = "jedec,spi-nor"; + #address-cells = <1>; + #size-cells = <1>; + spi-max-frequency = <90000000>; + spi-rx-bus-width = <4>; + reg = <2>; + m25p,fast-read; + }; +}; + &uart0 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_uart0>; @@ -360,12 +390,18 @@ pinctrl_qspi0: qspi0grp { fsl,pins = < - VF610_PAD_PTD7__QSPI0_B_QSCK 0x31c3 - VF610_PAD_PTD8__QSPI0_B_CS0 0x31ff - VF610_PAD_PTD9__QSPI0_B_DATA3 0x31c3 - VF610_PAD_PTD10__QSPI0_B_DATA2 0x31c3 - VF610_PAD_PTD11__QSPI0_B_DATA1 0x31c3 - VF610_PAD_PTD12__QSPI0_B_DATA0 0x31c3 + VF610_PAD_PTD0__QSPI0_A_QSCK 0x38c2 + VF610_PAD_PTD1__QSPI0_A_CS0 0x38c2 + VF610_PAD_PTD2__QSPI0_A_DATA3 0x38c3 + VF610_PAD_PTD3__QSPI0_A_DATA2 0x38c3 + VF610_PAD_PTD4__QSPI0_A_DATA1 0x38c3 + VF610_PAD_PTD5__QSPI0_A_DATA0 0x38c3 + VF610_PAD_PTD7__QSPI0_B_QSCK 0x38c2 + VF610_PAD_PTD8__QSPI0_B_CS0 0x38c2 + VF610_PAD_PTD9__QSPI0_B_DATA3 0x38c3 + VF610_PAD_PTD10__QSPI0_B_DATA2 0x38c3 + VF610_PAD_PTD11__QSPI0_B_DATA1 0x38c3 + VF610_PAD_PTD12__QSPI0_B_DATA0 0x38c3 >; };