Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: reset: Add SCMI reset IDs for RK3588

When TF-A is used to assert/deassert the resets through SCMI, the
IDs communicated to it are different than the ones mainline Linux uses.

Import the list of SCMI reset IDs from mainline TF-A so that devicetrees
can use these IDs more easily.

Co-developed-by: XiaoDong Huang <derrick.huang@rock-chips.com>
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Signed-off-by: Nicolas Frattaroli <nicolas.frattaroli@collabora.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Nicolas Frattaroli and committed by
Herbert Xu
849d9db1 62d027fb

+40 -1
+40 -1
include/dt-bindings/reset/rockchip,rk3588-cru.h
··· 1 1 /* SPDX-License-Identifier: (GPL-2.0 OR MIT) */ 2 2 /* 3 - * Copyright (c) 2021 Rockchip Electronics Co. Ltd. 3 + * Copyright (c) 2021, 2024 Rockchip Electronics Co. Ltd. 4 4 * Copyright (c) 2022 Collabora Ltd. 5 5 * 6 6 * Author: Elaine Zhang <zhangqing@rock-chips.com> ··· 752 752 #define SRST_TRNG_S 659 753 753 754 754 #define SRST_A_HDMIRX_BIU 660 755 + 756 + /* SCMI Secure Resets */ 757 + 758 + /* Name=SECURE_SOFTRST_CON00,Offset=0xA00 */ 759 + #define SCMI_SRST_A_SECURE_NS_BIU 10 760 + #define SCMI_SRST_H_SECURE_NS_BIU 11 761 + #define SCMI_SRST_A_SECURE_S_BIU 12 762 + #define SCMI_SRST_H_SECURE_S_BIU 13 763 + #define SCMI_SRST_P_SECURE_S_BIU 14 764 + #define SCMI_SRST_CRYPTO_CORE 15 765 + /* Name=SECURE_SOFTRST_CON01,Offset=0xA04 */ 766 + #define SCMI_SRST_CRYPTO_PKA 16 767 + #define SCMI_SRST_CRYPTO_RNG 17 768 + #define SCMI_SRST_A_CRYPTO 18 769 + #define SCMI_SRST_H_CRYPTO 19 770 + #define SCMI_SRST_KEYLADDER_CORE 25 771 + #define SCMI_SRST_KEYLADDER_RNG 26 772 + #define SCMI_SRST_A_KEYLADDER 27 773 + #define SCMI_SRST_H_KEYLADDER 28 774 + #define SCMI_SRST_P_OTPC_S 29 775 + #define SCMI_SRST_OTPC_S 30 776 + #define SCMI_SRST_WDT_S 31 777 + /* Name=SECURE_SOFTRST_CON02,Offset=0xA08 */ 778 + #define SCMI_SRST_T_WDT_S 32 779 + #define SCMI_SRST_H_BOOTROM 33 780 + #define SCMI_SRST_A_DCF 34 781 + #define SCMI_SRST_P_DCF 35 782 + #define SCMI_SRST_H_BOOTROM_NS 37 783 + #define SCMI_SRST_P_KEYLADDER 46 784 + #define SCMI_SRST_H_TRNG_S 47 785 + /* Name=SECURE_SOFTRST_CON03,Offset=0xA0C */ 786 + #define SCMI_SRST_H_TRNG_NS 48 787 + #define SCMI_SRST_D_SDMMC_BUFFER 49 788 + #define SCMI_SRST_H_SDMMC 50 789 + #define SCMI_SRST_H_SDMMC_BUFFER 51 790 + #define SCMI_SRST_SDMMC 52 791 + #define SCMI_SRST_P_TRNG_CHK 53 792 + #define SCMI_SRST_TRNG_S 54 793 + 755 794 756 795 #endif