From patchwork Wed Oct 16 07:21:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 835955 Received: from mail-lj1-f177.google.com (mail-lj1-f177.google.com [209.85.208.177]) (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 3F4A41B0F23 for ; Wed, 16 Oct 2024 07:21:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.177 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729063316; cv=none; b=fVzckUk6jU3IG9Djgz+nEQ2Y1beSK9R9FpyR0aQ8UJfQc7DemMGrfe+AwNELwQ8EkTAyZTMN8yu9GPty2dCOokwzMwyBxYRC5+gnnb2VNhz6xJCsZ03OOry+/9mg84rTyBP7GgR2vziw8g8bi40YWR/zNpuQFsB3leNW7xYZ84g= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729063316; c=relaxed/simple; bh=0QIlAzwJglmPm1PKLPu3ElTtcL1IXbK1SGt4tNlRCtg=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=lhmSWjqzlVQR99uLzkNYK6xnjgRZombbbeIA8BFTeoJ3hHTwxKl61aDN5ONZl05AofFNVzSjazEfgde7PT4S3NurXYdbD0QPU6mOD79vcPkuBcTkuP41qIkSn25nw382vir0AMpKRR73fWkR3MOB9ojBJ8yGgTDRwzpf+uN9DxE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=z79Dbv4o; arc=none smtp.client-ip=209.85.208.177 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="z79Dbv4o" Received: by mail-lj1-f177.google.com with SMTP id 38308e7fff4ca-2fb501492ccso26366731fa.2 for ; Wed, 16 Oct 2024 00:21:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1729063313; x=1729668113; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=u4WJ1/1ULwGjheFhcmjGC8lbqYgfBgCZ5+4creTm0rU=; b=z79Dbv4oGUaJAteopqGjtI1saZs3jaYX9+uzsMxcdVcVnabJV2lzTfuuvx4b1tPF/B kig/rZogYmPMxEiTUSQ+ucatmt52qE9Wl8EUjNoNejLZWY4R/7wfjTUqiHYohs8vkF8n uyAK5q+5LH/baBvmRLqCHZm6uavqJu6Yokw4MJHavhtrOFmoSewNvU8g1asR1BBgViDq whTCRPgi36WobHB6ixm7E5NzTkCrKoNAur7Y+YK0Pn1N6HpIFDD5mKuYzG1DESIRoqMy PJ96auzA0uky6XP2wYi7APz80qgjEhbQbX3h3M8is8YZEfAwk4IG1GKs36M5bVfXxIFy X2nw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729063313; x=1729668113; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=u4WJ1/1ULwGjheFhcmjGC8lbqYgfBgCZ5+4creTm0rU=; b=taN4UJmmAOmJpfUbrbzsCFoykVBgUxIBHB0DR13Cnx763UDKPOWjJqmLZvndWn+TIQ mp6XKjFqE9f0fBMcO1W4zAHkeUO6utz32mPlqwtLMlcXAsZgxA2dmFOOCUezhCTK/7V4 gnUz6qROwt0pSDoNQ9QNZpxtGiuGeKxK9bMkI/nZGD2GAdjRZ9mfVDz2cbOUyamMTWAk Rve5kwSVngDTbnS+ut0MLg+vw0EaxxToYen4kyVRl38AcfPx81QdJFy6mWvv24T6FREt Cflqn1adaLQ8KVGjb0KI37PXtpCTxKU+c/+ihaa/bg/EKCpi5EQrmum3Q4RySOI48fb6 7QzQ== X-Gm-Message-State: AOJu0YzdXzBZYKhIM+K0L2j3nqqdHAfSUypalwanf3mh6vN+jkryqHKm GCXYqZtyTM1a1yW2qT0I4dRrzELaJ4rA3XXBi4cE3AoXIwIV4VAZZ2KaFGPMeXdBeL50XxxncCd K X-Google-Smtp-Source: AGHT+IGGU+rpKfJzRyfRUFOBh0sRwXf3yysyyClh6KcxYyiBPmLS6UCJ7zvN79Kbu9pK9dYmaN2/lA== X-Received: by 2002:a05:651c:512:b0:2fb:2e27:5334 with SMTP id 38308e7fff4ca-2fb3271573bmr91471661fa.15.1729063313303; Wed, 16 Oct 2024 00:21:53 -0700 (PDT) Received: from lino.lan ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-2fb642a8fdesm1289761fa.5.2024.10.16.00.21.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Oct 2024 00:21:53 -0700 (PDT) From: Linus Walleij Subject: [PATCH 0/2] gpio: mmio: Support ngpios property Date: Wed, 16 Oct 2024 09:21:51 +0200 Message-Id: <20241016-gpio-ngpios-v1-0-f16cf154f715@linaro.org> Precedence: bulk X-Mailing-List: linux-gpio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAI9pD2cC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDIxNDA0Mz3fSCzHzdPBBZrGuQnJhiap5mkGhuaq4E1FFQlJqWWQE2LTq2thY AP6dqz10AAAA= To: Bartosz Golaszewski , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, Linus Walleij X-Mailer: b4 0.14.0 I thought this generic property was already supported by the generic MMIO bindings and code, but no. It's a pretty obvious usecase to just use some from 0..n of a MMIO GPIO bank, so add support for this. Signed-off-by: Linus Walleij Acked-by: Rob Herring (Arm) --- Linus Walleij (2): dt-bindings: gpio-mmio: Add ngpios property gpio: mmio: Parse ngpios property Documentation/devicetree/bindings/gpio/gpio-mmio.yaml | 13 ++++++++++++- drivers/gpio/gpio-mmio.c | 4 ++++ 2 files changed, 16 insertions(+), 1 deletion(-) --- base-commit: 9852d85ec9d492ebef56dc5f229416c925758edc change-id: 20241016-gpio-ngpios-0cad57f0a757 Best regards,