Re: [PATCH v2 2/3] clk: rockchip: Add dt-binding header for rk3576
From: Krzysztof Kozlowski <krzk@kernel.org>
Date: 2024-08-07 05:49:34
Also in:
linux-arm-kernel, linux-clk, linux-rockchip, lkml
On 06/08/2024 17:23, Detlev Casanova wrote:
On Sunday, 4 August 2024 05:53:57 EDT Krzysztof Kozlowski wrote:quoted
On 02/08/2024 23:35, Detlev Casanova wrote:quoted
From: Elaine Zhang <redacted> Add the dt-bindings header for the rk3576, that gets shared between the clock controller and the clock references in the dts. Signed-off-by: Elaine Zhang <redacted> Signed-off-by: Sugar Zhang <redacted> [rebased, separate clocks and resets] Signed-off-by: Detlev Casanova <detlev.casanova@collabora.com>Please use subject prefixes matching the subsystem. You can get them for example with `git log --oneline -- DIRECTORY_OR_FILE` on the directory your patch is touching. For bindings, the preferred subjects are explained here: https://www.kernel.org/doc/html/latest/devicetree/bindings/submitting-patche s.html#i-for-patch-submittersquoted
--- .../dt-bindings/clock/rockchip,rk3576-cru.h | 589 ++++++++++++++++++ .../dt-bindings/reset/rockchip,rk3576-cru.h | 484 ++++++++++++++ 2 files changed, 1073 insertions(+) create mode 100644 include/dt-bindings/clock/rockchip,rk3576-cru.h create mode 100644 include/dt-bindings/reset/rockchip,rk3576-cru.hThese are bindings. Must be squashed with previous patch.Ok, so you'd rather have a commit for reset definitions (dt-bindings: reset: Add rk3576 reset definitions) and another one for clock definitions + Documentation (dt-bindings: clock: Add rk3576 clock definitions and documentation) ?quoted
quoted
diff --git a/include/dt-bindings/clock/rockchip,rk3576-cru.hb/include/dt-bindings/clock/rockchip,rk3576-cru.h new file mode 100644 index 0000000000000..14b54543d1a11--- /dev/null +++ b/include/dt-bindings/clock/rockchip,rk3576-cru.h@@ -0,0 +1,589 @@ +/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */Weird license. Why not using recommended one?Oh right, I suppose "GPL-2.0 OR MIT" is better ? At least that is what I see for rk3588. include/dt-bindings/clock/rockchip,rv1126-cru.h uses "GPL-2.0+ OR MIT" though.quoted
quoted
+/* + * Copyright (c) 2023 Rockchip Electronics Co. Ltd. + * Author: Elaine Zhang [off-list ref] + */ + +#ifndef _DT_BINDINGS_CLK_ROCKCHIP_RK3576_H +#define _DT_BINDINGS_CLK_ROCKCHIP_RK3576_H + +/* cru-clocks indices */ + +/* cru plls */ +#define PLL_BPLL 1 +#define PLL_LPLL 3 +#define PLL_VPLL 4 +#define PLL_AUPLL 5 +#define PLL_CPLL 6 +#define PLL_GPLL 7 +#define PLL_PPLL 9Nope, indices start from 1 and are incremented continuously.Why start at 1 ? RK3588 starts at 0 for clocks and resets
Or 0, even better, sure. Best regards, Krzysztof