From patchwork Mon May 13 03:59:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Smirnov X-Patchwork-Id: 10940209 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 1536B76 for ; Mon, 13 May 2019 03:59:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EF17821FAD for ; Mon, 13 May 2019 03:59:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DF2D126BE9; Mon, 13 May 2019 03:59:32 +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 7061521FAD for ; Mon, 13 May 2019 03:59:31 +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: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:In-Reply-To:References: List-Owner; bh=gH3e9s5ZvZV8V23zwLjw21cjFHZ2vZwXUao/pz14E/k=; b=GgCQXTjWv4cAbv XUNYXPNuitSkuvqs1VIKRLN+/njloI9r4pB5vt192K/k6WTB7HpV2ZiaE5Bmifgy+v5J6dTBZLzkj alPFCI53Iyt+NhFe8044rNWe9N86XZ0N0mt3vzta/lb3e5ldHzw3iJVpJ4XQiZ4UnQ9uC0foNefa8 r2K5nmZ0UW8KZM6brqZx1cTHp5IV1IymIXKNdXsOwqyV3iU46rDxDHWhGEBPFe50NuvT4NvJnnRxt jWTQFTjgAqw0x7Oe23sFuUPDUv8aIpW/oveXOiLTDvTGqYaI45aVUn+SWF6aLQelFLAExiHW+xirO fuI05kQwmSVZy6Klp0XQ==; 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 1hQ27b-0002yK-2H; Mon, 13 May 2019 03:59:27 +0000 Received: from mail-pf1-x442.google.com ([2607:f8b0:4864:20::442]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hQ27Y-0002xd-FZ for linux-arm-kernel@lists.infradead.org; Mon, 13 May 2019 03:59:25 +0000 Received: by mail-pf1-x442.google.com with SMTP id y2so974503pfg.5 for ; Sun, 12 May 2019 20:59:24 -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:mime-version :content-transfer-encoding; bh=T/UMdXUy+/44jsihjFncGu0LlYxKfRmwGK/u/aG6gy8=; b=D4CoZCzw46wJhjAybuMT63XKBWH3byPbtxhQmXYVCReu7aSxN7P2einVcm1kJLa5Gi fMXdsGNhHAY2vESdnGgRukqHkjw4fDD/kXtfS/SZ1VO3ZC4XZfOB/t1Zp2UGUrpFiGPO NM2B4rgJDiic0UrR0q/52DlZPLmLrwoqjcOPJYZtrdBLspbL24oqk6Rg3LHzYktRtJY8 mbZ/5lIJJ6Npp3MeFIcpzM/DjZUEam94oE4DFlJRMtJ6df+O2uqXHo27SvWMJGtjCrVy Apf2Jbe9IdhJO49mRrQTKlHL59f8nV1QchHQPo8nGPRkzkmyCvPGdEQGUZUXDE23X2gK KcsQ== 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=T/UMdXUy+/44jsihjFncGu0LlYxKfRmwGK/u/aG6gy8=; b=LAEMvrJvs0twbumss/Na1NGDsizccq0O4W5UbCVuZFBeH+dWCWgmso7Su9cg2NoRyu 7WwSS5ZbVaOul89/gDtz6NNSlvQPsxMNAV0OuTUHxNXyzC09QrrdVDQILpce0rhkNSIq LEeCPxdBVXDlnTWsPXMiR3fo2vLENEvZhc9gLMx/Uo3Q5tFzdeQA2ZhEYF9FZHDm0zv8 JZ8WCFnLAH0+AeHmWb/T0nnzsItR/9qZfOhfvPIDqUhk/xdQmMbda2xPbNLkmpFmT/pI QwAHelatqmm6OG4V0sv0xD0SR5G69olX+VQraWsnWZ1/sfJ6BcbUYTlHMyjH/C6rM8aA G/Ug== X-Gm-Message-State: APjAAAUGuaLRvpvCY+jhhI/NRjictFXdVZpFzN0rZwJgQ6kF12mh0UOg MZcjZ4fwna6hYFzaNaapjsw= X-Google-Smtp-Source: APXvYqyTijGyvIuRdI382Hw/nI2S9C2DPKA1QDQ+pl8IgiEEBjnhjYIvo7+z9vdBC8w9CHbxtDO49g== X-Received: by 2002:a63:f703:: with SMTP id x3mr27941129pgh.394.1557719962682; Sun, 12 May 2019 20:59:22 -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 i17sm16042496pfo.103.2019.05.12.20.59.21 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 12 May 2019 20:59:21 -0700 (PDT) From: Andrey Smirnov To: Shawn Guo Subject: [PATCH 1/2] ARM: dts: vf610-zii-dev: Fix incorrect UART2 pin assignment Date: Sun, 12 May 2019 20:59:08 -0700 Message-Id: <20190513035909.30460-1-andrew.smirnov@gmail.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190512_205924_547100_0341468D X-CRM114-Status: GOOD ( 11.57 ) 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 , linux-kernel@vger.kernel.org, Chris Healy , Fabio Estevam , linux-arm-kernel@lists.infradead.org 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 UART2 is connected to PTD22/23, not PTD0/1. Fix corresponding pinmux node. 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 --- arch/arm/boot/dts/vf610-zii-dev.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/vf610-zii-dev.dtsi b/arch/arm/boot/dts/vf610-zii-dev.dtsi index 2d1e9b3203fa..5246c75e848c 100644 --- a/arch/arm/boot/dts/vf610-zii-dev.dtsi +++ b/arch/arm/boot/dts/vf610-zii-dev.dtsi @@ -385,8 +385,8 @@ pinctrl_uart2: uart2grp { fsl,pins = < - VF610_PAD_PTD0__UART2_TX 0x21a2 - VF610_PAD_PTD1__UART2_RX 0x21a1 + VF610_PAD_PTD23__UART2_TX 0x21a2 + VF610_PAD_PTD22__UART2_RX 0x21a1 >; }; From patchwork Mon May 13 03:59:09 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Smirnov X-Patchwork-Id: 10940211 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 58594912 for ; Mon, 13 May 2019 03:59:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 45FC321FAD for ; Mon, 13 May 2019 03:59:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3834A26BE9; Mon, 13 May 2019 03:59:39 +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 B75E121FAD for ; Mon, 13 May 2019 03:59:38 +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=6Q/zyMmE3L8psu3tyZY5QqM2zQvrqcxfTAjDZoA2aZc=; b=Z5pEp7OdjOWoDs +Q/hXSJoJ9lgOLkLy1561dsvWoIqMfBxzZv5cq8uXW6IVHdfZzvd0e4NgdOejVXZWLBoQKVUrO2nx /RsTeg2Eib7BpEuE6Y7cK3tX0Y4yM366gNC8L+lOwMP8nEkrqeXHdI/47TNLvqSFFcw6L3fOkoakl bF290QcEYtHraaX3y8BB+9ljOPB1IMq/ynKQQ4F4KLlUSlwttAEj9/yYKOiqiRc/QXTcMqx/f+O3a M25OHUU6WinSy/Ws2JQPvsoQn9Qg4SyEDfVirpvaJaTNw8YDeA1UhlPk7F9FFCQ5uKgAhzqSOb3+D fd8cahmYecQZmzhQJueQ==; 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 1hQ27h-00034X-5q; Mon, 13 May 2019 03:59:33 +0000 Received: from mail-pl1-x644.google.com ([2607:f8b0:4864:20::644]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hQ27Y-0002xf-MF for linux-arm-kernel@lists.infradead.org; Mon, 13 May 2019 03:59:26 +0000 Received: by mail-pl1-x644.google.com with SMTP id n8so5739894plp.10 for ; Sun, 12 May 2019 20:59:24 -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=F9QBOZtjHD3cvSHL8seit1ng6gf/KXanf0uSnR0dfOI=; b=Xsc1FqfBOwy8bGWszVKy9eKAwN5fabSOCsyoyESVpaOJllyh8NWqBLwEigRo5L6Gtn wnb/SLFTaPG3x0thYFka1ag/hw90I2iQSYo1tCuJb0mYPJNTIYFSg5syIRtkVDnh0+Ks hv4eR4HqATvnVpOU7qQDzFp08ohYrnZgo+qG0ePDL/DHYcKUBRYk3SXaW+QN1woNIJwP EXajKe5rRQyjIAHLrHRsi/XrFzAZoUdydcKzsAmBD92wZUZHl8ZXTuymRneC32JNt1Fy 5mSmrZ/GgTiyehLHkwbi1YgJeNTUe+5fhjZYdGLnyQFK+czO+4hqdpQKehFWymF2giup 215Q== 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=F9QBOZtjHD3cvSHL8seit1ng6gf/KXanf0uSnR0dfOI=; b=BQqbDKjNqGRWiFfUaDe7ul8QsU4x/K98MtpKslA867beyNr4hsLplknvqy1ApD6GXW M7Ilo4Cm3f19CXwNngMdd8rZ5IXt3dUJL5YqyjiS16lQzWle7ykXbX+Q1h7UuJkvM6wC wboj3zyc8+VMUNdDWrWp11ciBLBjaWQvgjme6P6SaR1OjVhV4KanUI9DuLZmwAT67fjb +m5+NjSBFsWsVlZD6UH0YzTw+bGITIBICUoeKKyj5E/hVQSfdPPlaTiRup4fQoeLaBFS 6bqR7sj6E1p/He9D/X+Gp+1xMyMH8Q0b6aksYHAJ6U4Y28e8Wkm6fj9mK1rhOTeDyDYi qqNA== X-Gm-Message-State: APjAAAXqkjLjc3w3aXQ2W2/3SkZfIiizwqh5dycWpPXokZIFa2CmWEC/ IIOAHbfj2xzytDVe9hHZ/vY= X-Google-Smtp-Source: APXvYqyNX8YPKfwxKwTXESwWJea0905IwBlPHwMrvpJrp5+E3xFtZK2791xVKS08UbaHHZOStnse3g== X-Received: by 2002:a17:902:a405:: with SMTP id p5mr23101195plq.51.1557719963804; Sun, 12 May 2019 20:59:23 -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 i17sm16042496pfo.103.2019.05.12.20.59.22 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 12 May 2019 20:59:23 -0700 (PDT) From: Andrey Smirnov To: Shawn Guo Subject: [PATCH 2/2] ARM: dts: vf610-zii-dev: Add QSPI node Date: Sun, 12 May 2019 20:59:09 -0700 Message-Id: <20190513035909.30460-2-andrew.smirnov@gmail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190513035909.30460-1-andrew.smirnov@gmail.com> References: <20190513035909.30460-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-20190512_205924_727224_E0FB3160 X-CRM114-Status: GOOD ( 14.12 ) 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 , linux-kernel@vger.kernel.org, Chris Healy , Fabio Estevam , linux-arm-kernel@lists.infradead.org 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 --- 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 5246c75e848c..f63a470f78ce 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 SDR + * modes, so we limit spi-max-frequency 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 >; };