Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2389264lqp; Sun, 24 Mar 2024 17:16:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUO3bJvYNL6CMCXRGjRjx3xLSD+QyxoyzjXf+MiCNGgr+60SXO8nUcpaolyskic6d4N6yBAfsGFZ2Cc3ZE3J+y03aV2E9Oa3bj7PvZTUA== X-Google-Smtp-Source: AGHT+IGfA4UacAuno72GVXyDPHkKs0mOotls+vOpweu7TNsAx0fMncErj2a6MbYDYHEv0QAJSW1A X-Received: by 2002:a05:6a20:b96:b0:1a3:71f7:df3d with SMTP id i22-20020a056a200b9600b001a371f7df3dmr4089765pzh.30.1711325766210; Sun, 24 Mar 2024 17:16:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711325766; cv=pass; d=google.com; s=arc-20160816; b=g4E9FBef6jw5ODhiGLW10H0xj1jmAfZK1mnx46AkeJyrCwOXJUJjcwuxnmVdeu4tLM mr/kgiJxeTy6Bt76QrU4smRpwBnN7AP0eVVxRNiqKa+Br/DBEa/hkbT8Oely6FDQsdzH XYHmIrZPoBfnHz0/x7ZlfAjBNUodf3fRj+nRHg3fj28XV7pcf10q8ZJtcUxfC+Wl1aRE n5QOrdYRtnd3eKlbY3K3mFW/AYoeTkWqLEUoQgmvpm7m47GrFb/NXMKjF2t8kWMgc6/3 1/G15+WBdHAxWU8FUn1DYLWMNWvM5nBNj+kVFEtROe40oCTAFL7UQmGGYnVKmxjxD1IW v0aA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=lbfhhasB7T29lTqK0ibInZR+MBXJlVS+aFaHragwWig=; fh=Cl4XMKpcVuuGjPcPCE3z5ZDuFmTza8X25pGzQODKE90=; b=xQTfX/FCt08fN3/yKisF9Cp7ll537zI7UvXKUHyHOgANlJoJ2SoflIzRlsN0ygkwI8 f3rpW7IRUQI10pArx+4eQx3xxpsPS86mJlT9oSZDvugsaC36PdFjRgcgk8W7vDll6ucp oBGL86Ft3NJTAIeY0eSDAESx3VVj7hj0euOmHricrW4M5V1qwNpVFZNnolPIHMXLbEjp N0JFSdaGQgGw6sioGXtpj4gxov/PLcVt911zkpRWPT9/bSi+XYEMZUYW7DPSQ9f+FloB F+tGGMDCIdNvI7zHe0vj344Yo8q5TroDcwmaIplX+4AhcJ8hBzzOjvenFMQzH0VHynAV jNMA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VsTq1c4E; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113311-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113311-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id pf13-20020a17090b1d8d00b002a075e00f99si369972pjb.46.2024.03.24.17.16.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 17:16:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-113311-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VsTq1c4E; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113311-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113311-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 42E46B2231A for ; Mon, 25 Mar 2024 00:07:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0BD874596F; Sun, 24 Mar 2024 22:41:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="VsTq1c4E" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 21C4C13CDF0; Sun, 24 Mar 2024 22:41:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711320112; cv=none; b=RLT6CkdyEPT+ykHXSQJcq4gaO90WbON2MidYnRJeQsDWnGQuZlkJn6HF4p7DYoxHnu4y5A1rpCDo2gbVzPj6DjtmNFYkxXuyJUTT4h3fGWMObp2K6yJEzP+wB3wKMJGNbx1rKloskCcYVp12+bdewDELEI0MpJEuXzbjKyBfK5c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711320112; c=relaxed/simple; bh=BcmkAXJdCO3vpaxJG65egk0GWGGGo/vnAy5lzRVXv9Y=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=XkBXJfi0UZUbBo7GpzD1Vj8yLCJBR+68mvc73k0IrouJH5iGpVgSoThRswunRF0RgsES4Wzb8jpqcRRqnQ+bSZ1pbLqwmW7p95Kh8R4NSDQPBV6am5bP+4QIOThI5SQsFGpwmqmS9Ef4n0SDRyrXMoStuUGJ3Wjn1pJxVTHCTmE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=VsTq1c4E; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 77CADC43390; Sun, 24 Mar 2024 22:41:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711320112; bh=BcmkAXJdCO3vpaxJG65egk0GWGGGo/vnAy5lzRVXv9Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VsTq1c4EXFXXZ3Jr8V0kLiUIhBnXc/3q6p2ilAZv6/vNsAu9YGBDDqLTjIdn8w/AY DFmnrE7Z2PEOcWZe9iAs3aTz1McvBp2q/3wKCiIgHc22nLVBAH1ERulzNyJQ/dJ8N0 /fALLMrUE+aCxzABLh/dHJ8cKNWh6YA78fI3GonsHslZROHWfwpeTUmEnbJlbttyWW 7MM01JQX21wTi2duYj7R/XM39eV6L8iHFe9ZePUEom7npLIyoqJLtGeSf91baszW/R yQ9kHFpaH/wKTlQ/xzIXJLAzzoNyze257ryZ7Jg2hAY7teO58Vhnag8Ewt3OWv9yU6 Pd8HXNanmuwZg== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Geert Uytterhoeven , Sasha Levin Subject: [PATCH 6.8 420/715] clk: renesas: r8a779g0: Correct PFC/GPIO parent clocks Date: Sun, 24 Mar 2024 18:29:59 -0400 Message-ID: <20240324223455.1342824-421-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324223455.1342824-1-sashal@kernel.org> References: <20240324223455.1342824-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Geert Uytterhoeven [ Upstream commit abb3fa662b8f8eaed1590b0e7a4e19eda467cdd3 ] According to the R-Car V4H Series Hardware User’s Manual Rev.1.00, the parent clock of the Pin Function (PFC/GPIO) module clocks is the CP clock. Fix this by adding the missing CP clock, and correcting the PFC parents. Fixes: f2afa78d5a0c0b0b ("dt-bindings: clock: Add r8a779g0 CPG Core Clock Definitions") Fixes: 36ff366033f0dde1 ("clk: renesas: r8a779g0: Add PFC/GPIO clocks") Signed-off-by: Geert Uytterhoeven Link: https://lore.kernel.org/r/5401fccd204dc90b44f0013e7f53b9eff8df8214.1706197297.git.geert+renesas@glider.be Signed-off-by: Sasha Levin --- drivers/clk/renesas/r8a779g0-cpg-mssr.c | 11 ++++++----- include/dt-bindings/clock/r8a779g0-cpg-mssr.h | 1 + 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/drivers/clk/renesas/r8a779g0-cpg-mssr.c b/drivers/clk/renesas/r8a779g0-cpg-mssr.c index 31b13c997a057..c4b1938db76b3 100644 --- a/drivers/clk/renesas/r8a779g0-cpg-mssr.c +++ b/drivers/clk/renesas/r8a779g0-cpg-mssr.c @@ -22,7 +22,7 @@ enum clk_ids { /* Core Clock Outputs exported to DT */ - LAST_DT_CORE_CLK = R8A779G0_CLK_R, + LAST_DT_CORE_CLK = R8A779G0_CLK_CP, /* External Input Clocks */ CLK_EXTAL, @@ -141,6 +141,7 @@ static const struct cpg_core_clk r8a779g0_core_clks[] __initconst = { DEF_FIXED("svd2_vip", R8A779G0_CLK_SVD2_VIP, CLK_SV_VIP, 2, 1), DEF_FIXED("cbfusa", R8A779G0_CLK_CBFUSA, CLK_EXTAL, 2, 1), DEF_FIXED("cpex", R8A779G0_CLK_CPEX, CLK_EXTAL, 2, 1), + DEF_FIXED("cp", R8A779G0_CLK_CP, CLK_EXTAL, 2, 1), DEF_FIXED("viobus", R8A779G0_CLK_VIOBUS, CLK_VIO, 1, 1), DEF_FIXED("viobusd2", R8A779G0_CLK_VIOBUSD2, CLK_VIO, 2, 1), DEF_FIXED("vcbus", R8A779G0_CLK_VCBUS, CLK_VC, 1, 1), @@ -232,10 +233,10 @@ static const struct mssr_mod_clk r8a779g0_mod_clks[] __initconst = { DEF_MOD("cmt1", 911, R8A779G0_CLK_R), DEF_MOD("cmt2", 912, R8A779G0_CLK_R), DEF_MOD("cmt3", 913, R8A779G0_CLK_R), - DEF_MOD("pfc0", 915, R8A779G0_CLK_CL16M), - DEF_MOD("pfc1", 916, R8A779G0_CLK_CL16M), - DEF_MOD("pfc2", 917, R8A779G0_CLK_CL16M), - DEF_MOD("pfc3", 918, R8A779G0_CLK_CL16M), + DEF_MOD("pfc0", 915, R8A779G0_CLK_CP), + DEF_MOD("pfc1", 916, R8A779G0_CLK_CP), + DEF_MOD("pfc2", 917, R8A779G0_CLK_CP), + DEF_MOD("pfc3", 918, R8A779G0_CLK_CP), DEF_MOD("tsc", 919, R8A779G0_CLK_CL16M), DEF_MOD("tsn", 2723, R8A779G0_CLK_S0D4_HSC), DEF_MOD("ssiu", 2926, R8A779G0_CLK_S0D6_PER), diff --git a/include/dt-bindings/clock/r8a779g0-cpg-mssr.h b/include/dt-bindings/clock/r8a779g0-cpg-mssr.h index 754c54a6eb06a..7850cdc62e285 100644 --- a/include/dt-bindings/clock/r8a779g0-cpg-mssr.h +++ b/include/dt-bindings/clock/r8a779g0-cpg-mssr.h @@ -86,5 +86,6 @@ #define R8A779G0_CLK_CPEX 74 #define R8A779G0_CLK_CBFUSA 75 #define R8A779G0_CLK_R 76 +#define R8A779G0_CLK_CP 77 #endif /* __DT_BINDINGS_CLOCK_R8A779G0_CPG_MSSR_H__ */ -- 2.43.0