From patchwork Wed Jan 31 16:26:20 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: 194844 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2087:b0:106:209c:c626 with SMTP id gs7csp2007030dyb; Wed, 31 Jan 2024 08:30:24 -0800 (PST) X-Google-Smtp-Source: AGHT+IEEIr9IWt9PSrEE4hDErW9ztfAnZDWYdhdyofTOo6IN3AcqBmuxnB+L0xoFZSPEdU3pFDlR X-Received: by 2002:ad4:5ce2:0:b0:689:ac12:b16 with SMTP id iv2-20020ad45ce2000000b00689ac120b16mr2741059qvb.64.1706718624392; Wed, 31 Jan 2024 08:30:24 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706718624; cv=pass; d=google.com; s=arc-20160816; b=McpoTs4spG/6G77Xpt7atNQ5vNi0Jp5hr4V/WNHnOiN5gh4/na5MVG1PZ/4EpB6zb1 wqzs/mLzKj5VYUirfV+fNxt1D2xc7t+c47C0wcWWW83tzbDllqQSf/H9RupD3MnCDHUZ 5t/LelFR7T93nCoMHs27207KUOTVnb2aK979UH25qWeiwD/K/sOlw16VHkWYXGjLpC69 xhNmPuEdx4TUtK6ZZBx50K7vaD1NYh7fbSC07GX3mDejGZGpj857s1HvBGjxLSjqQbnC RS0E5Ea7+KVnVN4SGONE1d3DG8Qb30Zz60d+bimMUaeoklEo/41agLQyXakXEkElrpGO mjHg== 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=KfF9UjR1RJ0Efc0NY0CaMI2Wy+q2hxRGYq2bx2zOXf0=; fh=KumC7kZUyBQN7uIhxNS+v97NqXRZIKvPOnUiXMZ+cBo=; b=S1QPETNQruPwuZ9IbX6M99KfLfXsfRhCNSS36AWInYet7A/EAbdSxbMIeOoNNCM+OK Ia8qAwk5l0YxXEvg/2FNv0Fga24KvwkuNcdwvpDwTQzgcPG4ANZ8gf+NVzRlZSwPFWko 8TS8FOjH4oSjNPWYCN7n5idhxRtM1Y1vM6NluS7uJYWZu7cwRbpI9ok4Tjjh2Z9uqeTH 8yhjfA+SvOGp1LzB6ZHU1J4jG9h70OH7NqGqThCki3P+I1/mamp7t+2b8Y5J6Mv1q9Pq B230mvS9dZKiVuq4lvFCeIwAhvGNl+PdU6FdegyhwXecuVz/869u+jKU24OwBY8ytvEU x6xA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=jlf1jxKD; 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-46793-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46793-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com X-Forwarded-Encrypted: i=1; AJvYcCVtbHpA9m/mVhcymJG75GxTBegDlL5OyHzkZ3H+1D+dVwLHnnKFhQSdY4Foia6v2MaGFU2fI44BX/i1D2bcMQonMSq67g== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id m13-20020a0562141bcd00b0068c5582a919si5887166qvc.32.2024.01.31.08.30.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 08:30:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-46793-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=jlf1jxKD; 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-46793-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46793-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 33E851C2224A for ; Wed, 31 Jan 2024 16:30:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 44D7D13AA57; Wed, 31 Jan 2024 16:27:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="jlf1jxKD" 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 1311812BF2C; Wed, 31 Jan 2024 16:27:17 +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=1706718441; cv=none; b=ODjuATVvfvDdGfYyKgxnuBzTmZQRutFMWXD3NH60Hd0O1sFzMjMtIBxLNDY29/id193lQVpG+8F1k9e++s8RWZWDrbNF7ZcUaPle3YXks/3epuObIw8iDgr0uB2K5NKeJn4KU4/To/+R5CHmWY9wKyMO5Qrl8MSpJaH/Rc7ivJk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706718441; c=relaxed/simple; bh=WbnaMVsFXy3qNJApHfk0c2GzYypd4s9COwcc1eCpHFU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=RgKFy4g5zeQTZ4aZWhGAtERR5jQ7U9seSIIYPuuwUfceNnR01K87IkGCzBvb73ne8dXJLdvOxyqbzZXkcQLJPVFMlq5o0XhVnoj1kRuK/dE7JO3wnHFCWBT55pfe41UraGAe3HlW0HLDY5QUNnJ2AzIAgZYxi9Q5//sghkNdCA0= 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=jlf1jxKD; 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 9B8D940010; Wed, 31 Jan 2024 16:27:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1706718436; 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=KfF9UjR1RJ0Efc0NY0CaMI2Wy+q2hxRGYq2bx2zOXf0=; b=jlf1jxKDDwakyKV0EZBVfcpX91XhVNtFf6uNBpiNsa+ajpz1YjXybHMNlVIUPo9IMLOfue r6w4TWls4xcFUxeu7WhBIP6KT35TR4LyrulEDgKvQoOe7uF5D8q6VXNV70A0HnO1o80JJF snFjESSE3rco/d2ISegBhPlAFXwX6yZ/45bDTW2z2TnsN3s9ZjZFJ0/UOeF0HCD+fR4kbg 4aquosYOZKsZM3dZClqoeuZA1t5MX5VwVHtULenCVCBslzF8eOS2Emss6R3KBBUeLBGA7L 75K5qM7D8A00f18R8hU2tlma+icKhFr7ZT6brlfIVMzOx+4DkbczwLormhKh7g== From: =?utf-8?q?Th=C3=A9o_Lebrun?= Date: Wed, 31 Jan 2024 17:26:20 +0100 Subject: [PATCH v4 07/18] 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: <20240131-mbly-clk-v4-7-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?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?= X-Mailer: b4 0.12.4 X-GND-Sasl: theo.lebrun@bootlin.com X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789624188225769259 X-GMAIL-MSGID: 1789624188225769259 Add documentation to describe the "Other Logic Block" syscon. Signed-off-by: Théo Lebrun --- .../bindings/soc/mobileye/mobileye,eyeq5-olb.yaml | 89 ++++++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 90 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..92d8e30fdc27 --- /dev/null +++ b/Documentation/devicetree/bindings/soc/mobileye/mobileye,eyeq5-olb.yaml @@ -0,0 +1,89 @@ +# 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>; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x0 0x0 0xe00000 0x400>; + + 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"; + }; + + reset: reset-controller@0 { + compatible = "mobileye,eyeq5-reset"; + reg = <0x000 0x0C>, <0x200 0x34>, <0x120 0x04>; + reg-names = "d0", "d1", "d2"; + #reset-cells = <2>; + }; + + pinctrl: pinctrl@b0 { + compatible = "mobileye,eyeq5-pinctrl"; + reg = <0x0B0 0x30>; + }; + }; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 15c9987af637..886de494df31 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -14790,6 +14790,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