Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4970223rdb; Tue, 12 Dec 2023 15:06:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IGJGU4UlMYP2Y7dve8Hb9byU5arAQ2xzLRZ7jo8eRraWkICVB/OFBlctRTw2EGfBPC08W1o X-Received: by 2002:a05:6a00:1951:b0:6b7:18c1:c09a with SMTP id s17-20020a056a00195100b006b718c1c09amr4822933pfk.5.1702422362709; Tue, 12 Dec 2023 15:06:02 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1702422362; cv=pass; d=google.com; s=arc-20160816; b=hTrM6pPvCYW/lcm5VYbrVbAZB7IO1Ll4/oQuziq+a5zmKoAhTAcmu8gE0S3ZjIp/yr CgSb/XOygxfAr4sE7ryE9rS8fxMnsER13Rgk4+XH6CENkg7Z2ucf1ptJa9nxptv6GX71 nX4BZBP4G1038zoBZvzUfdETz4qFIPK7iF7bezVcIj8z2Pu0qsyzNM4oS9JQBsdxVZPn jgZ5haQ0/GbDUKM+MAbJlB0rGUgJlf+HbeC0Mi4CJcxSpI1AWwwqo1qVF4kgVb8MdQqN ly97nW6PM0FFi0LuotW1rswulq4xYqDt+dXMrbegcaG/DK7oHqeKUAzBCAyNlTu8/lVj ZBpw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=WCjSUP0kFmO8ijoS/cG9NVHgbKLNzd/6v6tGWWUpD58=; fh=8w0hpWfAnZVYHZrg1c+b4tDYl8q9O5UIFsPMcWDkR2A=; b=udyU5GHE2XYIibfNcXnd62U210lOp2TDQ4zLSn1/AXh8SNU1/I2G8Ap0zkcEDXc5+c 6/EPj4Gr6fYKfaAEr60ORMqmMyj/lBA0WIx/GaNwk1mUKYBnqoedbzhHJcrqk3Rh2eij 5KyA520IVyFnOZRq331mPDaSg3g3jywdtJSg6XHDI14GAv5eTC9lKj2FUWMZhv58MnPj jH/ovBLNEp7OlKWjCdlczEQ2FAVib7/vbzODL9FWwfliOV8hegnaECuKxm0vk7pJQpFi OIufC/NCR3djpX02iZnu8gJarEVh3q9uAdqBlaT7dDDR3maJUMmg3r/ykCTxrVnzZacC hi3Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=LTtkPwAS; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id t5-20020a056a00138500b006bbfc944748si8342581pfg.315.2023.12.12.15.06.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 15:06:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=LTtkPwAS; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 8A2AB804B124; Tue, 12 Dec 2023 15:05:59 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378065AbjLLXFR (ORCPT + 99 others); Tue, 12 Dec 2023 18:05:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57142 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235371AbjLLXEn (ORCPT ); Tue, 12 Dec 2023 18:04:43 -0500 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2067.outbound.protection.outlook.com [40.107.237.67]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49227D5; Tue, 12 Dec 2023 15:04:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iX/cnt96mUGtB6J6oCZQxVFVJvCoy/N7odnljoLN/QDEMDKs9Rikr/tiEnG4GPXwsbqLqXwZcRhBFOQptLwtnySysBPO4R1rWsWafob7kh9pyNEN/rQu1YGLA90YTZjNtivS3oDmBGd6GtuVosYnks6eVorG4JMpEGsIGo945ezO8kVnilF1NRAGIAS9JSRjdNZE6pUoSb4UNXK757hZL28OiwCyW8EMLUfBD837JseUmEm7iTlr7O+3qIb4j4PjuMsCMD41v+ha0AC/9GWi08UzFhjHiwZvs7eJsrm3xyICE4Qfb1G14AT5H1KVYmeEZ2c8PQcgumpwOx9QyM1n5g== 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=WCjSUP0kFmO8ijoS/cG9NVHgbKLNzd/6v6tGWWUpD58=; b=mQqdGqK2Dvl0Jb88dbK29AlLxoW3QW0G+vbBYSr3Yqn+DKjS5RiPJHLinqsAc8fOsNBXEejfpWU2lQI6sGc6qJD0v9anI45zqJNBDaVfAGLLNi/wzVQYopBgNCVUi+pPIZt+XC/E8xlR3od+uRITy1MJ9zGJYFYiWS31jxBQ8ld9SzR6asH0fpqhVE/GWzUuG8PZftvXDPeBYCVx1J4GGjonQf19E3pSwM8KMZ0Mvo6Jb5D4tsdgN7mJJRquRzOMgSDAvB+eAmHjZMCgHj+nfu9mYBw5f90KrmSvPZLF9nAM2LNdLFbIXfWF7Q7aDp3OZ9UtbPs7GcSRj0qM65MikA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=gmail.com smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=WCjSUP0kFmO8ijoS/cG9NVHgbKLNzd/6v6tGWWUpD58=; b=LTtkPwASz+ydsE8jj9FVo5lTzFaBxqhGkNuL9S98Sfs2WyzPDAyexUdxos3qeLMNA+PLRB/YTkOmEUjhp3XbRTmD4DnLQ8U1ohzrFeLD5rmEpf0DsTCiMO+gMdzu6FiN867+3DJKVcVtsSQXBzUMR0H+CcpvsutIxoSHQdrd88o= Received: from CY8PR12CA0064.namprd12.prod.outlook.com (2603:10b6:930:4c::10) by DS0PR12MB7678.namprd12.prod.outlook.com (2603:10b6:8:135::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7068.33; Tue, 12 Dec 2023 23:04:18 +0000 Received: from CY4PEPF0000E9D4.namprd03.prod.outlook.com (2603:10b6:930:4c:cafe::7a) by CY8PR12CA0064.outlook.office365.com (2603:10b6:930:4c::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7091.26 via Frontend Transport; Tue, 12 Dec 2023 23:04:18 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB03.amd.com; pr=C Received: from SATLEXMB03.amd.com (165.204.84.17) by CY4PEPF0000E9D4.mail.protection.outlook.com (10.167.241.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7091.26 via Frontend Transport; Tue, 12 Dec 2023 23:04:18 +0000 Received: from SATLEXMB06.amd.com (10.181.40.147) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34; Tue, 12 Dec 2023 17:04:17 -0600 Received: from SATLEXMB03.amd.com (10.181.40.144) by SATLEXMB06.amd.com (10.181.40.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34; Tue, 12 Dec 2023 17:04:17 -0600 Received: from xsjtanmays50.xilinx.com (10.180.168.240) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server id 15.1.2507.34 via Frontend Transport; Tue, 12 Dec 2023 17:04:16 -0600 From: Tanmay Shah To: , , , , , CC: , , , Tanmay Shah Subject: [PATCH v2] dt-bindings: mailbox: add Versal IPI bindings Date: Tue, 12 Dec 2023 15:03:53 -0800 Message-ID: <20231212230353.888714-1-tanmay.shah@amd.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY4PEPF0000E9D4:EE_|DS0PR12MB7678:EE_ X-MS-Office365-Filtering-Correlation-Id: a51a0163-f11a-4e2a-05cc-08dbfb66ab8d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: MgRcncq247eGxvwJuubNyW4L2lhf8bAgE3l518SwW5W0kw1SnaAJojQvIqz23D5SzmVXaaWrRcCArOHAFjGcmolyB/6vbr7r2hDhpX3iMVnqpmwPfgBpqwINomM16a6vp65vdnpxA+1iUxPqCbeU6nvAevzypXKkEnM7bzNsFHBW5VtE3VvLkKSUsfOPvv7bms0EaclNbd4Cuh6Vu4amG6HxT4lW6FglE64+XkUI0JBlDdCzWs0nX3Y5/b+NkBfN2Yu8U/35gYjrsPCUNEB/Sdjn54CxCFvATf7rE1qI4CP8fEq6S9ojBr7KOCv7o4mMjSOSIhrcnbOaqE4gZ0Cg05UOdZx/5v9E7ws8gVA1HW6+qLCNk44valM1vFSWhIjc1aqsDH5Z+yVxEgoxDM5TBsXiZo86xZSb6Ywnb7xbp4465kww5ii1Fi6BF/ZHWly7sMbFfojtCM995rlqajwagrsPGli7WcpViJcae4gOpH2KO3tTH4lWNswILp+cVA8I3JgcCJiHeML2I0Cj2o/lR8a9wIeddOjPxn9cCxIUpbhGL7pTbtingBD0a6zwNDSEDYsAvSsBZ25pVsuSfbrrdNcTKNeZelVpAXVZvG6R2j/8gxTrSSNcmYPVCnoGv36fsyLWk0bxINLL51Vni4tIVF4+x0OXfLwBx5/qR3bpPElEA8xBTQxX5BPyfDmitBsdQpn9Dj8X3rsLo4GWyDtQnP91ITptUC0GIeczSqKfTXlQZEy3d41OHcfNhSBU6Dtm X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB03.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230031)(4636009)(396003)(39860400002)(136003)(376002)(346002)(230922051799003)(1800799012)(82310400011)(64100799003)(451199024)(186009)(40470700004)(46966006)(36840700001)(6666004)(2906002)(6636002)(70206006)(54906003)(44832011)(356005)(81166007)(36756003)(86362001)(8676002)(4326008)(15650500001)(8936002)(316002)(5660300002)(40480700001)(478600001)(966005)(70586007)(110136005)(40460700003)(1076003)(36860700001)(82740400003)(41300700001)(26005)(336012)(426003)(83380400001)(47076005)(2616005)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Dec 2023 23:04:18.5345 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a51a0163-f11a-4e2a-05cc-08dbfb66ab8d X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB03.amd.com] X-MS-Exchange-CrossTenant-AuthSource: CY4PEPF0000E9D4.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR12MB7678 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Tue, 12 Dec 2023 15:05:59 -0800 (PST) Add documentation for AMD-Xilinx Versal platform Inter Processor Interrupt controller. Versal IPI controller contains buffer-less IPI which do not have buffers for message passing. For such IPI channels message buffers are not expected and only notification to/from remote agent is expected. Signed-off-by: Tanmay Shah --- Changes in v2: - Add versal bindings to existing bindings doc instead of separate file. - Sort required list same as properties list - Add minimum and maximum range for xlnx,ipi-id vendor property - Move vendor property last in the list - Fix description of child node reg property for versal bindings - Change commit text depends on: https://lore.kernel.org/linux-arm-kernel/79f65b96-9015-41c4-b4ee-a82526c9eefc@linaro.org/T/#meeacc5c57a9610b19758d313e5b2d17ab470f646 .../mailbox/xlnx,zynqmp-ipi-mailbox.yaml | 172 ++++++++++++++---- 1 file changed, 138 insertions(+), 34 deletions(-) diff --git a/Documentation/devicetree/bindings/mailbox/xlnx,zynqmp-ipi-mailbox.yaml b/Documentation/devicetree/bindings/mailbox/xlnx,zynqmp-ipi-mailbox.yaml index 8b15a0532120..95146adb9631 100644 --- a/Documentation/devicetree/bindings/mailbox/xlnx,zynqmp-ipi-mailbox.yaml +++ b/Documentation/devicetree/bindings/mailbox/xlnx,zynqmp-ipi-mailbox.yaml @@ -8,11 +8,11 @@ title: Xilinx IPI(Inter Processor Interrupt) mailbox controller description: | The Xilinx IPI(Inter Processor Interrupt) mailbox controller is to manage - messaging between two Xilinx Zynq UltraScale+ MPSoC IPI agents. Each IPI - agent owns registers used for notification and buffers for message. + messaging between two Xilinx Zynq UltraScale+ MPSoC and Versal IPI agents. + Each IPI agent owns registers used for notification and buffers for message. +-------------------------------------+ - | Xilinx ZynqMP IPI Controller | + | Xilinx IPI Controller | +-------------------------------------+ +--------------------------------------------------+ TF-A | | @@ -37,15 +37,13 @@ maintainers: properties: compatible: - const: xlnx,zynqmp-ipi-mailbox + enum: + - xlnx,zynqmp-ipi-mailbox + - xlnx,versal-ipi-mailbox method: description: | The method of calling the PM-API firmware layer. - Permitted values are. - - "smc" : SMC #0, following the SMCCC - - "hvc" : HVC #0, following the SMCCC - $ref: /schemas/types.yaml#/definitions/string enum: - smc @@ -58,16 +56,26 @@ properties: '#size-cells': const: 2 - xlnx,ipi-id: - description: | - Remote Xilinx IPI agent ID of which the mailbox is connected to. - $ref: /schemas/types.yaml#/definitions/uint32 + reg: + minItems: 1 + maxItems: 2 + + reg-names: + minItems: 1 + maxItems: 2 interrupts: maxItems: 1 ranges: true + xlnx,ipi-id: + description: | + Remote Xilinx IPI agent ID of which the mailbox is connected to. + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 64 + patternProperties: '^mailbox@[0-9a-f]+$': description: Internal ipi mailbox node @@ -76,57 +84,116 @@ patternProperties: properties: compatible: - const: xlnx,zynqmp-ipi-dest-mailbox + enum: + - xlnx,zynqmp-ipi-dest-mailbox + - xlnx,versal-ipi-dest-mailbox - xlnx,ipi-id: - description: - Remote Xilinx IPI agent ID of which the mailbox is connected to. - $ref: /schemas/types.yaml#/definitions/uint32 + reg: + minItems: 1 + maxItems: 4 + + reg-names: + minItems: 1 + maxItems: 4 '#mbox-cells': const: 1 description: It contains tx(0) or rx(1) channel IPI id number. - reg: - maxItems: 4 - - reg-names: - items: - - const: local_request_region - - const: local_response_region - - const: remote_request_region - - const: remote_response_region + xlnx,ipi-id: + description: + Remote Xilinx IPI agent ID of which the mailbox is connected to. + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 64 required: - compatible - reg - reg-names - "#mbox-cells" - -additionalProperties: false - + - xlnx,ipi-id + + allOf: + - if: + properties: + compatible: + contains: + enum: + - xlnx,zynqmp-ipi-dest-mailbox + then: + properties: + reg: + items: + - description: Host agent request message buffer + - description: Host agent response message buffer + - description: Remote agent request message buffer + - description: Remote agent response message buffer + + reg-names: + items: + - const: local_request_region + - const: local_response_region + - const: remote_request_region + - const: remote_response_region + else: + properties: + reg: + minItems: 1 + items: + - description: Remote IPI agent control register + - description: Remote IPI agent optional message buffer + + reg-names: + minItems: 1 + items: + - const: ctrl + - const: msg required: - compatible - - interrupts - '#address-cells' - '#size-cells' + - interrupts - xlnx,ipi-id +allOf: + - if: + properties: + compatible: + contains: + enum: + - xlnx,versal-ipi-mailbox + then: + properties: + reg: + items: + - description: Host IPI agent control registers + - description: Host IPI agent optional message buffers + + reg-names: + items: + - const: ctrl + - const: msg + + required: + - reg + - reg-names + +additionalProperties: false + + examples: - | #include - amba { - #address-cells = <0x2>; - #size-cells = <0x2>; + bus { zynqmp-mailbox { compatible = "xlnx,zynqmp-ipi-mailbox"; interrupts = ; xlnx,ipi-id = <0>; #address-cells = <2>; #size-cells = <2>; - ranges; mailbox: mailbox@ff9905c0 { compatible = "xlnx,zynqmp-ipi-dest-mailbox"; @@ -144,4 +211,41 @@ examples: }; }; + - | + #include + + bus { + #address-cells = <2>; + #size-cells = <2>; + zynqmp-mailbox@ff300000 { + compatible = "xlnx,versal-ipi-mailbox"; + interrupts = ; + #address-cells = <2>; + #size-cells = <2>; + reg = <0x0 0xff300000 0x0 0x1000>, + <0x0 0xff990000 0x0 0x1ff>; + reg-names = "ctrl", "msg"; + xlnx,ipi-id = <0>; + ranges; + + /* buffered IPI */ + mailbox@ff340000 { + compatible = "xlnx,versal-ipi-dest-mailbox"; + reg = <0x0 0xff340000 0x0 0x1000>, + <0x0 0xff990400 0x0 0x1ff>; + reg-names = "ctrl", "msg"; + #mbox-cells = <1>; + xlnx,ipi-id = <4>; + }; + + /* bufferless IPI */ + mailbox@ff370000 { + compatible = "xlnx,versal-ipi-dest-mailbox"; + reg = <0x0 0xff370000 0x0 0x1000>; + reg-names = "ctrl"; + #mbox-cells = <1>; + xlnx,ipi-id = <7>; + }; + }; + }; ... base-commit: abb240f7a2bd14567ab53e602db562bb683391e6 prerequisite-patch-id: 70017c8eaded5fc85749995b9cf093c6c625fab3 -- 2.25.1