Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1401230lqe; Mon, 8 Apr 2024 07:58:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXjq82LNMwQegGRb7GMnhwIXBFL5SpNi4hT5m3VtqRTLv6hDFs8tamBNggSltIPJ7d5De7O/fS7vir8LJCkjHBKCA+4zc4ifd56Z2YPUA== X-Google-Smtp-Source: AGHT+IE+5Jbhz28grXzZnu0HwUMqE5fnQSSeyzj3Q1glqlEVWoIFD2cbU0EPKu1yuvKaycCb6xf6 X-Received: by 2002:ad4:52c3:0:b0:69b:1125:ee9e with SMTP id p3-20020ad452c3000000b0069b1125ee9emr7959970qvs.13.1712588286121; Mon, 08 Apr 2024 07:58:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712588286; cv=pass; d=google.com; s=arc-20160816; b=a2SQrtJgydPTyaf3dsfsCTaSCf7bbaOmkbok55JLk+MeDBn6k50kNVsgZCwzRxdl7O RRl4DpfuDdVp81uf4eJ4WDIEuzEu3ezfjfILtq3ne4rcy599suVhjE6De/7GJvbisDh/ 4zzihTlaEOCcBIrbIM1V/trJOCBR6LvXS+XRQY0bLDvvKQNv+RAQZjo6X+X4sMvAYo1v 7PbRSmDgmoZ6sjxWJlWfz0CMwkI7b5hW6adbrtAuhgGHOUsyf1B2eJLLzAKrjlPoj0Ui HOtuINFW9CFIRYK+9xFalbMiuUKkx4IDJIrHt+GoG7pixEPT2kCDVVJzLIacvooW63FA fnWg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:from:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=Vrqed05exdnqCvLdsEGiIF00ILNQUOlq51lQmfBBM8s=; fh=Qj5gvrWeUS6s/XrIF89Hqc+60PfLOeFUSQa4nfkCGCs=; b=Md0bdOgCDr9tx3njus2SuP/CjxR5WMR/WCfYqygr56D6PQTmSm1WzNna8GQOd1pDSJ V0dFGZ7eHOeKmgBIgVbXTqFsH1/jA+oOOYlOx9SjBdY88rkTk9r62Yhab+yA2b4WEi2N 0Rd7CSMRHDGPMAprOQ+6n3uvsg0qvxID6x7bbUN5lncEFbobPt5tFQgG8Lj64lZwb4N1 Ho+7NF3EO8eglDdeOA7ff5+kAkGsh2s8l3/Xcy5d36HdAOTHv4Rwt3k5PcEFHTydnB4E nQ49olajTG6rMbBa0sgU25PkZSvpE8lACC5eaNTgZe6IX9MxavCF/uwcCp6lNpPat0dD FhYw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kwiboo.se header.s=fe-e1b5cab7be header.b=cHwhBQaa; arc=pass (i=1 spf=pass spfdomain=fe-bounces.kwiboo.se dkim=pass dkdomain=kwiboo.se dmarc=pass fromdomain=kwiboo.se); spf=pass (google.com: domain of linux-kernel+bounces-135565-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-135565-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kwiboo.se Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id z17-20020a0cda91000000b006990ec28721si8502895qvj.424.2024.04.08.07.58.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 07:58:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-135565-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kwiboo.se header.s=fe-e1b5cab7be header.b=cHwhBQaa; arc=pass (i=1 spf=pass spfdomain=fe-bounces.kwiboo.se dkim=pass dkdomain=kwiboo.se dmarc=pass fromdomain=kwiboo.se); spf=pass (google.com: domain of linux-kernel+bounces-135565-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-135565-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kwiboo.se 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 836281C217AE for ; Mon, 8 Apr 2024 14:57:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A16DD13F42A; Mon, 8 Apr 2024 14:57:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kwiboo.se header.i=@kwiboo.se header.b="cHwhBQaa" Received: from smtp.forwardemail.net (smtp.forwardemail.net [149.28.215.223]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3B55813F01A for ; Mon, 8 Apr 2024 14:57:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=149.28.215.223 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712588233; cv=none; b=A39Wkul9bniOmS/FYXgSype5SyXVNXToqo+p9PO5xomVeniWIDYHy8fdir7UwyrIY48qC+ISXGrykrCJMDxw9HXvh2+sD9ySOpfmaHs/20lAmb7qMQ94LQWRezK1OHJeoLnJ0ND9YyTcSGEmanowFb65t5m1Wl0UZxQYfpYXpbQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712588233; c=relaxed/simple; bh=ZL5WxRd6xX5YwWDXJ0UNj1PKwdcUln7meecPcR7SOyc=; h=Message-ID:Date:MIME-Version:Subject:From:To:Cc:References: In-Reply-To:Content-Type; b=sa9IUdT6ytSp/W/3AYEwN0c0HB3HxTh6wjoeMrwqNkeqQMsQng5Z2b128TzK9jJqQMAwfubFgvRmZcqS3P3CbbAD8dr0j/lN7gx5oIT/gCrB0xSM7O13IQ8R3zG8COfT6qMKTNOU4skGmfL2EOK4Y1ejslmZajO0/KShd0yI96c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=kwiboo.se; spf=pass smtp.mailfrom=fe-bounces.kwiboo.se; dkim=pass (2048-bit key) header.d=kwiboo.se header.i=@kwiboo.se header.b=cHwhBQaa; arc=none smtp.client-ip=149.28.215.223 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=kwiboo.se Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fe-bounces.kwiboo.se DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kwiboo.se; h=Content-Transfer-Encoding: Content-Type: In-Reply-To: References: Cc: To: From: Subject: MIME-Version: Date: Message-ID; q=dns/txt; s=fe-e1b5cab7be; t=1712588227; bh=Vrqed05exdnqCvLdsEGiIF00ILNQUOlq51lQmfBBM8s=; b=cHwhBQaa94tEYSoDZUSED06sXUlf1O7V2Iq3tWYOej0f4c6whydMrhWFlEg+8aZxvuo3WVDpW sNsV+B3plUjuWUjaK6FuHb5XU8D4bwjCONjLsLBy6dekfVnUQJesjygtAdqOVVvQgcmsMmUe9f+ KstEVBP5JkieE9k/bWIOHG8yFva52i8tVtLbfeTPsVf+zORvR9ViFfVewiZZt6kGRGrLU+nlj9C 2AlA/eG3cRrqi+d3L3/7mqmHgqSFdgbH/nwAl3OmpImuJRNUR8XwtpnPiNGlOx0iaHY76dRdCY+ z1SWM5h1X+Hm0bNu+qbdlbVVgdg6fme0/OMmJRM5RClA== Message-ID: Date: Mon, 8 Apr 2024 16:56:59 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/1] arm64: dts: rockchip: enable onboard spi flash for rock-3a From: Jonas Karlman To: Chukun Pan , 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 References: <20240408124005.182565-1-amadeus@jmu.edu.cn> <421ab43b-ff92-41c6-9904-3c7681c926be@kwiboo.se> Content-Language: en-US In-Reply-To: <421ab43b-ff92-41c6-9904-3c7681c926be@kwiboo.se> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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, 149.28.215.223 X-ForwardEmail-ID: 661405c13464f70b49a230b8 Hi again, On 2024-04-08 16:44, Jonas Karlman wrote: > Hi Chukun, > > On 2024-04-08 14:40, Chukun Pan wrote: >> 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 { > > This is missing: > > #address-cells = <1>; > #size-cells = <0>; > >> + status = "okay"; >> + >> + flash@0 { >> + compatible = "jedec,spi-nor"; >> + reg = <0x0>; >> + spi-max-frequency = <50000000>; > > At least in U-Boot the spi clock only support 24, 100 or 200 mhz and I > am pretty sure the spi flash support 100mhz, so I would suggest you test > with 100mhz, same as used on other rk356x boards. Sorry, looked at spi clock instead of sfc clock. sfc clock support 24, 50, 75, 100, 125 and 150 mhz. Regards, Jonas > > For U-Boot I have used 24 mhz for rk356x boards not defining a flash@0 > node in linux device tree, such as the rock-3a board. > > Regards, > Jonas > >> + spi-rx-bus-width = <4>; >> + spi-tx-bus-width = <1>; >> + }; >> +}; >> + >> &tsadc { >> rockchip,hw-tshut-mode = <1>; >> rockchip,hw-tshut-polarity = <0>; >