From patchwork Mon Feb 12 13:44:37 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: 199806 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp2438620dyd; Mon, 12 Feb 2024 05:52:40 -0800 (PST) X-Google-Smtp-Source: AGHT+IEE5eTnfPZksQ5vV5yCkgEFmuVyzVVbxNid1YQZ6RxVULs5tZKSyww89D/skx0xEQfiYEIk X-Received: by 2002:a9d:4e9a:0:b0:6e2:d985:2d54 with SMTP id v26-20020a9d4e9a000000b006e2d9852d54mr7315574otk.0.1707745959996; Mon, 12 Feb 2024 05:52:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707745959; cv=pass; d=google.com; s=arc-20160816; b=sMWmP6ZhVX0dXrWee10EV7QlLfC+Jli3fbqVKTDsGa38+JEU517X8m+BTJCfxT0Cl4 gCZRFwoRopOADb1sTjWO1U55EMl0Jbe6RpGcruM73DaM+r/gun1wkY36EWTnd6Zee2V1 1XB0LmSJ9k5qt0BSfjI090rBXTSnK6+vL+ipU6P0UyRxKTXNIJt1h/lzvFqB9FsJll5p N/sLgPBfJXdbFkROIL0NAfXUF7yz6BNYN/z18FiI/X/5TxhA1wi0D7lX+L3QdWIy62+f Ap0xQxJyfsi3CCf6Q0ui8F4CpKeWMAD/GwB4ope319+dLBbk9mjaH0YGA3CGT3HGwYNy eAEg== 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=5Gf1u42EHHfffvDbyP9y58zXZhDYkOBkG79TmsvC6H0=; fh=rHEw4h8CSx4HBUbpsHS/driqqhuLPXXsrDTOpOfLKeI=; b=S1SlSCzZVWlwTVggkwvISsk2cT8c5QZlFZJnDA5w6WD9r+hoGyDR4TR+akY4ijKTDk wXbo7+gLg8k+mDVK1Cm6BCXty59TOPuvFtvfvjOD1upVTCwipE1TOPP6IOTwlfz7UmoJ XImDC2YM8uEOHyRe57Fa8n4fDRD+lsl4ifIz8dvZwdw4maiC+DM5PIe+d6K8GYZvbUyq QjiJsbdVgbocif/CCCx+/sSbAVNFzxBZJ4NmhFgyeT6ZrJO+DzhdsFXZDNzCyaQeY4Nu tGn2mH5YHKON8hKMyeLvhzlklqKbkaT3Zo32MXecze6CfGXZHp+Rvun7ZH877om3RK68 p18A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=RXfCyjeR; 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-61735-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61735-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com X-Forwarded-Encrypted: i=2; AJvYcCWL7XFFxp2oYa00Pkof3OpMbkPYb+UGaeOjoC4wUb2NSTrIISjMhynaG6ZViNN3M3JoL+yM9doNyZgcM2sk1cardlG9Bg== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id kk27-20020a056214509b00b0068d053b1395si400533qvb.400.2024.02.12.05.52.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 05:52:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-61735-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=RXfCyjeR; 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-61735-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61735-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id C37B71C22ECE for ; Mon, 12 Feb 2024 13:52:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EDADA4C624; Mon, 12 Feb 2024 13:44:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="RXfCyjeR" 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 524003D99C; Mon, 12 Feb 2024 13:44:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.199 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707745484; cv=none; b=kwOOUYCguVylWFPQ3yuMrBh7Y465RpAeie3d/yZBnETMyLzIcbMya7zsmtOzNmVsqKpWn/D38z2KZWySiAulwN2qQqEPoEPm02Uv+PK7OCPiHclGi12yR1yh2VFtdWcUnXhfw0zVJIHR/M7mpM+zmIRuWbm6p2+tUiiFZV0xPEM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707745484; c=relaxed/simple; bh=7JrUaxGN67JBOxn88XZTkMUXo+y2WGJJHOhTeZBykO0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=HvNuGyUhgJrRhQN48CMIemmKcWSIxAXGusFSdD5DM4R+Lil1T20VvMWLPVXRZ/hGU8Z7y3Q3VQ3oaCSEkyvutfuPhqgrA4och5fLwHmWG4NiZhl5V87NnGKC1+gMnUVP6qSIayFVrb6qoap6aonYJnRpHZL8HrcLyL5mXXvNid4= 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=RXfCyjeR; arc=none smtp.client-ip=217.70.183.199 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 D394CFF804; Mon, 12 Feb 2024 13:44:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1707745479; 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=5Gf1u42EHHfffvDbyP9y58zXZhDYkOBkG79TmsvC6H0=; b=RXfCyjeRydY2wMt+zGRmTJixZVTHUe2RA7JSfkhPFMw0swyoAD7d9A5JoHmO1zjjO3tBTZ +2yrAlQowuTrQMGsShOP3wESoqSZjZLsJlFGpcsKGCoJJch+khXooKo5SVD6H7G5HiDrFB fMk7sqBGZ86aHoZ525d47IMOj1rO8g7SSYgYG3Uin8wQC9PjU5paO/Drc1XA/cDrpGzdO/ JNuWY348uJo/cbRqNKkOEvnQL4HRWs7XjxBaXcwQlY22KvaoIpbLNJMIj36mmunOyLyFZ4 cF45C+uLBUn9Vf+bDF496eRLrWrrqCTE7D0prffpz7gOZ0v1ubKZZhP1dK0sFw== From: =?utf-8?q?Th=C3=A9o_Lebrun?= Date: Mon, 12 Feb 2024 14:44:37 +0100 Subject: [PATCH v6 06/13] 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: <20240212-mbly-clk-v6-6-c46fa1f93839@bootlin.com> References: <20240212-mbly-clk-v6-0-c46fa1f93839@bootlin.com> In-Reply-To: <20240212-mbly-clk-v6-0-c46fa1f93839@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.12.4 X-GND-Sasl: theo.lebrun@bootlin.com X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790701428202817033 X-GMAIL-MSGID: 1790701428202817033 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 ++++++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 95 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"; + }; + }; + }; + }; diff --git a/MAINTAINERS b/MAINTAINERS index f397dd1b32d8..51445b919ebf 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -14792,6 +14792,7 @@ F: Documentation/devicetree/bindings/clock/mobileye,eyeq5-clk.yaml F: Documentation/devicetree/bindings/mips/mobileye.yaml F: Documentation/devicetree/bindings/pinctrl/mobileye,eyeq5-pinctrl.yaml F: Documentation/devicetree/bindings/reset/mobileye,eyeq5-reset.yaml +F: Documentation/devicetree/bindings/soc/mobileye/ F: arch/mips/boot/dts/mobileye/ F: arch/mips/configs/eyeq5_defconfig F: arch/mips/mobileye/board-epm5.its.S