From patchwork Mon Feb 19 22:34:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Muhammed Efe Cetin X-Patchwork-Id: 203341 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2685:b0:108:e6aa:91d0 with SMTP id mn5csp80764dyc; Mon, 19 Feb 2024 14:59:31 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWJinoXsYKm0NGlLPzwQ9n312/Yq4GaWP4Lm4QJ5EjcxAFkr0MhQWwGEvjIEmNxYkWuzD4u89LYRpvfydjdfLzAruBhHA== X-Google-Smtp-Source: AGHT+IGeB2a60UL9F+/Se20NQxCBrSvfD2mJonV54lmD0XpzOfB7dNMFJogmislmMO0p8IvmkhHq X-Received: by 2002:a05:6a20:9f88:b0:19e:c44b:c8fe with SMTP id mm8-20020a056a209f8800b0019ec44bc8femr14485746pzb.52.1708383571446; Mon, 19 Feb 2024 14:59:31 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708383571; cv=pass; d=google.com; s=arc-20160816; b=VUqDhA0tG5nmYcXTRPIHsw86Pd5HWKyxG/H6ER71UADLJq4l5/D/z8Vwt5RPmcIS5W 1cQZWaFXtHeo3q+yjCr0O4Nal1tlg8HHb0NLkcHw1ZPcX6ZiKapOTjCpsN4t/wrKy/xM 4JIO3BkgFouLHTuUQcwmcXP+MnGjyO20fPQzFvcLn3yk2umRJlHAQYOzrhuJkFTlRL3d axx/3YQXwC4OizmGj1pK9p4yMdcIs+nCy/R8R3e95BWV43c7uYT1dTPzq5Ju96uF5Wee 3/HSjRsA6QEvFmon24YcDNTyZDug7s3OVnuICbMp8EC/yklGN72FAgBIifrglxq39vq1 CM9A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=JI2cRwXvHUsxvJo/pXgFMq6i1VmcadyuSYPCZy3AMrY=; fh=V8Ef4H2uJkQZDuPIgc3s0n5U+QDYdOIQgtOD60pTxX4=; b=oWzXytBq4T1/vVgVfYZgfAZPAMnYyOqgcxCxYPpEZwHTTdkkm06Ocq28YcCPi8XCc9 AWKYhFBU50tmCj4A67tbj765rxeUMJZgGmAhu/InGm3h1Op4ay99AtU0P3bjpM3Ti5/j c6LTSIOt0nZuOpEAdKeUEvDEUCMcvxCdTjqIllPpu2JRR7sD7OSSNRE7f/UCenrSvyCB cgZGNNTycVOrDqZE60mM/cSUW+iYr7vqsFNUyD3MRs7BjIP0FJ9BAtnLknwwB64KQQlW IJhQNeKKnQfC/PzBrrJv50m7DYAPmqvQrgXH8HqTeBlID9cOa6DAd7/YarG+VBH5JVUW hC+Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@6tel.net header.s=mail header.b="nRbP/S8m"; arc=pass (i=1 spf=pass spfdomain=6tel.net dkim=pass dkdomain=6tel.net); spf=pass (google.com: domain of linux-kernel+bounces-72074-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72074-ouuuleilei=gmail.com@vger.kernel.org" Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id n10-20020aa7984a000000b006e13d669353si5063577pfq.194.2024.02.19.14.59.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 14:59:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-72074-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@6tel.net header.s=mail header.b="nRbP/S8m"; arc=pass (i=1 spf=pass spfdomain=6tel.net dkim=pass dkdomain=6tel.net); spf=pass (google.com: domain of linux-kernel+bounces-72074-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72074-ouuuleilei=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 99150B23D5B for ; Mon, 19 Feb 2024 22:37:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2818B5A78D; Mon, 19 Feb 2024 22:35:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=6tel.net header.i=@6tel.net header.b="nRbP/S8m" Received: from forward500c.mail.yandex.net (forward500c.mail.yandex.net [178.154.239.208]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9786856B86; Mon, 19 Feb 2024 22:35:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=178.154.239.208 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708382133; cv=none; b=MTxUpGU9T8PWKm0iUoGYigZ0AWSY+4jq54/ZnQla5fCODmk4NfknCrGDoehyGy8PYTH06pMUCB4wO9AEhGp8q4J8DYP4tpTmUmGJa3EybN7k3PgCwzk1dMRTWwHVzEZb9F209b5zKOzKAbWzbIjpm8XU639ZWNw6rlD8X7LhbSw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708382133; c=relaxed/simple; bh=LPe5cBAQ5DxD9/GpxtQHs824wvR+g0xz5uetKcqrKhk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=rPGT21kaZO9jc4sC2kkWbCbjBF2zvs0mati9SUyZKKOA/O6btP6ER01tSBeuVMJkhiYYjss+jUQV+otYKCh91fNxlmFJ7IguWPI8bgr0z4q7WZ4XQPeVE790vqrOeacLIN1VeGexsRFb/qtvLP0DgwK0zkaNDWrzR7Hsp8/bybg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=6tel.net; spf=pass smtp.mailfrom=6tel.net; dkim=pass (1024-bit key) header.d=6tel.net header.i=@6tel.net header.b=nRbP/S8m; arc=none smtp.client-ip=178.154.239.208 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=6tel.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=6tel.net Received: from mail-nwsmtp-smtp-production-main-46.myt.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-46.myt.yp-c.yandex.net [IPv6:2a02:6b8:c12:3285:0:640:fd1e:0]) by forward500c.mail.yandex.net (Yandex) with ESMTPS id 3632260F32; Tue, 20 Feb 2024 01:35:24 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-46.myt.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id bYZIDNh7RSw0-x9YMRqpM; Tue, 20 Feb 2024 01:35:23 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6tel.net; s=mail; t=1708382123; bh=JI2cRwXvHUsxvJo/pXgFMq6i1VmcadyuSYPCZy3AMrY=; h=Message-ID:Date:In-Reply-To:Cc:Subject:References:To:From; b=nRbP/S8mwjF6pesBwuOv5WR4P3tM3nanelxFQkhnHfbsFR7RPbbX/AYTkMZdUaG+f stHi0m2suWduaRhjEQQkUZakYop6l+c5I5dYGBuB7djqU0KjeZn25hZcwtxwW990d8 9SzesQD0AbazpktNcdXC5B+F3DeCunoKjFZRofm8= Authentication-Results: mail-nwsmtp-smtp-production-main-46.myt.yp-c.yandex.net; dkim=pass header.i=@6tel.net From: efectn@6tel.net To: linux-rockchip@lists.infradead.org Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, heiko@sntech.de, sebastian.reichel@collabora.com, Muhammed Efe Cetin Subject: [PATCH 7/9] arm64: dts: rockchip: Add SFC to Khadas Edge 2 Date: Tue, 20 Feb 2024 01:34:23 +0300 Message-ID: <00942603f7e61ecb2a0067bebf6795dab3571613.1708381247.git.efectn@protonmail.com> X-Mailer: git-send-email 2.43.1 In-Reply-To: <5a7bd2cd8703e51382abfc11242de59d45286477.1708381247.git.efectn@protonmail.com> References: <5a7bd2cd8703e51382abfc11242de59d45286477.1708381247.git.efectn@protonmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791370011374434123 X-GMAIL-MSGID: 1791370011374434123 From: Muhammed Efe Cetin This commit adds SPI flash support for Khadas Edge 2. Signed-off-by: Muhammed Efe Cetin --- .../boot/dts/rockchip/rk3588s-khadas-edge2.dts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts b/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts index dfcdbec3534d..c2a329f151a1 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts @@ -299,6 +299,20 @@ &sdmmc { status = "okay"; }; +&sfc { + pinctrl-names = "default"; + pinctrl-0 = <&fspim2_pins>; + status = "okay"; + + flash@0 { + compatible = "jedec,spi-nor"; + reg = <0x0>; + spi-max-frequency = <100000000>; + spi-rx-bus-width = <4>; + spi-tx-bus-width = <1>; + }; +}; + &spi2 { status = "okay"; assigned-clocks = <&cru CLK_SPI2>;