From patchwork Tue Feb 27 14:55:30 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: 207282 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp2772884dyb; Tue, 27 Feb 2024 07:31:08 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVACGbNquAISGehKgb0KUjqOoNuoiz/bPUsQK+lZb96epr/OuUJbJ3fqZFshDMeTObQnEjuRHTVYe3bM7AzzwXucDmqyA== X-Google-Smtp-Source: AGHT+IG3ZxZPeYmyqy/vmXAETA6gl50zN82Vf347Tmu9YukbECuYU7LhIjeua9aZ6ujVJoDuLQ1H X-Received: by 2002:a05:6a20:c70b:b0:1a1:14f6:3e94 with SMTP id hi11-20020a056a20c70b00b001a114f63e94mr988918pzb.14.1709047868133; Tue, 27 Feb 2024 07:31:08 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709047868; cv=pass; d=google.com; s=arc-20160816; b=EIDwPOtwanH5fBG9vAK7z4Os9BiGmqZgFbFBvb5tRqGCPQynBbilwXNyKwGky0Af+R COXRhmVBA8hOdDNdZEyEIfLq3hIs8NhqwFc/7kdWZNthWg9T2q0LBFsTRwdjL3A2OYXC rJL/tiIMB6QjJlVobqov0IQ7+LdxxRwdHpXgJ+uxFysP79U+8SFpijwngwaOKDxX22UX 4fzocC4TsFTUKr6kf0uif4MF2JWwom7djnV3WfPNHyOLE2ie+sVdUVu1q3LqXpdlbyYC xHT1bqyled8BEEhldwWbFCCH0Ik+XoxR25p0Xe9BABjN8wnvPYfljwt08TlF6/iIZNPk 1JRg== 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=RkkcturGDH6iyLvdo+o7gBVlQfQ+pKB/Y+IIwDxn5RM=; fh=x5R05joZrGxebVEAaczvDRwH1m7BAJpjuUh/Gh1YI/Y=; b=j7Y0mHLOLR859x+DFvnJQNaaoHGHolBS7FvofckjXsaDTLG3HQH/1Lr5I+6jFYnZhF tVerEfvNrB3cs0nVer8gbuVRQZ4+w0WTTzv/NXSVoLa04tLsOndWMvz0QIDUFaCZRr4V 2WHn+TAxOdIbkG/2NiqpDX1yd95kvYX9J3zOsI35rfpFjzDL5DA/+GZ45MZlGVtq2dwB BzAwhUxr5Gu1gBQT3mkq3UxyU3WhRZW35BVF8IrmeemV7H/pW88iWFsq1A4Jg/R32vg5 s73hCDt6YQPMC+jx1HMa5SHmDCfSo8S/VP7KfNRRrSfWSSQ6jrIHqAnlIGh1nxoBeQhc tQbg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=hljU5tjA; 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-83450-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83450-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id bs187-20020a6328c4000000b005d8e2f56d82si5632843pgb.867.2024.02.27.07.31.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 07:31:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-83450-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=hljU5tjA; 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-83450-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83450-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id B5260B27D40 for ; Tue, 27 Feb 2024 14:59:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0EDE314EFFD; Tue, 27 Feb 2024 14:55:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="hljU5tjA" 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 BAF65149E08; Tue, 27 Feb 2024 14:55:43 +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=1709045746; cv=none; b=PI+sWMyyAHVr2nHmTTWfTGETYywvmD0JkxKrVexCLh5ZLBqe9SiApJTZedKK2H+uXAzzX2Pg93CaF2s4QUGVFiTzEnDCIjFkZZlaSd0vyzRSpx+b0qIl8mgRqA8BHwm5m+Ob7L8Rzu1O5U9GdlJXCv0/z66v5K9aG3EB+sW2hvw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709045746; c=relaxed/simple; bh=Q1vQNvApTuVLdHGNKf+3ksoWjYkeKzGyOW6P0xmAFi4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Ld2wd1ttW0vqJIcAIgDw7YiWD/i+KFdU7UN+9MwV8siTMv2ba1Cx69Z6dKppVAcAPIl88uxLaxfUsJdWuS3a8qIUaKdEFiM2G2Aww3Laf/VvJWmK5GRAmZVzu/DZGUrG1aiASRaNg8/40fVtgPwCTD9dBgq0zWWDCbvHfcISBHo= 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=hljU5tjA; 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 5C0CE2000B; Tue, 27 Feb 2024 14:55:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1709045742; 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=RkkcturGDH6iyLvdo+o7gBVlQfQ+pKB/Y+IIwDxn5RM=; b=hljU5tjA+AfpVSbyzTYEK2b4b1L3p9OOW6Gzxlz5rqMqjgGMG3RczOlxgOSNVvu+tdBTTX FFRkIJOqqWBCaTJKusO5JPsF9nV8b/fHAOGIOW6/pSkGKU/JfzrSOkeGJmhS2qjkc4RYTb drrHxA03pJJAlGb0eIyMuRCg+pheeX6ww+AfS5R+cUO6FSfMBWyx5nDq2Krf1oyELYPMgr 04olqEZIKQm/5fBIMWAnUNgLx2y1em2BD3SBiKjnD2aPTwrSAyNwn4pA6on7Zv4uqYIYnI eAzPXVNl26MbL00HNpWP25QhLkZTm7c01M4WTYKsTwLw7LANcIMUdakCbuVpTw== From: =?utf-8?q?Th=C3=A9o_Lebrun?= Date: Tue, 27 Feb 2024 15:55:30 +0100 Subject: [PATCH v8 09/10] MIPS: mobileye: eyeq5: add OLB reset controller node 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-9-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?= X-Mailer: b4 0.13.0 X-GND-Sasl: theo.lebrun@bootlin.com X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792066577527759708 X-GMAIL-MSGID: 1792066577527759708 Add the devicetree node for the reset controller on the Mobileye EyeQ5 platform. It appears as a subnode to the OLB syscon as its registers are located in this shared register region. Add reset phandles to UART nodes. Signed-off-by: Théo Lebrun --- arch/mips/boot/dts/mobileye/eyeq5.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/mips/boot/dts/mobileye/eyeq5.dtsi b/arch/mips/boot/dts/mobileye/eyeq5.dtsi index 1a65b43e13b1..76935f237ab5 100644 --- a/arch/mips/boot/dts/mobileye/eyeq5.dtsi +++ b/arch/mips/boot/dts/mobileye/eyeq5.dtsi @@ -78,6 +78,7 @@ uart0: serial@800000 { interrupts = ; clocks = <&uart_clk>, <&occ_periph>; clock-names = "uartclk", "apb_pclk"; + resets = <&reset 0 10>; }; uart1: serial@900000 { @@ -88,6 +89,7 @@ uart1: serial@900000 { interrupts = ; clocks = <&uart_clk>, <&occ_periph>; clock-names = "uartclk", "apb_pclk"; + resets = <&reset 0 11>; }; uart2: serial@a00000 { @@ -98,6 +100,7 @@ uart2: serial@a00000 { interrupts = ; clocks = <&uart_clk>, <&occ_periph>; clock-names = "uartclk", "apb_pclk"; + resets = <&reset 0 12>; }; olb: system-controller@e00000 { @@ -107,6 +110,13 @@ olb: system-controller@e00000 { #address-cells = <1>; #size-cells = <1>; + reset: reset-controller@e00000 { + compatible = "mobileye,eyeq5-reset"; + reg = <0x000 0x0c>, <0x200 0x34>, <0x120 0x04>; + reg-names = "d0", "d1", "d2"; + #reset-cells = <2>; + }; + clocks: clock-controller@e0002c { compatible = "mobileye,eyeq5-clk"; reg = <0x02c 0x50>, <0x11c 0x04>;