From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A035BC4332F for ; Sat, 23 Apr 2022 05:31:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233405AbiDWFe2 (ORCPT ); Sat, 23 Apr 2022 01:34:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232594AbiDWFe0 (ORCPT ); Sat, 23 Apr 2022 01:34:26 -0400 X-Greylist: delayed 20033 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Fri, 22 Apr 2022 22:31:28 PDT Received: from relay5.mymailcheap.com (relay5.mymailcheap.com [159.100.248.207]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51BB1FE7; Fri, 22 Apr 2022 22:31:28 -0700 (PDT) Received: from relay3.mymailcheap.com (relay3.mymailcheap.com [217.182.119.155]) by relay5.mymailcheap.com (Postfix) with ESMTPS id 1C111267D0; Sat, 23 Apr 2022 05:31:27 +0000 (UTC) Received: from filter1.mymailcheap.com (filter1.mymailcheap.com [149.56.130.247]) by relay3.mymailcheap.com (Postfix) with ESMTPS id EEA4F3F1CC; Sat, 23 Apr 2022 07:31:24 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by filter1.mymailcheap.com (Postfix) with ESMTP id 57F4B2A381; Sat, 23 Apr 2022 05:31:24 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at filter1.mymailcheap.com Received: from filter1.mymailcheap.com ([127.0.0.1]) by localhost (filter1.mymailcheap.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YEHmTA3SD66l; Sat, 23 Apr 2022 05:31:23 +0000 (UTC) Received: from mail20.mymailcheap.com (mail20.mymailcheap.com [51.83.111.147]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by filter1.mymailcheap.com (Postfix) with ESMTPS; Sat, 23 Apr 2022 05:31:23 +0000 (UTC) Received: from [172.16.34.145] (unknown [113.67.11.122]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits)) (No client certificate requested) by mail20.mymailcheap.com (Postfix) with ESMTPSA id 38EB74006D; Sat, 23 Apr 2022 05:31:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=aosc.io; s=default; t=1650691882; bh=g9PVntZETFP3PiINitLsKvCpqEA6kduEWlmT66OnNaY=; h=Subject:From:To:Cc:In-Reply-To:References:Date:From; b=nyNp9e1mtl6wPyBfkzxEX82PEKTLHh8OxjZF4JoNwlg8x8SWNGzHjqEtJEljp5NBS wH16U+wpbQ4tF8i8vaF0o0sIjZ3wgz3DMzyVgVE8uekVP0DSeSzyETz6IESm5obThX FQ0oIpZ9GB/Z5tGOqvOUAeDxvZ+WpGA2JoVsKqzo= Message-ID: <1285f34e9b1b02f6808cd7c51abadc1bf178c2fe.camel@aosc.io> Subject: Re: [PATCH 4/4] spi: sun6i: add support for R329 SPI controllers From: Icenowy Zheng To: Samuel Holland , Mark Brown , Chen-Yu Tsai , Jernej Skrabec , Maxime Ripard Cc: linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org In-Reply-To: <0b5b586a-3bc7-384e-103c-e40d0b2fac23@sholland.org> References: <20220422155639.1071645-1-icenowy@outlook.com> <0b5b586a-3bc7-384e-103c-e40d0b2fac23@sholland.org> Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Sat, 23 Apr 2022 08:01:00 +0800 User-Agent: Evolution 3.40.4 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org 在 2022-04-22星期五的 18:59 -0500,Samuel Holland写道: > On 4/22/22 10:56 AM, icenowy@outlook.com wrote: > > From: Icenowy Zheng > > > > R329 has two SPI controllers. One of it is quite similar to > > previous > > ones, but with internal clock divider removed; the other added MIPI > > DBI > > Type-C offload based on the first one. > > > > Add basical support for these controllers. As we're not going to > > support the DBI functionality now, just implement the two kinds of > > controllers as the same. > > I'm curious what speeds you were able to use SPI at. On D1, with > effectively > these same changes, I would always get corrupted data when reading > from the > onboard SPI NAND on the Nezha board. However, if I enabled the "new > mode of > sample timing" (bit 2 in GBL_CTL_REG), I got the correct data. Oh my usage never read from device now, because it's a write-only MIPI DBI panel. > > Regards, > Samuel