From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=52.101.61.54 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796320659; b=lHGtQn+qfnEWg1KymM3jfpE4KIFO6RzPWmAM6tfa0VVoTfDTd3a55Be8OVWqVF8tAVVs YCz5O/EkWB95dQ0BxXN09x+QPian9Cq+C/1PJ2rI28bcT5j6rtrQmHdk3eZ2YX/srdDri b4y1LgjiJf43m/qm4t/l4yPzUT9mRH2sV6jpsb54m8agaO3n7uwagUxzjvMyUWWVV1N+h FJqcqRq9s+RveGPiEKgUrmdhmBJ9x2a7MMRRCdfz5v/oYcavE9hVMhAk7aZREqe8Se72k 1yEwuzprayMZeKsiu0nJjpvJloc9eWlSK3GPyktgoJLDi2L9HJZsSNSgsxwiamwTGyw== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796320659; h=DMARC-Filter:DKIM-Signature:Received:Received: X-MS-Exchange-Authentication-Results:Received-SPF:Received:Received: Received:From:To:CC:Subject:Date:Message-ID:X-Mailer:In-Reply-To: References:MIME-Version:Content-Transfer-Encoding:Content-Type: X-EOPAttributedMessage:X-MS-PublicTrafficType: X-MS-TrafficTypeDiagnostic:X-MS-Office365-Filtering-Correlation-Id: X-MS-Exchange-SenderADCheck:X-MS-Exchange-AntiSpam-Relay: X-Microsoft-Antispam:X-Microsoft-Antispam-Message-Info: X-Forefront-Antispam-Report: X-MS-Exchange-AntiSpam-MessageData-ChunkCount: X-MS-Exchange-AntiSpam-MessageData-0:X-OriginatorOrg: X-MS-Exchange-CrossTenant-OriginalArrivalTime: X-MS-Exchange-CrossTenant-Network-Message-Id: X-MS-Exchange-CrossTenant-Id: X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: X-MS-Exchange-CrossTenant-AuthSource:X-MS-Exchange-CrossTenant-AuthAs: X-MS-Exchange-CrossTenant-FromEntityHeader: X-MS-Exchange-Transport-CrossTenantHeadersStamped; bh=QUXB5rwKMhcfhrGEBPsz4dPNwW01iJKGpWFxih5O6Jg=; b=aEbFt3Soa2CC2gct3qpsI47SBvgsx+FKmRizbCvxriqnkwmIKFZJP9BEJpgXxp6w1Jgc 4jINdr8Tda+tZ1i4dPQErPPQiJ7epUE/shGiipUbIhlDVSqOtM4wB4ZwbEQumyyGgdCVD uymybxMeUSGiZF5o6aDKRIqkFRXHxT8y5AbONrI1plbGhi6Ifo5yXDhMoRnhk2YtqUwef 7SkNppZAGmdY1riGLKa/2B2ZEw5jQlnlps8OAProh2JFMXvmhcaUlKMEpRci6m51HEovn l03Vo7N6P3LO5+rFD6R7j+5gR0/nxDmZi3A4TJXZ4S7j6eAFiCgyFpdznNVjDGOdHrw== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass header.d=amd.com header.i=@amd.com header.a=rsa-sha256 header.s=selector1 header.b=rlaaUYbo; arc=pass header.oldest-pass=0 smtp.remote-ip=52.101.61.54 Received: from DM1PR04CU001.outbound.protection.outlook.com (mail-centralusazon11010054.outbound.protection.outlook.com [52.101.61.54]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (secp384r1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 74AEF606A332; Thu, 3 Dec 2026 17:57:38 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 74AEF606A332 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=amd.com header.i=@amd.com header.a=rsa-sha256 header.s=selector1 header.b=rlaaUYbo ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=wfLXO03I828p9/ucLnH6RJAl/0yi3lflxGgXVbxcnRapBeyvCluwJtQPeyke0NlMBrMArl/wG/hLzubfU67B3JTj0+e0o4rb++iAPABipW790yZFAqk/bEDiAi6UjLJv/toq/MrXJygmvBHBiJdLCyZviwQhrnqHzOVmplsHXLls0uRhFl7oouHxYxlp/0ZXsk/Tn1rkhSXZU/NOPNPioItJD9ZMreikumygRgKlfvX/LOtRJuZmcgYSmWY8YlqfuBjmXRxaO+8fU6pmYAwT6wGfa0c+hW6Q6/Hp1Z3CCpXsT2EWRPQQ8VUCz+UxJ3n4FZ/tSma980yHa/5KHvbJUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=QUXB5rwKMhcfhrGEBPsz4dPNwW01iJKGpWFxih5O6Jg=; b=VC975VfgNMYF8vbYzLOZqtnNAWhTNmIw9Zpr0ykhua2PxIjGp2DMNDPkcuHOuZ4dbaNSt0MQv/EcXGLgRv4hVmEkG3NrKGvUR8eJgWioZhvjqFPx1u8xr9CI0/BjNiQnxpp5DWSxmSN4IWeLSBR45hMdhHxmIe+XnXuctDnGKe3SqQsFmjxELXnvflOrTlLt8cs8isRw4OcIV1rscAqaYmnCvA/i8S0bX2wmQpQ4vsWoKBofelRmQM/H67sG/UjYr3icfcRWTh72vOB7bzTY8ZH4xdezroQcoLsFaI/MASHGocY/zXWByMx9iFlEAMge5ZQ3XC7NDJhM2m4aJhsCqA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=linaro.org 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=QUXB5rwKMhcfhrGEBPsz4dPNwW01iJKGpWFxih5O6Jg=; b=rlaaUYbos4EuJkwOteJ1oqia8XOgD6a7O0LN/iox8VIGWIv/WyAC348nDW/+Kvyh0CORQH87Lp7svOHFmgNqBJJif5mP8xsF9PD9rh+CWr4BcG4wkuicf0rnfaCGEa6RHKta7Gf/XbTni26n/EpfcPG3W7SddE5bE8HNRDf7e8E= Received: from DS7PR05CA0047.namprd05.prod.outlook.com (2603:10b6:8:2f::26) by MN0PR12MB5788.namprd12.prod.outlook.com (2603:10b6:208:377::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.688.10; Thu, 3 Dec 2026 17:57:34 +0000 Received: from DS8PEPF000000E2.namprd05.prod.outlook.com (2603:10b6:8:2f:cafe::a9) by DS7PR05CA0047.outlook.office365.com (2603:10b6:8:2f::26) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.709.5 via Frontend Transport; Thu, 3 Dec 2026 17:57:33 +0000 X-MS-Exchange-Authentication-Results: mx.microsoft.com 1; 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=satlexmb08.amd.com; pr=C Received: from satlexmb08.amd.com (165.204.84.17) by DS8PEPF000000E2.mail.protection.outlook.com (10.167.23.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.709.6 via Frontend Transport; Thu, 3 Dec 2026 17:57:33 +0000 Received: from satlexmb08.amd.com (10.181.42.217) by satlexmb08.amd.com (10.181.42.217) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.57; Thu, 3 Dec 2026 11:57:33 -0600 Received: from xsjblevinsk51.xilinx.com (10.180.168.240) by satlexmb08.amd.com (10.181.42.217) with Microsoft SMTP Server id 15.2.2562.57 via Frontend Transport; Thu, 3 Dec 2026 11:57:32 -0600 From: Ben Levinsky To: Mathieu Poirier , Bjorn Andersson , Jassi Brar , Rob Herring , Krzysztof Kozlowski , Conor Dooley CC: , , , , , , Subject: [PATCH v4 1/4] dt-bindings: mailbox: Add AMD PL Mailbox IP Date: Thu, 3 Dec 2026 09:57:28 -0800 Message-ID: <20261203175731.661503-2-ben.levinsky@amd.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20261203175731.661503-1-ben.levinsky@amd.com> References: <20261203175731.661503-1-ben.levinsky@amd.com> X-Mailing-List: linux-remoteproc@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS8PEPF000000E2:EE_|MN0PR12MB5788:EE_ X-MS-Office365-Filtering-Correlation-Id: 01993656-a830-4243-eb5b-08df5166e85e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|82310400026|36860700016|376014|7416014|30052699003|23010399003|22082099003|18002099003|261009223027099003|3023799007|13003099007|261022105027099003|261102123227099003|261028144727099003|261026140227099003|261026121527099003|11063799006|261021121427099003|56012099006|10067099003; X-Microsoft-Antispam-Message-Info: Gxr9q/Z4RbsE16GrksvCs/DMnRPeU/ow1d398G+jsknu6313WabUNurQfq0jRuQivmNMwkJZz4WwFZ6xQgvxoL0ZaZfTL9y6k9snq4ky6M6Xe8QbDeFjewI/8/4IDHAHjUQPRSuxoC/c2Iv9/C3lD0Gg9QXU/pJkgfzbEfHDkPl9YbyFTTmsEAoZPtwHXLAlL6mcHRsIz7WII3Ad6cjSaxNpXYGIVn4mMqmey6bmamcYB9Yz/yZLJKgx5zzZ1N+h1646jybtStw9JiU6sXZv0G01jcbgbqIsj9psnBq1coOtZp6zdmONYQ6WoRw1bA4Nyst9jaII4k2596mkd6pjgHUayMSsnV1UQryrLBWH38jz9aWoXdcycdceuRL0V17Zc49GY054v086uIpG5lbDQozqnH6Y0IQXsaL96x9WQ9APz6c6pcYAnd+T6Jexe861rKd9ZmhP6lUsgAUdSgI3R2AmhpQArzRuFaHAEqiItVUUCO5NOI1/vCdzg6B3ZUIRKy5LWEm3IDeGUkOJjPBwanoNSlT3LCIQrbCe45ka847jMLrKgeIqHjwILrqmFxbDajWI1gJKHOm254eTHrHt+PqZ1Ocs8d6vT9R5lWYIhkXrwKrLOmfN82jkPqE3OjgRzujrd131j0uR8egWL+dGVw== X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:satlexmb08.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(1800799024)(82310400026)(36860700016)(376014)(7416014)(30052699003)(23010399003)(22082099003)(18002099003)(261009223027099003)(3023799007)(13003099007)(261022105027099003)(261102123227099003)(261028144727099003)(261026140227099003)(261026121527099003)(11063799006)(261021121427099003)(56012099006)(10067099003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: /NFlrg50KSY8PlYXyRKRGRRKgSaOelV+F7b24EMKTjWOGyROf5eldoDsUPPMedwNR/K7lTvgEJQCXTa+lWpxVXk2smGPlH6agcrXBsZHXhYwyDNu9lZiuuVPBL4c/u37S70i28U/327jug7Lro61J3yl7gUyZ6wGc8KHX7EiDKM6QMw97pyJUdc2yzIP6IjVsn9XLyzMLRhfivQ29d1RTcnISlr8JBsiZtlVLwCm7R/h6WSdP4egbfJoUwdqQPphHTOi6CM6r73hhbCIbGJIC7tu3Vl+Fz/PUytKWEkfEsi1J6UBOwWgYBi7H9+mG7fNibwJ89H1KWfGueBeICcZ8M44XwIYywvPgK5OaMvfIcGMh8BIXuZBlJOurDhtq7KB8cMhtKBsIpYB4ChWZucZwQalUEY/k7diZNW4y1NEL4ttKxpiJlbdqTm9Sa/BZO7O X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Dec 2026 17:57:33.6514 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 01993656-a830-4243-eb5b-08df5166e85e 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=[satlexmb08.amd.com] X-MS-Exchange-CrossTenant-AuthSource: DS8PEPF000000E2.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN0PR12MB5788 Add a binding for the AMD PL Mailbox, a soft IP used to exchange 32-bit words between two processors through a pair of FIFOs. The IP lives in programmable logic and isn't tied to a SoC, so the compatible names the IP and its version. The FIFO depth is set when the design is synthesized and can't be read from the hardware, hence property amd,pl-mailbox-depth. Signed-off-by: Ben Levinsky Reviewed-by: Krzysztof Kozlowski --- .../bindings/mailbox/amd,pl-mailbox-2.1.yaml | 71 +++++++++++++++++++ MAINTAINERS | 5 ++ 2 files changed, 76 insertions(+) create mode 100644 Documentation/devicetree/bindings/mailbox/amd,pl-mailbox-2.1.yaml diff --git a/Documentation/devicetree/bindings/mailbox/amd,pl-mailbox-2.1.yaml b/Documentation/devicetree/bindings/mailbox/amd,pl-mailbox-2.1.yaml new file mode 100644 index 000000000000..50ac14a4cbac --- /dev/null +++ b/Documentation/devicetree/bindings/mailbox/amd,pl-mailbox-2.1.yaml @@ -0,0 +1,71 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mailbox/amd,pl-mailbox-2.1.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: AMD Programmable Logic Mailbox IP + +maintainers: + - Ben Levinsky + +description: | + The AMD Programmable Logic Mailbox IP passes messages between two + processors through a pair of FIFOs. Each side of the IP has its own + registers, interrupt and clock, and is described by its own node. + Channel 0 is used to transmit and channel 1 to receive. + + The Mailbox is a soft IP core instantiated in programmable logic, not a + SoC block, so the compatible names the IP core and its version (2.1). + The "pl" part distinguishes it from the IPI hardware that can also be + used as a mailbox. + +properties: + compatible: + const: amd,pl-mailbox-2.1 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + maxItems: 1 + + amd,pl-mailbox-depth: + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 16 + maximum: 8192 + default: 16 + description: + Depth of the send and receive FIFOs in 32-bit words. The depth is the + C_MAILBOX_DEPTH parameter chosen for each IP instance when the design + is synthesized, so instances in one design can differ, and it cannot + be read from the registers. Must match the synthesized depth. + + '#mbox-cells': + const: 1 + +required: + - compatible + - reg + - interrupts + - clocks + - '#mbox-cells' + +additionalProperties: false + +examples: + - | + #include + + mailbox@b2060000 { + compatible = "amd,pl-mailbox-2.1"; + reg = <0xb2060000 0x10000>; + interrupts = ; + clocks = <&pl_clk>; + amd,pl-mailbox-depth = <16>; + #mbox-cells = <1>; + }; +... diff --git a/MAINTAINERS b/MAINTAINERS index ca1c59e1fc59..31bc8f817a65 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1315,6 +1315,11 @@ S: Supported T: git https://gitlab.freedesktop.org/agd5f/linux.git F: drivers/gpu/drm/amd/pm/ +AMD PROGRAMMABLE LOGIC MAILBOX DRIVER +M: Ben Levinsky +S: Maintained +F: Documentation/devicetree/bindings/mailbox/amd,pl-mailbox-2.1.yaml + AMD PSTATE DRIVER M: Huang Rui M: Mario Limonciello -- 2.34.1