Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp2995024iob; Mon, 16 May 2022 10:37:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy4B+0Qxm3yA5pi3mh6dDEBB0+NysfsUZoguStf4NZZ+bC/meI9p/9rAyoxABXUGtUVIWe0 X-Received: by 2002:a17:902:d2c9:b0:15e:b28d:8ad2 with SMTP id n9-20020a170902d2c900b0015eb28d8ad2mr18339905plc.94.1652722621386; Mon, 16 May 2022 10:37:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652722621; cv=none; d=google.com; s=arc-20160816; b=CfZz1n6LkTTMY08Ji3fVfVFWN/g+jPq/Mx4PvcNAaxWnJS952MHNn/fXs3RNoNpSaT 3SsSsT78622JJe7gO+NNC/leaX48a4rS9ttVotBF3qwqi03pcejpSG5pEaZPUyvG21qX eLJCHaJ9sLf3SOXKi7U6+CHuEASNY97OTob+U2EAgB2GknDI1/+ca3XXVtXQdSDB533Q L+3hNrUPIXofw34k8G1IfbfcKO9BP0jWYOwl7wvfSYjuPj9Oxv44ZqYxitmY/d+eHdVV clVDoMK+wJO4hchs83+ornhqKhwb8ST/8wCNyPkXCVsuCQA198yGGoUSjdGI5Iplj+Cw +Z4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=F/0hxZ3FdeGCwd9gwk7c1gJBeXuAJpYrwcp/nOSul0s=; b=X+aFNrFMhfD9YFkmH1k/MDsA8rEkwLR3VrxoI4ZhGQtwudnl9v/SxeAn2TEtRSLLhB icQE6fjjI5SHZNjLka8V2F88erCexNltklRYNipfa/T4S1pIx7xutcs5FXIvroRYEO2v l36c/cz0q94rgK7qg3y8CrvO9CToqevHdIzvcrRNQ22CGDkZzgqG2MDneRYJUCotXNd7 JBNzgqG61kf+Z5ShE21IS+f3p2Z1H0tKiXg96W4cH961PJaDtBJeAwQXBkTB+/vG5tTB KApkuxT6K6K/yUSamgrTrSgk+79I14QV5qy+12voU8uMOrQNDxifNWQrsQjW3CPbTgrJ nxbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@monstr-eu.20210112.gappssmtp.com header.s=20210112 header.b=LAKUAusd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b15-20020a63d30f000000b003c5eccfb916si12334832pgg.435.2022.05.16.10.36.38; Mon, 16 May 2022 10:37:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@monstr-eu.20210112.gappssmtp.com header.s=20210112 header.b=LAKUAusd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233556AbiEPOxK (ORCPT + 99 others); Mon, 16 May 2022 10:53:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50116 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236123AbiEPOxH (ORCPT ); Mon, 16 May 2022 10:53:07 -0400 Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 402AC3207A for ; Mon, 16 May 2022 07:53:06 -0700 (PDT) Received: by mail-wr1-x42e.google.com with SMTP id j24so5637155wrb.1 for ; Mon, 16 May 2022 07:53:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=F/0hxZ3FdeGCwd9gwk7c1gJBeXuAJpYrwcp/nOSul0s=; b=LAKUAusdr95I4Vg37q15yh+zxPz/mCMHcqIG3FGhYvOJJr80PI/jPAJTLRDLOVAwEV PV4XzPXvu+Is+eVchVPMYv1upVAXGgJQ2AA9Sei3S+FZaAJMQ2ek/2DrmVa6sZhDm3CI BkPoc2DhJ8JoISCODmyFcF7q/Z0BtJb9thUvTSNmJGYKvpiymOjoVrdVMY9TMSNnIrIB fcU62gKkBcwmEo5SxIuhZCdt/H4IXjjf/DPHv/hT7qxCi1bSA2Qn+XjqgRqhW2EjAWQw NSBN3Q5ettLX7uUS8YVChOJrEUbA/9XOwOOTGDhBOap9wNxl8qv2tsghZfwGs+AEC3di SrYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=F/0hxZ3FdeGCwd9gwk7c1gJBeXuAJpYrwcp/nOSul0s=; b=1yqWO/qCGmk3CsHToLtCHtEagCLcOyTUZ595kXLSMSaqyE7cRFbPmYW4Nb6fKjqW89 m2QNPMwqxj4kYsbTgHcjDGQtuX+YkrSRr5/+GnGrRjrYpp36zoioarD9ZK8EnMcm3SMq ZD3QNBj4iL/7WQTAplEDgvo9+7j7ukGAxlF0SRlC+kAQjmmadXTwH4pKvO1CD45omkTR lPxR/k7AlGwIgVP8S3rPN+dtQeQM7Vf5otHnU1xFx+el5gDlu0/dPindP3IHraxDp3/l IWB6sajD23nLhNc6X5pLHIGNDc5k7xR09gYGQC3R8GB2uvk62jypN1fVo9Ebp/FwKDni 1QWw== X-Gm-Message-State: AOAM530WzWVDZA8ZGloJkrIuxp7736ILDhkspFLvgm2rX313LW3B9Od6 NOa5L+ghhHLM8IEUF2RzPNBjpabEvEDTXkajcpWjbZKefeU= X-Received: by 2002:adf:d1cf:0:b0:20c:6030:d6f0 with SMTP id b15-20020adfd1cf000000b0020c6030d6f0mr14866687wrd.298.1652712784587; Mon, 16 May 2022 07:53:04 -0700 (PDT) MIME-Version: 1.0 References: <4b9db94cdd8ca106feee53f76fab2a23721f7d2a.1634290039.git.michal.simek@xilinx.com> In-Reply-To: <4b9db94cdd8ca106feee53f76fab2a23721f7d2a.1634290039.git.michal.simek@xilinx.com> From: Michal Simek Date: Mon, 16 May 2022 16:52:53 +0200 Message-ID: Subject: Re: [PATCH] dt-bindings: gpio: zynq: Describe gpio-line-names To: LKML , Michal Simek , git Cc: Bartosz Golaszewski , Linus Walleij , Rob Herring , Shubhrajyoti Datta , Srinivas Neeli , DTML , linux-arm , "open list:GPIO SUBSYSTEM" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org p=C3=A1 15. 10. 2021 v 11:27 odes=C3=ADlatel Michal Simek napsal: > > 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/Docu= mentation/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 > Applied. M --=20 Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91 w: www.monstr.eu p: +42-0-721842854 Maintainer of Linux kernel - Xilinx Microblaze Maintainer of Linux kernel - Xilinx Zynq ARM and ZynqMP ARM64 SoCs U-Boot custodian - Xilinx Microblaze/Zynq/ZynqMP/Versal SoCs