From patchwork Wed Feb 21 18:22:21 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: 204361 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2685:b0:108:e6aa:91d0 with SMTP id mn5csp1218427dyc; Wed, 21 Feb 2024 10:25:32 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUpgqcmxcPQaOMpA10jrlmsxfraEwP652hYPVpK0MbLfsiBFEAyynvY8is/nQKHBFveIjFvWSN1XjKmhAGtpPTKzOS0rA== X-Google-Smtp-Source: AGHT+IGSDjaGepDRxYHMEQNphvnQ7Fbz+yiyb6hsBHCOUWVVaZKo/jPGOVaB32EZvZyVVRwW6ruH X-Received: by 2002:a05:6214:2681:b0:68f:9051:5879 with SMTP id gm1-20020a056214268100b0068f90515879mr7594140qvb.21.1708539932513; Wed, 21 Feb 2024 10:25:32 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708539932; cv=pass; d=google.com; s=arc-20160816; b=DRiYM6uApk099xbJtsc0NYPBvyXm9ZtVuzMMk2XnM0+N2xri3MbdadWEwZ2gouJpLA LjEroMBZRb6UiLS5mVika2fZeEcAyN/Yeh4AMbIdwCPkmw4zO9sjVNvQUnmlpd2ka7iv d1iVYSewzs9X0RFH2+OT4nN68l0Jn0AOuJOzB/OIqAhFwWN/dFh312yXF4jQO8Px7TuK 6nYqCUp1GgZ0/YMi8OPVFpVzmX5eKG0qOpaBqZgWWoa5IemONqGOLb+/c/4Gp0hOHeq8 Y5Uvn6bkVAfI/ij30bXuKOVZSduXs75rZ1Aw4duVLqXC3tK9TbydZYuKxmv0oLGPHOb0 B83A== 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=6K2cpP1kyacxCl/LufjKMgr4VxYxhZyln51deU43LfI=; fh=x5R05joZrGxebVEAaczvDRwH1m7BAJpjuUh/Gh1YI/Y=; b=0DKVf2i56Ek618prOacMADc1a0USQm6zeSAqoBb0DcExbuGoW91sOHGUO0tmGPVdX8 MwUuclvqr8m+mP4DldrwdfyyxXsgqpGp+UILMsj3bPk4aFIN5arY7l2VgtDr3rK4HJeN U/QF6fnxAEfOr8pEwBAd0ct3raLRFf9P5ULruxqdRKRRFlWr2vXzbzykDVZzMJn0U61x O1XX/dzjT//SkJf18lesGvDUIsJToJEfjBISBiJf38USpXlvsR/8sW3nbmPFYvRdY0Np zPSDmhscBo42QIRZgnZkbyniVkP/2aO/icaoAzSTf2X96fnrhq8JLw4UJc67fdae1s90 WpSQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=dp7xOejO; 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-75280-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75280-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id iv14-20020ad45cee000000b0068fa24e579csi1959502qvb.555.2024.02.21.10.25.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 10:25:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-75280-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=dp7xOejO; 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-75280-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75280-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 504501C2108D for ; Wed, 21 Feb 2024 18:25:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 26C1012AADE; Wed, 21 Feb 2024 18:22:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="dp7xOejO" Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [217.70.183.197]) (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 DA49E126F04; Wed, 21 Feb 2024 18:22:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.197 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708539747; cv=none; b=DWUPX7jRp2WC7n69Rvr1TStd3s6nzViDF2HlBcAwLEB3ZVn3WBvSx8m+18GAQjRHI6QLMjnv+qSJEguikjOepPS2+2OwsGStJLsrEN2gheTCuaiYqvYRS3UZcBlxjs9YNBS88OBjKGXuNPdCK91BICMxaKL/YfN6yoez+5MatrM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708539747; c=relaxed/simple; bh=gfXf3/Hixb5jRDcV9G5x/rfTcx5OW4kiosEC0HyIzdg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=nj0qX0DsMWTw0p3U1B4BTaT+OzXp5t0fJgUGHk4yPjhoNqDQZqF8KBPilqSjoZb6TB98TZmu3Y0BL5MmmtalwJQ2mGmTT9j/dN1g4we1wekaqSm+4o1dZznrip+oEyio9vQ9jJvkCQetE8Q3iXGjxGbcjYlI5JwdCa+UK/pkOwc= 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=dp7xOejO; arc=none smtp.client-ip=217.70.183.197 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 75AC71C000D; Wed, 21 Feb 2024 18:22:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1708539743; 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=6K2cpP1kyacxCl/LufjKMgr4VxYxhZyln51deU43LfI=; b=dp7xOejOeqb0tpbI0fz0toYAjcIqPOEfd+SxxbfBXXgi1LuA+Gf/g+xxk3rmwCu/4JOgLw KPQmpJG+BoF1arx9o6WeeTQGTpipobh5VJRsvCpU8n9/u9aoeLFCo93gOAtwzE8alCGfMS 6EmcAxq3t8jmSAiB/mfMBxMziA7iK987KDHWoQxEW0O+Mky6xizVG7EEXvTRX0Wdm231BH 98nv4kVMnfVyy20Wo8x86htBhaA7x/jnkSULddUIIX8BkgACxRuvajtx7zj3l9kzA3z1Xw SP2hAy0zWY7IvY2rYSE7F26Q4RvoenQ+oPJjgr4kiWGb9Ql50zkqjktg6Pz+aQ== From: =?utf-8?q?Th=C3=A9o_Lebrun?= Date: Wed, 21 Feb 2024 19:22:21 +0100 Subject: [PATCH v7 13/14] 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: <20240221-mbly-clk-v7-13-31d4ce3630c3@bootlin.com> References: <20240221-mbly-clk-v7-0-31d4ce3630c3@bootlin.com> In-Reply-To: <20240221-mbly-clk-v7-0-31d4ce3630c3@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: 1791533968399120517 X-GMAIL-MSGID: 1791533968399120517 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>;