From patchwork Wed Jan 31 16:26:26 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: 194850 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2087:b0:106:209c:c626 with SMTP id gs7csp2008111dyb; Wed, 31 Jan 2024 08:31:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IH9vS6Yt4rTm8zzbzAC3jCmmVK5pq/0XeLJETpI8qaJlzIh/FNUM1Kg/Wm24LgsoC3IVxUW X-Received: by 2002:aa7:8553:0:b0:6dd:c1f2:8ae4 with SMTP id y19-20020aa78553000000b006ddc1f28ae4mr1997084pfn.14.1706718712447; Wed, 31 Jan 2024 08:31:52 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706718712; cv=pass; d=google.com; s=arc-20160816; b=RbvtKkbBJCg/R50n2EUjCyUKu6uMkayn5I/3OsW1kztyE4Qc3VCoEBEqRbbW8JE2xd KE+wCqXWk7vF0UEM1HrcBFWi/JYsRsDZfpx4ofCmbrn+Y113/aP348NJy/aOqo05v04E I1rmhd0fSIPneD8/qGlRORkHmSHq7iXIqnUrpipUnZBTSHBc7WWNvhJpR618JG1BYilH 95RFe26h5dPKTcSIohF9A/rrE4hLH9rwt7pqQueuuvdruFXtHxFgT5j507NitrrrgGhg CZ3ia7GODhnp+7AiMr6zkOUlBWfH/TN7KcrreAH3GDhd0Mme2LaUWE1oqxhtlsfhfcIb pLEw== 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=fORjDlsDhrIYNSllDnl+lAljmgE3xSz15qek+qYmWrk=; fh=m0AACwtgDkpcDaxauPTlGe7PGbD+mJqbNBmf95r4Vyk=; b=W8x5TRXL0P0vg7HOLPjym3pHsdGLlo3gHo12tMz0Veut16UAzYdTY4gStmFcjKei41 AWe6/bvbVc/c6xWm9RoOCyPrfH2htRwZWLliq06Mhd0GekBdD2/5BmiflF3/khIpEE/O Z4eNPsPUGn5jbDESRnALYTrmVe8DAb5IVx91EeAAySguv8D6Fl3fhyeHdcB48hz+tbvh HlF2Q+68zwWJHX0WZehfVJxuEyQ95Mm84otThTRIpOnq1vYXkMxnWPJA3OAEwmk7jeDU BbE0FZ5+o7BzGl4pDspvceW49Sy0S/7hfGDwahVhou+f7UrCkNn6waogc/YI6OEHASmo bnoA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=eidMrhta; 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-46799-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46799-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com X-Forwarded-Encrypted: i=1; AJvYcCWMyxreQkQ1ymKYZ1gkbFZ4Uj76FATK5fVeGvIv//IPi5lMxW43Z9FZrfMa+euQLPKHRKFs3ngwaqscYjNb1R8k3A93nQ== Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id fd24-20020a056a002e9800b006dfd9e8d8desi1648588pfb.133.2024.01.31.08.31.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 08:31:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-46799-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=eidMrhta; 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-46799-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46799-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 0986328FCC8 for ; Wed, 31 Jan 2024 16:31:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E2E8213DB8C; Wed, 31 Jan 2024 16:27:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="eidMrhta" 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 74C2D12FF6A; Wed, 31 Jan 2024 16:27:22 +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=1706718445; cv=none; b=jw5Nnva/KhxVOQzWZoZb/mH6S9/hTngXJIhDWqvFNTr6gVPl5+jI7IsPRsTNPJ7cJEk6B4GwqvKT+vFHNnvCT03IHaPhk2f0nr07e0ifWF7BhWV19oieT2nvm0QIlaSdCLJa81h1Z77WrEFHQU1ugCLdqLuDvP+GS1TRD2Ipb2w= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706718445; c=relaxed/simple; bh=mSTYl+S5y2Cjmbl5fY1+m8VOf05Ry9pXVxOCn1/aiGI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=p8O1c+lIox7IHRkKF29W0tKlTnlqej/SNW150iAqOAMJfzKNSY281hYZwvRuPo4KUCs0TDcBt3X98+ClzDmhjr3ExYZxwGKIyVjvtQRJ3iQXHzNa16YvcTxxWHjYRqxIoletdo3bl2v8BXtky+24yZ0XzOL2rS8EoB0KpVCBXKA= 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=eidMrhta; 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 3062440014; Wed, 31 Jan 2024 16:27:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1706718440; 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=fORjDlsDhrIYNSllDnl+lAljmgE3xSz15qek+qYmWrk=; b=eidMrhtaP0pvp7ETrGL/Tbun1n7+k2Qi3uKYyTp9hXDNMSDQCS21cCug4228h26Rk4kNRS 5fB20NqUhwpG4r1YC1Mq2s0cPgj3pTSUQ3eeHQ29SC15KsXMFe6AbdDHf6zsMgfMiesUt8 Ds1FLsp0EbTGs7TY3Fr835D6tdJ9MCRkNAXkTjSeO29bsRpsBRoR1fxIbw2Z7lymwzL4Bt lJI7z4aBPXPccSYYXeeYdXq1iNkG5SOZE4sfJIuCaOMgIpYChcA9XQHuGZkYMK3gsh5b0z s6RKqhksoD5ISG6R+jH/6RcKk5INjyjPnCRGFAcuid4fT/ngxvT8sO4iwNM0Og== From: =?utf-8?q?Th=C3=A9o_Lebrun?= Date: Wed, 31 Jan 2024 17:26:26 +0100 Subject: [PATCH v4 13/18] MIPS: mobileye: eyeq5: add memory translation inside OLB syscon 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-13-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: 1789624280601144403 X-GMAIL-MSGID: 1789624280601144403 The OLB syscon block is host to a few peripherals (clock, reset, pinctrl). Simplify declarations by mapping memory to have relative addresses. Signed-off-by: Théo Lebrun --- arch/mips/boot/dts/mobileye/eyeq5.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/mips/boot/dts/mobileye/eyeq5.dtsi b/arch/mips/boot/dts/mobileye/eyeq5.dtsi index 03e7e942ee22..732e21be65b4 100644 --- a/arch/mips/boot/dts/mobileye/eyeq5.dtsi +++ b/arch/mips/boot/dts/mobileye/eyeq5.dtsi @@ -103,6 +103,9 @@ uart2: serial@a00000 { olb: system-controller@e00000 { compatible = "mobileye,eyeq5-olb", "syscon", "simple-mfd"; reg = <0 0xe00000 0x0 0x400>; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0 0 0xe00000 0x400>; }; gic: interrupt-controller@140000 {