Received: by 2002:a05:7208:c24f:b0:81:d631:dc8 with SMTP id w15csp402219rbd; Thu, 4 Apr 2024 12:43:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWz9gY127ct6pFMmRLtTR9GpLZm0fl4j1T7D/oKcW5vm7cumEx6JUpFUpKvK5DJOUKTuJ3SP1Ge4Nk5BevfzNXmWm4vPf3f+WImzcZpcA== X-Google-Smtp-Source: AGHT+IE+IbAXaKYPAewPi7wXxRpAZY+dS6Njz4L9fOazWsKH+in6q1hyqz382JAD3uA6ZkURZ9rQ X-Received: by 2002:a05:6102:2926:b0:479:db2f:2f60 with SMTP id cz38-20020a056102292600b00479db2f2f60mr7395vsb.31.1712259812274; Thu, 04 Apr 2024 12:43:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712259812; cv=pass; d=google.com; s=arc-20160816; b=LX6CvFpKqmuMBpA6bnR2VdoZTIGrvN8x3bduvDv2xwFPSvnohrHARb+ZFcvStkx34E U4pZiewswEK+WhcJeL4XsoXpN0atpwttJuTbJURyHib2hh8SVWpeh86ucB41289wFBuO 6BpIkLpbFmPjJwpmy15BiPD0OphP7bVg2hcX+7FSBJ4fvQLMN4j3y8P/VnKsA28w9xaM fmroY+V82isbIrf+owrEJNUouwuQYbbxmYGjUj1mlUy/c3HJ/GNmxSLJjUBUtQflHNml +MELI+VDMjtu70Ir1yxUkm0By2GFZMd+OeTmGgV0QqTzzcPI1hnmBxTL6pcDAfisoKnx wELA== 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; bh=trTXj3dYIzzfvnBtckVwTFuwLhKvPkITbtrtP55h+ac=; fh=vjDnwQ1ub43u1bAXfGkiSEFfkLHtDSmpR1F1VER0WqI=; b=KtpW1fr7UTlKAqDDtr0T3kOw9WpsqC8neP0V611SRjUvlU+FKwtTWPrv8uCEU9ffVQ rJS3/GElS+tZkoDWtgw8FfRp1u9rtE6for24jHaNU/MPKzDmyLdkPd71GR/ahKUJYy+p 7il3VTLPSEhgaUzJ46yfYkvjf4RsfE70a93Ht+CSaetTtbpHlc1y0g3N3K/ysBeVykmc 4sZuD7M571KGo/ITF4RknGMTFSnRHmIHNfI6jNOugchZAA3WVHin97FZaOcaIG4AP6sM Mra5Cla+ai5w185CWdxMWfxVFEu2uY8o4nMx6/gYQ10zeQjSdeNscvkVb3F8exuAkxZM tiNA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=sntech.de dmarc=pass fromdomain=sntech.de); spf=pass (google.com: domain of linux-kernel+bounces-132055-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-132055-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id m1-20020ad44481000000b006969ff1bb18si49046qvt.25.2024.04.04.12.43.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 12:43:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-132055-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=sntech.de dmarc=pass fromdomain=sntech.de); spf=pass (google.com: domain of linux-kernel+bounces-132055-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-132055-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 0A2081C22F58 for ; Thu, 4 Apr 2024 19:43:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E03D0134434; Thu, 4 Apr 2024 19:43:24 +0000 (UTC) Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) (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 0F44212D76B; Thu, 4 Apr 2024 19:43:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.11.138.130 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712259804; cv=none; b=g1ER/mNZniydwsUsNlos6zNNz1zaNApQGBCaRXDZAYkam2XrDkSBqFr5FzOSNRfO5I9ov+rHcNWHuejpG4uh15CEXj+Y4syVWxGhhgl9GhLczzI6Lz2kUxAOzeVFz6ezvqtK8hZfNKrKRpisFW0JfoM0xLVpwcgTD0Wo/5jZYGs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712259804; c=relaxed/simple; bh=zUDgi6iudoTJasQRtCJQcwLNiKQJmhurWg2xbJqb//k=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=PUs52ogJC4Ndgop8m0VZPMqjJaMhGBJ1WywD+FBqBG2NkANNCYl9JPt7JA9ea4+5ibuyIEbcbuN1v9+4EbZtNySvY3Vr+Ya2OYCZ+3gVKTqEKZzK7u91jGeQg5BzCkjcSGe0g5SW0HeNK4ehf/Du/UG9Ok9Qj0Ld7jHhOxsk+64= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sntech.de; spf=pass smtp.mailfrom=sntech.de; arc=none smtp.client-ip=185.11.138.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sntech.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sntech.de Received: from i53875aaf.versanet.de ([83.135.90.175] helo=phil.localnet) by gloria.sntech.de with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rsSzU-0005We-Pz; Thu, 04 Apr 2024 21:43:16 +0200 From: Heiko Stuebner To: Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sascha Hauer Cc: linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, David Jander , Sascha Hauer Subject: Re: [PATCH] clk: rockchip: clk-rk3568.c: Add missing USB480M_PHY mux Date: Thu, 04 Apr 2024 21:43:15 +0200 Message-ID: <3612648.44csPzL39Z@phil> In-Reply-To: <20240404-clk-rockchip-rk3568-add-usb480m-phy-mux-v1-1-e8542afd58b9@pengutronix.de> References: <20240404-clk-rockchip-rk3568-add-usb480m-phy-mux-v1-1-e8542afd58b9@pengutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Hi Sascha, Am Donnerstag, 4. April 2024, 09:27:01 CEST schrieb Sascha Hauer: > From: David Jander > > The USB480M clock can source from a MUX that selects the clock to come > from either of the USB-phy internal 480MHz PLLs. These clocks are > provided by the USB phy driver. > > Signed-off-by: David Jander > Signed-off-by: Sascha Hauer > --- > drivers/clk/rockchip/clk-rk3568.c | 4 ++++ > include/dt-bindings/clock/rk3568-cru.h | 1 + > 2 files changed, 5 insertions(+) > > diff --git a/drivers/clk/rockchip/clk-rk3568.c b/drivers/clk/rockchip/clk-rk3568.c > index 8cb21d10beca2..2d44bcaef046b 100644 > --- a/drivers/clk/rockchip/clk-rk3568.c > +++ b/drivers/clk/rockchip/clk-rk3568.c > @@ -215,6 +215,7 @@ static const struct rockchip_cpuclk_reg_data rk3568_cpuclk_data = { > > PNAME(mux_pll_p) = { "xin24m" }; > PNAME(mux_usb480m_p) = { "xin24m", "usb480m_phy", "clk_rtc_32k" }; > +PNAME(mux_usb480m_phy_p) = { "clk_usbphy0_480m", "clk_usbphy1_480m"}; > PNAME(mux_armclk_p) = { "apll", "gpll" }; > PNAME(clk_i2s0_8ch_tx_p) = { "clk_i2s0_8ch_tx_src", "clk_i2s0_8ch_tx_frac", "i2s0_mclkin", "xin_osc0_half" }; > PNAME(clk_i2s0_8ch_rx_p) = { "clk_i2s0_8ch_rx_src", "clk_i2s0_8ch_rx_frac", "i2s0_mclkin", "xin_osc0_half" }; > @@ -485,6 +486,9 @@ static struct rockchip_clk_branch rk3568_clk_branches[] __initdata = { > MUX(USB480M, "usb480m", mux_usb480m_p, CLK_SET_RATE_PARENT, > RK3568_MODE_CON0, 14, 2, MFLAGS), > > + MUX(USB480M_PHY, "usb480m_phy", mux_usb480m_phy_p, CLK_SET_RATE_PARENT, > + RK3568_MISC_CON2, 15, 1, MFLAGS), > + > /* PD_CORE */ > COMPOSITE(0, "sclk_core_src", apll_gpll_npll_p, CLK_IGNORE_UNUSED, > RK3568_CLKSEL_CON(2), 8, 2, MFLAGS, 0, 4, DFLAGS | CLK_DIVIDER_READ_ONLY, > diff --git a/include/dt-bindings/clock/rk3568-cru.h b/include/dt-bindings/clock/rk3568-cru.h > index d29890865150d..5263085c5b238 100644 > --- a/include/dt-bindings/clock/rk3568-cru.h > +++ b/include/dt-bindings/clock/rk3568-cru.h > @@ -78,6 +78,7 @@ > #define CPLL_333M 9 > #define ARMCLK 10 > #define USB480M 11 > +#define USB480M_PHY 12 > #define ACLK_CORE_NIU2BUS 18 > #define CLK_CORE_PVTM 19 > #define CLK_CORE_PVTM_CORE 20 > Please separate the code change and clock-id addition into separate patches. That way dt-maintainers will more easily see that there are changes to the dt-binding inside. Other than that, the change looks fine :-) Thanks Heiko