From nobody Fri Nov 29 16:48:39 2024 Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) (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 898DF189F5D for ; Wed, 18 Sep 2024 13:49:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.118.77.12 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726667371; cv=none; b=lcxZbmWxJlHg/R76LxdrOJmYcrY2K2fbXekd8gUjHiIgECHaaSgumOSYh8IQcXR/nhAUp4MCqftLncDPkA1dCCTiodOshi6Rg+dLhDPzKj9m+kg/8bvI+YiNddPt/6GW++XJKmmoiHeqV41gOs4UTzsR6qtx9kTdNLWGH/c0itU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726667371; c=relaxed/simple; bh=AJY0Xsz/Y6ToY5IC6gQa1F8MAqD9Omkvy0XRzv/GYGo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:MIME-Version: Content-Type:References; b=snH0voMji03wx7UBSG2RsHozwOEgRKk9GVESPbH8c5g2nCxWw/zmfK5ObuaQDSM+17dsmFEndnfj7y/TqBz6v2MUaNr2NPK5RKk71AdQ/EpRu1Ep5HFHGrrxFukO2kysEcGDuh1NYDA3L9nzq2X1gSBcLfqTXBAXM3NhwNFmR8E= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com; spf=pass smtp.mailfrom=samsung.com; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b=LEyoAolC; arc=none smtp.client-ip=210.118.77.12 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=samsung.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="LEyoAolC" Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20240918134927euoutp02bb8a051b512ccf8c2f2252c5bc626a76~2WtKWLAjR1901519015euoutp02H for ; Wed, 18 Sep 2024 13:49:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20240918134927euoutp02bb8a051b512ccf8c2f2252c5bc626a76~2WtKWLAjR1901519015euoutp02H DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1726667367; bh=02T9kzzWdCSYVfcbjqUHN+jds2Jp15gLdjoz6u6rOp8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LEyoAolCAnlmtcLcQkRE0pS0mKQhN4Ni5xV3pfE5HyEAgEvJBq+gPOroLIDsNMMZf bIbTnbIqVmBQQgWJNWkhRUWQZTMxf02RcpxxsyCeokCZXc0Q4qugAVZjgGIMdhkOol ianGN1Dgm6nZ39xsjxgsaEyBFC4QpkL3yONSNR6g= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20240918134927eucas1p2c368227348de008b0c29c37d77cf8b38~2WtJ3n1x00326803268eucas1p2n; Wed, 18 Sep 2024 13:49:27 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id E4.1B.09875.76ADAE66; Wed, 18 Sep 2024 14:49:27 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20240918134926eucas1p1df23a583b356505939d4c5501bd6c80f~2WtJeJaJ50702707027eucas1p1_; Wed, 18 Sep 2024 13:49:26 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20240918134926eusmtrp2c96fb1ba3229cf8f0d11a21bdb1370e4~2WtJdPJ550382403824eusmtrp2m; Wed, 18 Sep 2024 13:49:26 +0000 (GMT) X-AuditID: cbfec7f4-131ff70000002693-18-66eada6731d5 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 5D.69.19096.66ADAE66; Wed, 18 Sep 2024 14:49:26 +0100 (BST) Received: from AMDC4942.home (unknown [106.210.136.40]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20240918134925eusmtip19c28f3b9c43949c2aadbc88904cce5dd~2WtIuzDyL1778117781eusmtip1F; Wed, 18 Sep 2024 13:49:25 +0000 (GMT) From: Michal Wilczynski To: drew@pdp7.com, guoren@kernel.org, wefu@redhat.com, jassisinghbrar@gmail.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, m.szyprowski@samsung.com Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Michal Wilczynski Subject: [PATCH RFC v1 2/3] dt-bindings: mailbox: Add thead,th1520-mailbox bindings Date: Wed, 18 Sep 2024 15:49:00 +0200 Message-Id: <20240918134901.193033-3-m.wilczynski@samsung.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240918134901.193033-1-m.wilczynski@samsung.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrPKsWRmVeSWpSXmKPExsWy7djPc7rpt16lGfzYzGKx9fcsdos1e88x Wcw/co7V4t6lLUwWL/Y2slhcWzGX3eLlrHtsFpd3zWGz2Pa5hc1i7ZG77Bbrv85nsnh5uYfZ om0Wv8X/PTvYLVr2T2Fx4Pd48/Ili8fhji/sHjtn3WX32LSqk81j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p1df23a583b356505939d4c5501bd6c80f X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20240918134926eucas1p1df23a583b356505939d4c5501bd6c80f X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20240918134926eucas1p1df23a583b356505939d4c5501bd6c80f References: <20240918134901.193033-1-m.wilczynski@samsung.com> Add bindings for the mailbox controller. This work is based on the vendor kernel. [1] Link: https://github.com/revyos/thead-kernel.git [1] Signed-off-by: Michal Wilczynski --- .../bindings/mailbox/thead,th1520-mbox.yaml | 83 +++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 84 insertions(+) create mode 100644 Documentation/devicetree/bindings/mailbox/thead,th1520-= mbox.yaml diff --git a/Documentation/devicetree/bindings/mailbox/thead,th1520-mbox.ya= ml b/Documentation/devicetree/bindings/mailbox/thead,th1520-mbox.yaml new file mode 100644 index 000000000000..f446fae76398 --- /dev/null +++ b/Documentation/devicetree/bindings/mailbox/thead,th1520-mbox.yaml @@ -0,0 +1,83 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) + +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mailbox/thead,th1520-mbox.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: T-head TH1520 Mailbox Controller + +description: | + The T-head mailbox controller enables two cores within the SoC to + communicate and coordinate by passing messages (e.g., data, status, + and control) through the mailbox channels. It also provides the ability + for one core to signal the other processor using interrupts. + +maintainers: + - Michal Wilczynski + +properties: + compatible: + const: thead,th1520-mbox + + reg: + description: Contains base addresses and sizes for the mailbox and rem= ote ICUs. + items: + - description: Mailbox local base address + - description: Remote ICU 0 base address + - description: Remote ICU 1 base address + - description: Remote ICU 2 base address + + reg-names: + items: + - const: local_base + - const: remote_icu0 + - const: remote_icu1 + - const: remote_icu2 + + interrupts: + maxItems: 1 + description: Interrupt for the mailbox controller. + + clocks: + maxItems: 1 + description: Clock phandle for the mailbox controller. + + clock-names: + items: + - const: ipg + + icu_cpu_id: + $ref: /schemas/types.yaml#/definitions/uint32 + description: CPU ID for the ICU. + + '#mbox-cells': + const: 2 + description: Number of cells required to encode the mailbox specifier. + +additionalProperties: false + +required: + - compatible + - reg + - reg-names + - interrupts + - icu_cpu_id + - '#mbox-cells' + +dependencies: + clock-names: [ clocks ] + +examples: + - | + mbox_910t: mbox@ffffc38000 { + compatible =3D "thead,th1520-mbox"; + reg =3D <0xff 0xffc38000 0x0 0x4000>, + <0xff 0xffc44000 0x0 0x1000>, + <0xff 0xffc4c000 0x0 0x1000>, + <0xff 0xffc54000 0x0 0x1000>; + reg-names =3D "local_base", "remote_icu0", "remote_icu1", "remote_ic= u2"; + interrupts =3D <28 IRQ_TYPE_LEVEL_HIGH>; + icu_cpu_id =3D <0>; + #mbox-cells =3D <2>; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 7331b30deef8..49198b2ed2e7 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -19719,6 +19719,7 @@ L: linux-riscv@lists.infradead.org S: Maintained T: git https://github.com/pdp7/linux.git F: Documentation/devicetree/bindings/clock/thead,th1520-clk-ap.yaml +F: Documentation/devicetree/bindings/mailbox/thead,th1520-mbox.yaml F: arch/riscv/boot/dts/thead/ F: drivers/clk/thead/clk-th1520-ap.c F: drivers/mailbox/mailbox-th1520.c --=20 2.34.1