Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp6773370rdb; Tue, 2 Jan 2024 12:57:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IHOiQPK/QJSI80EkfMatDwuP+fbISTj2LuCWAComdS3Tf5BERqiYnXSBn74TW6TUG4kNhNV X-Received: by 2002:a17:906:6801:b0:a24:1e0e:ccb2 with SMTP id k1-20020a170906680100b00a241e0eccb2mr31777ejr.61.1704229027060; Tue, 02 Jan 2024 12:57:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704229027; cv=none; d=google.com; s=arc-20160816; b=U5JF8K6cwV9PPl1Ruq+8FlsBNW01MGpGGfrUORMuAExTdOFW3l6LYfYszjKSv5l6rR bcK3re0kfb6O/x9ctGYe0cT19jwm/qRReapTMrCQX1Hp42l30X5YoMLOkk5PdITBuVJZ ZdMWNsBJz0vCz2XXIshpTDgfqbcUVvzXaPFiiJ1/gkmIzeJTlf1NknPjVEqriEzWv46u wfHZlRdGuNn4BzRTCA4Ecyclqx3HP/q67Q6JzuPPbSoUwvDG2oIwMHjAkrYbckTK/v7C huulLQhUCCMspvLMxd5bgjXw/7nSlitbMwZbWycvt24iGhA6hrv4OUiRvRVyuROsF9CO FZBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=ccZgqPCrJ4T9GeS8WnNP4L0gon1xZyOTx7zhUGDzNNc=; fh=Az189JvVNObuwDXH3/sTImMmhh8gYUgcPIVLN9QOqCI=; b=P+q5QdHKSxg2/KGPwkTy+siLg6M11EyxafdGjJKNM9fndsFT3zlVNfyaXqiPYLiFjS Ru1gkSjcvpzb8R/vEmmqDwyTnR7Ef6IFqBAzHGlc2hwL2ozmH5q4zqm356ib/z7bFAIp iD2PZoba/Ah/XNqXubSOeC3o5uDrm4pDKAC31rbZbS1aOwcC+h2kQdrNKE3QkrTLwMdS wDKsmkp5x3yNsLq9rytduogF49qjxY2s6aPbiFnXeou/1d2beC+M7oDNcR7W4UK+VtV8 1dvCT51THa+OCm+Gdop35DioZwfk8i2XVsb2fQBKTzhplGxm24/QsGPO751adrDO6f8g XuCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kwiboo.se header.s=fe-e1b5cab7be header.b=DaH0KB+5; spf=pass (google.com: domain of linux-kernel+bounces-14813-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14813-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kwiboo.se Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id fg24-20020a1709069c5800b00a26a97f2653si10003412ejc.96.2024.01.02.12.57.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jan 2024 12:57:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-14813-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kwiboo.se header.s=fe-e1b5cab7be header.b=DaH0KB+5; spf=pass (google.com: domain of linux-kernel+bounces-14813-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14813-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 am.mirrors.kernel.org (Postfix) with ESMTPS id CA1EA1F218D7 for ; Tue, 2 Jan 2024 20:57:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 688A016428; Tue, 2 Jan 2024 20:56:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kwiboo.se header.i=@kwiboo.se header.b="DaH0KB+5" X-Original-To: linux-kernel@vger.kernel.org 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 B2113168A4 for ; Tue, 2 Jan 2024 20:56:55 +0000 (UTC) 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: To: Subject: MIME-Version: Date: Message-ID; q=dns/txt; s=fe-e1b5cab7be; t=1704228988; bh=ccZgqPCrJ4T9GeS8WnNP4L0gon1xZyOTx7zhUGDzNNc=; b=DaH0KB+5QYKAOAnRy5h6rDe5fjTgNdsmF4lFOcqxdsv3vpukMlnHOv9ESNFhq+KfIwTeEKjXk 2e0KzMSn/FK6IZOrohCBq/jCd4TuUYAG9537LgfPP+JlRDIicnd0BEfneaXY3FbPeGGH5G3uPT3 PWqOEyLrX/S5lF8VUuLcQRWjen8bSmSxMlTH/cBvzOGFx+lXlK5Y8DkoIRrCyyNhD744o4kIY/K 56xbC4S1K5Ay/0LwhOpghd94srR0A79K/xSildlCid/akMIkCE1rD3e+MpoiaJL94eRnmWvq4aL 0vADC7dkPJOL8y3mshEqBZdKpAphrV424solT5lwvJlQ== Message-ID: <903e9d0c-a00c-4214-9f0e-dd676b13b428@kwiboo.se> Date: Tue, 2 Jan 2024 21:56:20 +0100 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 v3 4/4] arm64: dts: rockchip: Add devicetree for Pine64 PineTab2 Content-Language: en-US To: "=?UTF-8?Q?Ond=C5=99ej_Jirman?=" , Manuel Traut , Neil Armstrong , Jessica Zhang , Sam Ravnborg , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , Sandy Huang , Mark Yao , Diederik de Haas , Segfault , Arnaud Ferraris , Danct12 , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org References: <20240102-pinetab2-v3-0-cb1aa69f8c30@mecka.net> <20240102-pinetab2-v3-4-cb1aa69f8c30@mecka.net> <775vjfucu2g2s6zzeutj7f7tapx3q2geccpxvv4ppcms4hxbq7@cbrdmlu2ryzp> From: Jonas Karlman In-Reply-To: <775vjfucu2g2s6zzeutj7f7tapx3q2geccpxvv4ppcms4hxbq7@cbrdmlu2ryzp> 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: 6594787c1cdb56bea851e248 Hi Manuel and Ondřej, On 2024-01-02 19:07, Ondřej Jirman wrote: > Hello Manuel, [...] >> + >> +&sfc { >> + pinctrl-names = "default"; >> + pinctrl-0 = <&fspi_dual_io_pins>; >> + status = "okay"; >> + #address-cells = <1>; >> + #size-cells = <0>; >> + >> + flash@0 { >> + compatible = "jedec,spi-nor"; >> + reg = <0>; >> + spi-max-frequency = <24000000>; > > That's a bit on the low side. The flash chip should work for all commands up to > 80MHz https://megous.com/dl/tmp/b428ad9b85ac4633.png and SGM3157YC6 switch > for the FSPI-CLK should have high enough bandwidth, too. I agree that this is a little bit on the low side, it was a safe rate that I used for U-Boot. U-Boot required an exact rate of the supported sfc clk rates: 24, 50, 75, 100, 125 or 150 MHz. Please also note that the SPI NOR flash chip used in PineTab2 is not a GigaDevice GD25LQ128E, it should be a SiliconKaiser SK25LP128, same as found in the Pine64 PinePhone Pro. > >> + spi-rx-bus-width = <2>; > > GD25LQ128E supports quad I/O. Maybe try 4 if it will work. The schematic only shows fspi D0 and D1 connected, and use the D2 line for eMMC_RSTn, so spi-rx-bus-width = <2> should be correct. > >> + spi-tx-bus-width = <1>; >> + }; >> +}; >> + Regards, Jonas