From: zhangqing <zhangqing@rock-chips.com>
To: Jonas Karlman <jonas@kwiboo.se>
Cc: mturquette@baylibre.com, sboyd@kernel.org,
sugar.zhang@rock-chips.com, heiko@sntech.de, robh@kernel.org,
krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org,
devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-clk@vger.kernel.org, linux-rockchip@lists.infradead.org,
linux-kernel@vger.kernel.org, huangtao@rock-chips.com,
finley.xiao@rock-chips.com
Subject: Re: [PATCH v5 6/7] dt-bindings: clock: rockchip: Add RK3506 clock and reset unit
Date: Fri, 7 Nov 2025 09:24:57 +0800 [thread overview]
Message-ID: <f39d34b3-5e52-4490-99d8-db9b32f1324e@rock-chips.com> (raw)
In-Reply-To: <241e4a1d-039c-4738-b492-6325ad354b2e@kwiboo.se>
在 2025/10/30 21:55, Jonas Karlman 写道:
> Hi Elaine,
>
> On 10/27/2025 9:41 AM, Elaine Zhang wrote:
>> From: Finley Xiao <finley.xiao@rock-chips.com>
>>
>> Add device tree bindings for clock and reset unit on RK3506 SoC.
>> Add clock and reset IDs for RK3506 SoC.
>>
>> Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
>> ---
>> .../bindings/clock/rockchip,rk3506-cru.yaml | 51 ++++
>> .../dt-bindings/clock/rockchip,rk3506-cru.h | 285 ++++++++++++++++++
>> .../dt-bindings/reset/rockchip,rk3506-cru.h | 211 +++++++++++++
>> 3 files changed, 547 insertions(+)
>> create mode 100644 Documentation/devicetree/bindings/clock/rockchip,rk3506-cru.yaml
>> create mode 100644 include/dt-bindings/clock/rockchip,rk3506-cru.h
>> create mode 100644 include/dt-bindings/reset/rockchip,rk3506-cru.h
> [snip]
>
>> diff --git a/include/dt-bindings/reset/rockchip,rk3506-cru.h b/include/dt-bindings/reset/rockchip,rk3506-cru.h
>> new file mode 100644
>> index 000000000000..f38cc066009b
>> --- /dev/null
>> +++ b/include/dt-bindings/reset/rockchip,rk3506-cru.h
>> @@ -0,0 +1,211 @@
>> +/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
>> +/*
>> + * Copyright (c) 2023-2025 Rockchip Electronics Co., Ltd.
>> + * Author: Finley Xiao <finley.xiao@rock-chips.com>
>> + */
>> +
>> +#ifndef _DT_BINDINGS_REST_ROCKCHIP_RK3506_H
>> +#define _DT_BINDINGS_REST_ROCKCHIP_RK3506_H
>> +
>> +/* CRU-->SOFTRST_CON00 */
>> +#define SRST_NCOREPORESET0_AC 0
>> +#define SRST_NCOREPORESET1_AC 1
>> +#define SRST_NCOREPORESET2_AC 2
>> +#define SRST_NCORESET0_AC 3
>> +#define SRST_NCORESET1_AC 4
>> +#define SRST_NCORESET2_AC 5
>> +#define SRST_NL2RESET_AC 6
>> +#define SRST_ARESETN_CORE_BIU_AC 7
>> +#define SRST_HRESETN_M0_AC 8
>> +
>> +/* CRU-->SOFTRST_CON02 */
>> +#define SRST_NDBGRESET 9
>> +#define SRST_PRESETN_CORE_BIU 10
>> +#define SRST_RESETN_PMU 11
>> +
>> +/* CRU-->SOFTRST_CON03 */
>> +#define SRST_PRESETN_DBG 12
>> +#define SRST_POTRESETN_DBG 13
>> +#define SRST_PRESETN_CORE_GRF 14
>> +#define SRST_RESETN_CORE_EMA_DETECT 15
>> +#define SRST_RESETN_REF_PVTPLL_CORE 16
>> +#define SRST_PRESETN_GPIO1 17
>> +#define SRST_DBRESETN_GPIO1 18
>> +
>> +/* CRU-->SOFTRST_CON04 */
>> +#define SRST_ARESETN_CORE_PERI_BIU 19
>> +#define SRST_ARESETN_DSMC 20
>> +#define SRST_PRESETN_DSMC 21
>> +#define SRST_RESETN_FLEXBUS 22
>> +#define SRST_ARESETN_FLEXBUS 23
>> +#define SRST_HRESETN_FLEXBUS 24
>> +#define SRST_ARESETN_DSMC_SLV 25
>> +#define SRST_HRESETN_DSMC_SLV 26
>> +#define SRST_RESETN_DSMC_SLV 27
>> +
>> +/* CRU-->SOFTRST_CON05 */
>> +#define SRST_ARESETN_BUS_BIU 28
>> +#define SRST_HRESETN_BUS_BIU 29
>> +#define SRST_PRESETN_BUS_BIU 30
>> +#define SRST_ARESETN_SYSRAM 31
>> +#define SRST_HRESETN_SYSRAM 32
>> +#define SRST_ARESETN_DMAC0 33
>> +#define SRST_ARESETN_DMAC1 34
>> +#define SRST_HRESETN_M0 35
>> +#define SRST_RESETN_M0_JTAG 36
>> +#define SRST_HRESETN_CRYPTO 37
> Is there a reason why this (and the RV1126B) reset names now include the
> RESETN name in all reset constant?
>
> For RK3528 and prior mainline SoCs the RESETN part of the name has been
> striped from the constant, suggest we also strip the RESETN part for
> RK3506 and RV1126B for consistency with other RK SoCs.
The current practice is to separate the reset id from the clk id.
Follow with others RK socs(RK3528、RK3588、RK3576.....)
>
> Regards,
> Jonas
>
> [snip]
>
--
张晴
瑞芯微电子股份有限公司
Rockchip Electronics Co.,Ltd
地址:福建省福州市铜盘路软件大道89号软件园A区21号楼
Add:No.21 Building, A District, No.89 Software Boulevard Fuzhou, Fujian 350003, P.R.China
Tel:+86-0591-83991906-8601
邮编:350003
E-mail:elaine.zhang@rock-chips.com
****************************************************************************
保密提示:本邮件及其附件含有机密信息,仅发送给本邮件所指特定收件人。若非该特定收件人,请勿复制、使用或披露本邮件的任何内容。若误收本邮件,请从系统中永久性删除本邮件及所有附件,并以回复邮件或其他方式即刻告知发件人。福州瑞芯微电子有限公司拥有本邮件信息的著作权及解释权,禁止任何未经授权许可的侵权行为。
IMPORTANT NOTICE: This email is from Fuzhou Rockchip Electronics Co., Ltd .The contents of this email and any attachments may contain information that is privileged, confidential and/or exempt from disclosure under applicable law and relevant NDA. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information is STRICTLY PROHIBITED. Please immediately contact the sender as soon as possible and destroy the material in its entirety in any format. Thank you.
****************************************************************************
next prev parent reply other threads:[~2025-11-07 1:25 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-27 8:41 [PATCH v5 0/7] clk: rockchip: Add clock controller for the Elaine Zhang
2025-10-27 8:41 ` [PATCH v5 1/7] clk: rockchip: Implement rockchip_clk_register_armclk_multi_pll() Elaine Zhang
2025-10-27 8:41 ` [PATCH v5 2/7] dt-bindings: clock, reset: Add support for rv1126b Elaine Zhang
2025-10-27 8:41 ` [PATCH v5 3/7] clk: rockchip: Add clock controller for the RV1126B Elaine Zhang
2025-10-27 8:41 ` [PATCH v5 4/7] dt-bindings: clock: Add support for rockchip pvtpll Elaine Zhang
2025-10-28 7:52 ` Krzysztof Kozlowski
2025-10-27 8:41 ` [PATCH v5 5/7] clk: rockchip: add support for pvtpll clk Elaine Zhang
2025-10-27 8:41 ` [PATCH v5 6/7] dt-bindings: clock: rockchip: Add RK3506 clock and reset unit Elaine Zhang
2025-10-27 16:47 ` Conor Dooley
[not found] ` <6ff7370e-0e57-487d-a6d9-05958ab21e98@rock-chips.com>
2025-11-04 17:24 ` Conor Dooley
2025-10-30 13:55 ` Jonas Karlman
2025-11-07 1:24 ` zhangqing [this message]
2025-11-07 1:44 ` zhangqing
2025-10-27 8:41 ` [PATCH v5 7/7] clk: rockchip: Add clock and reset driver for RK3506 Elaine Zhang
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=f39d34b3-5e52-4490-99d8-db9b32f1324e@rock-chips.com \
--to=zhangqing@rock-chips.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=finley.xiao@rock-chips.com \
--cc=heiko@sntech.de \
--cc=huangtao@rock-chips.com \
--cc=jonas@kwiboo.se \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=mturquette@baylibre.com \
--cc=robh@kernel.org \
--cc=sboyd@kernel.org \
--cc=sugar.zhang@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: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox