Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1328428lqe; Mon, 8 Apr 2024 06:08:03 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUarvrp/mvaKVY9QXyRf/ttuTawP1heefztzVnwZ7WoUV82LUa1BDbVlK0L7lBVuauTXgYmFYl3Mat7cWIJe5Hq1ygK6l61pP+ObO+5vw== X-Google-Smtp-Source: AGHT+IElEZ7x6EeBwHQ5vH8FRHp4ojXMcKWmXWkA+D8MeL8/klR7H1cQwaAp+CahVgTSGv0ShTYw X-Received: by 2002:a17:903:2990:b0:1e3:e081:e7f6 with SMTP id lm16-20020a170903299000b001e3e081e7f6mr8787365plb.66.1712581683714; Mon, 08 Apr 2024 06:08:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712581683; cv=pass; d=google.com; s=arc-20160816; b=zVVrUf2QMPmKJ7bXpj853JNSHr2lCUKsxfjW1griG7Gm/qJl7gzLddEVihIuT9rVWv BMBRHZXTfgP0eTpRCTvPMEGCBxab0NzjDefwqkyKNR3JvF4iAl3b4QbOG6CB8S5DdGrz GRZtBI0Y3sN0OlOIoqPwQLUOx8zS/zDOimcXUkCPOYNIsfQrCum6RijKZntQRxq6Q1wY sNUxcYtwQpXT90qTPwgNTJ9z3GoyH/nUJZ/x31D+l5v80EPUJ2BQt+s2ZrZ6Pra6bnvP EY6MkwUPtAEFymaUNenGeNneG+5LJz2Yf4ag5cdR+cxPAp11GWu687pHDnZ0HWhRJ7Sl lqOg== 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:message-id:date:subject:cc:to :from; bh=yVEupWQ5nYb+1ZICBUuss1yE8rVbdmo3Sgmj4rlLL5c=; fh=GWA8ymXkokIeKGvWBMNTnllBwA0WIftq2pjSbLvcJ60=; b=JZc8W4BG0K8vwfUsed4MfT2+aXGaQBDO9MVtruuPxs8dpXgzl4AykGd7uQ2mHMyXrI hm1KD9vLDA7pVwEWQXM+OPXqGFyXj2MkDpZJFunbqKkbd8E1kzyVfEw8HJojZwBWKwSj NzimDFCEOr8S5Geu3NXExo6xUcC4pWmpvjxcRsdq5fl1pYDUl+V02uEIm8oYpUMJq9t2 +LuJwUmXTkHL+NuJxW9hdrtnEXOmoGxdcRKokfYtZxJ8JOsnk16RbGNZ398ikE/Kx20e +TjDGmQdYx0SRJQqkHSUlqQRfi9CcB5uK7gzd3Zhbj8dIVqMEc+MKCpaOnoq7Zr1Tp10 N6JQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=jmu.edu.cn dmarc=pass fromdomain=jmu.edu.cn); spf=pass (google.com: domain of linux-kernel+bounces-135351-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-135351-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=jmu.edu.cn Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id b2-20020a170902ed0200b001e0af97a0bbsi6250801pld.433.2024.04.08.06.08.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 06:08:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-135351-linux.lists.archive=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; arc=pass (i=1 spf=pass spfdomain=jmu.edu.cn dmarc=pass fromdomain=jmu.edu.cn); spf=pass (google.com: domain of linux-kernel+bounces-135351-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-135351-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=jmu.edu.cn 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 179DDB26D33 for ; Mon, 8 Apr 2024 12:46:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A0878757FF; Mon, 8 Apr 2024 12:46:14 +0000 (UTC) Received: from mail-m49198.qiye.163.com (mail-m49198.qiye.163.com [45.254.49.198]) (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 75AF174267; Mon, 8 Apr 2024 12:46:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.254.49.198 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712580374; cv=none; b=tAbGTFOE/4XsvgUb6qutV7w7l3sKD1UAkY3OnoCMPCW0nnBTcmx653GoNB+swnMbTtHlt7t7B+qaDJcml9qAueea0XQUPtGDXsLQOxN1KnN8fmVTad5ewmK0Q2jFLUqRz8qnvtbZolBkd4cczAeVQyaXFsnVzOIjwek6/eoVw0s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712580374; c=relaxed/simple; bh=bHERJTLT8zBhplQm5nyHmVmmC98fDNKu15QS6DQ0fWQ=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=XHxkwiFotq0Xj6MIvPjVJkWvcROwEmYH0Q05nFI48aYpNGF9bbYehJ58B2euSMK/l07iRi+ipo5MA1BdqZUFd0euI6cgysW4ou6Lc+gnyuC0OI/yMR41Li212OxuxlpM8pFNKjAzQaru//WGCVlekXWC2zm3RWQzsTgKqwOmnlk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=jmu.edu.cn; spf=pass smtp.mailfrom=jmu.edu.cn; arc=none smtp.client-ip=45.254.49.198 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=jmu.edu.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=jmu.edu.cn Received: from amadeus-Vostro-3710.lan (unknown [IPV6:240e:3b3:2c00:8840:aaa3:4cf8:b210:c09d]) by smtp.qiye.163.com (Hmail) with ESMTPA id 446BB7E013A; Mon, 8 Apr 2024 20:40:10 +0800 (CST) From: Chukun Pan To: Heiko Stuebner Cc: Conor Dooley , Krzysztof Kozlowski , Rob Herring , linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Chukun Pan Subject: [PATCH 1/1] arm64: dts: rockchip: enable onboard spi flash for rock-3a Date: Mon, 8 Apr 2024 20:40:05 +0800 Message-Id: <20240408124005.182565-1-amadeus@jmu.edu.cn> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFITzdXWS1ZQUlXWQ8JGhUIEh9ZQVkZGBpIVksaGENPHUlJHUtNT1UTARMWGhIXJBQOD1 lXWRgSC1lBWUlPSx5BSBlIQUkYS0tBQ0NPS0EaGhpIQU8YHUNBGUlKS0EYS0IfWVdZFhoPEhUdFF lBWU9LSFVKSktISkNVSktLVUtZBg++ X-HM-Tid: 0a8ebdb921fc03a2kunm446bb7e013a X-HM-MType: 10 X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6Nyo6CRw*SzMRSiIhDCIWLDot HT8KFAxVSlVKTEpJTkNLS0pLQ05MVTMWGhIXVRoWGh8eDgg7ERYOVR4fDlUYFUVZV1kSC1lBWUlP Sx5BSBlIQUkYS0tBQ0NPS0EaGhpIQU8YHUNBGUlKS0EYS0IfWVdZCAFZQUlLT083Bg++ There is a mx25u12835f spi flash on this board, enable it. [ 2.525805] spi-nor spi4.0: mx25u12835f (16384 Kbytes) Signed-off-by: Chukun Pan --- arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts b/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts index a5e974ea659e..d8738cc47c73 100644 --- a/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts +++ b/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts @@ -757,6 +757,18 @@ &sdmmc2 { status = "okay"; }; +&sfc { + status = "okay"; + + flash@0 { + compatible = "jedec,spi-nor"; + reg = <0x0>; + spi-max-frequency = <50000000>; + spi-rx-bus-width = <4>; + spi-tx-bus-width = <1>; + }; +}; + &tsadc { rockchip,hw-tshut-mode = <1>; rockchip,hw-tshut-polarity = <0>; -- 2.25.1