From nobody Mon Nov 25 12:35:31 2024 Received: from mail-ed1-f48.google.com (mail-ed1-f48.google.com [209.85.208.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A5F2718F2FB for ; Sun, 24 Nov 2024 10:51:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732445493; cv=none; b=nd3dLLGxs43jP0n1JJfTJICNLc2EvF7Uxzk5Ls4ET9y2nq1RAoAYGjbmyXGGcKVkNxcI4RbQSu/G0yvNspDA8+XI8PGM383Y//LjSSR8DJdHq1LZ+b1jA1ZhKIgXNAAz0i0358JwX+BT89cJgLFd0d75zPBqR8xFx+WBS+ySCco= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732445493; c=relaxed/simple; bh=9+zmNZmbhX+re32WoDieLsiAqFhlamEmWlZNPL9Sjvo=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Mz7Sf5Z9k3Gzhw6JstfQOEbR684glAgUe/4OMuD18c0VBsGU7g4kBZFtD/5JVV+cpMXBaqwezb58aCodtvU+BbuxpFt422A/f7og9x8gAFYzB8QpOYuQrYxwz4FssuYQTptiz8ByVUrU0tHn8Da6fzvA7YUbjLy3PbHWIY5q94w= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com; spf=pass smtp.mailfrom=suse.com; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b=O1ArwEz7; arc=none smtp.client-ip=209.85.208.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b="O1ArwEz7" Received: by mail-ed1-f48.google.com with SMTP id 4fb4d7f45d1cf-5cece886771so5280687a12.0 for ; Sun, 24 Nov 2024 02:51:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1732445489; x=1733050289; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=zsaRoA1lnMwJ/rap2hmEXWNKa+6PDipeQK8JYQOi1WY=; b=O1ArwEz7Nu+Tc2h/0awITGWPR62ipjWNlmHsQLmB2ZBngDbQZNa7og4aJMPO5rXdJc wgKwvy4EJ7/JxQGEWXEpyZhOWfOJbHCOUprXCphXhbWenE+BTkTTZp9TPQ8fwWgN4HsW oHc9PvQSlLJGg4sWxbMVCLWXn5tinEquxEexTgKAGzgKzyfcDu9JCvynwmhNx4nXGOJo bnsok7YNokiXk/CY0wZIQcHZBQWeOkN+/+WcaDt8/Wb1nP+P0z00ugIet5Oblsn0V+v3 HXFMRItHFXI76gsvtyTtxlxX7WD3H0Fe31TFvo+s8fzlHg85cQOVSwQtVTafcEjSvA/G Ejcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732445489; x=1733050289; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=zsaRoA1lnMwJ/rap2hmEXWNKa+6PDipeQK8JYQOi1WY=; b=eEqZzZ0DtVBCmkxcUue/L7bBgX1pO6OEPtZLMeFoGQrrS+O8l+xElO/ny3sZHNClNn M7n6Sg24/556JMod3on7tyV9ds1G4vvn2y/L68qQ9hUY2Zu+2G5muWTiFcoFc9RQ9nvU hm9scGOL+W2PqKnnie3glDjEhqYFRf2mOkXuDpKBhElVtQiLwxic+5yMdXxw6VmuVlq8 OA3fMVK+Z15yPtSBrxsyV/llub0qTP5OUCdgmTpgs2nJvmVmLsQ57mRsPPfdMkP+aROx kPBZk8C4aTnU83eSPu4kMZHlAOOA4HKLoYo0boUjc261Jt1saO9D7xJYvgcFhbDjkcSx jRYg== X-Forwarded-Encrypted: i=1; AJvYcCXvJGcTv7Q6HbCBnfhdC/5+74kDFKmo2RQibqqzA0mk4QAB/2TLVv+en/aAUAZ85ebjkCNS8N3LyIPLby0=@vger.kernel.org X-Gm-Message-State: AOJu0Yw9LYrkRDym/2LeH9Nfvob+sywEzHgZHfVImaeIoCYgO4oCfdCR sOTPnA00764+GUaQBPlxA2RFFA5/5sYAlLi/mtSx5dws458pNZlf6MRW92oT4LM= X-Gm-Gg: ASbGncvFolpa6dJEhkWI+8FK9LuEPoA2wQqwJ2XNOXSvCsiMRJJ26oqAFm0eY+XKVin 9plKLkbKlkwu8M1zE0GkF67tk7rCzOnGPQyRom73D5rEGAS6GJMb4ZoWMubW6FCI7ipTaz8F1Zy C1tn7qVcd3k4bBrKMyq4Ze547x5rSGtrjg3AbQ9zXcbpuyyF/lRN6Jdlzr67Byl9RlqJo/8pVSh hyT7omge1nIsr+agOtPA9yBepVIzI8V75N040Ch2cwboPZXikjyqS7csLvngobmN3xp84fGwFPd uJG2ayQDVkIHDQ/m8/IL X-Google-Smtp-Source: AGHT+IEOYxg6rA0GL3wgI9aS+qtVFpqrOUZqHHOpUaiFmnyQfx8cerOV23q+NR4gIGgGPlpOfQbCKg== X-Received: by 2002:a05:6402:4589:b0:5cf:e76a:f96 with SMTP id 4fb4d7f45d1cf-5d01d3fab44mr9140439a12.8.1732445488782; Sun, 24 Nov 2024 02:51:28 -0800 (PST) Received: from localhost (host-79-49-220-127.retail.telecomitalia.it. [79.49.220.127]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5d01d3a342asm2885244a12.15.2024.11.24.02.51.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Nov 2024 02:51:28 -0800 (PST) From: Andrea della Porta To: Andrea della Porta , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Florian Fainelli , Broadcom internal kernel review list , Lorenzo Pieralisi , Krzysztof Wilczynski , Manivannan Sadhasivam , Bjorn Helgaas , Linus Walleij , Catalin Marinas , Will Deacon , Bartosz Golaszewski , Derek Kiernan , Dragan Cvetic , Arnd Bergmann , Greg Kroah-Hartman , Saravana Kannan , linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, linux-gpio@vger.kernel.org, Masahiro Yamada , Stefan Wahren , Herve Codina , Luca Ceresoli , Thomas Petazzoni , Andrew Lunn Subject: [PATCH v4 07/10] arm64: dts: rp1: Add support for RaspberryPi's RP1 device Date: Sun, 24 Nov 2024 11:51:44 +0100 Message-ID: <87fe9d5c88da7e2fd8315615578bd5b97f50e1b3.1732444746.git.andrea.porta@suse.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" RaspberryPi RP1 is a multi function PCI endpoint device that exposes several subperipherals via PCI BAR. Add a dtb overlay that will be compiled into a binary blob and linked in the RP1 driver. This overlay offers just minimal support to represent the RP1 device itself, the sub-peripherals will be added by future patches. Signed-off-by: Andrea della Porta --- NOTE: this patch should be taken by the same maintainer that will take "[PATCH v4 08/10] misc: rp1: RaspberryPi RP1 misc driver", since they are closely related in terms of compiling. MAINTAINERS | 1 + arch/arm64/boot/dts/broadcom/rp1.dtso | 58 +++++++++++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 arch/arm64/boot/dts/broadcom/rp1.dtso diff --git a/MAINTAINERS b/MAINTAINERS index 06277969a522..510a071ede78 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -19383,6 +19383,7 @@ F: include/uapi/linux/media/raspberrypi/ RASPBERRY PI RP1 PCI DRIVER M: Andrea della Porta S: Maintained +F: arch/arm64/boot/dts/broadcom/rp1.dtso F: Documentation/devicetree/bindings/clock/raspberrypi,rp1-clocks.yaml F: Documentation/devicetree/bindings/misc/pci1de4,1.yaml F: Documentation/devicetree/bindings/pci/pci-ep-bus.yaml diff --git a/arch/arm64/boot/dts/broadcom/rp1.dtso b/arch/arm64/boot/dts/br= oadcom/rp1.dtso new file mode 100644 index 000000000000..cdff061e2750 --- /dev/null +++ b/arch/arm64/boot/dts/broadcom/rp1.dtso @@ -0,0 +1,58 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) + +#include +#include +#include + +/dts-v1/; +/plugin/; + +/ { + fragment@0 { + target-path=3D""; + __overlay__ { + compatible =3D "pci1de4,1"; + #address-cells =3D <3>; + #size-cells =3D <2>; + interrupt-controller; + #interrupt-cells =3D <2>; + + pci_ep_bus: pci-ep-bus@1 { + compatible =3D "simple-bus"; + ranges =3D <0x00 0x40000000 0x01 0x00 0x00000000 0x00 0x00400000>; + dma-ranges =3D <0x10 0x00000000 0x43000000 0x10 0x00000000 0x10 0x00= 000000>; + #address-cells =3D <2>; + #size-cells =3D <2>; + + rp1_clocks: clocks@40018000 { + compatible =3D "raspberrypi,rp1-clocks"; + reg =3D <0x00 0x40018000 0x0 0x10038>; + #clock-cells =3D <1>; + clocks =3D <&clk_rp1_xosc>; + assigned-clocks =3D <&rp1_clocks RP1_PLL_SYS_CORE>, + <&rp1_clocks RP1_PLL_SYS>, + <&rp1_clocks RP1_PLL_SYS_SEC>, + <&rp1_clocks RP1_CLK_SYS>; + assigned-clock-rates =3D <1000000000>, // RP1_PLL_SYS_CORE + <200000000>, // RP1_PLL_SYS + <125000000>, // RP1_PLL_SYS_SEC + <200000000>; // RP1_CLK_SYS + }; + + rp1_gpio: pinctrl@400d0000 { + compatible =3D "raspberrypi,rp1-gpio"; + reg =3D <0x00 0x400d0000 0x0 0xc000>, + <0x00 0x400e0000 0x0 0xc000>, + <0x00 0x400f0000 0x0 0xc000>; + gpio-controller; + #gpio-cells =3D <2>; + interrupt-controller; + #interrupt-cells =3D <2>; + interrupts =3D <0 IRQ_TYPE_LEVEL_HIGH>, + <1 IRQ_TYPE_LEVEL_HIGH>, + <2 IRQ_TYPE_LEVEL_HIGH>; + }; + }; + }; + }; +}; --=20 2.35.3