From patchwork Tue May 2 17:06:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfram Sang X-Patchwork-Id: 89430 Return-Path: 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 + 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 ); 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 ; 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 To: linux-renesas-soc@vger.kernel.org Cc: Wolfram Sang , Kieran Bingham , Geert Uytterhoeven , Michael Turquette , Stephen Boyd , 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 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: 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?= Tested-by: Kieran Bingham Signed-off-by: Wolfram Sang Reviewed-by: Geert Uytterhoeven Reviewed-by: Kieran Bingham --- drivers/clk/renesas/r8a779a0-cpg-mssr.c | 1 + 1 file changed, 1 insertion(+) 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), From patchwork Tue May 2 17:06:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfram Sang X-Patchwork-Id: 89432 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp779127vqo; Tue, 2 May 2023 10:23:57 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5/Ns7LXUYY93TylTkxsLUz8Ft56Vh0sp8aTTkE3rO3BFk3AcLzAxeeaUICbJmikRmydgqv X-Received: by 2002:a17:902:ba8f:b0:1a6:b1a2:5f21 with SMTP id k15-20020a170902ba8f00b001a6b1a25f21mr17046953pls.8.1683048237274; Tue, 02 May 2023 10:23:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683048237; cv=none; d=google.com; s=arc-20160816; b=x2Y0U9VuH8Sq6fnu5j/UprqmDISUDNxCIpUeOOP1JMBFc9tkQldmd/2LZIJ5CxrShK 9FK2TOvkEtQnA7ZTpG5NrjH+rLZhRVfDZ2piK9tg5s9GLUxshhuZmdxw3r/J+GfdeJRD p2pFuicyigpTjFLKXexccsCzQnc5ROeTLs/tfs+okPDF7ABcGTq2ip4OV5om+dd1DPe7 CnFxlHXEw499n9RNlzG2n1xYRXdsfu6WyLFH3jjs8yChoj8Z39IsqnybgWlzRTev9cCe adQNZIQXY2xeEN58yKn9O5qfvpioZIYyRMcfh+imtpYNlJps58qTb01wjmPjUlkAlqCX Vxaw== 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=SuaEQP0P6aQQy8twM98Nc6vkfLGHrQXGpP3Y1PVCo1I=; b=LB7S/vKrlyh8pSwh78KwW32nTAOF+Ch99/h/8c1Ss2/g+2S8ib4W6BOVMSlCa4G2Vv gi+Pi6Nss1AvV3HNNUuyOb1N28esEywD7f0KjTwbTv7SW0hnrTMQberUrANnmzq1USdO MkBNMGe+aX1RswoB3haYVg2WfD4FLpdTG4MsiUxwNfdRu6jvb+jWkaLe9vV2vbA+6RLJ d6r2HM9P1EnKl9XEaBN4HZYDbzFkLbIwsYWqag0PWOcGOXTq/bXJDsIf57vjTTaUfKvw M3OMgm5p3onJRkS7tu+X8zpfQtx+4NemE/T8JEwqPTjFEU/iEjvNKZ5xwacVTkNOTjx4 s7dg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@sang-engineering.com header.s=k1 header.b=n14ao58p; 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 il6-20020a17090b164600b0024c0d1dbcaasi12139954pjb.150.2023.05.02.10.23.44; Tue, 02 May 2023 10:23:57 -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=n14ao58p; 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 S234221AbjEBRGr (ORCPT + 99 others); Tue, 2 May 2023 13:06:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48050 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234113AbjEBRGm (ORCPT ); Tue, 2 May 2023 13:06:42 -0400 Received: from mail.zeus03.de (www.zeus03.de [194.117.254.33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59F951BEF for ; Tue, 2 May 2023 10:06:33 -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=NoyOre9aLKPLmi OsHr2BPy5ISGjUE7cxslS52qIwumE=; b=n14ao58pLwpn4tnpIVFw4zWnsG5tu4 gW7daGF14wl64CmBoqUdRWnwYGcyq7b16fv4xxpfQvVlhQGnMhKqVfXbjW1tpNx9 v24StTJhfOcFuuwTERyjHGVq+bEtC3QU0E3yldnOESLsRCnYlr31Lid7/ZdGEGmy 8ioJoxhZj0ves= Received: (qmail 3809254 invoked from network); 2 May 2023 19:06:31 +0200 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 2 May 2023 19:06:31 +0200 X-UD-Smtp-Session: l3s3148p1@bDP29bj6QuEujnsI From: Wolfram Sang To: linux-renesas-soc@vger.kernel.org Cc: Phong Hoang , Kieran Bingham , Wolfram Sang , Geert Uytterhoeven , Magnus Damm , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] arm64: dts: renesas: r8a779a0: Add PWM nodes Date: Tue, 2 May 2023 19:06:18 +0200 Message-Id: <20230502170618.55967-3-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 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1764803988753285955?= X-GMAIL-MSGID: =?utf-8?q?1764803988753285955?= From: Phong Hoang This patch adds PWM nodes for R-Car V3U (r8a779a0) SoC. Signed-off-by: Phong Hoang [wsa: rebased] Tested-by: Kieran Bingham Signed-off-by: Wolfram Sang Reviewed-by: Geert Uytterhoeven Reviewed-by: Kieran Bingham --- arch/arm64/boot/dts/renesas/r8a779a0.dtsi | 50 +++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a779a0.dtsi b/arch/arm64/boot/dts/renesas/r8a779a0.dtsi index bf587a14ec19..7c63591a138f 100644 --- a/arch/arm64/boot/dts/renesas/r8a779a0.dtsi +++ b/arch/arm64/boot/dts/renesas/r8a779a0.dtsi @@ -1108,6 +1108,56 @@ msiof5: spi@e6c28000 { status = "disabled"; }; + pwm0: pwm@e6e30000 { + compatible = "renesas,pwm-r8a779a0", "renesas,pwm-rcar"; + reg = <0 0xe6e30000 0 0x10>; + #pwm-cells = <2>; + clocks = <&cpg CPG_MOD 628>; + power-domains = <&sysc R8A779A0_PD_ALWAYS_ON>; + resets = <&cpg 628>; + status = "disabled"; + }; + + pwm1: pwm@e6e31000 { + compatible = "renesas,pwm-r8a779a0", "renesas,pwm-rcar"; + reg = <0 0xe6e31000 0 0x10>; + #pwm-cells = <2>; + clocks = <&cpg CPG_MOD 628>; + power-domains = <&sysc R8A779A0_PD_ALWAYS_ON>; + resets = <&cpg 628>; + status = "disabled"; + }; + + pwm2: pwm@e6e32000 { + compatible = "renesas,pwm-r8a779a0", "renesas,pwm-rcar"; + reg = <0 0xe6e32000 0 0x10>; + #pwm-cells = <2>; + clocks = <&cpg CPG_MOD 628>; + power-domains = <&sysc R8A779A0_PD_ALWAYS_ON>; + resets = <&cpg 628>; + status = "disabled"; + }; + + pwm3: pwm@e6e33000 { + compatible = "renesas,pwm-r8a779a0", "renesas,pwm-rcar"; + reg = <0 0xe6e33000 0 0x10>; + #pwm-cells = <2>; + clocks = <&cpg CPG_MOD 628>; + power-domains = <&sysc R8A779A0_PD_ALWAYS_ON>; + resets = <&cpg 628>; + status = "disabled"; + }; + + pwm4: pwm@e6e34000 { + compatible = "renesas,pwm-r8a779a0", "renesas,pwm-rcar"; + reg = <0 0xe6e34000 0 0x10>; + #pwm-cells = <2>; + clocks = <&cpg CPG_MOD 628>; + power-domains = <&sysc R8A779A0_PD_ALWAYS_ON>; + resets = <&cpg 628>; + status = "disabled"; + }; + vin00: video@e6ef0000 { compatible = "renesas,vin-r8a779a0"; reg = <0 0xe6ef0000 0 0x1000>;