Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp1472414lqs; Sat, 15 Jun 2024 10:05:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVvlCrShAcoPRChZiQ7nsuRjhdq13yBZl+ZBLJr62xQLiP5uLkW+p37VQSBDuZGYCXdrtW5EuicAm8JgBmJY3nMHDTIodrPxIXLeIi/Nw== X-Google-Smtp-Source: AGHT+IG61UsyENut8epilv3F/p7vIY11GMF2SPjIZIehZ8yHf9zTRom4G27pd9wvtUrbZdJ3zDV/ X-Received: by 2002:a17:907:a80e:b0:a6f:6d98:d4bc with SMTP id a640c23a62f3a-a6f6d98d6bemr272226466b.61.1718471127014; Sat, 15 Jun 2024 10:05:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718471127; cv=pass; d=google.com; s=arc-20160816; b=AVKK0BUXEZsPnqkChV4h54ZKaKHh8TW6akZbDhaSZ4x64mJreRVzL2W4/TtB2+6pax cFh835fjhdSpfbLHfniSycCU+D84tU+KY4JQnkzjutG7J86gtZMlZinKhPW1D1tEOcu2 7EMyhKOoU7SVxZu2q6eo30J0ApqUfGZ55xP9ckuWDQvDAiMPs7xVoevOZJpLC6JAT4WT DzOcaXuAdkma7vEWbOL++wnQdE9VEl1EivC+AvQFAGqznqVM3q6EaB50BcvZLYlZ9CFE hzqFmrppM3hT8dT0Y1O8knu0et9am8FotRf/A6SkwgUk6wIKP4Omaw7LW+nqh0pLo+wz V4Fg== 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=Bcu9b3VrUd6qIU98W1LB1PWRhdR9Skrn32v3O+4jLys=; fh=6uOgeQ/V/NnJ6F1t3+IzCrPNEiu9TsePA/yNrdGRlVc=; b=igkDH38zeXz4Vi/CqFnT+/M3NZSo3oMDk0VaGUUwHAPYNWhakcAWxONIKc6700VJkf KXaRI76VtEYTvAcSuRqrkCfo1T1bJGBtZV904UbB+q75yr4eZQhpodzmV9qLqSNaobow Ql75jjX8Zfo0zm374vjBEh0hL1x31NHFSO1Fs6O5hJh6ZnVf4ZdBZCOCiGsv4IpDpTd3 E4hUuoHVq24h8Q4OrHaEOm64WB/WwjDfw6IO3aV6zLOwp9F/5GElSUoXIUDvS8EZ7IVb Ev/OgpnhMDxxCOCoNm0vJpd9mtcieSVPjKjdeLq05L0x8gqP7w+tCesuzWwi9FGlFJZR j3sg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kwiboo.se header.s=fe-e1b5cab7be header.b=VsgaFdxQ; arc=pass (i=1 spf=pass spfdomain=fe-bounces.kwiboo.se dkim=pass dkdomain=kwiboo.se dmarc=pass fromdomain=kwiboo.se); spf=pass (google.com: domain of linux-kernel+bounces-215941-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215941-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kwiboo.se Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57cb74477b2si2816131a12.427.2024.06.15.10.05.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Jun 2024 10:05:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-215941-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kwiboo.se header.s=fe-e1b5cab7be header.b=VsgaFdxQ; arc=pass (i=1 spf=pass spfdomain=fe-bounces.kwiboo.se dkim=pass dkdomain=kwiboo.se dmarc=pass fromdomain=kwiboo.se); spf=pass (google.com: domain of linux-kernel+bounces-215941-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215941-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kwiboo.se 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 am.mirrors.kernel.org (Postfix) with ESMTPS id B8DF31F21552 for ; Sat, 15 Jun 2024 17:05:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BF74051C50; Sat, 15 Jun 2024 17:05:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kwiboo.se header.i=@kwiboo.se header.b="VsgaFdxQ" Received: from smtp.forwardemail.net (smtp.forwardemail.net [167.172.40.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 25EC450A6D for ; Sat, 15 Jun 2024 17:05:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=167.172.40.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718471109; cv=none; b=WIqvhdLpk2XjnRBGI3HoilrphLDx8rmxyhlLPxXXOeuSo9dTfnQB3axgqqUWHBJHFd3RWTB8DzXCq5RZOTINo0avwoQ1grBmubEdANdVvD3I1ZDsqco3j2vsSimKMDZnlOzney0t81bhsMXxmyW5c24WYKctnzZZQUj5JWjFXKg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718471109; c=relaxed/simple; bh=+JK/6pCydtVENjy0w54yyF6arAWMss13Dw95qeW20GI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=KWCld3KdIJiRpH1dh2L8aoZ3IpkHQs8Le9FhQRnPNepeu8f2M6+UVo/ZnaqeOd0XqwnIt6tHdUg8FUqZ8LIdOseQ6sqlqkKX3V6jzqSrY4bgQiGOCxPLRv9c4dUdJoF5DJbgFs0dDpeRh5OPyQ47snHkBj1MNkR1Ct9/uiQWCW0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=kwiboo.se; spf=pass smtp.mailfrom=fe-bounces.kwiboo.se; dkim=pass (2048-bit key) header.d=kwiboo.se header.i=@kwiboo.se header.b=VsgaFdxQ; arc=none smtp.client-ip=167.172.40.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=kwiboo.se Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fe-bounces.kwiboo.se DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kwiboo.se; h=Content-Transfer-Encoding: MIME-Version: References: In-Reply-To: Message-ID: Date: Subject: Cc: To: From; q=dns/txt; s=fe-e1b5cab7be; t=1718471077; bh=Bcu9b3VrUd6qIU98W1LB1PWRhdR9Skrn32v3O+4jLys=; b=VsgaFdxQZVdNXIhi2U8zovuoyfyqq6MS8Pvmv8oeEMZteMpcVA0byLeJASQdB0fefyWcHfouS 8J0K1NeJi7BO9oPpRIAvtXWw/1lQ8k4UBpBk8IpaEs5m17UmQxhVLEcntfSscw5TsllSZ0QdL6Q 05rH8LmtsNXzy2K80jiMBpelMTwo1Yc0GwyNIpdghb36GKGWcV1sFYDg/XRhnr5FCykL4moQqI8 ra+OVnxmOvKsgydSgHmx6kFiV5fX8jPaoHEHlPXGJB14e6aNNH5GW3kVNApEkLXvn30m1Mmu4gX F5IsXxVrA5xqwgNVTQGlyXbGhLCRhkOKk50YmFvd6Gow== From: Jonas Karlman To: dri-devel@lists.freedesktop.org, Michael Turquette , Stephen Boyd , Heiko Stuebner , Yakir Yang , Jeffy Chen Cc: linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Jonas Karlman , linux-clk@vger.kernel.org Subject: [PATCH 02/13] clk: rockchip: Set parent rate for DCLK_VOP clock on RK3228 Date: Sat, 15 Jun 2024 17:03:53 +0000 Message-ID: <20240615170417.3134517-3-jonas@kwiboo.se> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240615170417.3134517-1-jonas@kwiboo.se> References: <20240615170417.3134517-1-jonas@kwiboo.se> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Report-Abuse-To: abuse@forwardemail.net X-Report-Abuse: abuse@forwardemail.net X-Complaints-To: abuse@forwardemail.net X-ForwardEmail-Version: 0.4.40 X-ForwardEmail-Sender: rfc822; jonas@kwiboo.se, smtp.forwardemail.net, 167.172.40.54 X-ForwardEmail-ID: 666dc9a024e0254b39803ff3 Similar to DCLK_LCDC on RK3328, the DCLK_VOP on RK3228 is typically parented by the hdmiphy clk and it is expected that the DCLK_VOP and hdmiphy clk rate are kept in sync. Use CLK_SET_RATE_PARENT and CLK_SET_RATE_NO_REPARENT flags, same as used on RK3328, to make full use of all possible supported display modes. Fixes: 0a9d4ac08ebc ("clk: rockchip: set the clock ids for RK3228 VOP") Fixes: 307a2e9ac524 ("clk: rockchip: add clock controller for rk3228") Signed-off-by: Jonas Karlman --- drivers/clk/rockchip/clk-rk3228.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/rockchip/clk-rk3228.c b/drivers/clk/rockchip/clk-rk3228.c index a24a35553e13..7343d2d7676b 100644 --- a/drivers/clk/rockchip/clk-rk3228.c +++ b/drivers/clk/rockchip/clk-rk3228.c @@ -409,7 +409,7 @@ static struct rockchip_clk_branch rk3228_clk_branches[] __initdata = { RK2928_CLKSEL_CON(29), 0, 3, DFLAGS), DIV(0, "sclk_vop_pre", "sclk_vop_src", 0, RK2928_CLKSEL_CON(27), 8, 8, DFLAGS), - MUX(DCLK_VOP, "dclk_vop", mux_dclk_vop_p, 0, + MUX(DCLK_VOP, "dclk_vop", mux_dclk_vop_p, CLK_SET_RATE_PARENT | CLK_SET_RATE_NO_REPARENT, RK2928_CLKSEL_CON(27), 1, 1, MFLAGS), FACTOR(0, "xin12m", "xin24m", 0, 1, 2), -- 2.45.2