From: Sebastian Reichel <sebastian.reichel@collabora.com> To: Elaine Zhang <zhangqing@rock-chips.com>, Michael Turquette <mturquette@baylibre.com>, Stephen Boyd <sboyd@kernel.org>, linux-clk@vger.kernel.org Cc: Kever Yang <kever.yang@rock-chips.com>, Heiko Stuebner <heiko@sntech.de>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, huangtao@rock-chips.com, andy.yan@rock-chips.com, devicetree@vger.kernel.org, linux-rockchip@lists.infradead.org, Sebastian Reichel <sebastian.reichel@collabora.com>, kernel@collabora.com Subject: [PATCH v7 0/7] rockchip: clk: improve GATE_LINK support Date: Wed, 13 Dec 2023 19:46:45 +0100 [thread overview] Message-ID: <20231213185114.47565-1-sebastian.reichel@collabora.com> (raw) Hi, I've send this as v7 for the series from Elaine [0], since it kinds of is. These patches are written from scratch, though. There are two parts: part 1: Elaine's series used to contain patches for the VO1GRF handling, but they were dropped at some point because of the CLK_NR_CLKS feedback from the DT maintainers. I added some code, that should hopefully fix everyones concerns by figuring out the right number at runtime. I also moved the correct handling of pclk_vo0grf/pclk_vo1grf before proper handling of GATE_LINK clocks, so that it can be merged ASAP. These patches are needed for HDMI RX/TX support on RK3588 and should not be blocked by the GATE_LINK discussion. part 2: For proper GATE_LINK support I tried implementing the suggestion from Stephen Boyd to use clk PM operations by creating MFD dynamically. This required some restructuring, since CLK_OF_DECLARE() is called before devices are available. All of this can be found in the last patch of this series. [0] https://lore.kernel.org/linux-clk/20231110020358.12840-1-zhangqing@rock-chips.com/ Greetings, -- Sebstian Sebastian Reichel (7): clk: rockchip: rk3588: fix CLK_NR_CLKS usage dt-bindings: clock: rk3588: drop CLK_NR_CLKS dt-bindings: clock: rk3588: add missing PCLK_VO1GRF clk: rockchip: rk3588: fix pclk_vo0grf and pclk_vo1grf clk: rockchip: rk3588: fix indent clk: rockchip: rk3588: use linked clock ID for GATE_LINK clk: rockchip: implement proper GATE_LINK support drivers/clk/rockchip/clk-rk3588.c | 163 ++++++++---------- drivers/clk/rockchip/clk.c | 85 ++++++++- drivers/clk/rockchip/clk.h | 18 ++ .../dt-bindings/clock/rockchip,rk3588-cru.h | 3 +- 4 files changed, 178 insertions(+), 91 deletions(-) -- 2.43.0 _______________________________________________ Linux-rockchip mailing list Linux-rockchip@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-rockchip
WARNING: multiple messages have this Message-ID (diff)
From: Sebastian Reichel <sebastian.reichel@collabora.com> To: Elaine Zhang <zhangqing@rock-chips.com>, Michael Turquette <mturquette@baylibre.com>, Stephen Boyd <sboyd@kernel.org>, linux-clk@vger.kernel.org Cc: Kever Yang <kever.yang@rock-chips.com>, Heiko Stuebner <heiko@sntech.de>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, huangtao@rock-chips.com, andy.yan@rock-chips.com, devicetree@vger.kernel.org, linux-rockchip@lists.infradead.org, Sebastian Reichel <sebastian.reichel@collabora.com>, kernel@collabora.com Subject: [PATCH v7 0/7] rockchip: clk: improve GATE_LINK support Date: Wed, 13 Dec 2023 19:46:45 +0100 [thread overview] Message-ID: <20231213185114.47565-1-sebastian.reichel@collabora.com> (raw) Hi, I've send this as v7 for the series from Elaine [0], since it kinds of is. These patches are written from scratch, though. There are two parts: part 1: Elaine's series used to contain patches for the VO1GRF handling, but they were dropped at some point because of the CLK_NR_CLKS feedback from the DT maintainers. I added some code, that should hopefully fix everyones concerns by figuring out the right number at runtime. I also moved the correct handling of pclk_vo0grf/pclk_vo1grf before proper handling of GATE_LINK clocks, so that it can be merged ASAP. These patches are needed for HDMI RX/TX support on RK3588 and should not be blocked by the GATE_LINK discussion. part 2: For proper GATE_LINK support I tried implementing the suggestion from Stephen Boyd to use clk PM operations by creating MFD dynamically. This required some restructuring, since CLK_OF_DECLARE() is called before devices are available. All of this can be found in the last patch of this series. [0] https://lore.kernel.org/linux-clk/20231110020358.12840-1-zhangqing@rock-chips.com/ Greetings, -- Sebstian Sebastian Reichel (7): clk: rockchip: rk3588: fix CLK_NR_CLKS usage dt-bindings: clock: rk3588: drop CLK_NR_CLKS dt-bindings: clock: rk3588: add missing PCLK_VO1GRF clk: rockchip: rk3588: fix pclk_vo0grf and pclk_vo1grf clk: rockchip: rk3588: fix indent clk: rockchip: rk3588: use linked clock ID for GATE_LINK clk: rockchip: implement proper GATE_LINK support drivers/clk/rockchip/clk-rk3588.c | 163 ++++++++---------- drivers/clk/rockchip/clk.c | 85 ++++++++- drivers/clk/rockchip/clk.h | 18 ++ .../dt-bindings/clock/rockchip,rk3588-cru.h | 3 +- 4 files changed, 178 insertions(+), 91 deletions(-) -- 2.43.0
next reply other threads:[~2023-12-13 18:51 UTC|newest] Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-12-13 18:46 Sebastian Reichel [this message] 2023-12-13 18:46 ` [PATCH v7 0/7] rockchip: clk: improve GATE_LINK support Sebastian Reichel 2023-12-13 18:46 ` [PATCH v7 1/7] clk: rockchip: rk3588: fix CLK_NR_CLKS usage Sebastian Reichel 2023-12-13 18:46 ` Sebastian Reichel 2023-12-14 8:42 ` Tao Huang 2023-12-14 8:42 ` Tao Huang 2023-12-13 18:46 ` [PATCH v7 2/7] dt-bindings: clock: rk3588: drop CLK_NR_CLKS Sebastian Reichel 2023-12-13 18:46 ` Sebastian Reichel 2023-12-14 8:01 ` Krzysztof Kozlowski 2023-12-14 8:01 ` Krzysztof Kozlowski 2023-12-13 18:46 ` [PATCH v7 3/7] dt-bindings: clock: rk3588: add missing PCLK_VO1GRF Sebastian Reichel 2023-12-13 18:46 ` Sebastian Reichel 2023-12-14 8:01 ` Krzysztof Kozlowski 2023-12-14 8:01 ` Krzysztof Kozlowski 2023-12-13 18:46 ` [PATCH v7 4/7] clk: rockchip: rk3588: fix pclk_vo0grf and pclk_vo1grf Sebastian Reichel 2023-12-13 18:46 ` Sebastian Reichel 2023-12-13 18:46 ` [PATCH v7 5/7] clk: rockchip: rk3588: fix indent Sebastian Reichel 2023-12-13 18:46 ` Sebastian Reichel 2023-12-13 18:46 ` [PATCH v7 6/7] clk: rockchip: rk3588: use linked clock ID for GATE_LINK Sebastian Reichel 2023-12-13 18:46 ` Sebastian Reichel 2023-12-13 18:46 ` [PATCH v7 7/7] clk: rockchip: implement proper GATE_LINK support Sebastian Reichel 2023-12-13 18:46 ` Sebastian Reichel
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20231213185114.47565-1-sebastian.reichel@collabora.com \ --to=sebastian.reichel@collabora.com \ --cc=andy.yan@rock-chips.com \ --cc=conor+dt@kernel.org \ --cc=devicetree@vger.kernel.org \ --cc=heiko@sntech.de \ --cc=huangtao@rock-chips.com \ --cc=kernel@collabora.com \ --cc=kever.yang@rock-chips.com \ --cc=krzysztof.kozlowski+dt@linaro.org \ --cc=linux-clk@vger.kernel.org \ --cc=linux-rockchip@lists.infradead.org \ --cc=mturquette@baylibre.com \ --cc=robh+dt@kernel.org \ --cc=sboyd@kernel.org \ --cc=zhangqing@rock-chips.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.