Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp1020957pxb; Fri, 22 Apr 2022 17:02:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzJ6rHwHDEoTY1D/sc8LXz2Kf5ltFbT/b7nSgXTjzAVvO1xEa0lBJ0EESqDDVUVcvXZAqKf X-Received: by 2002:a17:907:8a1a:b0:6ef:fb70:1c4b with SMTP id sc26-20020a1709078a1a00b006effb701c4bmr6224463ejc.342.1650672153646; Fri, 22 Apr 2022 17:02:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650672153; cv=none; d=google.com; s=arc-20160816; b=H7nJgHgPnoViBVy6vDZ3nhLUQCKK4ImkJJpml1V/LqGZbPbFGnondxYx2pkxHy5wnI RRjrxR9FrdeqJ5rbHrkr2NPuQPbST6d7ZazxtMxU1uRS7+IDUYmGQINIi8J7CaHE25gW fDL5Z9YiJ0hqc3PW0aG7+OkgA5whpz4MdFBh7wsRksX+BBjMcVBE7YYbIpVFGhfCZXCF 6/EA5aCC1FvL62quC/dLF7oixxOxuqcO+zSgPoCV6L4YI7ooMrvcX4HjvFE1LC672ltG CDRXisbfPSP3ElxSsj8SOk1Ma1v2bBI8TlteCbOQQ4ozfdUFRBZ6w3CyOqeKWbjCg+S7 9oRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature:dkim-signature; bh=1DNkCHeOifFsJRyGMhbpFp3MTz6/6weEK88Rr9bZ3ZA=; b=y4cp4lpIwHP7hRLXyeyLQNrB2b51dUZK6COpQauCD9UEwTJZKhMsYtzW8/eMJVqC7P cgbLKQVAFgn0eSrKfGjQfzQIiPXvrbckDUcoHs8KyHZjhNGPSVerv72t9/ihBs4//H3Y Yw8NJKnbRsXMQHegDYOpcP3N5oZnRjLSD3Y9CNtmrO8bWhmRTDrOlfPHHZp2GV3eLP9y fUsEIdZohcw+iV5PL7LEdBnVD2UMtjI2/aLGNe7XUKJKbTCLEH7r+DvgqTjdRSaeoJUt vouUtKJA9v7egz7tcT72S0Ju03gjpXT0W6JgZVJkWPaKZd30P+lwtFIQ2I6PwgU6rByN x1bw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sholland.org header.s=fm2 header.b=FKYetXTo; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=BZc1wxOg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y7-20020a056402270700b00423f53f637fsi7497052edd.32.2022.04.22.17.02.09; Fri, 22 Apr 2022 17:02:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@sholland.org header.s=fm2 header.b=FKYetXTo; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=BZc1wxOg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231207AbiDWAC4 (ORCPT + 99 others); Fri, 22 Apr 2022 20:02:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34078 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229774AbiDWACv (ORCPT ); Fri, 22 Apr 2022 20:02:51 -0400 Received: from wout4-smtp.messagingengine.com (wout4-smtp.messagingengine.com [64.147.123.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 926B820904A; Fri, 22 Apr 2022 16:59:56 -0700 (PDT) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 101CD3201DDC; Fri, 22 Apr 2022 19:59:54 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Fri, 22 Apr 2022 19:59:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm2; t=1650671994; x= 1650758394; bh=1DNkCHeOifFsJRyGMhbpFp3MTz6/6weEK88Rr9bZ3ZA=; b=F KYetXTozCu9rvjQAKzCHuv2k6hSYelWf1pd7VvmmgXNJUy0QHL6MwTiWlk41uBvX o5HKm8FWIK9hAOD4WbAaIl2ZItTsJqwvlAOowCLTWTAdOy8UbSeNvyF/68BGkiIi qUS6JaJJG3LbLr8c7c/LKQFmBieRdkbRATuJE9ef8nmIDV+/hrjL1B2lfY352ewu 2lnr7bUCkJmnnDFZxWa+4oYVEhjF/YYpwtAup0x19crIXwgjPJUeQ1dlEjwHWc1h SvHq5dUi370H/jO369RCTI4ivI+1OINa5zkoE7T2t4uL0KGYNWH5+/OcQSZP1RrT +AOzJOrx3eoEO7qWww02A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1650671994; x=1650758394; bh=1DNkCHeOifFsJ RyGMhbpFp3MTz6/6weEK88Rr9bZ3ZA=; b=BZc1wxOgO5jcwqqPEV9NMLulKnsOJ ybH6a072+rIlBKzB2xZPB/5dtb5OPlEuURpdA6UuZoFNJiadQFar+O+GBTrBOu6f Jm5XI2bGzxr1CtrFeEZzjOo9Hq4aPhCySif6R79VQEuLzwg4sDVkymEvfkIRIAKM VgIWTDxO4gfinvwEkezgRVm4wrf2ALUx6KlY47h0Obx6ITxffyUmb1XXs8FCi6RL qpC4+zgMUDKq60+tS+sL8aT7GOs5qL3MnjnYRsSsTW6MaNlcc1gTyj54CN74yGtp vqYlJ3Nwe0uStqDZr1RRCWdLNwmnjvzkF5n+lkXdon/bVcFuuW7asjihw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrtdehgddvlecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefuvfevfhfhkffffgggjggtgfesthejredttdefjeenucfhrhhomhepufgrmhhu vghlucfjohhllhgrnhguuceoshgrmhhuvghlsehshhholhhlrghnugdrohhrgheqnecugg ftrfgrthhtvghrnhepffdtveekvdegkeeuueetgfetffeileevudekuefhheelvdfhiedt heduhfduhefhnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh homhepshgrmhhuvghlsehshhholhhlrghnugdrohhrgh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 22 Apr 2022 19:59:53 -0400 (EDT) Subject: Re: [PATCH 4/4] spi: sun6i: add support for R329 SPI controllers To: Icenowy Zheng , 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, Icenowy Zheng References: <20220422155639.1071645-1-icenowy@outlook.com> From: Samuel Holland Message-ID: <0b5b586a-3bc7-384e-103c-e40d0b2fac23@sholland.org> Date: Fri, 22 Apr 2022 18:59:52 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Regards, Samuel