From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 599B4C1B087 for ; Thu, 27 Feb 2025 19:44:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type: Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID:Date :Subject:CC:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=DYPf7pOW+Hj9D8sJ8EeNXB6OJG/17TDHY4ejPKDvTh8=; b=hv596wQMenEY9Fa16njOKm7DHc AVzkrvJu9PIA7LG1mmu+BzEn64HcQHybSCPQnNlnU552/jupkLHxIpeuXp0NLjHsabVJs+dohFc/f 5NhZTc7Cu16knObe7coxbF7IzBeYR0/NYshxT3h7ajd5Ca380pEL6fNUGFLPmScNVhtBIBJixJSH4 w6rfvk2gc+mQjqq7RGR7fIGTOMXQGO6GcFU2JUyD6TsXZt6FH6+tQ52+KdsVaO0iRkabYDglO/2B3 4dRinBrPoreJJhjyZut/gklSnq+XGZEKKxDEHHbBH1nwBSNwCMpIYZndHewaDULlnYoWa00FbuqZT glpri2gw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tnjnf-00000008fd2-2pjX; Thu, 27 Feb 2025 19:44:03 +0000 Received: from mx0a-0016f401.pphosted.com ([67.231.148.174] helo=mx0b-0016f401.pphosted.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tnjW4-00000008S1S-2Glp for linux-arm-kernel@lists.infradead.org; Thu, 27 Feb 2025 19:25:54 +0000 Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 51RFdiZ8015307; Thu, 27 Feb 2025 11:25:40 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=pfpt0220; bh=D YPf7pOW+Hj9D8sJ8EeNXB6OJG/17TDHY4ejPKDvTh8=; b=VnIeBX4whSckZyxXO cw7vWLHgxdRIvUD32YI3HhQAABY0MrYuFr9EQuHvZnUCB6PVIRs3IhMuUxKvZkOu VAPm/OiK+vERfnNA22BHMcWObW4faBWHgB1RIwwhQYEtRmF2l7YcKzWTiXBOVqzi E5mZ14GqfbVTWxe97HxyP2plimYYHpqf+1VThD5NaXo5BuRrwtqT7M1qDdr8YKyM qNKOpb9V00gZRYO5jIfMujlIintq4Vt63AKNFKGxtGZhwpCCIm6IsGLRi7ALvT95 Z40magpFpbLip4KHGbQaELg/VamJ3ROjbtB8V+b2j4s6+up1rZRzTyBMG6XHdZoF o/ZlA== Received: from dc6wp-exch02.marvell.com ([4.21.29.225]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 452tvrrhfk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 27 Feb 2025 11:25:39 -0800 (PST) Received: from DC6WP-EXCH02.marvell.com (10.76.176.209) by DC6WP-EXCH02.marvell.com (10.76.176.209) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Thu, 27 Feb 2025 11:25:38 -0800 Received: from maili.marvell.com (10.69.176.80) by DC6WP-EXCH02.marvell.com (10.76.176.209) with Microsoft SMTP Server id 15.2.1544.4 via Frontend Transport; Thu, 27 Feb 2025 11:25:38 -0800 Received: from wd-ubuntu-24-04.marvell.com (wd-ubuntu-24-04.marvell.com [10.111.132.113]) by maili.marvell.com (Postfix) with ESMTP id 3D28B3F707B; Thu, 27 Feb 2025 11:25:38 -0800 (PST) From: Wilson Ding To: , , CC: , , , , , , , , , Wilson Ding Subject: [PATCH v3 1/3] dt-bindings: reset: Add Armada8K reset controller Date: Thu, 27 Feb 2025 11:25:34 -0800 Message-ID: <20250227192536.2426490-2-dingwei@marvell.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250227192536.2426490-1-dingwei@marvell.com> References: <20250227192536.2426490-1-dingwei@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: Y680ExBWjBukpnyqiqhf4B8U9NOTk1FL X-Authority-Analysis: v=2.4 cv=COHQXQrD c=1 sm=1 tr=0 ts=67c0bc33 cx=c_pps a=gIfcoYsirJbf48DBMSPrZA==:117 a=gIfcoYsirJbf48DBMSPrZA==:17 a=T2h4t0Lz3GQA:10 a=gEfo2CItAAAA:8 a=M5GUcnROAAAA:8 a=Xx2rH3x8VMMp6ogthC8A:9 a=RVmHIydaz68A:10 a=sptkURWiP4Gy88Gu7hUp:22 a=OBjm3rFKGHvpk9ecZwUJ:22 X-Proofpoint-ORIG-GUID: Y680ExBWjBukpnyqiqhf4B8U9NOTk1FL X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1057,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2025-02-27_07,2025-02-27_01,2024-11-22_01 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250227_112552_627243_0F521AC8 X-CRM114-Status: GOOD ( 15.01 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add device-tree binding documentation for the Armada8K reset driver and create the new head file for the reset line index definitions. Signed-off-by: Wilson Ding --- .../reset/marvell,armada8k-reset.yaml | 48 +++++++++++++++++++ .../reset/marvell,armada8k-reset.h | 27 +++++++++++ 2 files changed, 75 insertions(+) create mode 100644 Documentation/devicetree/bindings/reset/marvell,armada8k-reset.yaml create mode 100644 include/dt-bindings/reset/marvell,armada8k-reset.h diff --git a/Documentation/devicetree/bindings/reset/marvell,armada8k-reset.yaml b/Documentation/devicetree/bindings/reset/marvell,armada8k-reset.yaml new file mode 100644 index 000000000000..9af352f528de --- /dev/null +++ b/Documentation/devicetree/bindings/reset/marvell,armada8k-reset.yaml @@ -0,0 +1,48 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +# Copyright 2025 Wilson Ding +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/reset/marvell,armada8k-reset.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Marvell Armada8K reset controller + +maintainers: + - Wilson Ding + +description: The reset controller node must be a sub-node of the system + controller node on Armada7K/8K or CN913x SoCs. + +properties: + compatible: + const: marvell,armada8k-reset + + reg: + description: + The register offset (to syscon register address) and size + maxItems: 1 + + "#reset-cells": + const: 1 + +required: + - compatible + - reg + - "#reset-cells" + +additionalProperties: false + +examples: + - | + syscon0: system-controller@440000 { + compatible = "syscon", "simple-mfd"; + reg = <0x440000 0x2000>; + #address-cells = <1>; + #size-cells = <1>; + + swrst: reset-controller@268 { + compatible = "marvell,armada8k-reset"; + reg = <0x268 0x4>; + #reset-cells = <1>; + }; + }; diff --git a/include/dt-bindings/reset/marvell,armada8k-reset.h b/include/dt-bindings/reset/marvell,armada8k-reset.h new file mode 100644 index 000000000000..18c6f4f761e2 --- /dev/null +++ b/include/dt-bindings/reset/marvell,armada8k-reset.h @@ -0,0 +1,27 @@ +/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ +/* + * Copyright (c) 2025, Marvell. All Rights Reserved. + */ + +#ifndef _DT_BINDINGS_MARVELL_ARMADA8K_RESET_H_ +#define _DT_BINDINGS_MARVELL_ARMADA8K_RESET_H_ + +#define CP110_RESET_AUDIO 0 +#define CP110_RESET_TDM 1 +#define CP110_RESET_ICU 2 +#define CP110_RESET_PP2 3 +#define CP110_RESET_SDIO 4 +#define CP110_RESET_XOR1 7 +#define CP110_RESET_XOR0 8 +#define CP110_RESET_PCIE0_X1 11 +#define CP110_RESET_PCIE1_X1 12 +#define CP110_RESET_PCIE_X4 13 +#define CP110_RESET_SATA 15 +#define CP110_RESET_USB3_HOST0 22 +#define CP110_RESET_USB3_HOST1 23 +#define CP110_RESET_USB3_DEV 24 +#define CP110_RESET_EIP150F 25 +#define CP110_RESET_EIP197 26 +#define CP110_RESET_MSS 29 + +#endif /* _DT_BINDINGS_MARVELL_ARMADA8K_RESET_H_ */ -- 2.43.0