From patchwork Sun Nov 24 10:51:41 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: 13884044 Received: from mail-ej1-f68.google.com (mail-ej1-f68.google.com [209.85.218.68]) (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 CCEA718B467 for ; Sun, 24 Nov 2024 10:51:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.68 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732445488; cv=none; b=Z44D9UHrZRwdnrXXJ9Dco9OUjgHhasna93Dh6uFp+DsJFuX2//3r9WCcyFDuEav9lXRY2ky0wLroPuUgLInD7vl57VQXPk9JBLu4DXUPICbXt/hxNGeGtbBvmWfodnhe37aSeI5Ceq6B8Nzf8Ju4ZOqK4W9PXcsvJ1mIeASbBLE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732445488; c=relaxed/simple; bh=OizOgkqM/ciCQRFNflnDesht9tvKXDx3pzXOy1c8Mz8=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=r8D1mYc5qfuAzZ5/YH9FziHk2V/mP9HbZar0fLHk3QwS9krMhmy/2J8//NAvchlvYgshnROP8zMimb2g8UlUMdyALpB1MV16PFC5Kdd/V9EmDmPsqAQc0Y0Y4FdPAU/Z8L0LVKP0+qfcVkSyos0TF0sRpyZwW402m9rxkCELMdE= 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=BTK7v4OY; arc=none smtp.client-ip=209.85.218.68 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="BTK7v4OY" Received: by mail-ej1-f68.google.com with SMTP id a640c23a62f3a-aa51bf95ce1so301115866b.3 for ; Sun, 24 Nov 2024 02:51:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1732445484; x=1733050284; 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=0h/dJNmLaJkRXln6GWtNUJKLiMzuYHl099QEc2GHa+E=; b=BTK7v4OYc1ZDHNBUBMgA5tZNXmkp4hkD8r3vZHYBkGsirZ6G+GktYXazaOZ4wCptGu 1Hn5KqdYuHh+jODsjKse2X3TTKqmd25hgd9NhwrHaRVOhu1un1b3Jw9adAInap9h0KxT NSW1kv1fwvLaposqfkFJbOPwjmDfdWfb7uDD2ts+lBH7ADKaEVlswXC4lWtPzPhYvKEz X1mpxdS/JieEOpjgEgRsntiGGc5qQt3nN494s8TUEJ4J1GjgS+2SVL3vp7NTvjt2nxTg aAgDT422YhxPvqXxULudPS5Vv8R7XYu6Gn5j9nSKrIhu0bXYxOdOiNcTU8LVsIBGlvEA ukkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732445484; x=1733050284; 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=0h/dJNmLaJkRXln6GWtNUJKLiMzuYHl099QEc2GHa+E=; b=BB1KVu5rVKya7l6VKkhclEBvZRlXI8ygwH+OM0XrRt89z7o7x+AGh4VhkX4ZztrZs8 zm5Z+11zbfJzfQpTl/fYt2E9bs9rRJgITHrgWZXLZhvCWzRheEXo1Idg9pYqNHrHpsyd ENEA5Zmxaxxfm1CIhQpHbdSHfCzGyDzH1/smaf0olQ6Hc5pMwF87Ptlv9OmEOkNTmvWR aOiVBtQIsB2mm8PkKNe9+yp10oIDgMuvD1Ekv27u9LscjAgzmZybZgbFagWXF1ZJ5u29 2sBlOKCwKUAqhboPk3cVk1RcSZHWdcv0GIT0UNJpGbIQlzY86ajDMx6ocnpBO0Tbd9Bw pAuw== X-Forwarded-Encrypted: i=1; AJvYcCVIh6pzaiZz+CyKOGr46VG6VObh39RcYfmTgaQYwuFH65n8KE9pbuxLv15fKll5GaNYjYa5LDUV6Vo=@vger.kernel.org X-Gm-Message-State: AOJu0YxXjeUXWsuALv299erL5+e1PG/bHjgsIkNB/Iiw039aFRNktde/ HPwJMd7mIKNlJYmAcgCcyQot347BN7IHuNgUGwG8vJ/oNN5eGzH7LHgRoh9w6hk= X-Gm-Gg: ASbGncvxnLQAv/qLQOdAWkyKcSCWqx8+jqEezbb3vAEl6o54+LlM77xbjMicqRYbzMN SeyMoqJGAxx2Ng3nQY9S+J2+GytmzzgO4C2oBCysk63kEEs11rZwl8nLO+83NvCxubi1r9MyIlu dDxxwVHsAyi3ihL3w50T+pxVgJIYYEvp7Mcdq05wTl5FTCgh4UJfQjJRnmwtQEbBgPX8MdubkJ3 hQnBzozjF8Y/tP578akf+MfLgUrryrS7edoGOcXSg8Hdy71Vyv+n8mTFH9v7KxYxL4CstYTh4iX zi+zdNthGqQ192pwL1R8 X-Google-Smtp-Source: AGHT+IFCpVvo0hkBe9gao8DgUns3PDPSWgbR0TGeCkcxYWD2ZwTIRxp0fywsn/nQF4Dz7vC2x1KBAA== X-Received: by 2002:a17:907:7848:b0:aa5:35a6:8da8 with SMTP id a640c23a62f3a-aa535a693ebmr408145566b.12.1732445484047; Sun, 24 Nov 2024 02:51:24 -0800 (PST) Received: from localhost (host-79-49-220-127.retail.telecomitalia.it. [79.49.220.127]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-aa54423e8e9sm85491966b.77.2024.11.24.02.51.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Nov 2024 02:51:23 -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 04/10] dt-bindings: misc: Add device specific bindings for RaspberryPi RP1 Date: Sun, 24 Nov 2024 11:51:41 +0100 Message-ID: X-Mailer: git-send-email 2.44.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-pci@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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 --- .../devicetree/bindings/misc/pci1de4,1.yaml | 74 +++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 75 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..304d6b3d9e83 --- /dev/null +++ b/Documentation/devicetree/bindings/misc/pci1de4,1.yaml @@ -0,0 +1,74 @@ +# 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. + + 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 = <0xc0 0x40000000 0x01 0x00 0x00000000 0x00 0x00400000>; + dma-ranges = <0x10 0x00000000 0x43000000 0x10 0x00000000 0x10 0x00000000>; + #address-cells = <2>; + #size-cells = <2>; + + rp1_clocks: clocks@c040018000 { + compatible = "raspberrypi,rp1-clocks"; + reg = <0xc0 0x40018000 0x0 0x10038>; + #clock-cells = <1>; + clocks = <&clk_rp1_xosc>; + clock-names = "xosc"; + }; + }; + }; + }; diff --git a/MAINTAINERS b/MAINTAINERS index ccf123b805c8..2aea5a6166bd 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -19384,6 +19384,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