From patchwork Mon Oct 7 12:39:56 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: 13824658 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 44CBACFB43F for ; Mon, 7 Oct 2024 13:11:06 +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=c7GLnpdk3kpJmE9r4o2PWhEgiezo/nwd6A/PFeKxkMs=; b=AfCHxrdoEwPvNXMgwEt0Qo8yaR guqpicJ7qz4M9whVCvu5hkmFynThzf6Vh7BXSOJ/dsPl/Ns9vgumBYOOPy6nikvOOiEEYWUBHRIJf rkHL3BqA8Kz/i2BSUd24/BYxBq1Wv7X55dghmV9ejk0J0CpuhIEE/1YIu5MLWKE7y5EaYS0GVbVmj YyDIM3H2xVFCXvj/qCNuVK9itJQOhe6Ev7vLzm59JpEGFR37Ti5Z8SzIBnjg3AWMguwJLlIgKyVVF HSdsexJ/BwJ99qiLyedhx9ZwgiO0uJmvhpIsQvJ+7NmavnPshA0619FDDGpnbtYDLj7yM82kO3gFG 1zjZwSOQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1sxnVk-00000002SFL-0joI; Mon, 07 Oct 2024 13:10:52 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1sxn1z-00000002Mh0-2Ruk for linux-arm-kernel@bombadil.infradead.org; Mon, 07 Oct 2024 12:40:07 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:MIME-Version :References:In-Reply-To:Message-ID:Date:Subject:To:From:Sender:Reply-To:Cc: Content-Type:Content-ID:Content-Description; bh=c7GLnpdk3kpJmE9r4o2PWhEgiezo/nwd6A/PFeKxkMs=; b=ci++4ML231jfjC2TvGwbKnfmUt ZbDWiHoIcx8IfnCvkZcXL5zW26eIR+pBdMbdp0JUtsHg9jMcEGM+qpVW/sTW9O5HY+u5ZR+NSv74z qsDn3+y/I+vtdi5P+SbECJ8uC7zv/2539ExWDUM9OmbX9eGefsb5DpEs/90j4wo10OBXQQA4zwyXK ZloYHKA/TFLPjNPhUuMUNgHYqEkjLGpT3kTiINjhUby9sAtTUly7VYMXsqg4wzAXhFrYLHZ/kB8mC KfsMOTDqSlCr/+ZgMbFtcr9qJDtwGzK1US1YibUHMpoZx2FHsQYYCRsHRJLhr0Ifiz7g4hBUkk+KX BSbMX2nQ==; Received: from mail-ej1-x631.google.com ([2a00:1450:4864:20::631]) by desiato.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1sxn1v-00000004Q0K-3Ozx for linux-arm-kernel@lists.infradead.org; Mon, 07 Oct 2024 12:40:06 +0000 Received: by mail-ej1-x631.google.com with SMTP id a640c23a62f3a-a993302fa02so251842966b.0 for ; Mon, 07 Oct 2024 05:40:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1728304801; x=1728909601; 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=c7GLnpdk3kpJmE9r4o2PWhEgiezo/nwd6A/PFeKxkMs=; b=Fnk6NdhD2EdzcOn3gPdcGN6ZITj9R7LZOxYrCew3Tn0fXYlTN7DE5izgxRKskdruqR sHT9XQ9+R0GRycvzm5FV6JjozkJJpGlRiy1Z/Bz/88ZqjIOlGoz5re9p//abCP65uDgt IeQjmK1MJg25aCVlUxIVNMuFzT+rJezjSn8OsTw9WmVc7SnJVTgU/MGLStKt42fMAwzn GVu9ntUi25P8Z4TwZkwwwdXC/FDr/qm/MOKHBVBdboMraREgabCxjCqIekpn+YIjPEUV pGsh0DJEgiaN2B+ewSKZvEPAxhHLRRnnwyGyhO0sZowFbUf0408Ge8NaQV4Xf/uAEEAR Wcpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728304801; x=1728909601; 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=c7GLnpdk3kpJmE9r4o2PWhEgiezo/nwd6A/PFeKxkMs=; b=G78VlS/kSBMFNRDRECX/BT8AdESgKvJ7D6UPLqSR/B6LRw7OgXvmBhf/pgrycRkZR9 HG2uUYs0Vdt9oCScW169hEOMme+x9VVNdAzW3+3IPCrYsG0E1FLA1EJQ08M46HoIlucD LLEEE20boOloSYMGUv3uQ0oCqVb9VFrvSPXeVeV2WcDa7lCK068Rln9BO1IjGSYD68iQ muG2nMXBxxT0lKI9ElQLvs0QAMowI/Cw/MpSiAImBF0vKqoApaXQrYYLicPYTU26mXrE woEBExKL4lJQzJWSmn1C7d4Tv2m8wakbyMx9iTLqb8q52mIfToYRy52jlIfO8PYZy6w1 30Cg== X-Forwarded-Encrypted: i=1; AJvYcCXC2BuybfcooR+aN4GzvdwgisoQAjedvKlZZmCudTpn5KjH2V8s04kXMKAAT8MJDYy9DN4oq4BcUxELrprueBZv@lists.infradead.org X-Gm-Message-State: AOJu0Yw86V+fB4AXAIiJe5SLs4YGVneEPK6IW5biWF/5XkuC9BkRsMJ/ ueUShcQVa86BQo4c4hdx5mdnFs1lbPg82o8TuD5TeII2qVbakapGUo0IgAY2CuY= X-Google-Smtp-Source: AGHT+IFy0cMxJsF82yiNQcbJa9lSxuSDCs6OgxcKY5EqxFvjMZSr8FG4F668oRvYtnMpyYp5B4Dw5w== X-Received: by 2002:a17:907:6d17:b0:a8d:2d2e:90e6 with SMTP id a640c23a62f3a-a991c00fb55mr1305844266b.60.1728304800909; Mon, 07 Oct 2024 05:40:00 -0700 (PDT) Received: from localhost (host-87-21-212-62.retail.telecomitalia.it. [87.21.212.62]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a9933db9c5bsm360605066b.162.2024.10.07.05.40.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Oct 2024 05:40:00 -0700 (PDT) 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 , =?utf-8?q?Krzysztof_Wilczy=C5=84?= =?utf-8?q?ski?= , 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 v2 13/14] arm64: dts: Add DTS overlay for RP1 gpio line names Date: Mon, 7 Oct 2024 14:39:56 +0200 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-20241007_134004_020539_EB3B3400 X-CRM114-Status: GOOD ( 16.36 ) 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 This DT overlay contains the gpio-line-names property for RaspberryPi 5. It's intended to be loaded from userspace leveraging the RP1 driver interface through configfs, as follows: cat rpi-rp1-gpios-5-b.dtbo > /sys/kernel/config/rp1-cfg/gpio_set_names Signed-off-by: Andrea della Porta --- MAINTAINERS | 1 + arch/arm64/boot/dts/broadcom/Makefile | 3 +- .../boot/dts/broadcom/rpi-rp1-gpios-5-b.dtso | 62 +++++++++++++++++++ 3 files changed, 65 insertions(+), 1 deletion(-) create mode 100644 arch/arm64/boot/dts/broadcom/rpi-rp1-gpios-5-b.dtso diff --git a/MAINTAINERS b/MAINTAINERS index 032678fb2470..2b61d9a84dae 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -19384,6 +19384,7 @@ RASPBERRY PI RP1 PCI DRIVER M: Andrea della Porta S: Maintained F: arch/arm64/boot/dts/broadcom/rp1.dtso +F: arch/arm64/boot/dts/broadcom/rpi-rp1-gpios-5-b.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/Makefile b/arch/arm64/boot/dts/broadcom/Makefile index 92565e9781ad..d384937b0536 100644 --- a/arch/arm64/boot/dts/broadcom/Makefile +++ b/arch/arm64/boot/dts/broadcom/Makefile @@ -11,7 +11,8 @@ dtb-$(CONFIG_ARCH_BCM2835) += bcm2711-rpi-400.dtb \ bcm2837-rpi-3-b.dtb \ bcm2837-rpi-3-b-plus.dtb \ bcm2837-rpi-cm3-io3.dtb \ - bcm2837-rpi-zero-2-w.dtb + bcm2837-rpi-zero-2-w.dtb \ + rpi-rp1-gpios-5-b.dtbo subdir-y += bcmbca subdir-y += northstar2 diff --git a/arch/arm64/boot/dts/broadcom/rpi-rp1-gpios-5-b.dtso b/arch/arm64/boot/dts/broadcom/rpi-rp1-gpios-5-b.dtso new file mode 100644 index 000000000000..76a243a71644 --- /dev/null +++ b/arch/arm64/boot/dts/broadcom/rpi-rp1-gpios-5-b.dtso @@ -0,0 +1,62 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) + +/dts-v1/; +/plugin/; + +&rp1_gpio { + gpio-line-names = + "ID_SDA", // GPIO0 + "ID_SCL", // GPIO1 + "GPIO2", // GPIO2 + "GPIO3", // GPIO3 + "GPIO4", // GPIO4 + "GPIO5", // GPIO5 + "GPIO6", // GPIO6 + "GPIO7", // GPIO7 + "GPIO8", // GPIO8 + "GPIO9", // GPIO9 + "GPIO10", // GPIO10 + "GPIO11", // GPIO11 + "GPIO12", // GPIO12 + "GPIO13", // GPIO13 + "GPIO14", // GPIO14 + "GPIO15", // GPIO15 + "GPIO16", // GPIO16 + "GPIO17", // GPIO17 + "GPIO18", // GPIO18 + "GPIO19", // GPIO19 + "GPIO20", // GPIO20 + "GPIO21", // GPIO21 + "GPIO22", // GPIO22 + "GPIO23", // GPIO23 + "GPIO24", // GPIO24 + "GPIO25", // GPIO25 + "GPIO26", // GPIO26 + "GPIO27", // GPIO27 + "PCIE_RP1_WAKE", // GPIO28 + "FAN_TACH", // GPIO29 + "HOST_SDA", // GPIO30 + "HOST_SCL", // GPIO31 + "ETH_RST_N", // GPIO32 + "", // GPIO33 + "CD0_IO0_MICCLK", // GPIO34 + "CD0_IO0_MICDAT0", // GPIO35 + "RP1_PCIE_CLKREQ_N", // GPIO36 + "", // GPIO37 + "CD0_SDA", // GPIO38 + "CD0_SCL", // GPIO39 + "CD1_SDA", // GPIO40 + "CD1_SCL", // GPIO41 + "USB_VBUS_EN", // GPIO42 + "USB_OC_N", // GPIO43 + "RP1_STAT_LED", // GPIO44 + "FAN_PWM", // GPIO45 + "CD1_IO0_MICCLK", // GPIO46 + "2712_WAKE", // GPIO47 + "CD1_IO1_MICDAT1", // GPIO48 + "EN_MAX_USB_CUR", // GPIO49 + "", // GPIO50 + "", // GPIO51 + "", // GPIO52 + ""; // GPIO53 +};