From patchwork Wed Jul 12 07:45:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 702485 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CDED1EB64D9 for ; Wed, 12 Jul 2023 07:46:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230402AbjGLHqB (ORCPT ); Wed, 12 Jul 2023 03:46:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230308AbjGLHqA (ORCPT ); Wed, 12 Jul 2023 03:46:00 -0400 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B15721739 for ; Wed, 12 Jul 2023 00:45:58 -0700 (PDT) Received: by mail-lf1-x131.google.com with SMTP id 2adb3069b0e04-4fa16c6a85cso10351896e87.3 for ; Wed, 12 Jul 2023 00:45:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1689147957; x=1691739957; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=pebAsfz/DVvDsj5RbKcteoVoBJD27FSwU5r3Wri7LCk=; b=HL6YR07d/vOgm0OMRsUstV38BpDXG0hMCdU9gCh0P3Yyz4eLQA85StITyqM9W4tcM8 nO46ikXlottN694F81ETrKz7ojBsCP2xeSSgKg4XAo5OBnH0VxyjzkMmvz1VXgiVhcaZ 0gGbXBlmZVwlyvcUZEDM3QlYfI6IgM9n+/GqzWvJjWDEs5hVVf9bcUg99oGPdST/aI6X U6o4vVRfWaFZpn/qCiUAEV8HkWhxuELCJAepAzw/mxDfmTO4pfpHKylApcbnMsR9yvcJ OEIIevT7vjxTbT6YyL2ldHfj/kxUzqGn8rnNmYKtyJpypZ8BEjFz7RSoASE/OWnjTh+F 9zfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689147957; x=1691739957; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=pebAsfz/DVvDsj5RbKcteoVoBJD27FSwU5r3Wri7LCk=; b=WJWp03O1KutOdsXhtvLOnrI33E6ZdN2/r/hqSm+39tXY58GwkNfLjBvt61z/XT5vik UuELrXbVVhigYwkqPdGoWyzcfTQbVZESmreIo16SiGQwIjah/+NVAzKqqyw8Tl5BfSYw PgtmkIP30ANFVGdur6FAGKgC6rtHrbQwV95bO/DBBjq4Z/Gn+JoPNXSt8lI8B8V4+gFF YHh721w+rMVntEmrZnrONuDoS1wm/HkJXSqc5iph7B0RfgUW/wF1OSfONK2IbWAfp9W2 /Fru3IaGU9gm3TRan8LTan2vXiQKZZFXzUvXb1+YRQPxPBWthpLhkcmAusIxfCqyHbRT 8tSA== X-Gm-Message-State: ABy/qLYP31FGl0vcfNFYA0OZX6d3ve17uLuod1tWLDW8v0LABzzFncMY KRPgHqvNo02OXVbU51LlQEl+NA== X-Google-Smtp-Source: APBJJlGWq3lc5m7abWB+8YEqLMEFLf3rl5U2j6t71fkG4aRelp0lwjWFC5YDxhyyi9mcuDlTUIL5LA== X-Received: by 2002:a05:6512:3da6:b0:4f9:5933:8eea with SMTP id k38-20020a0565123da600b004f959338eeamr18436879lfv.3.1689147956959; Wed, 12 Jul 2023 00:45:56 -0700 (PDT) Received: from krzk-bin.. ([178.197.223.104]) by smtp.gmail.com with ESMTPSA id b22-20020aa7dc16000000b0051bed21a635sm2352706edu.74.2023.07.12.00.45.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jul 2023 00:45:56 -0700 (PDT) From: Krzysztof Kozlowski To: Hoan Tran , Serge Semin , Linus Walleij , Bartosz Golaszewski , Andy Shevchenko , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH] dt-bindings: gpio: snps,dw-apb: allow gpio-line-names Date: Wed, 12 Jul 2023 09:45:53 +0200 Message-Id: <20230712074553.35907-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Allow the GPIO controller subnode to define GPIO names. Already used in at least on DTS: bitmain/bm1880-sophon-edge.dtb: gpio@50027000: gpio-controller@0: 'gpio-line-names' does not match any of the regexes: 'pinctrl-[0-9]+' Signed-off-by: Krzysztof Kozlowski Acked-by: Rob Herring --- Documentation/devicetree/bindings/gpio/snps,dw-apb-gpio.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/gpio/snps,dw-apb-gpio.yaml b/Documentation/devicetree/bindings/gpio/snps,dw-apb-gpio.yaml index b391cc1b4590..209f03bba0a7 100644 --- a/Documentation/devicetree/bindings/gpio/snps,dw-apb-gpio.yaml +++ b/Documentation/devicetree/bindings/gpio/snps,dw-apb-gpio.yaml @@ -61,6 +61,10 @@ patternProperties: '#gpio-cells': const: 2 + gpio-line-names: + minItems: 1 + maxItems: 32 + ngpios: default: 32 minimum: 1