From nobody Sun Sep 14 16:30:00 2025 Received: from smtpout149.security-mail.net (smtpout149.security-mail.net [85.31.212.149]) (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 B07B216C6B7 for ; Mon, 22 Jul 2024 09:45:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=85.31.212.149 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721641507; cv=none; b=L+ds2UqqehyMwrPtYTUn9adEaY4EraEpJnR7c5wQOgIqYn8SP/86n7xyVjKhxfO20eFlZpC/Z2xd+3i2NPiRQquUINSjxFFTlTYuFM/tUB82gaGz+TGLEBzz36I5jqxvXTC00iii7mU17wCovo0zyDYA20vV0juUbhR7oVnVICQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721641507; c=relaxed/simple; bh=egooQkmj99pm83DC9gb6KlvkhnjktH8O6Q/DT11oDZE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=gJ4rT5D17msNJetqOs1/2piBvJMpllTQ/3LEeSAixlfDxILkyU85YTrD+sjmGVwjm9AtT8E8PEirDaPtvchHkSKhmGfconlYsUeKUi8XaGBk9OZUxftN6HkAqiJIk3WPlwL5R9zZ+irs0VN+9PlP8PLYYEbXfZnVLX5x8c35Xvs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=kalrayinc.com; spf=pass smtp.mailfrom=kalrayinc.com; dkim=pass (1024-bit key) header.d=kalrayinc.com header.i=@kalrayinc.com header.b=Tf8BNw8G; arc=none smtp.client-ip=85.31.212.149 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=kalrayinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kalrayinc.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=kalrayinc.com header.i=@kalrayinc.com header.b="Tf8BNw8G" Received: from localhost (fx409.security-mail.net [127.0.0.1]) by fx409.security-mail.net (Postfix) with ESMTP id 0A444349953 for ; Mon, 22 Jul 2024 11:43:20 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kalrayinc.com; s=sec-sig-email; t=1721641400; bh=egooQkmj99pm83DC9gb6KlvkhnjktH8O6Q/DT11oDZE=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=Tf8BNw8GrmoyXRj9UeuC9+b+a5zVzgm9veiBVvunuNxGZXP5wA+4tGEmhuYAKQO6S VkfvaLZ7vmEDA7P2DkZHdCP5/1Y00GfTxsFD6zFyos/9eoWqjhzyXO9cIcpsw/g7kC xg5AeylTXLm3XJt7xvon4FRyo2XZucjJ5SW1N4oY= Received: from fx409 (fx409.security-mail.net [127.0.0.1]) by fx409.security-mail.net (Postfix) with ESMTP id D79F03498B7; Mon, 22 Jul 2024 11:43:19 +0200 (CEST) Received: from srvsmtp.lin.mbt.kalray.eu (unknown [217.181.231.53]) by fx409.security-mail.net (Postfix) with ESMTPS id 5DCD3349888; Mon, 22 Jul 2024 11:43:19 +0200 (CEST) Received: from junon.lan.kalrayinc.com (unknown [192.168.37.161]) by srvsmtp.lin.mbt.kalray.eu (Postfix) with ESMTPS id 3299240317; Mon, 22 Jul 2024 11:43:19 +0200 (CEST) X-Quarantine-ID: X-Secumail-id: <806d.669e29b7.5bd88.0> From: ysionneau@kalrayinc.com To: linux-kernel@vger.kernel.org, Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jonathan Borne , Julian Vetter , Yann Sionneau Cc: devicetree@vger.kernel.org Subject: [RFC PATCH v3 10/37] dt-bindings: kalray: Add CPU bindings for Kalray kvx Date: Mon, 22 Jul 2024 11:41:21 +0200 Message-ID: <20240722094226.21602-11-ysionneau@kalrayinc.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240722094226.21602-1-ysionneau@kalrayinc.com> References: <20240722094226.21602-1-ysionneau@kalrayinc.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-ALTERMIMEV2_out: done Content-Type: text/plain; charset="utf-8" From: Yann Sionneau Add Kalray kvx CPU bindings. Signed-off-by: Yann Sionneau --- Notes: V2 -> V3: New patch --- .../devicetree/bindings/kalray/cpus.yaml | 105 ++++++++++++++++++ 1 file changed, 105 insertions(+) create mode 100644 Documentation/devicetree/bindings/kalray/cpus.yaml diff --git a/Documentation/devicetree/bindings/kalray/cpus.yaml b/Documenta= tion/devicetree/bindings/kalray/cpus.yaml new file mode 100644 index 0000000000000..cdf1f10573da7 --- /dev/null +++ b/Documentation/devicetree/bindings/kalray/cpus.yaml @@ -0,0 +1,105 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/kalray/cpus.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Kalray CPUs + +maintainers: + - Jonathan Borne + - Julian Vetter + - Yann Sionneau + +allOf: + - $ref: /schemas/cpu.yaml# + +properties: + reg: + maxItems: 1 + description: | + Contains the CPU number. + + compatible: + oneOf: + - items: + - const: kalray,kv3-1-pe + - const: kalray,kv3-pe + + clocks: + maxItems: 1 + + enable-method: + const: "kalray,coolidge-pwr-ctrl" + + interrupt-controller: + type: object + additionalProperties: false + description: Describes the CPU's local interrupt controller + + properties: + '#interrupt-cells': + const: 1 + + compatible: + const: kalray,kv3-1-intc + + interrupt-controller: true + + '#address-cells': + const: 0 + + required: + - compatible + - '#interrupt-cells' + - '#address-cells' + - interrupt-controller + +if: + properties: + reg: + const: 0 +then: + required: + - clocks + +required: + - reg + - compatible + - interrupt-controller + +unevaluatedProperties: false + +examples: + - | + + cpus { + #size-cells =3D <0>; + #address-cells =3D <1>; + + cpu@0 { + compatible =3D "kalray,kv3-1-pe"; + device_type =3D "cpu"; + reg =3D <0>; + clocks =3D <&core_clk>; + cpu_intc0: interrupt-controller { + compatible =3D "kalray,kv3-1-intc"; + #interrupt-cells =3D <1>; + #address-cells =3D <0>; + interrupt-controller; + }; + }; + + + cpu@1 { + compatible =3D "kalray,kv3-1-pe"; + device_type =3D "cpu"; + reg =3D <1>; + cpu_intc1: interrupt-controller { + compatible =3D "kalray,kv3-1-intc"; + #interrupt-cells =3D <1>; + #address-cells =3D <0>; + interrupt-controller; + }; + }; + }; --=20 2.45.2