From patchwork Thu Oct 17 20:00:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonas Karlman X-Patchwork-Id: 836157 Delivered-To: patch@linaro.org Received: by 2002:a5d:50c9:0:b0:37d:45d0:187 with SMTP id f9csp503356wrt; Thu, 17 Oct 2024 13:01:50 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWktep4cGWeSuwLzFUr+7MGVMXrvqc64nUKGUWwpMe1VfUUbXuirejEz48uOhRJHDXMzV9cPA==@linaro.org X-Google-Smtp-Source: AGHT+IFC7EbUaBAuUhP/MmeX5I5uvYKejwCH44Yd7tXF5k5aQcgTJgy7TMePPli4S4m1cOUOaUP0 X-Received: by 2002:a05:6602:2b8f:b0:835:4d27:edf6 with SMTP id ca18e2360f4ac-83a9447a343mr1155318839f.7.1729195309858; Thu, 17 Oct 2024 13:01:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1729195309; cv=none; d=google.com; s=arc-20240605; b=kiIyNyqOEujLwgQhc3RdZdmyet9Zt2brz49axNcmPSur7gipWDGO3MxKTORbNOfwq0 0/82d99kXfxzz29yKbZsf7bcyNQoyVI01GsMKjnOIBVoIxsHPd1/SBETE9w5Z9zb0T9z AaOX/4A7ogkto8NcFm51N44O4ajJgkEwOKUsvH5ZXIt/OIS+D0KPNVLBQMlL3dCUj2NG uVJSfKFCC8sl7H3WzLUo6ij2mb87hgB223f7UQvo8QF1AN1pQDfOrhf1EsKJliD0jEIh 7tgZI0JUrf/f7kTov4BYgBksoA51GeDmZLgmLRWUTOdB17oNu8+1cUPbJ3M4y3Ib4UrV 2fog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=OJ57kb7IjyoFoolbnE8cxv+pBKzphE2zcnWsdqGTohU=; fh=HIg4dYSQDj+PWlm5eDH87PNdarxIn5KutKC2ibKLJ08=; b=PMDWZSyBFBBjfHFIIEsVykJPlyPuXD4Gl5mwQEcpzmRPConomkZ+2EBzNNTMTXz9Zt HKGlGexAqPmt3pTgjT+VDAm+4aEqtUx/AdJnS3VeAFf8zs+SbF+E1Sem4GyudeBwqVtC 0/gnL8hILbKhMwvt30/m+1g+/I2vgXtXzvT46Oq1cfu5lYh4QD2mvCKnCGRR17AvWTXq BsxSgVSs8ADZ+jfSr9TmPpHQmmJNBY+XVHgUuUXuJ1ouE5fIxBuAhWexXHp3e/Lf0C+c IqYoyZFN3zqvRgnC5RhCCnaRbcZnXVmjXJJLBaY+uoAwmPN7TZy2kVDkV7fBeWA9Szi8 ZujQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kwiboo.se header.s=fe-e1b5cab7be header.b=x6+MBQPo; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kwiboo.se Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id 8926c6da1cb9f-4dc10b5b1casi56975173.24.2024.10.17.13.01.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Oct 2024 13:01:49 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@kwiboo.se header.s=fe-e1b5cab7be header.b=x6+MBQPo; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kwiboo.se Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 7C2C6890CD; Thu, 17 Oct 2024 22:01:15 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kwiboo.se 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; secure) header.d=kwiboo.se header.i=@kwiboo.se header.b="x6+MBQPo"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 4620B890BF; Thu, 17 Oct 2024 22:01:14 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED, SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from smtp.forwardemail.net (smtp.forwardemail.net [207.246.76.47]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 5E2BD89099 for ; Thu, 17 Oct 2024 22:01:10 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kwiboo.se Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=SRS0=a54c=RO=kwiboo.se=jonas@fe-bounces.kwiboo.se DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kwiboo.se; h=Content-Transfer-Encoding: MIME-Version: References: In-Reply-To: Message-ID: Date: Subject: Cc: To: From; q=dns/txt; s=fe-e1b5cab7be; t=1729195263; bh=OJ57kb7IjyoFoolbnE8cxv+pBKzphE2zcnWsdqGTohU=; b=x6+MBQPoyZPgt1JWv2qJliv8B470u302TKRbazi57ZPrVeRG0j/KwDzE74pOP6kLQcFJZWJ4k 18TLiXvNiekAENLFiSZ4CL8KPzWyCnxgb4GormI0kGGXrc2sZLURxSjRvuOQuHUR/20TWu662jw 9Szhv8JB91cLspOuloeAuxUyi+bxUNf8EUiO8JN7kqlo8ueC8RNe44ktKpzAbsf4C3uEabF27Dy PXa/0JsGRQR26bLY8NUn+wHN09wqfyS75A0RU69yMxPIg6TeOsQU9rm5TrhSpQuW21eKXV8rf20 uIetUu2ZiP3fcl91J11Y6L+p82k5EjYAJvcB8n7hJ5fw== From: Jonas Karlman To: Kever Yang , Simon Glass , Philipp Tomsich , John Clark , Tom Rini , Sumit Garg Cc: Marcin Juszkiewicz , u-boot@lists.denx.de, Jonas Karlman , Heiko Stuebner Subject: [PATCH 4/8] arm64: dts: rockchip: add SPI flash on NanoPC-T6 Date: Thu, 17 Oct 2024 20:00:23 +0000 Message-ID: <20241017200039.1235524-5-jonas@kwiboo.se> X-Mailer: git-send-email 2.46.2 In-Reply-To: <20241017200039.1235524-1-jonas@kwiboo.se> References: <20241017200039.1235524-1-jonas@kwiboo.se> MIME-Version: 1.0 X-Report-Abuse-To: abuse@forwardemail.net X-Report-Abuse: abuse@forwardemail.net X-Complaints-To: abuse@forwardemail.net X-ForwardEmail-Version: 0.4.40 X-ForwardEmail-Sender: rfc822; jonas@kwiboo.se, smtp.forwardemail.net, 207.246.76.47 X-ForwardEmail-ID: 67116cfb6385e073f5ab13e0 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.8 at phobos.denx.de X-Virus-Status: Clean From: Marcin Juszkiewicz FriendlyELEC NanoPC-T6 has optional SPI flash chip on-board. It is populated with 32MB one on LTS version. Signed-off-by: Marcin Juszkiewicz Reviewed-by: Jonas Karlman Link: https://lore.kernel.org/r/20240829-friendlyelec-nanopc-t6-lts-v6-5-edff247e8c02@linaro.org Signed-off-by: Heiko Stuebner [ upstream commit: a22a629c63b1addcf2d81eaf30383c1deca5b7a9 ] (cherry picked from commit 7588da65fdf09c7de9f903780c212a8ae96f2866) Signed-off-by: Jonas Karlman Reviewed-by: Kever Yang --- .../src/arm64/rockchip/rk3588-nanopc-t6.dtsi | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/dts/upstream/src/arm64/rockchip/rk3588-nanopc-t6.dtsi b/dts/upstream/src/arm64/rockchip/rk3588-nanopc-t6.dtsi index d199f51a220c..77580c671b36 100644 --- a/dts/upstream/src/arm64/rockchip/rk3588-nanopc-t6.dtsi +++ b/dts/upstream/src/arm64/rockchip/rk3588-nanopc-t6.dtsi @@ -560,6 +560,21 @@ status = "okay"; }; +/* optional on non-LTS, populated on LTS version */ +&sfc { + pinctrl-names = "default"; + pinctrl-0 = <&fspim1_pins>; + status = "okay"; + + flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <104000000>; + spi-rx-bus-width = <4>; + spi-tx-bus-width = <1>; + }; +}; + &spi2 { status = "okay"; assigned-clocks = <&cru CLK_SPI2>;