Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp939065rwr; Fri, 5 May 2023 07:07:27 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4coywD7Weni3AtdYVFTPF78pflhn5CL/5TxH3kn23u8j7T1HuKS6CG1aqqAt/hnkxvd3es X-Received: by 2002:a6b:c413:0:b0:763:5ce2:4cfc with SMTP id y19-20020a6bc413000000b007635ce24cfcmr658486ioa.8.1683295647147; Fri, 05 May 2023 07:07:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683295647; cv=none; d=google.com; s=arc-20160816; b=Dmmed3KTcFjvsxYI4BV5HUKn95UzGFG0KESwejly7fajaSJkE4c5kAKDWgAE/KEiPi 5yOlSry9f1+vDoqoDulWXey+IU0A8ZwRymRrBT8QWyZWLqlpAiwgYDIHj0rd08+0HvBr WeKNkEdaV9E1Imxm1l9Tlotm7t5kSJD6ssQV6CMjRW5gYiYN2dTVnSCV3uUhGawbMFyx gQ9bsO+17YZ+/PtSgl/oe+OMmrk4r8+s0/0Q1SaQE3excL80/fAZxwLYPhY8EIqkGXbI mWNwSZ0YxCsx9sMlRmWByK/YsOGXgFBAMU1uthoBFb6GMfjKfsqs9QohwmV6uS/6Onof tuRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=pJVTeItn3/q+rs4Fp3PPs4uhLe3EOiwtZ3p5vx2OZsc=; b=spSxJX/bUwwXI2UW4qfLFsgR5GHHSGf/ILNPlaeltaY6Si07ets2nw+M8x5ZSRWI1C 0jW6ZPrxm+ojLZQCg3R38cyBZ6ofOUghsnZi6uv5trp9+P5lywZkksnEFeVFUpczIHfn bVrfvGYDFDFjmdsfERa0RI0zqhLZDicSaoaJZ7fbQPbdtwnr5rmAiiR9CffavIbizNNj UvDmnH9OJkCePDrxYFx/6XbZ1fk9HRme9gMms80aM0KugNb4GIEHSoeC3jfjetrv2wX+ F2BbUh0MOVgnl6G962I2X4OZkb/5NnRVl98EYO0By0PMA1flkUJkgYabeVeI7Pfl1/6D SXsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=pW1eSFQt; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p4-20020a6bce04000000b0073d457b4326si927268iob.9.2023.05.05.07.07.04; Fri, 05 May 2023 07:07:27 -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=@gmail.com header.s=20221208 header.b=pW1eSFQt; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232512AbjEEN1a (ORCPT + 99 others); Fri, 5 May 2023 09:27:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51244 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232574AbjEEN1X (ORCPT ); Fri, 5 May 2023 09:27:23 -0400 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9CA03203C9; Fri, 5 May 2023 06:27:20 -0700 (PDT) Received: by mail-ed1-x535.google.com with SMTP id 4fb4d7f45d1cf-50bc5197d33so3389714a12.1; Fri, 05 May 2023 06:27:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683293239; x=1685885239; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=pJVTeItn3/q+rs4Fp3PPs4uhLe3EOiwtZ3p5vx2OZsc=; b=pW1eSFQtUOf4qd5Tqc4nNA0Lxc0orupxla+piV27edUUubj0zCl0YBkqsHBTbF1tz/ shZdBzRzJe/A/ESNBMVAqzGsJu/AzM2GR7Vme5pGfkRQ33GFyXbqkfr05hDtF3lluygb ob7DwNWNnLG1srjhhp2cOse/kn/5/0QBVA/eFLxiMKNFwzbiJYDT+3WpcqvXcBxuTODL m01ijHjxSezLk8GFHifw9arl0IJDzEWpb1C+SCMXboqI3V4VctTKfd4WAkkgPn+4ipKV FHoUO3GseDFID+qZdDBuoxD78K+IAzlmeAvEnGsCIzaBUyzFyLSG884H+VKhqF8UIylS LQNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683293239; x=1685885239; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=pJVTeItn3/q+rs4Fp3PPs4uhLe3EOiwtZ3p5vx2OZsc=; b=eeJeBWSrXRD3XWcfKfEIY4xzVK00BnfIbtUx7b0+FxBkTjACrIWO4LL/cDyze9hC1U gHkpS0YSD2LRiGiKfWo2NFNllVZ8Jk17gneIz0dUMvUxeelt7RjGvBFwEVLwBgc5VMhX kV6/NQdpqZ6jb2lNVb3xI/OneVp/C9rKMF8XMHaFhd06pktpPGwz2qhBHuQlM3lfwnpe dH+YZgnO4gJbEXY6CDm1Y8aNCRZNBPZHgEcrWnZR2IOQpsJAafwtqMUQj3rBMT3SLh29 HMt/nwBfUx8gum80LmfBCPwHOeo/XWnJZsXGRo/TZ9O/NozcagQZvjcly3M7vgE05MIM QafA== X-Gm-Message-State: AC+VfDxOzunShWJdV+4OfdGG3YEUGTEv9v66RX+0qun7MveGSqmk/Txi jI+6jP5sAyEsYk0hN/qcKo2pXvFLqh3MXokwZ7U= X-Received: by 2002:a17:907:3e05:b0:94e:988d:acc5 with SMTP id hp5-20020a1709073e0500b0094e988dacc5mr1256436ejc.46.1683293238964; Fri, 05 May 2023 06:27:18 -0700 (PDT) MIME-Version: 1.0 References: <20230505074701.1030980-1-bigunclemax@gmail.com> <20230505105805.548d1a1b@donnerap.cambridge.arm.com> In-Reply-To: <20230505105805.548d1a1b@donnerap.cambridge.arm.com> From: Maxim Kiselev Date: Fri, 5 May 2023 17:27:07 +0400 Message-ID: Subject: Re: [PATCH] riscv: dts: allwinner: d1: Add SPI0 controller node To: Andre Przywara Cc: robh+dt@kernel.org, Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Paul Walmsley , Palmer Dabbelt , Albert Ou , Cristian Ciocaltea , devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Hi Andre, > From a quick glance at the manuals, it > looks like there are not quite the same, though: the D1/R528/T113s > mentions a SPI_SAMP_DL register @0x28, whereas the older IP has a SPI_CCR > register @0x24 - which is not mentioned in the newer manuals. The driver > relies on that clock control register, so it wouldn't really work > reliably, if that register is not there. Thank you for pointing this out. I missed this difference. I actually have a board with T113 SoC, and it looks like writing to SPI_CCR@0x24 does nothing. And it doesn't affect access to connected SPI NOR flash (read\write operations are fine). But I completely agree with you that this difference should be handled by the spi driver.