Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp546510pxb; Fri, 15 Oct 2021 10:43:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJySMBzeSuv53e2MkAQ3qxyzFO8Dum1Nq47M5mYoVeiztB6MYsBo0BJxmLYtrkvLOeDnCM1J X-Received: by 2002:a17:906:9742:: with SMTP id o2mr8600685ejy.532.1634319823821; Fri, 15 Oct 2021 10:43:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634319823; cv=none; d=google.com; s=arc-20160816; b=obR4+8xMJD5fsT/JODTCf5AIAiEnTN2Ft0Nmz4ybwN60IE4Rdl8iNWI6r/hbSSUxYk +K6pPZhirswbpqLFIanDLhe5SdDlwj7hARHPdbShzygrYYUyGdKDGiQ3ptp3stPhgGSj MBYSqsVmmXxX2Hw0fP7CbI+Us6K4EiTCdlD0QOrZZaZ5MB7fxnCusSzUt89XSYaJBsNV LCmPbc9p5s5c3yNyfcDNATgNV7JtgUxib9WOnAR7zSme6KcDXPNDotlnHK6mpvnzxAEP pWxXkR8hxIIpYybFgkR4LjPjuEFQP4zJD0cAEE+BqIIke3xK7fTMtcKCO3B8trbygvUj eEzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:sender:dkim-signature; bh=jqcUpdGkPlLCSTn8tOP34V+Kz/Zhk4bMhTOT82uEivE=; b=hsh+JS9jv19++4Fk0+bOIkKeLV0NodpO5zM8jJBY03ma8+XAJRfnhLtdzTSfgQ7S8U EjzKaLYZOgZ7KCXJjHWNW8150QHLw8Rh+cofb/fGbhcHSAUnhp16jheIpmHvSjzhF4Vn 55E0ndWneWEOfcuNCwC0VdxnTJo1SAentL3nqNCc7cN7luzqxCqyruHLCVely57mZvgh xnQ0KfZjcvI++Qv0xEqdQODZl3PD/AXhAIAI7bybUgxqN2Tb+YEi4k2omgYKsa3dO5Vc s8rKbh1lu7fX8owkAJsrqS+OYn7/oBdjaJpBZfCT+8rCqXDr00+y1NkoCxH2PpoudfMp gmMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@monstr-eu.20210112.gappssmtp.com header.s=20210112 header.b=godJCkEv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=xilinx.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o3si8108704edr.617.2021.10.15.10.43.13; Fri, 15 Oct 2021 10:43:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@monstr-eu.20210112.gappssmtp.com header.s=20210112 header.b=godJCkEv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=xilinx.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237342AbhJOJ3f (ORCPT + 99 others); Fri, 15 Oct 2021 05:29:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42050 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237338AbhJOJ3c (ORCPT ); Fri, 15 Oct 2021 05:29:32 -0400 Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1BF12C061753 for ; Fri, 15 Oct 2021 02:27:26 -0700 (PDT) Received: by mail-ed1-x533.google.com with SMTP id g10so35648178edj.1 for ; Fri, 15 Oct 2021 02:27:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20210112.gappssmtp.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=jqcUpdGkPlLCSTn8tOP34V+Kz/Zhk4bMhTOT82uEivE=; b=godJCkEv5ZKTN1Jch1qRe/oy1BiwOSYOzQHeO11hViPuOEngpPKz1doHT3Y04ZB5HL su0SiD83VAUMOpPDr77PzRMYXGMiybbUPkKtKIFTAM00PjKXkJ7Ch16xLqO6XOqO57BN d8N1Ys7uBHVwu5LEOLM4jh8BPCxmf0vKGK/CaDjNUiGO2XsOil4AVBjWjuy070SVfKkC +c2wK7TkwUEAQNAlIodpU+sKtXT0i84L4u80gxN75JPRbWYArVIGY2DL5/M2iO4ukqhs Z0G63GMMYebE+ALYDapILXxXZ5tWDgc+QIQZDc2nbBaPZ/4eonoIJyVzWsgnyQgr4RZT mIwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=jqcUpdGkPlLCSTn8tOP34V+Kz/Zhk4bMhTOT82uEivE=; b=iqN1uVf/tmSVhlCjFbxXWvzeJdNY3TNhLi8IE59cVU15xbZESFD5nkO80rgmDxLx13 C92KropqSC508ewndqI2Xm4aVHfv+TgnwuqRVKeZvLjdkAvEuXRlN+qV9a0R0gsWH2u2 pVflzJkGvazbh6Qi921qbMdG51Dv0Y2XznLpeQ+nxIX3wPUoqfUdp/gUbmCt4W266U5U R+s8q1Z8EixKrlPPNQekRRuYdiucdJLSUvrT5veQlA0/mbiLVTJMEPirvW569CdTz9z9 8/+zzLL6ngO6zCs21NUyVfZ/nFt5Jsi9SPg+I8fjdO1vPE5DwqKYQm5nohw8JVnNY+S5 OAPw== X-Gm-Message-State: AOAM530kUInCbQzFl7htaZpp4ZxAvjnBy0oOjLWeay+5eLyIeOosoAoE yJRrO/i/7y5ZVTm1xbo2u3igMsccKvc7iQ== X-Received: by 2002:a05:6402:268f:: with SMTP id w15mr16920947edd.13.1634290044445; Fri, 15 Oct 2021 02:27:24 -0700 (PDT) Received: from localhost ([2a02:768:2307:40d6:f666:9af6:3fed:e53b]) by smtp.gmail.com with ESMTPSA id a1sm4195840edu.43.2021.10.15.02.27.24 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 15 Oct 2021 02:27:24 -0700 (PDT) Sender: Michal Simek From: Michal Simek To: linux-kernel@vger.kernel.org, monstr@monstr.eu, michal.simek@xilinx.com, git@xilinx.com Cc: Bartosz Golaszewski , Linus Walleij , Rob Herring , Shubhrajyoti Datta , Srinivas Neeli , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org Subject: [PATCH] dt-bindings: gpio: zynq: Describe gpio-line-names Date: Fri, 15 Oct 2021 11:27:23 +0200 Message-Id: <4b9db94cdd8ca106feee53f76fab2a23721f7d2a.1634290039.git.michal.simek@xilinx.com> X-Mailer: git-send-email 2.33.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Number of lines depends on compatible string from 58 to 174. That's why it is checked based on it. Signed-off-by: Michal Simek --- .../devicetree/bindings/gpio/gpio-zynq.yaml | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/Documentation/devicetree/bindings/gpio/gpio-zynq.yaml b/Documentation/devicetree/bindings/gpio/gpio-zynq.yaml index da95b951c23e..29c27eadbac8 100644 --- a/Documentation/devicetree/bindings/gpio/gpio-zynq.yaml +++ b/Documentation/devicetree/bindings/gpio/gpio-zynq.yaml @@ -28,6 +28,11 @@ properties: gpio-controller: true + gpio-line-names: + description: strings describing the names of each gpio line + minItems: 58 + maxItems: 174 + interrupt-controller: true "#interrupt-cells": @@ -39,6 +44,51 @@ properties: power-domains: maxItems: 1 +allOf: + - if: + properties: + compatible: + enum: + - xlnx,zynqmp-gpio-1.0 + then: + properties: + gpio-line-names: + minItems: 174 + maxItems: 174 + + - if: + properties: + compatible: + enum: + - xlnx,zynq-gpio-1.0 + then: + properties: + gpio-line-names: + minItems: 118 + maxItems: 118 + + - if: + properties: + compatible: + enum: + - xlnx,versal-gpio-1.0 + then: + properties: + gpio-line-names: + minItems: 58 + maxItems: 58 + + - if: + properties: + compatible: + enum: + - xlnx,pmc-gpio-1.0 + then: + properties: + gpio-line-names: + minItems: 116 + maxItems: 116 + required: - compatible - reg -- 2.33.1