From: Chen Wang <unicorn_wang@outlook.com>
To: Junhui Liu <junhui.liu@pigmoral.tech>,
Philipp Zabel <p.zabel@pengutronix.de>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>
Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-riscv@lists.infradead.org,
Conor Dooley <conor.dooley@microchip.com>
Subject: Re: [PATCH v2 1/2] dt-bindings: reset: add support for canaan,k230-rst
Date: Wed, 23 Apr 2025 10:21:21 +0800 [thread overview]
Message-ID: <MA0P287MB22620E425A4AC72E5C32D325FEBA2@MA0P287MB2262.INDP287.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <20250420-k230-reset-v2-1-f1b4a016e438@pigmoral.tech>
hi,Junhui,
On 2025/4/20 1:09, Junhui Liu wrote:
> Introduces a reset controller driver for the Kendryte K230 SoC,
> resposible for managing the reset functionality of the CPUs and
> various sub-modules.
>
> Signed-off-by: Junhui Liu <junhui.liu@pigmoral.tech>
> Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
> ---
> .../devicetree/bindings/reset/canaan,k230-rst.yaml | 39 ++++++++++
> include/dt-bindings/reset/canaan,k230-rst.h | 90 ++++++++++++++++++++++
> 2 files changed, 129 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/reset/canaan,k230-rst.yaml b/Documentation/devicetree/bindings/reset/canaan,k230-rst.yaml
> new file mode 100644
> index 0000000000000000000000000000000000000000..d352d0e12d8106a232bb5e6d7e138697d2106937
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/reset/canaan,k230-rst.yaml
> @@ -0,0 +1,39 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
The copyright statement in yaml and header files should be consistent.
Othres LGTM.
Reviewed-by: Chen Wang <unicorn_wang@outlook.com>
Thanks,
Chen
[......]
> diff --git a/include/dt-bindings/reset/canaan,k230-rst.h b/include/dt-bindings/reset/canaan,k230-rst.h
> new file mode 100644
> index 0000000000000000000000000000000000000000..53e3fd8177071aef8983c631706d67ac86ab645b
> --- /dev/null
> +++ b/include/dt-bindings/reset/canaan,k230-rst.h
> @@ -0,0 +1,90 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
Here.
[....]
> +/*
> + * Copyright (C) 2023-2024 Canaan Bright Sight Co., Ltd
> + * Copyright (C) 2024-2025 Junhui Liu <junhui.liu@pigmoral.tech>
> + */
> +#ifndef _DT_BINDINGS_CANAAN_K230_RST_H_
> +#define _DT_BINDINGS_CANAAN_K230_RST_H_
> +
> +#define RST_CPU0 0
> +#define RST_CPU1 1
> +#define RST_CPU0_FLUSH 2
> +#define RST_CPU1_FLUSH 3
> +#define RST_AI 4
> +#define RST_VPU 5
> +#define RST_HS 6
> +#define RST_HS_AHB 7
> +#define RST_SDIO0 8
> +#define RST_SDIO1 9
> +#define RST_SDIO_AXI 10
> +#define RST_USB0 11
> +#define RST_USB1 12
> +#define RST_USB0_AHB 13
> +#define RST_USB1_AHB 14
> +#define RST_SPI0 15
> +#define RST_SPI1 16
> +#define RST_SPI2 17
> +#define RST_SEC 18
> +#define RST_PDMA 19
> +#define RST_SDMA 20
> +#define RST_DECOMPRESS 21
> +#define RST_SRAM 22
> +#define RST_SHRM_AXIM 23
> +#define RST_SHRM_AXIS 24
> +#define RST_NONAI2D 25
> +#define RST_MCTL 26
> +#define RST_ISP 27
> +#define RST_ISP_DW 28
> +#define RST_DPU 29
> +#define RST_DISP 30
> +#define RST_GPU 31
> +#define RST_AUDIO 32
> +#define RST_TIMER0 33
> +#define RST_TIMER1 34
> +#define RST_TIMER2 35
> +#define RST_TIMER3 36
> +#define RST_TIMER4 37
> +#define RST_TIMER5 38
> +#define RST_TIMER_APB 39
> +#define RST_HDI 40
> +#define RST_WDT0 41
> +#define RST_WDT1 42
> +#define RST_WDT0_APB 43
> +#define RST_WDT1_APB 44
> +#define RST_TS_APB 45
> +#define RST_MAILBOX 46
> +#define RST_STC 47
> +#define RST_PMU 48
> +#define RST_LS_APB 49
> +#define RST_UART0 50
> +#define RST_UART1 51
> +#define RST_UART2 52
> +#define RST_UART3 53
> +#define RST_UART4 54
> +#define RST_I2C0 55
> +#define RST_I2C1 56
> +#define RST_I2C2 57
> +#define RST_I2C3 58
> +#define RST_I2C4 59
> +#define RST_JAMLINK0_APB 60
> +#define RST_JAMLINK1_APB 61
> +#define RST_JAMLINK2_APB 62
> +#define RST_JAMLINK3_APB 63
> +#define RST_CODEC_APB 64
> +#define RST_GPIO_DB 65
> +#define RST_GPIO_APB 66
> +#define RST_ADC 67
> +#define RST_ADC_APB 68
> +#define RST_PWM_APB 69
> +#define RST_SHRM_APB 70
> +#define RST_CSI0 71
> +#define RST_CSI1 72
> +#define RST_CSI2 73
> +#define RST_CSI_DPHY 74
> +#define RST_ISP_AHB 75
> +#define RST_M0 76
> +#define RST_M1 77
> +#define RST_M2 78
> +#define RST_SPI2AXI 79
> +
> +#endif
>
next prev parent reply other threads:[~2025-04-23 2:21 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-19 17:09 [PATCH v2 0/2] reset: canaan: add Kendryte K230 reset support Junhui Liu
2025-04-19 17:09 ` [PATCH v2 1/2] dt-bindings: reset: add support for canaan,k230-rst Junhui Liu
2025-04-23 2:21 ` Chen Wang [this message]
2025-04-23 5:26 ` Junhui Liu
2025-04-19 17:09 ` [PATCH v2 2/2] reset: canaan: add reset driver for Kendryte K230 Junhui Liu
2025-04-23 3:21 ` Chen Wang
2025-04-23 5:36 ` Junhui Liu
2025-04-23 5:55 ` Chen Wang
2025-04-23 9:43 ` Philipp Zabel
2025-04-24 7:31 ` Junhui Liu
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=MA0P287MB22620E425A4AC72E5C32D325FEBA2@MA0P287MB2262.INDP287.PROD.OUTLOOK.COM \
--to=unicorn_wang@outlook.com \
--cc=conor+dt@kernel.org \
--cc=conor.dooley@microchip.com \
--cc=devicetree@vger.kernel.org \
--cc=junhui.liu@pigmoral.tech \
--cc=krzk+dt@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=p.zabel@pengutronix.de \
--cc=robh@kernel.org \
/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
all inboxes | Powered by JetHome®