From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) (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 729C63451DB for ; Mon, 15 Dec 2025 19:34:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765827285; cv=none; b=qIKj8oCSxsyKO1gebg4knTCMZBRHYAguFu8/XEIskqlX6kEERdzRQ5YxsZoD/AcY2jyR/nLfUiYotZVF1Bb3SMIY9r/jU9hc2uJsvesJ3G+Te5WN+ouzpopXfKZ627KIa46p8+tDtTM1jdnXPef8C/jLwcU0BFcmbWSTEzK9LH0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765827285; c=relaxed/simple; bh=R9rr7JYAlu4ut1klPHqgSod04bJtytEccLyOYIIOoOE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=RGcs2OcnopocPsIbfmYsYpXYr6ABL3NmKvhpbTzYxJzDS/wx6oXjJvy9iO1nG+T+iF8k6NiqhFqg0coKn8Pgf99P/UJLIv+87B0kZeiwce+iaQHOAdEa9WZpiBz8cO7PL+9oFn6566Tm06MvnSkuNd3yCKkxgyd+LG1rFxukcNA= 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=hP33xbMo; arc=none smtp.client-ip=209.85.128.43 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="hP33xbMo" Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-477619f8ae5so29810535e9.3 for ; Mon, 15 Dec 2025 11:34:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1765827282; x=1766432082; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=xvsN36HEjkdkzaTc/2dKVIMfjzjS0gkF6l57K40dHSI=; b=hP33xbMogz6C+7KYeJ4qUY2y/7SUagcVMZnRLJK1gzaibawRUhT66dJ6GpTu/C796Y Rxo4076qBEOjdfB5DJwbxgrMHLQvvtufQvjED7i3vXS3Ksvg1ng44+lrUJVbEudf/kBC asxaA7eMuS4/vMz2Rbkq4R8UjtHx7dpKnTtWFSSn6GHDTl7JhQk+jpZItmTkQGmk+5Zv 7rWDGBBe9WY9AoQ6s8qJ0qKABXDHBzLctwmteSMzoMFTftdVivb8eH7mzSsvGQD/PO02 3412cSpQ4/Q7Hpop3uUoS4FFZ8vr0HVMsPL2GrnOC7bSp7W/FsyeAyIzC2bbDKEctIoa o+yg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1765827282; x=1766432082; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=xvsN36HEjkdkzaTc/2dKVIMfjzjS0gkF6l57K40dHSI=; b=r3aeTE3Mzs5Oh0563c8GQrywq4YWVc8kQEVY5B38bBxoHvS8tFqfnU7Q66efKhvawS pY26qSbk94inp9qHhNHiO09fD3kSkJp5QPt4WPM6j60pzH3IYmQqy0OeSAo3Su6qQ7Fd efm8mcnA8oxSJcoSM73xROxdqg0dPP5JUoWbQRhgt11T8V/7HCp69O1D1pDP4lcRJg50 HBLCcaUqIT+9+KkieY+vNaeWpsCq2pcV81dhJznipUwpfI/0CVmv/y3gKlZKiY5gq7Vq 1DzPLN641yY3MTQNLT+EjOORBIqt1CbabMGKhrx+nJicm7wGQyupdKHCLnUUFRkqvIAx ccVg== X-Gm-Message-State: AOJu0YwqBDhXbHgKScSy5s8a/rdF4tdAGlE8XYjCIiaUiWFtQsDu7drS LnUtx/BUDysG04mNC2wYf/T+7t4FTk7JTbtfp3U+apreiiMob6CxzIPJ X-Gm-Gg: AY/fxX5Zg+UNN02CyAUI48XLMMmvnJooIpK+/3dqMRpDJMtlnbgyZDUOYMuqgHrK3KK UkP3WUryi9/X99pb2fd1Ig0jSBGM206wjskGe2+98UGO0hQtUhVntvSPRu5Z3WghKm4PeNZVNf5 pWA9pU2R0qT17tx6aF8KarWGWrEWBqTMLaGJ1e8jeeIw8wNkDsRy+ymw3u72hy7WeXfkAiq6iz1 4hHxDrrvVJrHGwe2u1jzSvuWJIcVytY3hptfNy2NkcgxyVZILZ8cmV+swmwegT1BM2HsLq62eRH m3WC3VzgWMBtCrfwDnklte0II0GrzL4ayEaR+2fPMc03I1jQqBJlllIayLcoaJaOS8vwfdJOsNc RB7BVo8/eni6fqOT3GXsJSgRgHUpF1IL6iByN2XAzzTDxTgxnHbuRezMgzrgrz0PexJ92d8R4mP EW4C4GdWQVjmVy30ObDUJL7mkSQRftKkNp9/eV0uGa35JQhlAQpP9x734y72KCY2KN X-Google-Smtp-Source: AGHT+IHqMmTrPYwvoqeuDlvMpEDl0MXgKJmnwWH2vCQFY8SiusRi4m3bCAkknOzdZ7YPRYj3LhSsRw== X-Received: by 2002:a05:600c:3ba2:b0:477:97ca:b727 with SMTP id 5b1f17b1804b1-47a8f907d9emr138780595e9.19.1765827281485; Mon, 15 Dec 2025 11:34:41 -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-42fbc6e3392sm19493062f8f.13.2025.12.15.11.34.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Dec 2025 11:34:40 -0800 (PST) Date: Mon, 15 Dec 2025 19:34:40 +0000 From: Stafford Horne To: Conor Dooley Cc: LKML , Linux OpenRISC , Linus Walleij , Bartosz Golaszewski , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-gpio@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH 1/5] dt-bindings: Add compatible string opencores,gpio to gpio-mmio Message-ID: References: <20251214180158.3955285-1-shorne@gmail.com> <20251214180158.3955285-2-shorne@gmail.com> <20251215-skillet-perceive-2b564a29ed71@spud> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Mon, Dec 15, 2025 at 06:40:49PM +0000, Stafford Horne wrote: > On Mon, Dec 15, 2025 at 04:57:45PM +0000, Conor Dooley wrote: > > On Sun, Dec 14, 2025 at 06:01:41PM +0000, Stafford Horne wrote: > > > In FPGA Development boards with GPIOs we use the opencores gpio verilog > > > rtl. This is compatible with the gpio-mmio. Add the compatible string > > > to allow as below. > > > > > > Example: > > > > > > gpio0: gpio@91000000 { > > > compatible = "opencores,gpio", "brcm,bcm6345-gpio"; > > > > What you have done below does not permit this, it only permits > > opencores,gpio in isolation. > > pw-bot: changes-requested > > Understood, I was not familar with the new schema. I was trying to follow what > was seen in some other patches, now I see where I went wrong. I will fix this > and use the schema validation tools to verify. > > Thanks for pointing it out. I think the below is correct. But, would this be ok to put in one patch? I do: - Convert compatible from simple enum to oneOf. - Add items: for the openrisc,gpio compatiblity string. properties: compatible: - enum: - - brcm,bcm6345-gpio - - ni,169445-nand-gpio - - wd,mbl-gpio # Western Digital MyBook Live memory-mapped GPIO controller - - intel,ixp4xx-expansion-bus-mmio-gpio + oneOf: + - const: brcm,bcm6345-gpio + - const: ni,169445-nand-gpio + - const: wd,mbl-gpio # Western Digital MyBook Live memory-mapped GPIO controller + - const: intel,ixp4xx-expansion-bus-mmio-gpio + - items: + - enum: + - opencores,gpio + - const: brcm,bcm6345-gpio Thanks, -Stafford > > > reg = <0x91000000 0x1>, <0x91000001 0x1>; > > > reg-names = "dat", "dirout"; > > > gpio-controller; > > > #gpio-cells = <2>; > > > status = "okay"; > > > }; > > > > > > Link: https://opencores.org/projects/gpio > > > Signed-off-by: Stafford Horne > > > --- > > > Documentation/devicetree/bindings/gpio/gpio-mmio.yaml | 1 + > > > 1 file changed, 1 insertion(+) > > > > > > diff --git a/Documentation/devicetree/bindings/gpio/gpio-mmio.yaml b/Documentation/devicetree/bindings/gpio/gpio-mmio.yaml > > > index b4d55bf6a285..0490580df19e 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 > > > > > > -- > > > 2.51.0 > > > > >