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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C8938C7EE24 for ; Mon, 5 Jun 2023 21:07:47 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E78CC85958; Mon, 5 Jun 2023 23:07:45 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="hfI6c8+n"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id EB08885958; Mon, 5 Jun 2023 23:07:44 +0200 (CEST) Received: from mail-il1-x135.google.com (mail-il1-x135.google.com [IPv6:2607:f8b0:4864:20::135]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 87254846F6 for ; Mon, 5 Jun 2023 23:07:42 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=cfsworks@gmail.com Received: by mail-il1-x135.google.com with SMTP id e9e14a558f8ab-33b1e83e204so20580855ab.1 for ; Mon, 05 Jun 2023 14:07:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685999261; x=1688591261; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=O5hhroOkwJCBWtCGfW3mOgN/GzO7eiDJ26RWJ0/vXBo=; b=hfI6c8+nyixX+lvgJ+ShvcEE8b3JT0j2uzf5uDljMR+lpj/RipKpWA5Pcgh8E4vfZ4 9HH+yOqSAhvAk1ml5kK4JCoHdgQrK6IqqLNXKn6qpoj1l+oWanhP0fKBYj66Bas8u2P6 Nc9G1I1DvjT/qeA+X3Nl6woCklhQNuI/06MET43JklswqB1SAcea+2hD7KPygPI34Kmp L0AXaFVgtjQJqs3nIKS1CvVE2g2UiKEhIZ8qAaWGCXvVRVZaUNsDmkayykFhaGt5peOr 0dFr7BGYPPsVq7SO0zFYjy6pScHtITY1aY5j53XdkEW1VMekSGKQW7r1vlsU30IV7pDx IzJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685999261; x=1688591261; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=O5hhroOkwJCBWtCGfW3mOgN/GzO7eiDJ26RWJ0/vXBo=; b=g7uvy4/3aH7290a1SzFF6D2h56ff4FyVVWUtvMwCtJaFdENCjJwbkLhWBRLd9n8mLK Lj0TTkEozwQAu+GSxfSp0ptWJoeGM0OEB0qinOCRRajkMcdoBVlTHfWMjKekCOa7Zf86 MMIsnSJHW4bIeuZvOTR4zRiUIR7oSzlj+OyjlzXz8jScdhFatPEjqkM49Xn2NBXk2vW0 b0X1d39bDt8+nE+meCEOQPyX9dTDvvcUqnSRJqmUHHfnl0xkMyNO5NuNyPc8jw/ZQK7y RRhHjvv+Hk06SiNCXRbLIYzOYQKfwsYIl4VFoNvi92LiaTtCwPegwnUmizFiR+JFdbTY xVog== X-Gm-Message-State: AC+VfDwkiPBN/xq+8XNChBTe9fEiBe5sIlHUMd2/lXqwxuSe9BSzQrKM x+IKTofnLCfnKMmqtFAcDvG5zDDiVhj6PSyF X-Google-Smtp-Source: ACHHUZ5iih0Iw0inBAgV/Ldj4vEJ8WV/GfVtbhaic1/2QRsW5Phl6qx8rHgm7appQpPFR4e2WiP54g== X-Received: by 2002:a92:ce85:0:b0:33d:6536:46e1 with SMTP id r5-20020a92ce85000000b0033d653646e1mr175497ilo.23.1685999261018; Mon, 05 Jun 2023 14:07:41 -0700 (PDT) Received: from ?IPV6:2001:470:42c4:101:d63f:9f67:147:c63f? ([2001:470:42c4:101:d63f:9f67:147:c63f]) by smtp.gmail.com with ESMTPSA id b16-20020a92ce10000000b003358f4eb209sm2628334ilo.60.2023.06.05.14.07.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 05 Jun 2023 14:07:40 -0700 (PDT) Message-ID: Date: Mon, 5 Jun 2023 15:07:39 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [RFC PATCH v1 1/3] sunxi: SPL SPI: Add SPI boot support for the Allwinner R528/T113 SoCs Content-Language: en-US To: u-boot@lists.denx.de, Maksim Kiselev References: <20230519134010.3102343-1-bigunclemax@gmail.com> <20230519134010.3102343-2-bigunclemax@gmail.com> From: Sam Edwards In-Reply-To: <20230519134010.3102343-2-bigunclemax@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean On 5/19/23 07:40, Maxim Kiselev wrote: > R528/T113 SoCs uses the same SPI IP as the H6, also have the same clocks > and reset bits layout, but the CCU base is different. Another difference > is that the new SoCs do not have a clock divider inside. Instead of this > we should configure sample mode depending on input clock rate. > > The pin assignment is also different: the H6 uses PC0, the R528/T113 PC4 > instead. This makes for a change in spi0_pinmux_setup() routine. > > This patch extends the H6/H616 #ifdef guards to also cover the R528/T113, > using the shared CONFIG_SUNXI_GEN_NCAT2 and CONFIG_MACH_SUN8I_R528 > symbols. Also use CONFIG_SUNXI_GEN_NCAT2 symbol for the Kconfig > dependency. > > Signed-off-by: Maxim Kiselev Hi Maksim! It took me a while on my end to get around to this one, but (with Icenowy's SPL from SPI-NAND patchset): Tested-by: Sam Edwards Many thanks, Sam