Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1428266lqe; Mon, 8 Apr 2024 08:37:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUhQZ3BHT0aef7lR6tDb3dqLpC2jcTAviYQuvdElmiRNjdq5BnPIiLPVla7b3oU0zzFHFvuakxr+IcJXBhB1e6Ev6fnwHrHAzZ4qZB3Dw== X-Google-Smtp-Source: AGHT+IF0QKWf7B2wKjLIv67aBTFZqklcGaCAQGFSQ7Zf+4U3BVBhVi0tkqEhO/vbq+Q/Tx/X7f2v X-Received: by 2002:a05:6358:d598:b0:186:7ed:3ad6 with SMTP id ms24-20020a056358d59800b0018607ed3ad6mr6638048rwb.5.1712590656696; Mon, 08 Apr 2024 08:37:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712590656; cv=pass; d=google.com; s=arc-20160816; b=WMWMexzy+QGpcRUWH+MxvyMGtT9N8SXOtxMrHB3l5N9caMwynrxsbPkstPUKMuhCdS 9xZi9VD7Fs0s/VKGEIT3/Z9TiGvlrT0aMi7nMD3PrILAljhl7Y2tcNwjemRHn84APOnV laKNu9Wlw5QdwKIwEklfPQdpWTiMW9B26LU7roMUFvU0dfe1I/Cmopm/+JHen5nIeHQk IyCq7cu6dNM0LeEpjDCkMRjpFfxuQj4A3A1ri6Oz3F+HkLU6+oNcwA68y6nsRtbYAkxa LJGuFWA8yyc4O66gORc5H+UkprL8YWMrVvKXnvdY8//9WWUGcAy0R9AuSkI3x5oI5S5x awTA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=4Z0LBlRO9DzPCsRdqe9rsbK3UJ8PBblYy0Cmk5n/lz0=; fh=C1TMgbF+vU3Qp35hysq/5epqtVYW4UzYrcMmx2HNpPE=; b=HFnwR4ENmKwZhdW/59fqSqJ1yTgBOSAfItTcHucq4wKF8Z4d/pXa/EnTw68z3WZG+S pjiYA0YloCKVS96RPMwersGnzOAuDmjX0V4JkVKkTrkrBwOGD3K+RRG4KqWnU+7TfU62 mriLYTYQDbzgyZyxi/SgQfok0TYD1ku3IxGSwW0dpUOquM/shY7YiAZA5ptBWT6jigSB ljaGZ3zgQyUqy0zNiVEavSL2RAa2P1+Nc2dlRVdubwubN9fRo++xQAXLKnUaCQO5OuyU js/0bX9bK7RHbzTPHDspGAMsqt+q5DGk3q6sbcjQ39B4JQQfo75c8bBSYOtfbW3CsofE D7Yw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kwiboo.se header.s=fe-e1b5cab7be header.b="As/SAD4H"; 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-135582-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-135582-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kwiboo.se Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id p9-20020a63ab09000000b005e838a81bf7si6593959pgf.480.2024.04.08.08.37.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 08:37:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-135582-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; dkim=pass header.i=@kwiboo.se header.s=fe-e1b5cab7be header.b="As/SAD4H"; 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-135582-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-135582-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 8332AB22D89 for ; Mon, 8 Apr 2024 15:15:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6A06913F458; Mon, 8 Apr 2024 15:14:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kwiboo.se header.i=@kwiboo.se header.b="As/SAD4H" 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 1661413F446 for ; Mon, 8 Apr 2024 15:14:53 +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=1712589295; cv=none; b=hLq+70c8drtcO7AIHkXJzfCveix3meV7IdzPhllkgeS5/DJODPhXlHgU3Qdk1QlvimjmRut8MdDOcWe6U2w28/Qx4VhUjaXYHEe/X26kVWActlxAe/yIHi7dMSrxRmlFTSXIJTVtnbJbJOqs7I6BMb5z+F4GgP9PrdqJUsrk0aI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712589295; c=relaxed/simple; bh=+kNnKO0fDHO+c634OAXCZq6G+lN8r31DQX28xKeAm2M=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Fs84/4Wi/ExuRdHvj/ekufJchgABZm/OIlvpszBGibZVbdGTgu+6A9Q+e38BbupWtKa9ZjHpFALu6ROoE7t4iP4i+IAlNQzyTWgSQ8VQhOwQpNEInHRsCwoVHBLLEwePmKYq6GI+5K9zPWAhtDU+y8uKaV7HLv4MBKPyCnFDFzI= 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=As/SAD4H; 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: From: References: Cc: To: Subject: MIME-Version: Date: Message-ID; q=dns/txt; s=fe-e1b5cab7be; t=1712589287; bh=4Z0LBlRO9DzPCsRdqe9rsbK3UJ8PBblYy0Cmk5n/lz0=; b=As/SAD4HXF91//0fKggr1TGq+grPgujAJk7MYEagQNIoLbcfcp9Hedu8VfM12QmaKk4vH1mfX yFNC8l32zugzKq/QTO7Pcq0XMlTRzNsqjexMFwNm+0lLW7RCh7SsW4PLoLkQc7Q0Qw07nnJ0h5R Xi/b82kks3ZXaMsnxjYUoiitkNkLKNGDQ0NsvAs8UedNnXS4zSdY01qU8jdJjJs/IIWckImuKN7 Z+/PJ3kJK3Yk3dxrXDejogFvk/vx4hBuebytqAF4xP7Ob+H8Y0sx2QA9QProjyMggza6rlxWToO oPGT0Qu5Sd3Y8nD8yVaRa73U8eFmpEYwpbejH4hO03zw== Message-ID: Date: Mon, 8 Apr 2024 17:14:40 +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 To: "=?UTF-8?Q?Heiko_St=C3=BCbner?=" , Chukun Pan 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> <3066222.xgJ6IN8ObU@diego> Content-Language: en-US From: Jonas Karlman In-Reply-To: <3066222.xgJ6IN8ObU@diego> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: 661409e594faae8761be3e7a On 2024-04-08 17:04, Heiko Stübner wrote: > Am Montag, 8. April 2024, 16:56:59 CEST schrieb Jonas Karlman: >> On 2024-04-08 16:44, Jonas Karlman wrote: >>> 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. > > I think in some previous discussion the agreement was that the node > should specify the max frequency the flash supports and have the > controller worry about its own clock ranges. Interesting, sounds like there is a need to do some modification to spi and clk drivers in U-Boot to support that. > > Though in this case the 50MHz for the flash even matches the clock > frequency supported by the sfc I think the on-board spi nor flash support 104/108/133 mhz so 50 mhz is wrong in any case. Regards, Jonas > >