From patchwork Fri Mar 15 02:50:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inochi Amaoto X-Patchwork-Id: 13593011 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12olkn2077.outbound.protection.outlook.com [40.92.23.77]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 512ACD27E; Fri, 15 Mar 2024 02:51:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.92.23.77 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710471061; cv=fail; b=qgXMtBCQ5KYTEojT862graxlwYJLJHHCS1gk1GQ5yjvdTfL+2IejGEjMvZP9UBwvPJqHJn6ayxfwisplUCBkH0TxX4K0X3XKzx2FEAfbDZztPhVpe2DS89QmBFnR5difwg+ZAp1iK7Oo7o/+47eJng7dqiRqtjOfOs/sT3ASM54= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710471061; c=relaxed/simple; bh=CuwbQwAuRfF/en2gDvy6YovSKLlssn8n3jjcjG9khBo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=aoR5hCGhRGlcQUUnYYM6RqcFFb1rmKya0kjsb7mFvfoQs6tkQZRqEkRngGaxhsAY41uB4pi0GVbhMgixcq/wLbCC3SL3m7LMvip2gK4JS/doBrwGryOX4uotBUWOLq77VTH6vK/A66P+6S01gMSoK5yrl/2nvS/5aSCaum3gXlA= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=outlook.com; spf=pass smtp.mailfrom=outlook.com; dkim=pass (2048-bit key) header.d=outlook.com header.i=@outlook.com header.b=VfQMS+zq; arc=fail smtp.client-ip=40.92.23.77 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=outlook.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=outlook.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=outlook.com header.i=@outlook.com header.b="VfQMS+zq" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QZFX6EveWp+QF8SlV189DlP5F6zQopD1byf/sTTOmcTbpl73ZmC7BNwED+gY5J6hv4Dje77tCCmv3JmH25Y2BXDlLrL9y/K5W77SKi20fpCN4gUBxVeM/DzlGqZLzItMwEbRSYSvlm0AAck6h6vg3QOXEGBmp1hkmpcBmz3Viz06t/F3FXB9SX+vGfXDl9dgw3D1loJp67apAbOr551U4F04bd5VeDw3Yfp/kSlilzbudTlWiHwnn2CiHXHGS3WoIHIqQxey6cBaVtZfTywUUfjr3jTMZc56FDzm3CnXChQg/pJT0P3H3aoOLdqKh23W8PQIh2lnUu5HMGrIgymP3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=lQULpgMEwzJRKBmdrdqkQCcdIvdUj5m/Ron8MOI5Dec=; b=LfCTso1upJXiJLz5mIxJR5oBziH+JmQoDRJZnCmHCA280p7vJem6XQ6qmE8hXhnuxQbxD/mB/KSSRPWi6sLF8IgqHz5h5jiWPinKQIeplqshH+IWw+R70izkt18BuBMAkIy4QILIN5rjRMDv7X1PMtQ8+br5tmiD8XVNuMTkqzI0GwwPxqKseJD0c8gJ6B8uF8m/grvb5IGN1Gkzc4LIzLxBUnxUKrd4dter+ia1JlW3jyUO8WLcQ4EK2stRI7KnkwJ8bgdBRn/6Bxv2MH6oITJbso5gBl4lyRn7PX7vV8L6nIP0DvvD06cEx4Ydl3VixKGy2lIX5EZ8L08qTBx42A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=lQULpgMEwzJRKBmdrdqkQCcdIvdUj5m/Ron8MOI5Dec=; b=VfQMS+zqygfJl2jz5SmJddyMJU2sgvcqNXlNuBvkHFjybeh41oKhzTIT7Jd7SSSQgEIhIrE/4JQgm4jMZb4HgZjM3Fr0r8qHUVhVAvwMqL10iDtvy1bcNbs2s04Cpc3zxj7KMX4ExEtffcAmV00akOMOym4ggKgCvIfy3QLaLXWwcONIe3QA+m/fVekS1EVFwqxzRS92fq6hcX8OvsEEOoTpfyy3RNGO9a1xs7/x3BmNKFVowCDcZmLp57zjBSwVcdc8PMp1Y5l2QLISVYYTERO5ZPidVf5tiKS6CEAy3kvTpwaDVC2XGLKQwplk2i0JE99j12OaJeXZRUiJ4SAYqQ== Received: from IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) by DS7PR20MB6264.namprd20.prod.outlook.com (2603:10b6:8:ee::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.20; Fri, 15 Mar 2024 02:50:58 +0000 Received: from IA1PR20MB4953.namprd20.prod.outlook.com ([fe80::8615:efe2:7c8e:2041]) by IA1PR20MB4953.namprd20.prod.outlook.com ([fe80::8615:efe2:7c8e:2041%3]) with mapi id 15.20.7386.021; Fri, 15 Mar 2024 02:50:58 +0000 From: Inochi Amaoto To: Vinod Koul , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Inochi Amaoto Cc: Chen Wang , Jisheng Zhang , Liu Gui , Jingbao Qiu , dlan@gentoo.org, dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Subject: [PATCH v3 2/4] dt-bindings: soc: sophgo: Add top misc controller of CV18XX/SG200X series SoC Date: Fri, 15 Mar 2024 10:50:33 +0800 Message-ID: X-Mailer: git-send-email 2.44.0 In-Reply-To: References: X-TMN: [VNSnH8/L+DFnRInjFmPUEduzpznzPjqo/1JnUS7e/A8=] X-ClientProxiedBy: TYCP286CA0090.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:2b3::19) To IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) X-Microsoft-Original-Message-ID: <20240315025036.554158-2-inochiama@outlook.com> Precedence: bulk X-Mailing-List: dmaengine@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: IA1PR20MB4953:EE_|DS7PR20MB6264:EE_ X-MS-Office365-Filtering-Correlation-Id: b8deeb4f-cd9b-4e61-8afd-08dc449abe23 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: fIKJIKgz6UZit/QnWfOuwDF6ex9Lkl9utBlxZD861FlwoQqQUGcItI5p0UnwboyOZpBd3CS50GPgOZwBnCmpwZ9nV1xShmsRgQ00bUsf2VTMy66Gdtzxc6h9YMoNKzO/IQGV+9kOPx2ezg20CR10YNUUFmLR3YA6fXCItnpeJgoO23HWbOqqhyBPKuCSsrFNGHGo86vuzIUeENg+rjs8ZWL2zaUkeo0N6D2yfKXGoG+8rfZm09AT3ynV1OAdMjNSa+vwG6drMBnCccbobTnfxLF+UVgcu5ya6fNyV1/6KMQP30PSxkHdyX8EwCHWliPDh/1SuLP2D2mv9UoPzVHs2ZtSEjEJDL6lubZbqsRpFcJX7giNcE8HcKjWjBQG2IQIBSHK/hxeFvcv866RJPT+7DnYn91JJBpMy6jqYp9YqzZuGov2Lqb6PxWLKWloOpYktfSZC2W4s8OoWOraDm+Zn06fMI4kM2zOGOQ1VqZBw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i5LZxLTfm1VIJohP/CLkpbuG52QSznCaHelA2Lbi5LNF2oTf8uSec8Q0IeePEU2af8BsEY7LveSaNd+UUWbbd+AtrvwP48Ph4FOBq2K8VC0M1Eh9Z7XP6yIcUo86U+zKBoeitccfGcHik4K3z0aQH+P4tkpxZoFYVSH2hTYU+WagpGazKiFYYSlO39Dul4DCyY+vjZIOC727UR7LMEdiNdSGlWvyaNJIO6Nzdrur3EPuJ/qYmBq+2ErExJsxQuI24+bCrsj63oUz9VVelImtN0VXVADehkkgIk9i3YTrAay4CP7InzF0Y41WAM/7661v2I+3LQH4C286SWcdL+ZqWz45Pb6e4Q8uk9JtwmdN77qC1PLBafpBwSAsf2E91hozFE5xvHbLLTjKqD4SbCvFi3B7Y1poVp7ARw4riD6EWaiNG3iIhp3Qwq8L9+1C+gV/RTlk0NHIKneZcRHdSWRj00gbq7abM+pckhadahMmXVkvIufUVyeXPuQH5 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: b8deeb4f-cd9b-4e61-8afd-08dc449abe23 X-MS-Exchange-CrossTenant-AuthSource: IA1PR20MB4953.namprd20.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Mar 2024 02:50:58.8275 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR20MB6264 CV18XX/SG200X series SoCs have a special top misc system controller, which provides register access for several devices. In addition to register access, this system controller also contains some subdevices (such as dmamux). Add bindings for top misc controller of CV18XX/SG200X series SoC. Signed-off-by: Inochi Amaoto --- .../soc/sophgo/sophgo,cv1800-top-syscon.yaml | 49 +++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/sophgo/sophgo,cv1800-top-syscon.yaml -- 2.44.0 diff --git a/Documentation/devicetree/bindings/soc/sophgo/sophgo,cv1800-top-syscon.yaml b/Documentation/devicetree/bindings/soc/sophgo/sophgo,cv1800-top-syscon.yaml new file mode 100644 index 000000000000..a78cc8f5a84c --- /dev/null +++ b/Documentation/devicetree/bindings/soc/sophgo/sophgo,cv1800-top-syscon.yaml @@ -0,0 +1,49 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/soc/sophgo/sophgo,cv1800-top-syscon.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Sophgo CV1800/SG2000 SoC top system controller + +maintainers: + - Inochi Amaoto + +description: + The Sophgo CV1800/SG2000 SoC top misc system controller provides + register access to configure related modules. + +properties: + compatible: + items: + - const: sophgo,cv1800-top-syscon + - const: syscon + - const: simple-mfd + + reg: + maxItems: 1 + +required: + - compatible + - reg + +additionalProperties: + type: object + +examples: + - | + syscon@3000000 { + compatible = "sophgo,cv1800-top-syscon", + "syscon", "simple-mfd"; + reg = <0x03000000 0x1000>; + + dma-router@154 { + compatible = "sophgo,cv1800-dmamux"; + reg = <0x154 0x8>, <0x298 0x4>; + #dma-cells = <3>; + dma-masters = <&dmac>; + dma-requests = <8>; + }; + }; + +...