From patchwork Sat Nov 19 19:28:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 1706606 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=RsPVBR57; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4NF3cV1dbdz23mg for ; Sun, 20 Nov 2022 06:29:13 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5BD0E85285; Sat, 19 Nov 2022 20:29:09 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="RsPVBR57"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D8B1D851DC; Sat, 19 Nov 2022 20:29:07 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 Received: from mail-il1-x12c.google.com (mail-il1-x12c.google.com [IPv6:2607:f8b0:4864:20::12c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id EC71F85285 for ; Sat, 19 Nov 2022 20:29:04 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=aford173@gmail.com Received: by mail-il1-x12c.google.com with SMTP id m15so4050183ilq.2 for ; Sat, 19 Nov 2022 11:29:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=XfjlGmrVfs2zdOt53IDnypV4n2CQ9/ZkJZFej2wa54s=; b=RsPVBR57iVPQ2N6nW9w2W82hAgAU0GrtuboHMaIqrv8cyLpbhp4peFF9I7/2k+OKe6 ZY+3MEfzJkSPVSUNl6Ubd3DGt3c+tdxjjpudsBUsxJvQ03SOHbwvsjIcvL3sVXil+kzd YCkFN8BWRiLhzSGrumm9lCSS35OxOoZ9ifbWjaqO25FgdNnyzxGDtSFsloXeIioYGe6U wfiMoMYTiPlyEIUBl36Axx3dei9+GPUtulhqqlxEX7GenSdWa8uJokheMwW08X83zXwn j5myBAVW7A7xfHwcrJjic+Jw65YiQnXuani/jf3gYYuSVfBUgnJ9wZgqZnNbB6/GoAjx yh6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=XfjlGmrVfs2zdOt53IDnypV4n2CQ9/ZkJZFej2wa54s=; b=aBYnU0O029uVdWwyuvG3le6RfGo5Xxh2enNOdm9llMkco5bsRKZjS84LVXtVXiD0FH Tze/NQ5eOyz+OSHC23YPhS91o2mZWhbWfwc2z30MPcLvE+hACa64hhOlBBKXKo89i6hh hCd3XzOWTc/U/+eGGg7x+TtIF+Peq0/SQiIaSEGR65CFCkf2QPCAqCr0BqLZQPsK51Y/ 0Z2oCybYL2B7mAEMG6YsFzJjYWsiXojbw94GkxCJs0rq/V4Dt0tOLfCbkV7idZO5dthv s9dUG2B2en4xhdRXXVVQKasDiDE3NZp2PvdeyuEcAsY0u5iRVzQlPESfd9RQ11+z4QsH 3W2A== X-Gm-Message-State: ANoB5pm9fzDg43zTlixaG/Pa58g4seupA3WU08apI/HAuB5cBS53wAr8 H+isKGEFGqhKTP9Awx6vVTwDoEo+mlE= X-Google-Smtp-Source: AA0mqf79bPFEEWfd6dcTnZ4HyvSCg8KHmcrx5NkuiFqSDwtHoTBHxvs313VDd5WTUObOePnaiDcMmQ== X-Received: by 2002:a05:6e02:1d8c:b0:2ff:e41c:7236 with SMTP id h12-20020a056e021d8c00b002ffe41c7236mr5479891ila.269.1668886142861; Sat, 19 Nov 2022 11:29:02 -0800 (PST) Received: from aford-IdeaCentre-A730.lan (c-75-72-166-104.hsd1.mn.comcast.net. [75.72.166.104]) by smtp.gmail.com with ESMTPSA id h19-20020a056e020d5300b002f90ff8bcbbsm372613ilj.37.2022.11.19.11.29.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 19 Nov 2022 11:29:02 -0800 (PST) From: Adam Ford To: u-boot@lists.denx.de Cc: Adam Ford , Stefano Babic , Fabio Estevam , "NXP i.MX U-Boot Team" Subject: [PATCH 1/2] imx: imx8mm-beacon: Enable FlexSPI in U-Boot Date: Sat, 19 Nov 2022 13:28:49 -0600 Message-Id: <20221119192850.23999-1-aford173@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean In order to use the FlexSPI interface in U-Boot, configure the alias to make spi0 point to flexspi. With that enabled, sf probe detects the QSPI part as: SF: Detected n25q256ax1 with page size 256 Bytes, erase size 4 KiB, total 32 MiB Signed-off-by: Adam Ford diff --git a/arch/arm/dts/imx8mm-beacon-kit-u-boot.dtsi b/arch/arm/dts/imx8mm-beacon-kit-u-boot.dtsi index 00ac413f36..4f5b9cd23c 100644 --- a/arch/arm/dts/imx8mm-beacon-kit-u-boot.dtsi +++ b/arch/arm/dts/imx8mm-beacon-kit-u-boot.dtsi @@ -6,6 +6,10 @@ #include "imx8mm-u-boot.dtsi" / { + aliases { + spi0 = &flexspi; + }; + wdt-reboot { compatible = "wdt-reboot"; wdt = <&wdog1>;