From patchwork Fri Feb 9 14:31:48 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: 198922 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp896197dyd; Fri, 9 Feb 2024 06:38:00 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXGncW+fyMv6070PS1OdDN/8JJhLerrduOonw3DPEVBHsXFDuAocOQhjbieGOAFLGgEGCSgyTWMZn7ytuHNxWgre82kvg== X-Google-Smtp-Source: AGHT+IEvgEGBX2qX+oKxo7PK5TMeJvDEP3TUja8/oCgII6Atv7fjiBkMGgLAHebQ+R5m6IBuawJb X-Received: by 2002:a17:90b:207:b0:296:f782:1b62 with SMTP id fy7-20020a17090b020700b00296f7821b62mr1740427pjb.7.1707489479870; Fri, 09 Feb 2024 06:37:59 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707489479; cv=pass; d=google.com; s=arc-20160816; b=IOm/LB3pxxuCSO6BGizWarI8ks/kNfkeAr04RUryB7DwgLUdHtyjDwBO+kaEddT0hH MQnrhd4y+/xKXIRaUYOkO2ltw7LmEWXsPPercx7wW4JFJsFASzBLZa+A8+Xd6pb2Uc5a wYfTdKwNojc813M5e5zPaN2/97mQRbyxZqluSYPSlDFsTEJJQ+NY+8uQgww+iAVqEXeM b0mcN7XTJvr9nQVNXUFSjM5OCzZm/H8DDjXI5zVK/Q4edWwXl6j8TFY1sXIRvu/RjmLG WnbaRDZIN9g7MW4xJkMl6Y/T0OkYGdOom6UOpQcHMSLfK8nnCCEVRs8UI4lD5YMLICiC Gdjg== 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=BaAH/txD0ZSJCug0F9IruK7CsdNif1nz4F+71F4j3Ts=; fh=KIjmUFSZR15/9lCA19jNRIh0QInD1LMlSLHA1mQbTu4=; b=vPKjZNPqAh8+SccaeVJjfoEHPZQr0HYReLBLwv6RooUa27UFiYiqkyELlmpDB2iThk DF6ufOvzHruezYpQ2i52R+PtPlzib8/GetzZrwUDM9xsKW5GdjT504lXr56lpQnj0mtk UdXaOsum/fXTG0vEeuFzSJvpXBHESRZlM0ZeXBpLbJ3YjkZZYSoYKQCxFEXDhaYtKmIv sTN7acwsPMvEbEgt9R+AHlwyJaDrvq9TvdL9CZFI4zngh6Qk8Y6Sa7EoQ33QGVj7KydF y1JDiFgtOtG2oY/JLzZQ6bgVyDN4mQS9gt5T50B+Dh+qWvSiKOWG/1w/dnB3vzkfDT8h jvXw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="Q4mB/zL1"; 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-59474-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59474-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com X-Forwarded-Encrypted: i=2; AJvYcCW2YaJBbYleo8xv0aE8/gRvRM1vOyTG+P7Sp0jiXev8UyQC35YjH/A8AfUaHv2ieDn+23As11lj3qxazH7UAQ5VZ9O/+g== Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id pf2-20020a17090b1d8200b0029711139ae6si321093pjb.9.2024.02.09.06.37.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 06:37:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-59474-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="Q4mB/zL1"; 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-59474-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59474-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id EC2C728126D for ; Fri, 9 Feb 2024 14:37:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A8D8874E35; Fri, 9 Feb 2024 14:32:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="Q4mB/zL1" Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) (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 97E0482D76; Fri, 9 Feb 2024 14:32:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.193 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707489130; cv=none; b=BQcoKQiPGQy9PQOA3DUKclGCrFXwbO3WVH2mJboX4RmlUfT0Kaeaq8/s51rx3fv+fKsL0QSgRNv4dsGzwftZXRpYp0w5xInpLV7pj+gWoWH+ZqxjDOxawgA3MbCDDjnuyBxWe0RtrES+swZeu6kfskEwXdle/boYfnIEebidC78= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707489130; c=relaxed/simple; bh=7tacFbATuHLACojMWVe1Fb8Dq1zbXatLfDzZr+nBHhk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=VtYeo29O9ASvrw4gN8Skavo5qyaAWq3UrvXFhjcSUt4It+drps61SZLlPYhVrFKF/te8i0TnBHYuhIl4S8YuJuQ2sK0ButLncoq3aERtk3v4uADDwfR6OeHxyHgD5lds5BYStQ5nZzgPz1wHeJtJscYbcLR/uzW9bxHWtvW0hN8= 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=Q4mB/zL1; arc=none smtp.client-ip=217.70.183.193 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 28C9E240005; Fri, 9 Feb 2024 14:32:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1707489125; 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=BaAH/txD0ZSJCug0F9IruK7CsdNif1nz4F+71F4j3Ts=; b=Q4mB/zL1bcT/uydBTqlU1iuW1qjfOXCr7iWC7owWXJqJcS7UbGn+YXa7bMOzl4vaQAnO03 Gtb4B+khsDxZmnl4HjatC1QZvr5RkMtlFA2FW+zmvjH7fxAK3/vRjDRmp19UWuN34kx643 5oDRGml4dcbwypkE0galIIWxUnjyXNxSxGpfzgJwh0w8KyZzhO1HR2W029+Bscu+VJasE4 lyrtW4YZQb8P0PzTbkjInzNABmdmXvvQhoh1UzvnY0293syvToqf45KnMwO+cnws7GUXwo GNXL1fLrzaRJcqXsRiuy8i6ibLi4kKJtVDv/6OzMdG/xQ1t2Y2fpfZijKjMwlQ== From: =?utf-8?q?Th=C3=A9o_Lebrun?= Date: Fri, 09 Feb 2024 15:31:48 +0100 Subject: [PATCH v5 12/13] 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: <20240209-mbly-clk-v5-12-f094ee5e918a@bootlin.com> References: <20240209-mbly-clk-v5-0-f094ee5e918a@bootlin.com> In-Reply-To: <20240209-mbly-clk-v5-0-f094ee5e918a@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: 1790432489089050428 X-GMAIL-MSGID: 1790432489089050428 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>;