From patchwork Mon Jan 13 14:58:03 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrea della Porta X-Patchwork-Id: 13937684 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 9F966C02180 for ; Mon, 13 Jan 2025 15:44:16 +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=MpVNvS0mWns4dmdghCPgwZp6P+vFcnqkJJZ/qXumsoE=; b=R4nbg7L3Z5Xg7mXQ++zQ9awqxQ m2hQaQI1ILh8hqVRUbA5fmvvl/wwRu43lfsH3CmgIgLuoF1oYirbRtEgaFaWxKs4e3ioz1bk04OwT W6afTcsLC8ORqnCGM0YAkwuzHrNO62ZkHW9yCPiLEKOkVgy7R7HyociJhS0+DWqJ5AmAhVJyGVAaS hC+aD4V0V9DuphP9dcgEAD76aVO9U83BQfcJECaSrUz9G+r9lJl30n3Iw7aKTAGhxJ5LAdr/oYztD AC1rzCxfFw4MlEVYoK6gRSmJD6yS1Zp7+aDCA3w8Ks23PzxAa1VGnbZrFv832qtcSaI7UCXbQdePG Rck+zkPA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tXMbj-00000005hBf-2Pmf; Mon, 13 Jan 2025 15:44:03 +0000 Received: from mail-ed1-x544.google.com ([2a00:1450:4864:20::544]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tXLse-00000005VsC-3Icv for linux-arm-kernel@lists.infradead.org; Mon, 13 Jan 2025 14:57:30 +0000 Received: by mail-ed1-x544.google.com with SMTP id 4fb4d7f45d1cf-5d9f0a6adb4so455025a12.1 for ; Mon, 13 Jan 2025 06:57:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1736780247; x=1737385047; 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=MpVNvS0mWns4dmdghCPgwZp6P+vFcnqkJJZ/qXumsoE=; b=arUCfszOhc7Z33ArbLJiHM6c6BOoN6N+9SHSoufr0E7N0lrLVyMSV2XHsblZqZoUvw CXdkSZiJG0kpL7g7zW1DsUEx4SbUdOJEf3Z2Xgggo4NobVjssxN82wyTxOX2Mu9GyE/e Vr5rz6zI11a01SxId+DAj1rX8uw0GJuFiXreRdgBb8jdz7MHl2f34y/WF0TL5Dp64I+Q +zVSf/f36XTiwLhBJ/vpiu+5XXfWXaMV0RDyVY0LqZ3uh9T7KxJOT7b0F3ObhiwD/KXz bKX88g1/TCAU5zqL0PEIY4owc3R+e79mwagS2JIsjeaTL2+kLgtRtQ6EjDQVeCg5RaWG v9vQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736780247; x=1737385047; 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=MpVNvS0mWns4dmdghCPgwZp6P+vFcnqkJJZ/qXumsoE=; b=WfbICTgZKvNwEj/7B6rwsYCs7dezg56CmtSXGjT/5UVDHlDMOVL+Y9smyVlhND3Iqb 6EYLG1OV8gfBo29ZOgNqgl37G1VWW1K/iYgGtGB1rpF2/sPgkJrKPPz4xLrUEIv3Saob K/ewgMBJMIieNtVFM100jkRyqhEY5Nr7ptE9+MymSz81aLr13XdpmIv2xowesrTq/GwC z98pqjp46UHhAjMrS8JuQJkAfh2j3HEN062O0k/axAa8QVV9Wog0vKOG8OZPT4k8ET7d gS8lnknS6MOSF68/7XoUnV071ZCAKuVbRdnJcf7pvr3Q/f3I19LbdfPUKmRSwM1rKImH YjJg== X-Forwarded-Encrypted: i=1; AJvYcCXePEBHs7rjhxTwbL/RKwk5ZA2nnUY6VaMVXepr57p8sXK2yQHBTCw/THdhbY+z3B5EXVQEKJUpyUDSmnzy1TTU@lists.infradead.org X-Gm-Message-State: AOJu0YzXzobidnG+eGomc9fdOJLAOAjrFt07r32PXqmVsMVp+26SUFuI 5K74rhAxbZmbxzvq1lmdSBVJwI8naCUDNrBVoUyWiN5uv8zwzBbjXyyU1kC5nrk= X-Gm-Gg: ASbGncs5uRWLJ1xsOKSxx4wSQfextzWvbq1V+Lev5PEvRLWqdM68vXCxmLXrhbPTPgf XvG88YRIaio2uv1R0J1x5Vq1Mq93nkpOdenYUSQ0/M0ZWIzk0aVRvXEXzIR4Vw+p2ZR/TvTMQmk /aUV9pEOJ4SfEwpA4HPWF+d833p+3NavsB4E1ILq8R7PzuXvQY5tCiw2etIaTByjn8h7LtqAsX9 XhT10AtMJPqOpyZ5ayJhFpQwWsK6oghRgFD+mEwKtlGmieNNUwDLKtKXbscbEq9gNf/NV1LBd9t 46vFVmNo12z7Y0xDxSnLhTlBu00= X-Google-Smtp-Source: AGHT+IEV3Z8XO81JL30T5HSM10iuFAo+SAF8yUhouvdLGjnlVbS73zWwGY/9ygJKvEqqZt+dO6jvIQ== X-Received: by 2002:a17:907:d9e:b0:aae:c3c1:1361 with SMTP id a640c23a62f3a-ab2ab6bfe9amr2116824666b.44.1736780247027; Mon, 13 Jan 2025 06:57:27 -0800 (PST) Received: from localhost (host-87-14-236-197.retail.telecomitalia.it. [87.14.236.197]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-ab2c95b1ccasm509989866b.158.2025.01.13.06.57.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jan 2025 06:57:26 -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 v6 04/10] dt-bindings: misc: Add device specific bindings for RaspberryPi RP1 Date: Mon, 13 Jan 2025 15:58:03 +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-20250113_065728_835158_B25E6D27 X-CRM114-Status: GOOD ( 16.73 ) 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 The RP1 is a MFD that exposes its peripherals through PCI BARs. This schema is intended as minimal support for the clock generator and gpio controller peripherals which are accessible through BAR1. Signed-off-by: Andrea della Porta Reviewed-by: Rob Herring (Arm) --- .../devicetree/bindings/misc/pci1de4,1.yaml | 135 ++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 136 insertions(+) create mode 100644 Documentation/devicetree/bindings/misc/pci1de4,1.yaml diff --git a/Documentation/devicetree/bindings/misc/pci1de4,1.yaml b/Documentation/devicetree/bindings/misc/pci1de4,1.yaml new file mode 100644 index 000000000000..034c7077b27d --- /dev/null +++ b/Documentation/devicetree/bindings/misc/pci1de4,1.yaml @@ -0,0 +1,135 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/misc/pci1de4,1.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: RaspberryPi RP1 MFD PCI device + +maintainers: + - Andrea della Porta + +description: + The RaspberryPi RP1 is a PCI multi function device containing + peripherals ranging from Ethernet to USB controller, I2C, SPI + and others. + The peripherals are accessed by addressing the PCI BAR1 region. + +allOf: + - $ref: /schemas/pci/pci-ep-bus.yaml + +properties: + compatible: + additionalItems: true + maxItems: 3 + items: + - const: pci1de4,1 + + '#interrupt-cells': + const: 2 + description: | + Specifies respectively the interrupt number and flags as defined + in include/dt-bindings/interrupt-controller/irq.h. + The supported values for the interrupt number are: + - IO BANK0: 0 + - IO BANK1: 1 + - IO BANK2: 2 + - AUDIO IN: 3 + - AUDIO OUT: 4 + - PWM0: 5 + - ETH: 6 + - I2C0: 7 + - I2C1: 8 + - I2C2: 9 + - I2C3: 10 + - I2C4: 11 + - I2C5: 12 + - I2C6: 13 + - I2S0: 14 + - I2S1: 15 + - I2S2: 16 + - SDIO0: 17 + - SDIO1: 18 + - SPI0: 19 + - SPI1: 20 + - SPI2: 21 + - SPI3: 22 + - SPI4: 23 + - SPI5: 24 + - UART0: 25 + - TIMER0: 26 + - TIMER1: 27 + - TIMER2: 28 + - TIMER3: 29 + - USB HOST0: 30 + - USB HOST0-0: 31 + - USB HOST0-1: 32 + - USB HOST0-2: 33 + - USB HOST0-3: 34 + - USB HOST1: 35 + - USB HOST1-0: 36 + - USB HOST1-1: 37 + - USB HOST1-2: 38 + - USB HOST1-3: 39 + - DMA: 40 + - PWM1: 41 + - UART1: 42 + - UART2: 43 + - UART3: 44 + - UART4: 45 + - UART5: 46 + - MIPI0: 47 + - MIPI1: 48 + - VIDEO OUT: 49 + - PIO0: 50 + - PIO1: 51 + - ADC FIFO: 52 + - PCIE OUT: 53 + - SPI6: 54 + - SPI7: 55 + - SPI8: 56 + - PROC MISC: 57 + - SYSCFG: 58 + - CLOCKS DEFAULT: 59 + - VBUSCTRL: 60 + + interrupt-controller: true + +unevaluatedProperties: false + +required: + - compatible + - '#interrupt-cells' + - interrupt-controller + - pci-ep-bus@1 + +examples: + - | + pci { + #address-cells = <3>; + #size-cells = <2>; + + rp1@0,0 { + compatible = "pci1de4,1"; + ranges = <0x01 0x00 0x00000000 0x82010000 0x00 0x00 0x00 0x400000>; + #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>; + }; + }; + }; + }; diff --git a/MAINTAINERS b/MAINTAINERS index ceed86755da4..4bc77e3fa80d 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -19578,6 +19578,7 @@ RASPBERRY PI RP1 PCI DRIVER M: Andrea della Porta S: Maintained 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 F: Documentation/devicetree/bindings/pinctrl/raspberrypi,rp1-gpio.yaml F: include/dt-bindings/clock/rp1.h