Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp3473174rdb; Wed, 27 Dec 2023 08:25:10 -0800 (PST) X-Google-Smtp-Source: AGHT+IHTPIKqG6rfIwByrT1kL21WATYpfWJGhenFt2e8Lhmqlu6/XpeJYEr+8u8gI7xXxGuxCXmy X-Received: by 2002:aa7:85ce:0:b0:6d9:a5e9:528e with SMTP id z14-20020aa785ce000000b006d9a5e9528emr2168012pfn.30.1703694310168; Wed, 27 Dec 2023 08:25:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703694310; cv=none; d=google.com; s=arc-20160816; b=Ngvhl989DcbO3mpvaDrC9utCX2WxfY8HmSBVmh364RVgX6hIlp/rgKdstMqwyVsGYY A2LpUFRvVIAiOB2Vf6OgFA7wHLs2z10/ef6Y2QkQvKH+VK6G+cyQ28J62Xb5ZpNLNed+ ZJvz9LTu8ilRf4AwPaPlggO1tyDeOwZWcyTEBxhP0bWYDXveQKTS0Kqrj5s9hruX6VAj uvgyC/5Hj5iYqIARkg+ge6xbY3rhG3hXtnGIcA4AHRP4KLGfQ7jEDCuNle7DJVUKTtlU RXlIwCSvy93ZQtekw79Y4s6tLRy7ciaYmTOGq54OTXoOSMnaa1R+TB5pS7QDthOON1sq QK/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=ajMlmmADQpbId/4q2D+R6BVoYQJ6HpDQcxBpO0cBCYw=; fh=LfLGsUUJa4TlTn3K59Ppdl4ZPEps7A8D2ImHmD7mMyU=; b=mZDi8+WlZUNKTjtp6PkEX0cnp3yfnfp+Bmxv4U1y8nnDAU6Ii8PGoJIyk/J4dcftQu 7qSaL4pyTyN1zuxFXzSMvJGQID7XP8aEAtbDTZFeR/NUieRlogOkkpFdxEsVAZMgBNh6 qIYAD+IexDyBhxkz1NQi0+7PZvDLuIZzrDwQoRiZYfXobdD4PZyUHPeefezcVWCbL1GR 19XRwhMyEzjg7SYJaQcm8YSVuaoLA0Bd1f+FkeDkKnQNDHQgaArZgIud+ADphtXgF0Yp bxDAz5LCPTp8CGELw/GzfsHaxCXIPkQwFmyDdaGUNtV5tbzN03Y/9ZK93VEuUR3KxcBh 7JxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=WrtPjIS4; spf=pass (google.com: domain of linux-kernel+bounces-12122-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12122-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id bt8-20020a056a00438800b006d9b21cd3e1si5043333pfb.280.2023.12.27.08.25.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Dec 2023 08:25:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-12122-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=WrtPjIS4; spf=pass (google.com: domain of linux-kernel+bounces-12122-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12122-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id A641B281FD9 for ; Wed, 27 Dec 2023 16:25:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C192847777; Wed, 27 Dec 2023 16:24:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="WrtPjIS4" X-Original-To: linux-kernel@vger.kernel.org Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [217.70.183.199]) (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 90EF946433; Wed, 27 Dec 2023 16:24:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id A39ACFF813; Wed, 27 Dec 2023 16:24:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1703694247; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ajMlmmADQpbId/4q2D+R6BVoYQJ6HpDQcxBpO0cBCYw=; b=WrtPjIS4+b54w4j5gPlsT1ruj6Q/Kwap/2g2nMdPZ4Oj2oTlQxVCvvwxFeIMC0VwJUof0N oRX5vBwN/1QgBx1pvfKwxVtOjS5YAUbiOR9wv0ErXE7RCmqVAcMCmTRocaSx+74zl7Ww+F 6LS+KcvD0MztZeM7yUJ7bIfPB/LzwfwY6LK3Xgn1eGiMyDEQbJC21Ea10jwg0ya6jTd/8i pLqrs47cd3XB1FRF2mcWm2lkioc44ux8I6eX68eRpWjN/+iEAnMzN78d5gb6Soy+PMlaE2 oA8M7MiFYJve5k0/f/tbtwa9NU1U8bFr9qMfrVmVVCBVxpNpHg6lZF2c1cEiVw== From: =?utf-8?q?Th=C3=A9o_Lebrun?= Date: Wed, 27 Dec 2023 17:23:54 +0100 Subject: [PATCH v2 4/6] dt-bindings: clock: mobileye,eyeq5-clk: add bindings Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20231227-mbly-clk-v2-4-a05db63c380f@bootlin.com> References: <20231227-mbly-clk-v2-0-a05db63c380f@bootlin.com> In-Reply-To: <20231227-mbly-clk-v2-0-a05db63c380f@bootlin.com> To: Gregory CLEMENT , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thomas Bogendoerfer Cc: Vladimir Kondratiev , linux-mips@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Thomas Petazzoni , Tawfik Bayouk , =?utf-8?q?Th=C3=A9o_Lebrun?= X-Mailer: b4 0.12.4 X-GND-Sasl: theo.lebrun@bootlin.com Add DT schema bindings for the EyeQ5 clock controller driver. Signed-off-by: Théo Lebrun --- .../bindings/clock/mobileye,eyeq5-clk.yaml | 50 ++++++++++++++++++++++ .../bindings/soc/mobileye/mobileye,eyeq5-olb.yaml | 4 ++ MAINTAINERS | 2 + include/dt-bindings/clock/mobileye,eyeq5-clk.h | 22 ++++++++++ 4 files changed, 78 insertions(+) diff --git a/Documentation/devicetree/bindings/clock/mobileye,eyeq5-clk.yaml b/Documentation/devicetree/bindings/clock/mobileye,eyeq5-clk.yaml new file mode 100644 index 000000000000..64b114a52cd9 --- /dev/null +++ b/Documentation/devicetree/bindings/clock/mobileye,eyeq5-clk.yaml @@ -0,0 +1,50 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/mobileye,eyeq5-clk.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Mobileye EyeQ5 clock controller + +description: + The EyeQ5 clock controller handles 10 read-only PLLs derived from the main + crystal clock. It also exposes one divider clock, a child of one of the PLLs. + Its registers live in a shared region called OLB. + +maintainers: + - Grégory Clement + - Théo Lebrun + - Vladimir Kondratiev + +properties: + compatible: + const: mobileye,eyeq5-clk + + "#clock-cells": + const: 1 + + clocks: + maxItems: 1 + description: + Input parent clock to all PLLs. Expected to be the main crystal. + + clock-names: + items: + - const: ref + +required: + - compatible + - "#clock-cells" + - clocks + - clock-names + +additionalProperties: false + +examples: + - | + clock-controller { + compatible = "mobileye,eyeq5-clk"; + #clock-cells = <1>; + clocks = <&xtal>; + clock-names = "ref"; + }; diff --git a/Documentation/devicetree/bindings/soc/mobileye/mobileye,eyeq5-olb.yaml b/Documentation/devicetree/bindings/soc/mobileye/mobileye,eyeq5-olb.yaml index b148a49b08f1..b4ba6f0c9f32 100644 --- a/Documentation/devicetree/bindings/soc/mobileye/mobileye,eyeq5-olb.yaml +++ b/Documentation/devicetree/bindings/soc/mobileye/mobileye,eyeq5-olb.yaml @@ -28,6 +28,10 @@ properties: reg-io-width: const: 4 + clock-controller: + $ref: /schemas/clock/mobileye,eyeq5-clk.yaml# + type: object + required: - compatible - reg diff --git a/MAINTAINERS b/MAINTAINERS index d955b1e80e53..280892bdb5de 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -14552,11 +14552,13 @@ M: Gregory CLEMENT M: Théo Lebrun L: linux-mips@vger.kernel.org S: Maintained +F: Documentation/devicetree/bindings/clock/mobileye,eyeq5-clk.yaml F: Documentation/devicetree/bindings/mips/mobileye.yaml F: Documentation/devicetree/bindings/soc/mobileye/ F: arch/mips/boot/dts/mobileye/ F: arch/mips/configs/generic/board-eyeq5.config F: arch/mips/generic/board-epm5.its.S +F: include/dt-bindings/clock/mobileye,eyeq5-clk.h F: include/dt-bindings/soc/mobileye,eyeq5.h MODULE SUPPORT diff --git a/include/dt-bindings/clock/mobileye,eyeq5-clk.h b/include/dt-bindings/clock/mobileye,eyeq5-clk.h new file mode 100644 index 000000000000..7aa974354bb6 --- /dev/null +++ b/include/dt-bindings/clock/mobileye,eyeq5-clk.h @@ -0,0 +1,22 @@ +/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ +/* + * Copyright (C) 2023 Mobileye Vision Technologies Ltd. + */ + +#ifndef _DT_BINDINGS_CLOCK_MOBILEYE_EYEQ5_CLK_H +#define _DT_BINDINGS_CLOCK_MOBILEYE_EYEQ5_CLK_H + +#define EQ5C_PLL_CPU 0 +#define EQ5C_PLL_VMP 1 +#define EQ5C_PLL_PMA 2 +#define EQ5C_PLL_VDI 3 +#define EQ5C_PLL_DDR0 4 +#define EQ5C_PLL_PCI 5 +#define EQ5C_PLL_PER 6 +#define EQ5C_PLL_PMAC 7 +#define EQ5C_PLL_MPC 8 +#define EQ5C_PLL_DDR1 9 + +#define EQ5C_DIV_OSPI 10 + +#endif -- 2.43.0