dt-bindings: clock: add rk3562 cru bindings
Subsystems (4)
PATCH v2 1/3 dt-bindings: clock: add rk3562 cru bindings
Document the device tree bindings of the rockchip rk3562 SoC clock and reset unit.
---
Changes in v2:
- remove rockchip,grf info
.../bindings/clock/rockchip,rk3562-cru.yaml | 55 +++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/rockchip,rk3562-cru.yaml
Documentation/devicetree/bindings/clock/rockchip,rk3562-cru.yaml new file +55 -0
@@ -0,0 +1,55 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/rockchip,rk3562-cru.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Rockchip rk3562 Clock and Reset Control Module + +maintainers: + - Elaine Zhang <[email protected]> + - Heiko Stuebner <[email protected]> + +description: + The RK3562 clock controller generates the clock and also implements a reset + controller for SoC peripherals. For example it provides SCLK_UART2 and + PCLK_UART2, as well as SRST_P_UART2 and SRST_S_UART2 for the second UART + module. + +properties: + compatible: + const: rockchip,rk3562-cru + + reg: + maxItems: 1 + + "#clock-cells": + const: 1 + + "#reset-cells": + const: 1 + + clocks: + maxItems: 2 + + clock-names: + items: + - const: xin24m + - const: xin32k + +required: + - compatible + - reg + - "#clock-cells" + - "#reset-cells" + +additionalProperties: false + +examples: + - | + clock-controller@ff100000 { + compatible = "rockchip,rk3562-cru"; + reg = <0xff100000 0x40000>; + #clock-cells = <1>; + #reset-cells = <1>; + };
Signature · 7 lines
2.25.1 _______________________________________________ Linux-rockchip mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-rockchip
PATCH v2 2/3 dt-bindings: clock, reset: rockchip: Add support for rk3562
From: Finley Xiao <[email protected]>
Add the dt-bindings header for the rk3562, that gets shared between the clock controller and the clock references in the dts. Add softreset ID for rk3562.
---
Changes in v2:
- rename the file to rockchip,rk3562-cru.h
- remove CLK_NR_CLKS
- add new file for reset ID
- update to use dual license
.../dt-bindings/clock/rockchip,rk3562-cru.h | 377 ++++++++++++++++++ .../dt-bindings/reset/rockchip,rk3562-cru.h | 360 +++++++++++++++++ 2 files changed, 737 insertions(+) create mode 100644 include/dt-bindings/clock/rockchip,rk3562-cru.h create mode 100644 include/dt-bindings/reset/rockchip,rk3562-cru.h
include/dt-bindings/clock/rockchip,rk3562-cru.h new file +377 -0
@@ -0,0 +1,377 @@ +/* SPDX-License-Identifier: (GPL-2.0 OR MIT) */ +/* +* Copyright (c) 2022-2024 Rockchip Electronics Co., Ltd. +* Author: Finley Xiao <[email protected]> +*/ + +#ifndef _DT_BINDINGS_CLK_ROCKCHIP_RK3562_H +#define _DT_BINDINGS_CLK_ROCKCHIP_RK3562_H + +/* cru-clocks indices */ + +/* cru plls */ +#define PLL_APLL 1 +#define PLL_GPLL 2 +#define PLL_VPLL 3 +#define PLL_HPLL 4 +#define PLL_CPLL 5 +#define PLL_DPLL 6 + +/* cru clocks */ +#define ARMCLK 8 +#define CLK_GPU 9 +#define ACLK_RKNN 10 +#define CLK_DDR 11 +#define CLK_MATRIX_50M_SRC 12 +#define CLK_MATRIX_100M_SRC 13 +#define CLK_MATRIX_125M_SRC 14 +#define CLK_MATRIX_200M_SRC 15 +#define CLK_MATRIX_300M_SRC 16 +#define ACLK_TOP 17 +#define ACLK_TOP_VIO 18 +#define CLK_CAM0_OUT2IO 19 +#define CLK_CAM1_OUT2IO 20 +#define CLK_CAM2_OUT2IO 21 +#define CLK_CAM3_OUT2IO 22 +#define ACLK_BUS 23 +#define HCLK_BUS 24 +#define PCLK_BUS 25 +#define PCLK_I2C1 26 +#define PCLK_I2C2 27 +#define PCLK_I2C3 28 +#define PCLK_I2C4 29 +#define PCLK_I2C5 30 +#define CLK_I2C 31 +#define CLK_I2C1 32 +#define CLK_I2C2 33 +#define CLK_I2C3 34 +#define CLK_I2C4 35 +#define CLK_I2C5 36 +#define DCLK_BUS_GPIO 37 +#define DCLK_BUS_GPIO3 38 +#define DCLK_BUS_GPIO4 39 +#define PCLK_TIMER 40 +#define CLK_TIMER0 41 +#define CLK_TIMER1 42 +#define CLK_TIMER2 43 +#define CLK_TIMER3 44 +#define CLK_TIMER4 45 +#define CLK_TIMER5 46 +#define PCLK_STIMER 47 +#define CLK_STIMER0 48 +#define CLK_STIMER1 49 +#define PCLK_WDTNS 50 +#define CLK_WDTNS 51 +#define PCLK_GRF 52 +#define PCLK_SGRF 53 +#define PCLK_MAILBOX 54 +#define PCLK_INTC 55 +#define ACLK_BUS_GIC400 56 +#define ACLK_BUS_SPINLOCK 57 +#define ACLK_DCF 58 +#define PCLK_DCF 59 +#define FCLK_BUS_CM0_CORE 60 +#define CLK_BUS_CM0_RTC 61 +#define HCLK_ICACHE 62 +#define HCLK_DCACHE 63 +#define PCLK_TSADC 64 +#define CLK_TSADC 65 +#define CLK_TSADC_TSEN 66 +#define PCLK_DFT2APB 67 +#define CLK_SARADC_VCCIO156 68 +#define PCLK_GMAC 69 +#define ACLK_GMAC 70 +#define CLK_GMAC_125M_CRU_I 71 +#define CLK_GMAC_50M_CRU_I 72 +#define CLK_GMAC_50M_O 73 +#define CLK_GMAC_ETH_OUT2IO 74 +#define PCLK_APB2ASB_VCCIO156 75 +#define PCLK_TO_VCCIO156 76 +#define PCLK_DSIPHY 77 +#define PCLK_DSITX 78 +#define PCLK_CPU_EMA_DET 79 +#define PCLK_HASH 80 +#define PCLK_TOPCRU 81 +#define PCLK_ASB2APB_VCCIO156 82 +#define PCLK_IOC_VCCIO156 83 +#define PCLK_GPIO3_VCCIO156 84 +#define PCLK_GPIO4_VCCIO156 85 +#define PCLK_SARADC_VCCIO156 86 +#define PCLK_MAC100 87 +#define ACLK_MAC100 89 +#define CLK_MAC100_50M_MATRIX 90 +#define HCLK_CORE 91 +#define PCLK_DDR 92 +#define CLK_MSCH_BRG_BIU 93 +#define PCLK_DDR_HWLP 94 +#define PCLK_DDR_UPCTL 95 +#define PCLK_DDR_PHY 96 +#define PCLK_DDR_DFICTL 97 +#define PCLK_DDR_DMA2DDR 98 +#define PCLK_DDR_MON 99 +#define TMCLK_DDR_MON 100 +#define PCLK_DDR_GRF 101 +#define PCLK_DDR_CRU 102 +#define PCLK_SUBDDR_CRU 103 +#define CLK_GPU_PRE 104 +#define ACLK_GPU_PRE 105 +#define CLK_GPU_BRG 107 +#define CLK_NPU_PRE 108 +#define HCLK_NPU_PRE 109 +#define HCLK_RKNN 111 +#define ACLK_PERI 112 +#define HCLK_PERI 113 +#define PCLK_PERI 114 +#define PCLK_PERICRU 115 +#define HCLK_SAI0 116 +#define CLK_SAI0_SRC 117 +#define CLK_SAI0_FRAC 118 +#define CLK_SAI0 119 +#define MCLK_SAI0 120 +#define MCLK_SAI0_OUT2IO 121 +#define HCLK_SAI1 122 +#define CLK_SAI1_SRC 123 +#define CLK_SAI1_FRAC 124 +#define CLK_SAI1 125 +#define MCLK_SAI1 126 +#define MCLK_SAI1_OUT2IO 127 +#define HCLK_SAI2 128 +#define CLK_SAI2_SRC 129 +#define CLK_SAI2_FRAC 130 +#define CLK_SAI2 131 +#define MCLK_SAI2 132 +#define MCLK_SAI2_OUT2IO 133 +#define HCLK_DSM 134 +#define CLK_DSM 135 +#define HCLK_PDM 136 +#define MCLK_PDM 137 +#define HCLK_SPDIF 138 +#define CLK_SPDIF_SRC 139 +#define CLK_SPDIF_FRAC 140 +#define CLK_SPDIF 141 +#define MCLK_SPDIF 142 +#define HCLK_SDMMC0 143 +#define CCLK_SDMMC0 144 +#define HCLK_SDMMC1 145 +#define CCLK_SDMMC1 146 +#define SCLK_SDMMC0_DRV 147 +#define SCLK_SDMMC0_SAMPLE 148 +#define SCLK_SDMMC1_DRV 149 +#define SCLK_SDMMC1_SAMPLE 150 +#define HCLK_EMMC 151 +#define ACLK_EMMC 152 +#define CCLK_EMMC 153 +#define BCLK_EMMC 154 +#define TMCLK_EMMC 155 +#define SCLK_SFC 156 +#define HCLK_SFC 157 +#define HCLK_USB2HOST 158 +#define HCLK_USB2HOST_ARB 159 +#define PCLK_SPI1 160 +#define CLK_SPI1 161 +#define SCLK_IN_SPI1 162 +#define PCLK_SPI2 163 +#define CLK_SPI2 164 +#define SCLK_IN_SPI2 165 +#define PCLK_UART1 166 +#define PCLK_UART2 167 +#define PCLK_UART3 168 +#define PCLK_UART4 169 +#define PCLK_UART5 170 +#define PCLK_UART6 171 +#define PCLK_UART7 172 +#define PCLK_UART8 173 +#define PCLK_UART9 174 +#define CLK_UART1_SRC 175 +#define CLK_UART1_FRAC 176 +#define CLK_UART1 177 +#define SCLK_UART1 178 +#define CLK_UART2_SRC 179 +#define CLK_UART2_FRAC 180 +#define CLK_UART2 181 +#define SCLK_UART2 182 +#define CLK_UART3_SRC 183 +#define CLK_UART3_FRAC 184 +#define CLK_UART3 185 +#define SCLK_UART3 186 +#define CLK_UART4_SRC 187 +#define CLK_UART4_FRAC 188 +#define CLK_UART4 189 +#define SCLK_UART4 190 +#define CLK_UART5_SRC 191 +#define CLK_UART5_FRAC 192 +#define CLK_UART5 193 +#define SCLK_UART5 194 +#define CLK_UART6_SRC 195 +#define CLK_UART6_FRAC 196 +#define CLK_UART6 197 +#define SCLK_UART6 198 +#define CLK_UART7_SRC 199 +#define CLK_UART7_FRAC 200 +#define CLK_UART7 201 +#define SCLK_UART7 202 +#define CLK_UART8_SRC 203 +#define CLK_UART8_FRAC 204 +#define CLK_UART8 205 +#define SCLK_UART8 206 +#define CLK_UART9_SRC 207 +#define CLK_UART9_FRAC 208 +#define CLK_UART9 209 +#define SCLK_UART9 210 +#define PCLK_PWM1_PERI 211 +#define CLK_PWM1_PERI 212 +#define CLK_CAPTURE_PWM1_PERI 213 +#define PCLK_PWM2_PERI 214 +#define CLK_PWM2_PERI 215 +#define CLK_CAPTURE_PWM2_PERI 216 +#define PCLK_PWM3_PERI 217 +#define CLK_PWM3_PERI 218 +#define CLK_CAPTURE_PWM3_PERI 219 +#define PCLK_CAN0 220 +#define CLK_CAN0 221 +#define PCLK_CAN1 222 +#define CLK_CAN1 223 +#define ACLK_CRYPTO 224 +#define HCLK_CRYPTO 225 +#define PCLK_CRYPTO 226 +#define CLK_CORE_CRYPTO 227 +#define CLK_PKA_CRYPTO 228 +#define HCLK_KLAD 229 +#define PCLK_KEY_READER 230 +#define HCLK_RK_RNG_NS 231 +#define HCLK_RK_RNG_S 232 +#define HCLK_TRNG_NS 233 +#define HCLK_TRNG_S 234 +#define HCLK_CRYPTO_S 235 +#define PCLK_PERI_WDT 236 +#define TCLK_PERI_WDT 237 +#define ACLK_SYSMEM 238 +#define HCLK_BOOTROM 239 +#define PCLK_PERI_GRF 240 +#define ACLK_DMAC 241 +#define ACLK_RKDMAC 242 +#define PCLK_OTPC_NS 243 +#define CLK_SBPI_OTPC_NS 244 +#define CLK_USER_OTPC_NS 245 +#define PCLK_OTPC_S 246 +#define CLK_SBPI_OTPC_S 247 +#define CLK_USER_OTPC_S 248 +#define CLK_OTPC_ARB 249 +#define PCLK_OTPPHY 250 +#define PCLK_USB2PHY 251 +#define PCLK_PIPEPHY 252 +#define PCLK_SARADC 253 +#define CLK_SARADC 254 +#define PCLK_IOC_VCCIO234 255 +#define PCLK_PERI_GPIO1 256 +#define PCLK_PERI_GPIO2 257 +#define DCLK_PERI_GPIO 258 +#define DCLK_PERI_GPIO1 259 +#define DCLK_PERI_GPIO2 260 +#define ACLK_PHP 261 +#define PCLK_PHP 262 +#define ACLK_PCIE20_MST 263 +#define ACLK_PCIE20_SLV 264 +#define ACLK_PCIE20_DBI 265 +#define PCLK_PCIE20 266 +#define CLK_PCIE20_AUX 267 +#define ACLK_USB3OTG 268 +#define CLK_USB3OTG_SUSPEND 269 +#define CLK_USB3OTG_REF 270 +#define CLK_PIPEPHY_REF_FUNC 271 +#define CLK_200M_PMU 272 +#define CLK_RTC_32K 273 +#define CLK_RTC32K_FRAC 274 +#define BUSCLK_PDPMU0 275 +#define PCLK_PMU0_CRU 276 +#define PCLK_PMU0_PMU 277 +#define CLK_PMU0_PMU 278 +#define PCLK_PMU0_HP_TIMER 279 +#define CLK_PMU0_HP_TIMER 280 +#define CLK_PMU0_32K_HP_TIMER 281 +#define PCLK_PMU0_PVTM 282 +#define CLK_PMU0_PVTM 283 +#define PCLK_IOC_PMUIO 284 +#define PCLK_PMU0_GPIO0 285 +#define DBCLK_PMU0_GPIO0 286 +#define PCLK_PMU0_GRF 287 +#define PCLK_PMU0_SGRF 288 +#define CLK_DDR_FAIL_SAFE 289 +#define PCLK_PMU0_SCRKEYGEN 290 +#define PCLK_PMU1_CRU 291 +#define HCLK_PMU1_MEM 292 +#define PCLK_PMU0_I2C0 293 +#define CLK_PMU0_I2C0 294 +#define PCLK_PMU1_UART0 295 +#define CLK_PMU1_UART0_SRC 296 +#define CLK_PMU1_UART0_FRAC 297 +#define CLK_PMU1_UART0 298 +#define SCLK_PMU1_UART0 299 +#define PCLK_PMU1_SPI0 300 +#define CLK_PMU1_SPI0 301 +#define SCLK_IN_PMU1_SPI0 302 +#define PCLK_PMU1_PWM0 303 +#define CLK_PMU1_PWM0 304 +#define CLK_CAPTURE_PMU1_PWM0 305 +#define CLK_PMU1_WIFI 306 +#define FCLK_PMU1_CM0_CORE 307 +#define CLK_PMU1_CM0_RTC 308 +#define PCLK_PMU1_WDTNS 309 +#define CLK_PMU1_WDTNS 310 +#define PCLK_PMU1_MAILBOX 311 +#define CLK_PIPEPHY_DIV 312 +#define CLK_PIPEPHY_XIN24M 313 +#define CLK_PIPEPHY_REF 314 +#define CLK_24M_SSCSRC 315 +#define CLK_USB2PHY_XIN24M 316 +#define CLK_USB2PHY_REF 317 +#define CLK_MIPIDSIPHY_XIN24M 318 +#define CLK_MIPIDSIPHY_REF 319 +#define ACLK_RGA_PRE 320 +#define HCLK_RGA_PRE 321 +#define ACLK_RGA 322 +#define HCLK_RGA 323 +#define CLK_RGA_CORE 324 +#define ACLK_JDEC 325 +#define HCLK_JDEC 326 +#define ACLK_VDPU_PRE 327 +#define CLK_RKVDEC_HEVC_CA 328 +#define HCLK_VDPU_PRE 329 +#define ACLK_RKVDEC 330 +#define HCLK_RKVDEC 331 +#define CLK_RKVENC_CORE 332 +#define ACLK_VEPU_PRE 333 +#define HCLK_VEPU_PRE 334 +#define ACLK_RKVENC 335 +#define HCLK_RKVENC 336 +#define ACLK_VI 337 +#define HCLK_VI 338 +#define PCLK_VI 339 +#define ACLK_ISP 340 +#define HCLK_ISP 341 +#define CLK_ISP 342 +#define ACLK_VICAP 343 +#define HCLK_VICAP 344 +#define DCLK_VICAP 345 +#define CSIRX0_CLK_DATA 346 +#define CSIRX1_CLK_DATA 347 +#define CSIRX2_CLK_DATA 348 +#define CSIRX3_CLK_DATA 349 +#define PCLK_CSIHOST0 350 +#define PCLK_CSIHOST1 351 +#define PCLK_CSIHOST2 352 +#define PCLK_CSIHOST3 353 +#define PCLK_CSIPHY0 354 +#define PCLK_CSIPHY1 355 +#define ACLK_VO_PRE 356 +#define HCLK_VO_PRE 357 +#define ACLK_VOP 358 +#define HCLK_VOP 359 +#define DCLK_VOP 360 +#define DCLK_VOP1 361 +#define ACLK_CRYPTO_S 362 +#define PCLK_CRYPTO_S 363 +#define CLK_CORE_CRYPTO_S 364 +#define CLK_PKA_CRYPTO_S 365 + +#endif
include/dt-bindings/reset/rockchip,rk3562-cru.h new file +360 -0
360 lines not on this page · raw message
Signature · 7 lines
2.25.1 _______________________________________________ Linux-rockchip mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-rockchip
Re: [PATCH v2 2/3] dt-bindings: clock, reset: rockchip: Add support for rk3562
Quoted 11 lines · Kever Yang
From: Finley Xiao <[email protected]>
Add the dt-bindings header for the rk3562, that gets shared between the clock controller and the clock references in the dts. Add softreset ID for rk3562.
Signed-off-by Finley Xiao <[email protected]>Signed-off-by Liang Chen <[email protected]>Signed-off-by Kever Yang <[email protected]>---
Quoted 8 lines
Changes in v2:
- rename the file to rockchip,rk3562-cru.h
- removeCLK_NR_CLKS
- add new file for reset ID
- update to use dual license.../dt-bindings/clock/rockchip,rk3562-cru.h | 377 ++++++++++++++++++ .../dt-bindings/reset/rockchip,rk3562-cru.h | 360 +++++++++++++++++
No, that's not a separate patch. Headers *ALWAYS* go with the bindings patch.
include/dt-bindings/clock/rockchip,rk3562-cru.h line 1
Quoted 11 lines
2 files changed, 737 insertions(+) create mode 100644 include/dt-bindings/clock/rockchip,rk3562-cru.h create mode 100644 include/dt-bindings/reset/rockchip,rk3562-cru.hinclude/dt-bindings/clock/rockchip,rk3562-cru.h new file +1
-0@@ -0,0 +1,377 @@ +/* SPDX-License-Identifier: (GPL-2.0 OR MIT) */
Why not using license requested by checkpatch?
include/dt-bindings/clock/rockchip,rk3562-cru.h line 13
Quoted 12 lines
include/dt-bindings/clock/rockchip,rk3562-cru.h new file +12
-0+/* +* Copyright (c) 2022-2024 Rockchip Electronics Co., Ltd. +* Author: Finley Xiao <[email protected]> +*/ + +#ifndef _DT_BINDINGS_CLK_ROCKCHIP_RK3562_H +#define _DT_BINDINGS_CLK_ROCKCHIP_RK3562_H + +/* cru-clocks indices */ + +/* cru plls */ +#define PLL_APLL 1
Start with 0. Your other binding also starts with 0, so be consistent.
include/dt-bindings/clock/rockchip,rk3562-cru.h line 20
Quoted 7 lines
include/dt-bindings/clock/rockchip,rk3562-cru.h new file +7
-0+#define PLL_GPLL 2 +#define PLL_VPLL 3 +#define PLL_HPLL 4 +#define PLL_CPLL 5 +#define PLL_DPLL 6 + +/* cru clocks */
Missing clock for 7. You are not supposed to have any holes here.
include/dt-bindings/clock/rockchip,rk3562-cru.h line 23
Quoted 3 lines
include/dt-bindings/clock/rockchip,rk3562-cru.h new file +3
-0+#define ARMCLK 8 +#define CLK_GPU 9 +#define ACLK_RKNN 10
Best regards,
Krzysztof
Re: [PATCH v2 2/3] dt-bindings: clock, reset: rockchip: Add support for rk3562
Hi Krzysztof,
Quoted 18 lines · Krzysztof Kozlowski
Quoted 17 lines · Kever Yang
From: Finley Xiao <[email protected]>
Add the dt-bindings header for the rk3562, that gets shared between the clock controller and the clock references in the dts. Add softreset ID for rk3562.
Signed-off-by Finley Xiao <[email protected]>Signed-off-by Liang Chen <[email protected]>Signed-off-by Kever Yang <[email protected]>---
Changes in v2:
- rename the file to rockchip,rk3562-cru.h
- removeCLK_NR_CLKS
- add new file for reset ID
- update to use dual license
Quoted 5 lines
Quoted 2 lines
.../dt-bindings/clock/rockchip,rk3562-cru.h | 377 ++++++++++++++++++ .../dt-bindings/reset/rockchip,rk3562-cru.h | 360 +++++++++++++++++No, that's not a separate patch. Headers *ALWAYS* go with the bindings patch.
Will fix.
Quoted 4 lines
Quoted 4 lines
2 files changed, 737 insertions(+)create mode 100644
include/dt-bindings/clock/rockchip,rk3562-cru.hcreate mode 100644include/dt-bindings/reset/rockchip,rk3562-cru.h
Quoted 8 lines
include/dt-bindings/clock/rockchip,rk3562-cru.h line 1
Quoted 7 lines
include/dt-bindings/clock/rockchip,rk3562-cru.h new file +1
-0@@ -0,0 +1,377 @@ +/* SPDX-License-Identifier: (GPL-2.0 OR MIT) */ Why not using license requested by checkpatch?
The checkpatch does not report error/warning for this license, and this is the same as many other SoCs.
Which license is recommend in the header file?
Quoted 14 lines
include/dt-bindings/clock/rockchip,rk3562-cru.h line 13
Quoted 13 lines
include/dt-bindings/clock/rockchip,rk3562-cru.h new file +12
-0+/* +* Copyright (c) 2022-2024 Rockchip Electronics Co., Ltd. +* Author: Finley Xiao <[email protected]> +*/ + +#ifndef _DT_BINDINGS_CLK_ROCKCHIP_RK3562_H +#define _DT_BINDINGS_CLK_ROCKCHIP_RK3562_H + +/* cru-clocks indices */ + +/* cru plls */ +#define PLL_APLL 1Start with 0. Your other binding also starts with 0, so be consistent.
Will fix.
Quoted 9 lines
include/dt-bindings/clock/rockchip,rk3562-cru.h line 20
Quoted 8 lines
include/dt-bindings/clock/rockchip,rk3562-cru.h new file +7
-0+#define PLL_GPLL 2 +#define PLL_VPLL 3 +#define PLL_HPLL 4 +#define PLL_CPLL 5 +#define PLL_DPLL 6 + +/* cru clocks */ Missing clock for 7. You are not supposed to have any holes here.
Will fix.
Thanks,
- Kever
Quoted 7 lines
include/dt-bindings/clock/rockchip,rk3562-cru.h line 23
Quoted 3 lines
include/dt-bindings/clock/rockchip,rk3562-cru.h new file +3
-0+#define ARMCLK 8 +#define CLK_GPU 9 +#define ACLK_RKNN 10Best regards,
Krzysztof
Heiko Stübner
maintainerRe: [PATCH v2 2/3] dt-bindings: clock, reset: rockchip: Add support for rk3562
Am Montag, 24. Februar 2025, 09:47:40 MEZ schrieb Kever Yang:
Quoted 40 lines
Hi Krzysztof,
Quoted 18 lines · Krzysztof Kozlowski
Quoted 17 lines · Kever Yang
From: Finley Xiao <[email protected]>
Add the dt-bindings header for the rk3562, that gets shared between the clock controller and the clock references in the dts. Add softreset ID for rk3562.
Signed-off-by Finley Xiao <[email protected]>Signed-off-by Liang Chen <[email protected]>Signed-off-by Kever Yang <[email protected]>---
Changes in v2:
- rename the file to rockchip,rk3562-cru.h
- removeCLK_NR_CLKS
- add new file for reset ID
- update to use dual licenseQuoted 5 lines
Quoted 2 lines
.../dt-bindings/clock/rockchip,rk3562-cru.h | 377 ++++++++++++++++++ .../dt-bindings/reset/rockchip,rk3562-cru.h | 360 +++++++++++++++++No, that's not a separate patch. Headers *ALWAYS* go with the bindings patch.
Will fix.
Quoted 4 lines
Quoted 4 lines
2 files changed, 737 insertions(+)create mode 100644
include/dt-bindings/clock/rockchip,rk3562-cru.hcreate mode 100644include/dt-bindings/reset/rockchip,rk3562-cru.hQuoted 8 lines
include/dt-bindings/clock/rockchip,rk3562-cru.h line 1
Quoted 7 lines
include/dt-bindings/clock/rockchip,rk3562-cru.h new file +1
-0@@ -0,0 +1,377 @@ +/* SPDX-License-Identifier: (GPL-2.0 OR MIT) */ Why not using license requested by checkpatch?
Quoted 4 lines
The checkpatch does not report error/warning for this license, and this is the same as many other SoCs.
Which license is recommend in the header file?
I suppose
/* SPDX-License-Identifier: (GPL-2.0-only OR MIT) */
According to [0] "GPL-2.0" and "GPL-2.0-only" are equivalent, but I guess "GPL-2.0-only" simply makes the "only" part more visible.
Heiko
[0] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/LICENSES/preferred/GPL-2.0
Re: [PATCH v2 2/3] dt-bindings: clock, reset: rockchip: Add support for rk3562
Quoted 44 lines · Heiko Stübner
Am Montag, 24. Februar 2025, 09:47:40 MEZ schrieb Kever Yang:
Quoted 43 lines
Hi Krzysztof,
Quoted 18 lines · Krzysztof Kozlowski
Quoted 17 lines · Kever Yang
From: Finley Xiao <[email protected]>
Add the dt-bindings header for the rk3562, that gets shared between the clock controller and the clock references in the dts. Add softreset ID for rk3562.
Signed-off-by Finley Xiao <[email protected]>Signed-off-by Liang Chen <[email protected]>Signed-off-by Kever Yang <[email protected]>---
Changes in v2:
- rename the file to rockchip,rk3562-cru.h
- removeCLK_NR_CLKS
- add new file for reset ID
- update to use dual licenseQuoted 5 lines
Quoted 2 lines
.../dt-bindings/clock/rockchip,rk3562-cru.h | 377 ++++++++++++++++++ .../dt-bindings/reset/rockchip,rk3562-cru.h | 360 +++++++++++++++++No, that's not a separate patch. Headers *ALWAYS* go with the bindings patch.
Will fix.
Quoted 4 lines
Quoted 4 lines
2 files changed, 737 insertions(+)create mode 100644
include/dt-bindings/clock/rockchip,rk3562-cru.hcreate mode 100644include/dt-bindings/reset/rockchip,rk3562-cru.hQuoted 8 lines
include/dt-bindings/clock/rockchip,rk3562-cru.h line 1
Quoted 7 lines
include/dt-bindings/clock/rockchip,rk3562-cru.h new file +1
-0@@ -0,0 +1,377 @@ +/* SPDX-License-Identifier: (GPL-2.0 OR MIT) */ Why not using license requested by checkpatch?
The checkpatch does not report error/warning for this license, and this is the same as many other SoCs.
Quoted 8 lines
Quoted 1 line
Which license is recommend in the header file?
I suppose
/* SPDX-License-Identifier: (GPL-2.0-only OR MIT) */
According to [0] "GPL-2.0" and "GPL-2.0-only" are equivalent, but I guess "GPL-2.0-only" simply makes the "only" part more visible.
No, rather use the one expressed in checkpatch.
Best regards,
Krzysztof
PATCH v2 3/3 clk: rockchip: Add clock controller for the RK3562
In reply to Kever YangFrom: Finley Xiao <[email protected]>
Add the clock tree definition for the new RK3562 SoC.
---
Changes in v2:
- Update the reset ID with rst-rk3562.c
- remove CLK_NR_CLKS
drivers/clk/rockchip/Kconfig | 7 + drivers/clk/rockchip/Makefile | 1 + drivers/clk/rockchip/clk-rk3562.c | 1113 +++++++++++++++++++++++++++++ drivers/clk/rockchip/clk.h | 40 ++ drivers/clk/rockchip/rst-rk3562.c | 429 +++++++++++ 5 files changed, 1590 insertions(+) create mode 100644 drivers/clk/rockchip/clk-rk3562.c create mode 100644 drivers/clk/rockchip/rst-rk3562.c
drivers/clk/rockchip/Kconfig +7 -0
@@ -100,6 +100,13 @@ config CLK_RK3568 help Build the driver for RK3568 Clock Driver. +config CLK_RK3562 + tristate "Rockchip RK3562 clock controller support" + depends on ARM64 || COMPILE_TEST + default y + help + Build the driver for RK3562 Clock Driver. + config CLK_RK3576 bool "Rockchip RK3576 clock controller support" depends on ARM64 || COMPILE_TEST
drivers/clk/rockchip/Makefile +1 -0
@@ -27,6 +27,7 @@ obj-$(CONFIG_CLK_RK3308) += clk-rk3308.o obj-$(CONFIG_CLK_RK3328) += clk-rk3328.o obj-$(CONFIG_CLK_RK3368) += clk-rk3368.o obj-$(CONFIG_CLK_RK3399) += clk-rk3399.o +obj-$(CONFIG_CLK_RK3562) += clk-rk3562.o rst-rk3562.o obj-$(CONFIG_CLK_RK3568) += clk-rk3568.o obj-$(CONFIG_CLK_RK3576) += clk-rk3576.o rst-rk3576.o obj-$(CONFIG_CLK_RK3588) += clk-rk3588.o rst-rk3588.o
drivers/clk/rockchip/clk-rk3562.c new file +1113 -0
1,113 lines not on this page · raw message
drivers/clk/rockchip/clk.h +40 -0
@@ -207,6 +207,45 @@ struct clk;#define RK3399_PMU_CLKGATE_CON (x) ((x) * 0x4 + 0x100)#define RK3399_PMU_SOFTRST_CON (x) ((x) * 0x4 + 0x110) +#define RK3562_PMU0_CRU_BASE 0x10000 +#define RK3562_PMU1_CRU_BASE 0x18000 +#define RK3562_DDR_CRU_BASE 0x20000 +#define RK3562_SUBDDR_CRU_BASE 0x28000 +#define RK3562_PERI_CRU_BASE 0x30000 + +#define RK3562_PLL_CON (x) RK2928_PLL_CON(x) +#define RK3562_PMU1_PLL_CON (x) ((x) * 0x4 + RK3562_PMU1_CRU_BASE + 0x40) +#define RK3562_SUBDDR_PLL_CON (x) ((x) * 0x4 + RK3562_SUBDDR_CRU_BASE + 0x20) +#define RK3562_MODE_CON 0x600 +#define RK3562_PMU1_MODE_CON (RK3562_PMU1_CRU_BASE + 0x380) +#define RK3562_SUBDDR_MODE_CON (RK3562_SUBDDR_CRU_BASE + 0x380) +#define RK3562_CLKSEL_CON (x) ((x) * 0x4 + 0x100) +#define RK3562_CLKGATE_CON (x) ((x) * 0x4 + 0x300) +#define RK3562_SOFTRST_CON (x) ((x) * 0x4 + 0x400) +#define RK3562_DDR_CLKSEL_CON (x) ((x) * 0x4 + RK3562_DDR_CRU_BASE + 0x100) +#define RK3562_DDR_CLKGATE_CON (x) ((x) * 0x4 + RK3562_DDR_CRU_BASE + 0x180) +#define RK3562_DDR_SOFTRST_CON (x) ((x) * 0x4 + RK3562_DDR_CRU_BASE + 0x200) +#define RK3562_SUBDDR_CLKSEL_CON (x) ((x) * 0x4 + RK3562_SUBDDR_CRU_BASE + 0x100) +#define RK3562_SUBDDR_CLKGATE_CON (x) ((x) * 0x4 + RK3562_SUBDDR_CRU_BASE + 0x180) +#define RK3562_SUBDDR_SOFTRST_CON (x) ((x) * 0x4 + RK3562_SUBDDR_CRU_BASE + 0x200) +#define RK3562_PERI_CLKSEL_CON (x) ((x) * 0x4 + RK3562_PERI_CRU_BASE + 0x100) +#define RK3562_PERI_CLKGATE_CON (x) ((x) * 0x4 + RK3562_PERI_CRU_BASE + 0x300) +#define RK3562_PERI_SOFTRST_CON (x) ((x) * 0x4 + RK3562_PERI_CRU_BASE + 0x400) +#define RK3562_PMU0_CLKSEL_CON (x) ((x) * 0x4 + RK3562_PMU0_CRU_BASE + 0x100) +#define RK3562_PMU0_CLKGATE_CON (x) ((x) * 0x4 + RK3562_PMU0_CRU_BASE + 0x180) +#define RK3562_PMU0_SOFTRST_CON (x) ((x) * 0x4 + RK3562_PMU0_CRU_BASE + 0x200) +#define RK3562_PMU1_CLKSEL_CON (x) ((x) * 0x4 + RK3562_PMU1_CRU_BASE + 0x100) +#define RK3562_PMU1_CLKGATE_CON (x) ((x) * 0x4 + RK3562_PMU1_CRU_BASE + 0x180) +#define RK3562_PMU1_SOFTRST_CON (x) ((x) * 0x4 + RK3562_PMU1_CRU_BASE + 0x200) +#define RK3562_GLB_SRST_FST 0x614 +#define RK3562_GLB_SRST_SND 0x618 +#define RK3562_GLB_RST_CON 0x61c +#define RK3562_GLB_RST_ST 0x620 +#define RK3562_SDMMC0_CON0 0x624 +#define RK3562_SDMMC0_CON1 0x628 +#define RK3562_SDMMC1_CON0 0x62c +#define RK3562_SDMMC1_CON1 0x630 +#define RK3568_PLL_CON (x) RK2928_PLL_CON(x)#define RK3568_MODE_CON0 0xc0#define RK3568_MISC_CON0 0xc4
@@ -1078,6 +1117,7 @@ static inline void rockchip_register_softrst(struct device_node *np,return rockchip_register_softrst_lut (np,NULL , num_regs, base, flags); } +void rk3562_rst_init (struct device_node *np,void __iomem *reg_base);void rk3576_rst_init (struct device_node *np,void __iomem *reg_base);void rk3588_rst_init (struct device_node *np,void __iomem *reg_base);
drivers/clk/rockchip/rst-rk3562.c new file +429 -0
429 lines not on this page · raw message
Signature · 7 lines
2.25.1 _______________________________________________ Linux-rockchip mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-rockchip
Re: [PATCH v2 3/3] clk: rockchip: Add clock controller for the RK3562
Quoted 10 lines · Kever Yang
drivers/clk/rockchip/clk-rk3562.c new file +10
-0+/* PD_VO */ +COMPOSITE (ACLK_VO_PRE ,"aclk_vo_pre" , gpll_cpll_vpll_dmyhpll_p,0 , +RK3562_CLKSEL_CON (28 ),6 ,2 ,MFLAGS ,0 ,5 ,DFLAGS , +RK3562_CLKGATE_CON (13 ),0 ,GFLAGS ), +COMPOSITE_NOMUX (HCLK_VO_PRE ,"hclk_vo_pre" ,"aclk_vo" ,0 , +RK3562_CLKSEL_CON (29 ),0 ,5 ,DFLAGS , +RK3562_CLKGATE_CON (13 ),1 ,GFLAGS ), +GATE (ACLK_VOP ,"aclk_vop" ,"aclk_vo" ,0 , +RK3562_CLKGATE_CON (13 ),6 ,GFLAGS ), + GATE(HCLK_VOP, "hclk_vop", "hclk_vo_pre", 0,
drivers/clk/rockchip/clk-rk3562.c line 1023
Quoted 10 lines
drivers/clk/rockchip/clk-rk3562.c new file +10
-0+ RK3562_CLKGATE_CON(13), 7, GFLAGS), +COMPOSITE (DCLK_VOP ,"dclk_vop" , gpll_dmyhpll_vpll_apll_p,CLK_SET_RATE_NO_REPARENT , +RK3562_CLKSEL_CON (30 ),14 ,2 ,MFLAGS ,0 ,8 ,DFLAGS , +RK3562_CLKGATE_CON (13 ),8 ,GFLAGS ), +COMPOSITE (DCLK_VOP1 ,"dclk_vop1" , gpll_dmyhpll_vpll_apll_p,CLK_SET_RATE_NO_REPARENT , +RK3562_CLKSEL_CON (31 ),14 ,2 ,MFLAGS ,0 ,8 ,DFLAGS , + RK3562_CLKGATE_CON(13), 9, GFLAGS), +}; + +static void __iomem *rk3562_cru_base;
Drop, not used.
Quoted 79 lines
drivers/clk/rockchip/clk-rk3562.c new file +79
-0+ +static void __init rk3562_clk_init (struct device_node *np) +{ +struct rockchip_clk_provider *ctx; +unsigned long clk_nr_clks; +void __iomem *reg_base; + + clk_nr_clks =rockchip_clk_find_max_clk_id (rk3562_clk_branches, +ARRAY_SIZE (rk3562_clk_branches)) +1 ; + + reg_base =of_iomap (np,0 ); +if (!reg_base) { +pr_err ("%s: could not map cru region\n" , __func__); +return ; + } + + rk3562_cru_base = reg_base; + + ctx =rockchip_clk_init (np, reg_base, clk_nr_clks); +if (IS_ERR (ctx)) { +pr_err ("%s: rockchip clk init failed\n" , __func__); +iounmap (reg_base); +return ; + } + +rockchip_clk_register_plls (ctx, rk3562_pll_clks, +ARRAY_SIZE (rk3562_pll_clks), +RK3562_GRF_SOC_STATUS0 ); + +rockchip_clk_register_branches (ctx, rk3562_clk_branches, +ARRAY_SIZE (rk3562_clk_branches)); + +rk3562_rst_init (np, reg_base); + +rockchip_register_restart_notifier (ctx,RK3562_GLB_SRST_FST ,NULL ); + +rockchip_clk_of_add_provider (np, ctx); +} + +CLK_OF_DECLARE (rk3562_cru,"rockchip,rk3562-cru" , rk3562_clk_init); + +#ifdef MODULE +struct clk_rk3562_inits { + void (*inits)(struct device_node *np); +}; + +static const struct clk_rk3562_inits clk_3562_cru_init = { + .inits = rk3562_clk_init, +}; + +static const struct of_device_id clk_rk3562_match_table[] = { + { + .compatible = "rockchip,rk3562-cru", + .data = &clk_3562_cru_init, + }, + { } +}; +MODULE_DEVICE_TABLE(of, clk_rk3562_match_table); + +static int clk_rk3562_probe(struct platform_device *pdev) +{ + struct device_node *np = pdev->dev.of_node; + const struct of_device_id *match; + const struct clk_rk3562_inits *init_data; + + match = of_match_device(clk_rk3562_match_table, &pdev->dev); + if (!match || !match->data) + return -EINVAL; + + init_data = match->data; + if (init_data->inits) + init_data->inits(np); + + return 0; +} + +static struct platform_driver clk_rk3562_driver = { + .probe = clk_rk3562_probe, + .driver = {
drivers/clk/rockchip/clk-rk3562.c line 1112
Quoted 10 lines
drivers/clk/rockchip/clk-rk3562.c new file +10
-0+ .name = "clk-rk3562", + .of_match_table = clk_rk3562_match_table, + .suppress_bind_attrs = true, + }, +}; +module_platform_driver (clk_rk3562_driver); + +MODULE_DESCRIPTION ("Rockchip RK3562 Clock Driver" ); +MODULE_LICENSE ("GPL" ); +MODULE_ALIAS ("platform:clk-rk3562" );
You should not need MODULE_ALIAS() in normal cases. If you need it, usually it means your device ID table is wrong (e.g. misses either entries or MODULE_DEVICE_TABLE()). MODULE_ALIAS() is not a substitute for incomplete ID table.
Best regards,
Krzysztof
Quoted 5 lines · Kever Yang
Document the device tree bindings of the rockchip rk3562 SoC clock and reset unit.
Signed-off-by Kever Yang <[email protected]>---
A nit, subject: drop second/last, redundant "bindings". The "dt-bindings" prefix is already stating that these are bindings. See also:
https://elixir.bootlin.com/linux/v6.7-rc8/source/Documentation/devicetree/bindings/submitting-patches.rst#L18
s/rk3562/Rocchip RK3562/
or whatever your proper name is (and use proper capitalized parts of products)
Quoted 5 lines
Documentation/devicetree/bindings/clock/rockchip,rk3562-cru.yaml new file +5
-0+properties: + compatible: + const: rockchip,rk3562-cru + + reg:
Documentation/devicetree/bindings/clock/rockchip,rk3562-cru.yaml line 33
Quoted 10 lines
Documentation/devicetree/bindings/clock/rockchip,rk3562-cru.yaml new file +10
-0+ maxItems: 1 + + "#clock-cells": + const: 1 + + "#reset-cells": + const: 1 + + clocks: + maxItems: 2
Why clocks are not required?
Quoted 11 lines
Documentation/devicetree/bindings/clock/rockchip,rk3562-cru.yaml new file +11
-0+ + clock-names: + items: + - const: xin24m + - const: xin32k + +required: + - compatible + - reg + - "#clock-cells" + - "#reset-cells"
Documentation/devicetree/bindings/clock/rockchip,rk3562-cru.yaml line 54
Quoted 10 lines
Documentation/devicetree/bindings/clock/rockchip,rk3562-cru.yaml new file +10
-0+ +additionalProperties: false + +examples: + - | + clock-controller@ff100000 { + compatible = "rockchip,rk3562-cru"; + reg = <0xff100000 0x40000>; + #clock-cells = <1>; + #reset-cells = <1>;
Why clocks are not here?
Best regards,
Krzysztof
Hi Krzysztof,
Quoted 12 lines · Krzysztof Kozlowski
Quoted 5 lines · Kever Yang
Document the device tree bindings of the rockchip rk3562 SoC clock and reset unit.
Signed-off-by Kever Yang <[email protected]>---
A nit, subject: drop second/last, redundant "bindings". The "dt-bindings" prefix is already stating that these are bindings. See also:
https://elixir.bootlin.com/linux/v6.7-rc8/source/Documentation/devicetree/bindings/submitting-patches.rst#L18
Quoted 3 lines
s/rk3562/Rocchip RK3562/
or whatever your proper name is (and use proper capitalized parts of products)
Will update.
Quoted 10 lines
Quoted 10 lines
Documentation/devicetree/bindings/clock/rockchip,rk3562-cru.yaml new file +9
-0+properties: + compatible: + const: rockchip,rk3562-cru + + reg: + maxItems: 1 + + "#clock-cells": + const: 1
Quoted 8 lines
Documentation/devicetree/bindings/clock/rockchip,rk3562-cru.yaml line 33
Quoted 6 lines
Documentation/devicetree/bindings/clock/rockchip,rk3562-cru.yaml new file +6
-0+ + "#reset-cells": + const: 1 + + clocks: + maxItems: 2Why clocks are not required?
The cru is the clock-controller, which is always on module in SoC, so we don't need to enable "clock" for this clock-controller.
Thanks,
- Kever
Quoted 28 lines
Quoted 12 lines
Documentation/devicetree/bindings/clock/rockchip,rk3562-cru.yaml new file +11
-0+ + clock-names: + items: + - const: xin24m + - const: xin32k + +required: + - compatible + - reg + - "#clock-cells" + - "#reset-cells"Documentation/devicetree/bindings/clock/rockchip,rk3562-cru.yaml line 54
Quoted 10 lines
Documentation/devicetree/bindings/clock/rockchip,rk3562-cru.yaml new file +10
-0+ +additionalProperties: false + +examples: + - | + clock-controller@ff100000 { + compatible = "rockchip,rk3562-cru"; + reg = <0xff100000 0x40000>; + #clock-cells = <1>; + #reset-cells = <1>;Why clocks are not here?
Best regards,
Krzysztof
Heiko Stübner
maintainerAm Montag, 24. Februar 2025, 09:52:12 MEZ schrieb Kever Yang:
Quoted 37 lines
Hi Krzysztof,
Quoted 12 lines · Krzysztof Kozlowski
Quoted 5 lines · Kever Yang
Document the device tree bindings of the rockchip rk3562 SoC clock and reset unit.
Signed-off-by Kever Yang <[email protected]>---
A nit, subject: drop second/last, redundant "bindings". The "dt-bindings" prefix is already stating that these are bindings. See also:
https://elixir.bootlin.com/linux/v6.7-rc8/source/Documentation/devicetree/bindings/submitting-patches.rst#L18Quoted 3 lines
s/rk3562/Rocchip RK3562/
or whatever your proper name is (and use proper capitalized parts of products)Will update.
Quoted 10 lines
Quoted 10 lines
Documentation/devicetree/bindings/clock/rockchip,rk3562-cru.yaml new file +9
-0+properties: + compatible: + const: rockchip,rk3562-cru + + reg: + maxItems: 1 + + "#clock-cells": + const: 1Quoted 8 lines
Documentation/devicetree/bindings/clock/rockchip,rk3562-cru.yaml line 33
Quoted 6 lines
Documentation/devicetree/bindings/clock/rockchip,rk3562-cru.yaml new file +6
-0+ + "#reset-cells": + const: 1 + + clocks: + maxItems: 2Why clocks are not required?
Quoted 2 lines
The cru is the clock-controller, which is always on module in SoC, so we don't need to enable "clock" for this clock-controller.
hmm, shouldn't clocks be
clocks:
minItems: 1
maxItems: 2
The CRU _needs_ the xin24m because that is the main oscillator supplying everything, but _can_ work work without xin32k .
Sidenote: itseems we're doing this wrong on rk3588
Heiko
Quoted 43 lines · Heiko Stübner
Am Montag, 24. Februar 2025, 09:52:12 MEZ schrieb Kever Yang:
Quoted 37 lines
Hi Krzysztof,
Quoted 12 lines · Krzysztof Kozlowski
Quoted 5 lines · Kever Yang
Document the device tree bindings of the rockchip rk3562 SoC clock and reset unit.
Signed-off-by Kever Yang <[email protected]>---
A nit, subject: drop second/last, redundant "bindings". The "dt-bindings" prefix is already stating that these are bindings. See also:
https://elixir.bootlin.com/linux/v6.7-rc8/source/Documentation/devicetree/bindings/submitting-patches.rst#L18Quoted 3 lines
s/rk3562/Rocchip RK3562/
or whatever your proper name is (and use proper capitalized parts of products)Will update.
Quoted 10 lines
Quoted 10 lines
Documentation/devicetree/bindings/clock/rockchip,rk3562-cru.yaml new file +9
-0+properties: + compatible: + const: rockchip,rk3562-cru + + reg: + maxItems: 1 + + "#clock-cells": + const: 1Quoted 8 lines
Documentation/devicetree/bindings/clock/rockchip,rk3562-cru.yaml line 33
Quoted 6 lines
Documentation/devicetree/bindings/clock/rockchip,rk3562-cru.yaml new file +6
-0+ + "#reset-cells": + const: 1 + + clocks: + maxItems: 2Why clocks are not required?
Quoted 2 lines
The cru is the clock-controller, which is always on module in SoC, so we don't need to enable "clock" for this clock-controller.
hmm, shouldn't clocks be
Quoted 8 lines
clocks:
minItems: 1
maxItems: 2The CRU _needs_ the xin24m because that is the main oscillator supplying everything, but _can_ work work without xin32k .
Sidenote: itseems we're doing this wrong on rk3588
Kever responded to a review 2 months ago. None of these emails are in my inbox anymore. All context is gone as well.
No, I expect the comments to be applied full in such case. This is a bit ridicilous that now I need to look for that email somwhere to check whether implementation follows received response. Response after 2 months!
Quoted 4 lines
Heiko
Best regards,
Krzysztof