Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp6059711rdb; Mon, 18 Sep 2023 02:56:37 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHcD5ougmFJ9Gi0tYIEaeQxD+RN0I4LqId4VXWfcSELG/oym6cTT2vhe194Ozv+tTO0PX+r X-Received: by 2002:a05:6808:bd3:b0:3ab:8956:ad95 with SMTP id o19-20020a0568080bd300b003ab8956ad95mr12132074oik.9.1695030997026; Mon, 18 Sep 2023 02:56:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695030996; cv=none; d=google.com; s=arc-20160816; b=BHeQXBXUkH1mFOaVvhqFhlDRGK/yFG0IOW+TBtcAw97KDe30cUWHzhwmdx/EeVvA8b 35E0NCbDHXYBnbwxEZFafWAIETi3OX+LIaX4iqkglLyPz+Vvo4UlPkWNWXy4o4qsHjxA oFsEgwzaoC7bV/+xDvk/Hm7hMon6QO2IQpqCrWpElpVVE0M0h+joL8/yqVRcAIiUYQOP XpNgoPsbAEKxqEHQE+nNPhXa9gBf7RphF7OBcYo3yKeQfVYcuYeWFDD7l3lU/xOPlTIm k/yVJOxVKOwCeTBDy2hJnwQADltWv0QnShtwvCUz1VuzPi55c20w6MNAz5Xj17v0zsrX SJGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=NPC+ndtCdVcJPzeMLN/W/mU6ns4vH+CyjGMd1ieZQT4=; fh=143eE9DS2le8RySaq6umKKHSqfVU7Kyu29xx3zp+TcQ=; b=BPmUtLq3PoVq4DpwpCC4mGOahAsLMXdnEH6KE+vAIYL1N/4X/fE/jmEK9IS+wWPaS+ 8O8I7VsauljyiZ6YYbYXxdiFWU2t5+taS1Ya4aqGq+5xRh+Si0EImUBCfQcZq8cRTAGA pcFwKixou1jb2/co0kUl6g3FqmSsxqjgd2fOTM5gRpn3TrNbNlLcRdowlKS1ghjRDYSr n7iTVCxGLTQa0wuM8W4Sr1rv9Yctj/5TfGr04M0qIro5sJFHTMD2x6I2hOH0VfM89dE/ xXB8W5L2Aqz8awiPru2ncVIXGDuDij5q+MeZnArxYxkxshsX857cPlg0zygqjnWMpsL/ /MbA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id f29-20020a63101d000000b00573feb1e7c6si7512238pgl.888.2023.09.18.02.56.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 02:56:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 5962A822B2CB; Mon, 18 Sep 2023 02:07:25 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239070AbjIRJGo convert rfc822-to-8bit (ORCPT + 99 others); Mon, 18 Sep 2023 05:06:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239007AbjIRJGQ (ORCPT ); Mon, 18 Sep 2023 05:06:16 -0400 Received: from mail-yw1-f178.google.com (mail-yw1-f178.google.com [209.85.128.178]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B0064E4; Mon, 18 Sep 2023 02:06:10 -0700 (PDT) Received: by mail-yw1-f178.google.com with SMTP id 00721157ae682-5925e580f12so44811767b3.3; Mon, 18 Sep 2023 02:06:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695027970; x=1695632770; h=content-transfer-encoding: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=qs7t8EoP8pSAMvY7e5Wa3knWe5J4fpmFbkl13nOAw0w=; b=ASangAAReqz49pGrqOLafaQ+idBC5ru4rG4pgZ4zrZUaLZxpw1HH9XWu9G+6GD8o2M CGBjDlGh+HZE3+mjABpREpn3t5H9oUcsGOAXRtmm5bQpWU+ZofmPCXN+tVogt+1ssbR6 k5Y3pkmOFhi+P86Bt5D0KL2WNilUkG6DFxa7yx0sOIRgD9ekQ0fknjcmUSekXnKJ7e9h UYZHEo3XgmQvRTzS82NBVa3gPkuqNrjgKiYBIfClGV4I53WxmofdC+EU3J6P+zN5aGPD ouRvU2FfBfqfiOw9vENCa3zVfaW+zTZQcG50Gul5R/DqUfwrKdiigx5xDhkzOoeTMzwL U+qg== X-Gm-Message-State: AOJu0YwIZWW+Ncov1ytfciomsbcN122aNQ8zOQKtMAQalJMZ6EHDNfVF 1rtXr/ffIFgfqESie4FO5zFzoR0ZE51jWg== X-Received: by 2002:a81:6256:0:b0:58c:6121:48e8 with SMTP id w83-20020a816256000000b0058c612148e8mr9483173ywb.33.1695027969928; Mon, 18 Sep 2023 02:06:09 -0700 (PDT) Received: from mail-yw1-f171.google.com (mail-yw1-f171.google.com. [209.85.128.171]) by smtp.gmail.com with ESMTPSA id m131-20020a817189000000b00589dbcf16cbsm2430341ywc.35.2023.09.18.02.06.09 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 18 Sep 2023 02:06:09 -0700 (PDT) Received: by mail-yw1-f171.google.com with SMTP id 00721157ae682-59bcd927b45so44819007b3.1; Mon, 18 Sep 2023 02:06:09 -0700 (PDT) X-Received: by 2002:a81:5e84:0:b0:589:c065:b419 with SMTP id s126-20020a815e84000000b00589c065b419mr10493285ywb.34.1695027969581; Mon, 18 Sep 2023 02:06:09 -0700 (PDT) MIME-Version: 1.0 References: <20230912045157.177966-1-claudiu.beznea.uj@bp.renesas.com> <20230912045157.177966-23-claudiu.beznea.uj@bp.renesas.com> <701ee3bd-5d16-6b5f-2d34-4a4919c4c532@tuxon.dev> In-Reply-To: <701ee3bd-5d16-6b5f-2d34-4a4919c4c532@tuxon.dev> From: Geert Uytterhoeven Date: Mon, 18 Sep 2023 11:05:57 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 22/37] clk: renesas: add minimal boot support for RZ/G3S SoC To: claudiu beznea Cc: mturquette@baylibre.com, sboyd@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, ulf.hansson@linaro.org, linus.walleij@linaro.org, gregkh@linuxfoundation.org, jirislaby@kernel.org, magnus.damm@gmail.com, catalin.marinas@arm.com, will@kernel.org, prabhakar.mahadev-lad.rj@bp.renesas.com, biju.das.jz@bp.renesas.com, quic_bjorande@quicinc.com, arnd@arndb.de, konrad.dybcio@linaro.org, neil.armstrong@linaro.org, nfraprado@collabora.com, rafal@milecki.pl, wsa+renesas@sang-engineering.com, linux-renesas-soc@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org, linux-gpio@vger.kernel.org, linux-serial@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Claudiu Beznea Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Mon, 18 Sep 2023 02:07:25 -0700 (PDT) Hi Claudiu, On Mon, Sep 18, 2023 at 9:50 AM claudiu beznea wrote: > On 15.09.2023 15:52, Geert Uytterhoeven wrote: > > On Tue, Sep 12, 2023 at 6:53 AM Claudiu wrote: > >> From: Claudiu Beznea > >> > >> Add minimal clock and reset support for RZ/G3S SoC to be able to boot > >> Linux from SD Card/eMMC. This includes necessary core clocks for booting > >> and GIC, SCIF, GPIO, SD0 mod clocks and resets. > >> > >> Signed-off-by: Claudiu Beznea > > > > Thanks for your patch! > > > > [ ... ] > > >> + CLK_PLL3_DIV2_4, > >> + CLK_PLL3_DIV2_8, > >> + CLK_PLL3_DIV6, > >> + CLK_PLL4, > >> + CLK_PLL6, > >> + CLK_PLL6_DIV2, > >> + CLK_SEL_SDHI0, > >> + CLK_SEL_PLL4, > >> + CLK_P1_DIV2, > >> + CLK_P3_DIV2, > > > > Do you need CLK_P1_DIV2 and CLK_P3_DIV2? > > I don't see them in Figure 7.3 ("Clock System Diagram (2)"). > > P1_DIV2 is clock source for MHU_PCLK or OTFDE_DDR_PCLK. > P3_DIV2 is clock source for DMAC_PCLK, OTFDE_SPI_PCLK. > These are expressed in clock list document > (RZG3S_clock_list_r1.00_20230602.xlsx). > > It is true the functionality could be preserved even w/o these 2 clocks but > I kept them here as I saw them as core clocks even though they are not > present in the Clock System Diagram from HW manual. I don't think you can, as the module clock abstraction does not support specifying a divider. Hence you do need an internal core clock between P1 and the module clock, to take care of the divider. > With these, would you prefer to keep these clocks or just remove them? Yes, as I expect that at least the DMAC_PCLK will be added, eventually. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds