From patchwork Mon Dec 2 11:19:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrea della Porta X-Patchwork-Id: 13890318 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EF804D7830C for ; Mon, 2 Dec 2024 11:26:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:To:From:Reply-To: Cc:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=c3TAPa2qTQeKR3X5ueCWjbdd0qc3DpZTBSBDGsza/zs=; b=oiNF61TA8ApaUPFNkiZQxSEpFB ffH94e4FwyzbLwqXBzEC3r9r9vqBSZsakUY37iAwRoJqznmejmR1rVp5eeenwed0va3lCtclxIrXV TMOaxE877I+FCFpZcn8CL9IBkO8l7I6UPwKrXc2Z9F/WmtkgivSxB443TowWmXz7Li/b/rj+Q03nR zcVPDqa0mhUSYR+ebk3esctmbt1RsPxTbD9KQNqpRuqDq1CTcmLAuYt/RxGRgDS/IfvJmmq6Rm0jp PWj0sPep7//BxQblLORf0t0dZzcyXJ7sqhplTDbE55kui6u9+4yX0R+viEYL19a9ul87S5sPYDeqs 6UfOl/UQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tI4ZE-00000005t4s-1W7R; Mon, 02 Dec 2024 11:26:16 +0000 Received: from mail-ed1-x536.google.com ([2a00:1450:4864:20::536]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tI4SP-00000005rLh-11Eg for linux-arm-kernel@lists.infradead.org; Mon, 02 Dec 2024 11:19:15 +0000 Received: by mail-ed1-x536.google.com with SMTP id 4fb4d7f45d1cf-5cec9609303so4896104a12.1 for ; Mon, 02 Dec 2024 03:19:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1733138351; x=1733743151; darn=lists.infradead.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=c3TAPa2qTQeKR3X5ueCWjbdd0qc3DpZTBSBDGsza/zs=; b=ebqlxBvojyFMGao4T3z1NETsTQ8RGt0K4F9+eMdGJll6g1RlLmO8jLQUqs+Xd5gsOW gXr5W+REK845zof9+iR9vMt0TSyQOFN2REsx2QohKNjp3BLbYV08nzoD7KqBPjmkImpk BoBKF3nIntnH0xeX2ERqWfFS/i57Gvsts1GjbPD3bdsozsT58wSRaW60FzgZFw9pvyWJ PYVgguljc+FaT7JYJkl4bc5d/x5yf5pI2VemwI8nBwnOCCDAW65d+LIgnr2JRIS3gx63 gb6hulI38HnQVQCHfAanV4MZbQKHKkvBa3L/0REz4ms7iNVx4vtEniRmghTNu1CVP2TI TECw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733138351; x=1733743151; 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=c3TAPa2qTQeKR3X5ueCWjbdd0qc3DpZTBSBDGsza/zs=; b=UzsxYxruRWRSppntR90kttP6QO2OFbtYC2+mwt0GcEvthvP/lI0XFU6JtmG0K5xmLg UOh+yCsLJG0dEpgLq3flbPoiQOCtKr9+PU4jlEBo5VTpK5rqBNt4dMNuq74yRnJ5avKv pxlH07jJ4WcP46S9uj3sRd4osKPzUFuQAjm8QqeROoHUfETRMt3J1ZZP/gcsGlf2mxQY IzAW6OmQSezSRGIfWi634DrWQFSDI0tDRnqJqdNJmX3Uyr4Z9MCcDqixQUb4F5QwV41+ f8Y4TwFIRWJ4/zD/NlrcduZxONCgoW1ypkwZeo2FrSU/jSlEe+xgXiGcHx4BhuPGgLC3 QNmQ== X-Forwarded-Encrypted: i=1; AJvYcCVPUaPIpr/1THmG5OSlu1j6+s90Z0TBJlqcO9/lBFJz3PGXCFLgEy+qJfGHDEy/txugamCqEzxHlf+3oDERSIWy@lists.infradead.org X-Gm-Message-State: AOJu0YzpIfgYOyzPBb5OkKfqkIoGuy7VmvZ48qpCOH87CCJ1kcj+15Fd umo1SdfXRKwGwhWeAfwXi1rVx52jmqgg3N520EgA0zmY6LPDmQFwpN7CeTG1nKM= X-Gm-Gg: ASbGncvgzNG8yJsoD9UdI6E7kIeYHLzM2b1tht6h97lnqQYJcfsxUEGKd8Ftfl9p7u2 UYvl5WSKthDxaaj8YiymrAmQbIzYTHIKo8gbpGJ/1dAsG3t4135s1C+s16FYWEbOy7NOJttLJIx 5guCPU0ytJuDG1hBamqYQwz98I90LTnAmCmhhZnDPKXfkeVuKtP40biovNr8ZsuCF+OEXhH2Dqb r0/JG+zPiK9t1RUwROZsHIx9/Mmqgep1MgF8rgtxB46ReOGYuwZUVFcENGGHoD2Tpz9JHG60DTW Vtij+k/IBcX+3QTRPNTJ X-Google-Smtp-Source: AGHT+IGpo1hGC/A3F5dzmOrzAqyeXj4ZAm5ybaRV+4f0G+E7PZCxFeFzZvglWvAs4l5HpTFaKxoVbQ== X-Received: by 2002:a05:6402:35c9:b0:5d0:cfad:f6b with SMTP id 4fb4d7f45d1cf-5d0cfad11bcmr9068517a12.11.1733138351544; Mon, 02 Dec 2024 03:19:11 -0800 (PST) Received: from localhost (host-87-20-211-251.retail.telecomitalia.it. [87.20.211.251]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-aa5996dbf54sm499668266b.44.2024.12.02.03.19.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Dec 2024 03:19:10 -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 v5 07/10] arm64: dts: rp1: Add support for RaspberryPi's RP1 device Date: Mon, 2 Dec 2024 12:19:31 +0100 Message-ID: X-Mailer: git-send-email 2.44.0 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241202_031913_280953_AAFEEF4C X-CRM114-Status: GOOD ( 17.82 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 9b8e87b8d6de..fbdd8594aa7e 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -19577,6 +19577,7 @@ F: drivers/media/platform/raspberrypi/rp1-cfe/ 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/broadcom/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=""; + __overlay__ { + compatible = "pci1de4,1"; + #address-cells = <3>; + #size-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + + pci_ep_bus: pci-ep-bus@1 { + compatible = "simple-bus"; + ranges = <0x00 0x40000000 0x01 0x00 0x00000000 0x00 0x00400000>; + dma-ranges = <0x10 0x00000000 0x43000000 0x10 0x00000000 0x10 0x00000000>; + #address-cells = <2>; + #size-cells = <2>; + + rp1_clocks: clocks@40018000 { + compatible = "raspberrypi,rp1-clocks"; + reg = <0x00 0x40018000 0x0 0x10038>; + #clock-cells = <1>; + clocks = <&clk_rp1_xosc>; + assigned-clocks = <&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 = <1000000000>, // RP1_PLL_SYS_CORE + <200000000>, // RP1_PLL_SYS + <125000000>, // RP1_PLL_SYS_SEC + <200000000>; // RP1_CLK_SYS + }; + + rp1_gpio: pinctrl@400d0000 { + compatible = "raspberrypi,rp1-gpio"; + reg = <0x00 0x400d0000 0x0 0xc000>, + <0x00 0x400e0000 0x0 0xc000>, + <0x00 0x400f0000 0x0 0xc000>; + gpio-controller; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + interrupts = <0 IRQ_TYPE_LEVEL_HIGH>, + <1 IRQ_TYPE_LEVEL_HIGH>, + <2 IRQ_TYPE_LEVEL_HIGH>; + }; + }; + }; + }; +};