From patchwork Tue Feb 27 14:55:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Th=C3=A9o_Lebrun?= X-Patchwork-Id: 207262 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp2755775dyb; Tue, 27 Feb 2024 07:07:09 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWub8OjtU05ybWTqOHL4EedZtZcmaBSeuSUHoydInfIJA5wbf4CBPhLwkLKhlKwVcJzwLzukGMzkGMP3+yDP4+KSnDj/g== X-Google-Smtp-Source: AGHT+IFY2qtuKTExeEMFX1jNHEv9Q0hq7SXJTA9VCmZESHseHOj7OHlZHPH78IQT+ZRY4BJhOlrC X-Received: by 2002:a17:906:b106:b0:a3f:d7ee:5fdc with SMTP id u6-20020a170906b10600b00a3fd7ee5fdcmr6504505ejy.46.1709046429456; Tue, 27 Feb 2024 07:07:09 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709046429; cv=pass; d=google.com; s=arc-20160816; b=c+ewaR9aj09oPSGQjO9wQHNm83Sk6qVXhwoZusju4NL21w5qyfHTv+nftUpzVZV8b3 W6ZSkNc/ijG70uzVPcmWtViXnOTPmDhtbIUzWqs39uCf9gbHXEZElaE8nzn4mABcqcft OezCLsseJGzXvnJWN/lTgp0VOn/OASR07ugxHnIjqwnljEo0qyH5CP03ELhnhKY4oXyH y/l5Aaz9k3ta90EKfpm5Ntn4YPL+Vi+RZsPtEhsy5NPrpVo2lAkja4fM7mCyygKs+WFy O7KE3u/ZXPeOQXMSpa07OqCbxR76JTQ0GzKuzqoaQFef8qnUwmcf/dQf9H/eM8mr7Dsh Rbxw== 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=XLtgMorJTta+ZV+IkMmZrm26kQUfFShg4R9wf9VUqG4=; fh=DIuN+XBgnsXEplLOc51ZZc1ZpFWmM+jJm5GPy2sXJXE=; b=ox8j994YlyOHgFt6az63nQeyb+85yiDU8hdjiasfLg3L6vVH3aADbnhgjxg5aHsSvW Q3cuYpy/Pjss2H/7mskMs07ilFp+lIqamW0nuGL/gUJsXqqr4XcMRzlRJ9+zQK2skT4A SDwaN5LVP4q9mB70NmUu1KVXLDvTBFJJg12jVdwB9Ov0g3JXK2JrGot1xHecVKGpslvP xkBR6xPzsPtFLBY1t7LGNbQiO5AvDZvJH38m0cPfJFmJUo/Fijb1d+GP99PeE/1IgIBa N/t0ApH946mh/+4iHZ7AHLQgmqspemsQBdnCVxsNOv6n/F+hCfUX9aLYWDCdD90k1Jer YcGQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=pAEgqrh0; 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-83441-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83441-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id q16-20020a1709066b1000b00a432149ff40si786672ejr.108.2024.02.27.07.07.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 07:07:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-83441-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=pAEgqrh0; 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-83441-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83441-ouuuleilei=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 691791F2B5D8 for ; Tue, 27 Feb 2024 14:57:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C4A8A14900C; Tue, 27 Feb 2024 14:55:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="pAEgqrh0" Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [217.70.183.200]) (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 C9973145FFF; Tue, 27 Feb 2024 14:55:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.200 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709045739; cv=none; b=jkn/j7GrnQlLxBxDUYjFR9kPWWmoCizot8pFEWGeOCbAE3OwEjv+qimg20golKJWrtXDndKY+m0rGZaVi9RmXROCikCFpxmEOEHOj6BpRF/Zt6LdV6iSfZrrYiacxUiz8jTmxGOSeoRTmnlzVsmTUiBqy9gUrjiV+Y7iXoOX01I= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709045739; c=relaxed/simple; bh=O/UkTpGT1amGvyyiufLRWBS19ES+lRS3uKMdt0laapk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Xf6j3zStWjGO4GT0ufg2pqCXWxgXq3Pb2Zew2pEkqJdSQIl11qeiJDfEHmMKYlfYnygAdn53T8uvOux+iknMUrxlK9xuzymSVtqMYfCpFoUnQ1VSaJFG1MAbQaFNjQofh3kwlureyqZ08OC6FVbMHFHnVOwJasF2coQbqn+9TNY= 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=pAEgqrh0; arc=none smtp.client-ip=217.70.183.200 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 2F47920007; Tue, 27 Feb 2024 14:55:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1709045735; 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=XLtgMorJTta+ZV+IkMmZrm26kQUfFShg4R9wf9VUqG4=; b=pAEgqrh0Fk+P6etojPwWt1m/8NFfejSgJJXdiXtbUrqQsEFxHBHmrlRV5e/p9h8yPXxh7F 7ZJTU/ru7xA8OTH36d2V/c/gOzweipY9uR0TVIoaODJ0mntZGp/9w/xf81vgnfYGWhfuim tbMIADkm/NH5Qn2cWEI4XVZvj6+fFTncbomUCUK5AajVs4qtCpBnb4n1sBS+3SR4fiky4A cbcj1O7nu1s6URin0oVrCMV7U3Dk4dKM7YcZFoqoUA18Q8GdpqxBJVyqVEvg3x1xFQK9KT EG6MUjVoKTVUhfoukSin5BuYIkCGIIM+Ep2iA3IErid3wUK8rgGS86vS9F9KnQ== From: =?utf-8?q?Th=C3=A9o_Lebrun?= Date: Tue, 27 Feb 2024 15:55:23 +0100 Subject: [PATCH v8 02/10] dt-bindings: soc: mobileye: add EyeQ5 OLB system controller Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240227-mbly-clk-v8-2-c57fbda7664a@bootlin.com> References: <20240227-mbly-clk-v8-0-c57fbda7664a@bootlin.com> In-Reply-To: <20240227-mbly-clk-v8-0-c57fbda7664a@bootlin.com> To: Gregory CLEMENT , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thomas Bogendoerfer , Linus Walleij , =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= , 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?= , Krzysztof Kozlowski X-Mailer: b4 0.13.0 X-GND-Sasl: theo.lebrun@bootlin.com X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792065068653496719 X-GMAIL-MSGID: 1792065068653496719 Add documentation to describe the "Other Logic Block" syscon. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Théo Lebrun --- .../bindings/soc/mobileye/mobileye,eyeq5-olb.yaml | 94 ++++++++++++++++++++++ 1 file changed, 94 insertions(+) diff --git a/Documentation/devicetree/bindings/soc/mobileye/mobileye,eyeq5-olb.yaml b/Documentation/devicetree/bindings/soc/mobileye/mobileye,eyeq5-olb.yaml new file mode 100644 index 000000000000..bcded7fb86dc --- /dev/null +++ b/Documentation/devicetree/bindings/soc/mobileye/mobileye,eyeq5-olb.yaml @@ -0,0 +1,94 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/soc/mobileye/mobileye,eyeq5-olb.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Mobileye EyeQ5 SoC system controller + +maintainers: + - Grégory Clement + - Théo Lebrun + - Vladimir Kondratiev + +description: + OLB ("Other Logic Block") is a hardware block grouping smaller blocks. Clocks, + resets, pinctrl are being handled from here. + +properties: + compatible: + items: + - const: mobileye,eyeq5-olb + - const: syscon + - const: simple-mfd + + reg: + maxItems: 1 + + '#address-cells': + const: 1 + + '#size-cells': + const: 1 + + ranges: true + +patternProperties: + '^clock-controller@[0-9a-f]+$': + $ref: /schemas/clock/mobileye,eyeq5-clk.yaml# + + '^reset-controller@[0-9a-f]+$': + $ref: /schemas/reset/mobileye,eyeq5-reset.yaml# + + '^pinctrl@[0-9a-f]+$': + $ref: /schemas/pinctrl/mobileye,eyeq5-pinctrl.yaml# + +required: + - compatible + - reg + - '#address-cells' + - '#size-cells' + - ranges + +additionalProperties: false + +examples: + - | + soc { + #address-cells = <2>; + #size-cells = <2>; + + system-controller@e00000 { + compatible = "mobileye,eyeq5-olb", "syscon", "simple-mfd"; + reg = <0x0 0xe00000 0x0 0x400>; + ranges = <0x0 0x0 0xe00000 0x400>; + #address-cells = <1>; + #size-cells = <1>; + + reset: reset-controller@0 { + compatible = "mobileye,eyeq5-reset"; + reg = <0x000 0x0c>, <0x200 0x34>, <0x120 0x04>; + reg-names = "d0", "d1", "d2"; + #reset-cells = <2>; + }; + + clocks: clock-controller@2c { + compatible = "mobileye,eyeq5-clk"; + reg = <0x02c 0x50>, <0x11c 0x04>; + reg-names = "plls", "ospi"; + #clock-cells = <1>; + clocks = <&xtal>; + clock-names = "ref"; + }; + + pinctrl: pinctrl@b0 { + compatible = "mobileye,eyeq5-pinctrl"; + reg = <0x0b0 0x30>; + + uart2_pins: uart2-pins { + function = "uart2"; + pins = "PB8", "PB9"; + }; + }; + }; + };