Message ID | 20230502170618.55967-2-wsa+renesas@sang-engineering.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp777571vqo; Tue, 2 May 2023 10:21:07 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6dpBDNonpLvrP5knOZgyCFRn6AeYAoimUIW+LkyO8NlVjL+C3jzNf8+qMfNdb8AeFJGw/H X-Received: by 2002:a05:6a20:6f03:b0:f8:b39b:b24e with SMTP id gt3-20020a056a206f0300b000f8b39bb24emr18542193pzb.11.1683048067346; Tue, 02 May 2023 10:21:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683048067; cv=none; d=google.com; s=arc-20160816; b=ui+qiIsKqO1CLSBq8pZgt7XORhtA+/CVVsZMaEIqG8E5sAbWisc6wGgkvEiHrgUPYL IcJf0IDLgurZbR6KLigNE4zTnz8xKMG+rbPOUNvrLUWGRko6sPxMKcEhrxMyhSbx42/b UN3LeAVtxiD22IhKjpKxyVZaemxKItyAO6bpQYRPH0JfKBBwo2mVczeQw80tH2JEeMyl 3V+CddyjjYmMNtKq+P1bw0SZs2sUZcr/sMaS43S0g/fY9joXAxofWAxN7W0rINLpghaL hdmvkqbESjKT1wTaMuo804rKl4eA28ziy1RF/Ss2UUPwSHs0y6ToHnreYEjWIRBUaWoG +noQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=xkN31nELUDkKcJdomvcBOesfy5xk4dCM9L6q+EULhic=; b=m7t/cCwfJM+Y9JWohgWRjhcgsaRjG3V7qejJusfPRIfJ9xkaI80XfDQCh6VfoXabjN GaBBkbLbfC++lLQlXwxIj8IHFGgw/2XPls5jr084LxRyq/y0zhfnfxjJ5gUw/XICDFOa 47ZD6aOP9KIQ/oRAQy7YJOqRDSqN3ao7rDxN8NGWZfJ2Bq5nxKCrrbiDJbTPg0JHYBCZ Uh+Yg4AIaEcsPnf4HCuKlkRS4RG3iUaaxxqDvHqiP/ZRogy/Q0MkG3Zr9/6WwRXjM+Xb mHfIPzEIYOOmvJXkZpjoVGOOuWiU7qAnUoHlCjC4QE1VeTEpge+7cFQ2SqfOm9p6sXQa S8bA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@sang-engineering.com header.s=k1 header.b="m/gWdNev"; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b18-20020a170902d51200b001a9265e6fdasi33004386plg.268.2023.05.02.10.20.51; Tue, 02 May 2023 10:21:07 -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=fail (test mode) header.i=@sang-engineering.com header.s=k1 header.b="m/gWdNev"; 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 S234075AbjEBRGo (ORCPT <rfc822;rbbytesnap@gmail.com> + 99 others); Tue, 2 May 2023 13:06:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234029AbjEBRGl (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 2 May 2023 13:06:41 -0400 Received: from mail.zeus03.de (www.zeus03.de [194.117.254.33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE5F81992 for <linux-kernel@vger.kernel.org>; Tue, 2 May 2023 10:06:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=sang-engineering.com; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=k1; bh=U5WSJVBUu1HRcd r3eLzWiIMXjKd22i5PtEbZP8Hd1f8=; b=m/gWdNev3TyoUNG3O2+PqkssOohWU7 93eHcWbv3/Dim+J/KEOlLizHrCzOdzZo6yh1PobX8mWPeoMd6Egl+AJEyTleHQe7 WXVNgk4rqAsfIZN3qr3todhkiPduKnJflTi3MRx2z5CJ4PPc6f/T41vmANi0DHRY 3cei5ROZShpuM= Received: (qmail 3809205 invoked from network); 2 May 2023 19:06:30 +0200 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 2 May 2023 19:06:30 +0200 X-UD-Smtp-Session: l3s3148p1@Ognm9bj6QOEujnsI From: Wolfram Sang <wsa+renesas@sang-engineering.com> To: linux-renesas-soc@vger.kernel.org Cc: Wolfram Sang <wsa+renesas@sang-engineering.com>, Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>, Geert Uytterhoeven <geert+renesas@glider.be>, Michael Turquette <mturquette@baylibre.com>, Stephen Boyd <sboyd@kernel.org>, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] clk: renesas: r8a779a0: Add PWM clock Date: Tue, 2 May 2023 19:06:17 +0200 Message-Id: <20230502170618.55967-2-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230502170618.55967-1-wsa+renesas@sang-engineering.com> References: <20230502170618.55967-1-wsa+renesas@sang-engineering.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=no 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1764803810356300336?= X-GMAIL-MSGID: =?utf-8?q?1764803810356300336?= |
Series |
r8a779a0: enable PWM
|
|
Commit Message
Wolfram Sang
May 2, 2023, 5:06 p.m. UTC
Tested-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> --- drivers/clk/renesas/r8a779a0-cpg-mssr.c | 1 + 1 file changed, 1 insertion(+)
Comments
Hi Wolfram, On Tue, May 2, 2023 at 7:06 PM Wolfram Sang <wsa+renesas@sang-engineering.com> wrote: > Tested-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com> > Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Thanks for your patch! > --- a/drivers/clk/renesas/r8a779a0-cpg-mssr.c > +++ b/drivers/clk/renesas/r8a779a0-cpg-mssr.c > @@ -170,6 +170,7 @@ static const struct mssr_mod_clk r8a779a0_mod_clks[] __initconst = { > DEF_MOD("msi3", 621, R8A779A0_CLK_MSO), > DEF_MOD("msi4", 622, R8A779A0_CLK_MSO), > DEF_MOD("msi5", 623, R8A779A0_CLK_MSO), > + DEF_MOD("pwm", 628, R8A779A0_CLK_S1D8), Do you mind if I rename this to "pwm0" while applying, to match the docs? Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> i.e. will queue in renesas-clk-for-v6.5. > DEF_MOD("rpc-if", 629, R8A779A0_CLK_RPCD2), > DEF_MOD("scif0", 702, R8A779A0_CLK_S1D8), > DEF_MOD("scif1", 703, R8A779A0_CLK_S1D8), Gr{oetje,eeting}s, Geert
> > + DEF_MOD("pwm", 628, R8A779A0_CLK_S1D8), > > Do you mind if I rename this to "pwm0" while applying, to match the docs? No, feel free. I think it is a bit misleading because the clock is used up to pwm4. But if the docs have it that way...
Hi Wolfram, On Wed, May 3, 2023 at 2:41 PM Wolfram Sang <wsa+renesas@sang-engineering.com> wrote: > > > + DEF_MOD("pwm", 628, R8A779A0_CLK_S1D8), > > > > Do you mind if I rename this to "pwm0" while applying, to match the docs? > > No, feel free. I think it is a bit misleading because the clock is used > up to pwm4. But if the docs have it that way... The preliminary R-Car V3U docs _are_ misleading... But it's probably the best we'd ever get ;-) Gr{oetje,eeting}s, Geert
Quoting Geert Uytterhoeven (2023-05-03 11:09:29) > Hi Wolfram, > > On Tue, May 2, 2023 at 7:06 PM Wolfram Sang > <wsa+renesas@sang-engineering.com> wrote: > > Tested-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com> > > Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> > > Thanks for your patch! > > > --- a/drivers/clk/renesas/r8a779a0-cpg-mssr.c > > +++ b/drivers/clk/renesas/r8a779a0-cpg-mssr.c > > @@ -170,6 +170,7 @@ static const struct mssr_mod_clk r8a779a0_mod_clks[] __initconst = { > > DEF_MOD("msi3", 621, R8A779A0_CLK_MSO), > > DEF_MOD("msi4", 622, R8A779A0_CLK_MSO), > > DEF_MOD("msi5", 623, R8A779A0_CLK_MSO), > > + DEF_MOD("pwm", 628, R8A779A0_CLK_S1D8), > > Do you mind if I rename this to "pwm0" while applying, to match the docs? > > Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> > i.e. will queue in renesas-clk-for-v6.5. Either way is fine with me, and I've seen this work now so: Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com> > > > DEF_MOD("rpc-if", 629, R8A779A0_CLK_RPCD2), > > DEF_MOD("scif0", 702, R8A779A0_CLK_S1D8), > > DEF_MOD("scif1", 703, R8A779A0_CLK_S1D8), > > 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
diff --git a/drivers/clk/renesas/r8a779a0-cpg-mssr.c b/drivers/clk/renesas/r8a779a0-cpg-mssr.c index fcc8279647a6..136a0d4e7ed6 100644 --- a/drivers/clk/renesas/r8a779a0-cpg-mssr.c +++ b/drivers/clk/renesas/r8a779a0-cpg-mssr.c @@ -170,6 +170,7 @@ static const struct mssr_mod_clk r8a779a0_mod_clks[] __initconst = { DEF_MOD("msi3", 621, R8A779A0_CLK_MSO), DEF_MOD("msi4", 622, R8A779A0_CLK_MSO), DEF_MOD("msi5", 623, R8A779A0_CLK_MSO), + DEF_MOD("pwm", 628, R8A779A0_CLK_S1D8), DEF_MOD("rpc-if", 629, R8A779A0_CLK_RPCD2), DEF_MOD("scif0", 702, R8A779A0_CLK_S1D8), DEF_MOD("scif1", 703, R8A779A0_CLK_S1D8),