From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com [209.85.221.53]) (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 47D8D35BDA8 for ; Fri, 9 Jan 2026 13:44:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767966273; cv=none; b=SwAFE0KxnWa173jV+yQz3zvehHVwe7octyPiVuLeUMOLFN2EGbbgAj6dOHGs8dlOLqlNlV/TWMk7WjoKjpZXqGP3qR2MH3VwRoLaPhugB1FbDGyUQEsrPYSOZ8Lg1121lPCIvhK9uNGddOL5UoP1RecACXyc0TV4nx7XP1rvCMo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767966273; c=relaxed/simple; bh=1LQ7pgQADLkv3Q2JfJ0YKNTNCFMPBPWWQX+7eb5Jfpc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ngaSDNKRISl2kQYtmc5ud8KaTZI4oiI10Egh7iQRsR+R6Xx205+pB0Jwkec91AKMD6Eh+XX2QcpPSpOHCtnczryxyBoVYeHSgh0DmDpNnDEhjEQSG4vKWxzpKMtLLmwBzpB6d+iA2x1p+O3oKGr9ctOi9wedNjPQ6AQjgj88xag= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=T22xqPjo; arc=none smtp.client-ip=209.85.221.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="T22xqPjo" Received: by mail-wr1-f53.google.com with SMTP id ffacd0b85a97d-42fbc305914so2899793f8f.0 for ; Fri, 09 Jan 2026 05:44:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1767966269; x=1768571069; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=SvvQmiFOUMr/XdsMeV6yI6szLxAkwyU8Gztse0HmU4Y=; b=T22xqPjoUng3R0/lbVqftLHXYgAkCfQn9SJwHiC5fAy1/qCs7D450jYCl3UW1zjeHy RZ9JTxonquhy3i+wQZJQ9/ndBGBuS2jSRINlJLj5Bj/2RkrfVcqs31laj+PDzfnESoBq FUs3irdpEZ4dSCGtLxTfOGfrasm6ICBTK9o7C8kD9g8qSYj3bdFb3yf0xJWYvdDjS3ao IhZMadggx/q87TczZtxQIHGcBDZ89GR+b9y3zLCTbYZSJHDIeBqTCES3yLa+ISRS0waH 47Vf/ThVhpohJLwOsNO+HXGHZ4wPv+vP50ahkaufIw1ZwpHpuC3nk/RViYvjj6KSfm9k XzGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767966269; x=1768571069; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=SvvQmiFOUMr/XdsMeV6yI6szLxAkwyU8Gztse0HmU4Y=; b=l2ZtXjNlVYP842jjjwsoS4wL2HEJTt+v+H3hh9aO2lr5ASfJg9rWoWn28q9ELxpWYn P28FF3rEGrKzkvw+6wACRTqXMgtGYKgE2CCDox2BacVaIds9Jw5JMfyNNk18Tonvmxsq ElCXUdRuOHtgPyNi3rDT9TjvaUv1P+KLi00JZ0pMqxnZ2LiSmHzOAkV/O6ZEdDwtfkLu WM7HXl/S9prQABiLpvjldY4mogQsS/zbav6YJxtZrDU2P4sR/eWgesVTG0KuD/6ed9Ag 3tbaVc7A4qgHjR3jYoYJqFqjsuLR83kQkOQ9HeBIkDJJsVcRDCozLkg00SFif59/eWXh oJ6g== X-Forwarded-Encrypted: i=1; AJvYcCVvRw7eeQixAyZw4xhU29hVB14dXxfGh86sw60KGysy+DfGXbcNSriGUMCvpov6k+xBiA55xX/QFWoc@vger.kernel.org X-Gm-Message-State: AOJu0Ywql6xJ12fE5l0aucWgl3eS9evXVFtvx/MqTo5AmlOvjI20gJjT RP94EkSsD7/KI1342FwPZeM7fgsVx1Eoy+9wvfCkdVZsjUGXShC5J3yq X-Gm-Gg: AY/fxX4iUJRR1G7YLvlwe4CGOHYZaiPPVtSbwVMJk4VVXUrT60nUTRMA1dtAJBrncvB PNiYzUOqa/z8Qu9tAX4bg+oAhXHzYVBlky4mSxD1FKEu7UTmJj/SSpIx3yPIv9RrJe5CZedaSKy Q7XHGqDV44CI1uy7n+CfR9h6JzMmUxhytp0UPvNVaGAZeR1+6RUMG0Q3ntRjSG1HsId9TGZFeQN PQ8FAosMn+3WlGXLkYXGLySgci0VWLZAQUUFnefk4g0jRcyTORQnoFFgYW3wKFjJIpcCwqM9+hL DJYi2OOKgBy2hjtdiFF1PH7EzXkjm1KMt+xO2Jn8LHP/MVNHEob2hgPEAKmx25zS2Fy04HryGf0 YA+FRZqLYuxexBqgBVpKTXLiK9sAOFNhXiKuwI3J1scNTQmTfZVApMXG1AuElsSwGyjTY85CupF b+iu4kICFo0tbfP0PUWN36L+NwiR+muEpRP2M5ANpMYEpMQM7DhDBjpUj1wsoAWv8UPEOp0Fgm8 b8= X-Google-Smtp-Source: AGHT+IEcyqPvQXXgSb8upUybhhoHWlS++tR42ZMn0J3rAkpHIq7i7iKiZeRqR+4mcCGlOkEYTV7yLA== X-Received: by 2002:a05:6000:420f:b0:430:fc0f:8f9f with SMTP id ffacd0b85a97d-432c37982f5mr11382930f8f.37.1767966268426; Fri, 09 Jan 2026 05:44:28 -0800 (PST) Received: from localhost (brnt-04-b2-v4wan-170138-cust2432.vm7.cable.virginm.net. [94.175.9.129]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-432bd5fe83bsm22896047f8f.38.2026.01.09.05.44.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Jan 2026 05:44:27 -0800 (PST) From: Stafford Horne To: LKML Cc: Linux OpenRISC , Stafford Horne , Linus Walleij , Bartosz Golaszewski , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-gpio@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v3 2/6] dt-bindings: gpio-mmio: Add opencores GPIO Date: Fri, 9 Jan 2026 13:43:53 +0000 Message-ID: <20260109134409.2153333-3-shorne@gmail.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260109134409.2153333-1-shorne@gmail.com> References: <20260109134409.2153333-1-shorne@gmail.com> Precedence: bulk X-Mailing-List: linux-gpio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Add a device tree binding for the opencores GPIO controller. On FPGA Development boards with GPIOs the OpenRISC architecture uses the opencores gpio verilog rtl which is compatible with the MMIO GPIO driver. Link: https://opencores.org/projects/gpio Signed-off-by: Stafford Horne --- Since v2: - Fixup patch to simply add opencores,gpio and add an example. Since v1: - Fix schema to actually match the example. Documentation/devicetree/bindings/gpio/gpio-mmio.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Documentation/devicetree/bindings/gpio/gpio-mmio.yaml b/Documentation/devicetree/bindings/gpio/gpio-mmio.yaml index ee5d5d25ae82..d44edc181e0a 100644 --- a/Documentation/devicetree/bindings/gpio/gpio-mmio.yaml +++ b/Documentation/devicetree/bindings/gpio/gpio-mmio.yaml @@ -23,6 +23,7 @@ properties: - ni,169445-nand-gpio - wd,mbl-gpio # Western Digital MyBook Live memory-mapped GPIO controller - intel,ixp4xx-expansion-bus-mmio-gpio + - opencores,gpio big-endian: true @@ -160,3 +161,11 @@ examples: intel,ixp4xx-eb-write-enable = <1>; }; }; + + gpio@91000000 { + compatible = "opencores,gpio"; + reg = <0x91000000 0x1>, <0x91000001 0x1>; + reg-names = "dat", "dirout"; + gpio-controller; + #gpio-cells = <2>; + }; -- 2.51.0