Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1768227rdb; Wed, 31 Jan 2024 08:29:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IHk5ejyGscoYLAdimFq6iFYv9A0fGyEOAoTQJNWMCSRp1sEa2e63hPiXHof72/Ly/eZHZ9q X-Received: by 2002:aa7:c58b:0:b0:55e:f3ef:3c96 with SMTP id g11-20020aa7c58b000000b0055ef3ef3c96mr1387007edq.21.1706718576941; Wed, 31 Jan 2024 08:29:36 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706718576; cv=pass; d=google.com; s=arc-20160816; b=WI2yD6NOD+k1Xv+uevcit6XEs+qqU7uKN9ehc+IC3qZTEB5hpXHb/SaaBrT3Aij81v clll01E0tLHKDLBzIMftbvnDj8Bi7j0gimw24uasRT7Bbpv2lg3XWCwPHYCyFzzthNMX +PqpRmVVZHuPKlP7+2AX/Dua7xXpv5lCnbM4wbnJghJxDTdrx8WmaxhrY7tIqkb9mCEv hqdF9SHCb2zWirUopAIISqmEE/LgpcZ3WYr9DxqVFaOPmP+OeBIzwBrFI5jX+XUiP3hK g2yl8PdHfz3yZq7fezCsJ+v0g+rqElEQmTpe/fjwLYu4YMyhxXM5p7EN3NrQkpPytXq5 Np+A== ARC-Message-Signature: i=2; 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=NiU9JeTONi6SPpWxtrTKBBxl6LhAdersmwuDpjHhYPA=; fh=bG4iqpNKrnj77A5UmRa/GR7vxtzgQs00NDuZVLk6MlI=; b=HPGnKK9moJpAmvFLbhUIPN1MjBwbR1r2lFsn3I2K4vjaNC2S3N6JT4RzRF4i+vqH9P JU55ERfj0gM1KIMvIl4wmf0K+7DHZj+P6gTIeTw1TVoe5TsgbHx3h2UtvOfzPmcO8ciB IOtPdFEXioDNLnZzf44HqoY7RJhn+w9EGYZy6zecpEX6D/UpFdE7LKYEbREDcAAldDhi o2vj+IlsaJAdgwKc8J1YxIUynPcdOApy4tjIbWY59bBVQe3IVnyMrqTpeQPlfLij8LHX yEjLJyKWLEf4T/c7RQJ43Y+p4Ch1nwtQXwxe0GuJtfVpGM1shcsLWBYhcWhexsY6YCQc WVhg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="XdC/ybVa"; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-46790-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46790-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com X-Forwarded-Encrypted: i=1; AJvYcCXHMbcuWzcqsO2RMwcg1HtGtVFpZ3BKpdeT9hBLclEO3C/jY+YQwMEslrzFLNAf6Y1zS18wPkwF+Q93IYdv3S4rOIylDyM7u2eBIJGBmQ== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id m25-20020a509319000000b0055ec26f7897si2772777eda.494.2024.01.31.08.29.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 08:29:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-46790-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="XdC/ybVa"; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-46790-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46790-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 164761F2B979 for ; Wed, 31 Jan 2024 16:28:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D26D712CD9C; Wed, 31 Jan 2024 16:27:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="XdC/ybVa" Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [217.70.183.194]) (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 B0632433CB; Wed, 31 Jan 2024 16:27:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706718438; cv=none; b=U0+AeQIFFuKFbqXT6bGpTMgTpB9HRKFmoa6BzhEZsCvq2vivGKMLnY1LDQ63ukgvCOuVpdzYSdjD9sy9I0X3r3Lvsp42OA9gyyAJX8qDfLJeHQWlZQG344kCLMttN7i0nKCFWbHOjWprRVrrXL2yvrP1ajy0MifeJHjADs0Tf18= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706718438; c=relaxed/simple; bh=lMUVrrK69PzOdKM3YZF8GuoM4TmAX5E9omOxsg+Tiy0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=sAsZ9sMbdAaNU1iImLcwWDnLISyyvnTiOzotTmj2bYYEeHtWqI1qn14RyMMTUuT9GHdlOrJmpzP/WHAV9hBBBBk6zo9jMmwjmBe3Sl9EhvhLxE3T1wv1WCNSCHh+mbH71OirCnyfXhFY0sUrfVsIuXRIYioBvfEpLR4nZ3xJlW0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=XdC/ybVa; arc=none smtp.client-ip=217.70.183.194 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 59F0640008; Wed, 31 Jan 2024 16:27:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1706718434; 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=NiU9JeTONi6SPpWxtrTKBBxl6LhAdersmwuDpjHhYPA=; b=XdC/ybVaJgze3rlc55aeI7jIFbcIdjhJtrbVll+GoEUT7jvPSXul1qHL33F3a05beujHtF SxRZkFeySJPB/x2vT/Xs5LFjBlL+AqyYLVJACbwsIgCDEha2h3dXQuup7eTLkVRkf/Qudl EM+Z1JLx9XCLQLGgT02gNXYiMQmvJtt1GAhyCl+3lfc8HHhEOTTGa5XTFY7p4njO+0Xy+1 sdF8DWxYjHmXhuBY1oFdFkk4tFrbOipx/tV6wu0paRm47HNPueQ1QX+QWkLMTFEX2lIhl3 UgiLUu/WjrRZkmyzw45+CsydZ2wig+9UjrXp4vUvxDIY9m3+lW6TtFjZd4bFgQ== From: =?utf-8?q?Th=C3=A9o_Lebrun?= Date: Wed, 31 Jan 2024 17:26:17 +0100 Subject: [PATCH v4 04/18] 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: <20240131-mbly-clk-v4-4-bcd00510d6a0@bootlin.com> References: <20240131-mbly-clk-v4-0-bcd00510d6a0@bootlin.com> In-Reply-To: <20240131-mbly-clk-v4-0-bcd00510d6a0@bootlin.com> To: Gregory CLEMENT , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thomas Bogendoerfer , Linus Walleij , =?utf-8?q?Rafa=C5=82_Mi=C5=82ecki?= , Philipp Zabel 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 , linux-gpio@vger.kernel.org, =?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 | 52 ++++++++++++++++++++++ MAINTAINERS | 2 + include/dt-bindings/clock/mobileye,eyeq5-clk.h | 22 +++++++++ 3 files changed, 76 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..44eff4618ca7 --- /dev/null +++ b/Documentation/devicetree/bindings/clock/mobileye,eyeq5-clk.yaml @@ -0,0 +1,52 @@ +# 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 + + reg: + minItems: 2 + maxItems: 2 + + reg-names: + items: + - const: plls + - const: ospi + + "#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 + - reg + - reg-names + - "#clock-cells" + - clocks + - clock-names + +additionalProperties: false diff --git a/MAINTAINERS b/MAINTAINERS index 260bcfc6da8f..42db14d184be 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -14786,10 +14786,12 @@ 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: arch/mips/boot/dts/mobileye/ F: arch/mips/configs/eyeq5_defconfig F: arch/mips/mobileye/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..26d8930335e4 --- /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) 2024 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