From patchwork Thu Oct 5 08:36:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 148742 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2016:b0:403:3b70:6f57 with SMTP id fe22csp336772vqb; Thu, 5 Oct 2023 07:28:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IET7taJJhJnEFhNJiwBT3c+ILFQGF+DAcfHW7U0HL44V8MDLL8WV8DSgIY+t5EnvPk9Ipac X-Received: by 2002:a05:6a00:179a:b0:68e:4587:3da8 with SMTP id s26-20020a056a00179a00b0068e45873da8mr6706376pfg.21.1696516102002; Thu, 05 Oct 2023 07:28:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696516101; cv=none; d=google.com; s=arc-20160816; b=FA2uND7isulb6ax6h2u8sG6g/wjlJ1ywrQZUVdObRtbLd+O2T0bIU4wNu9DQP3ZGHa pe+6e3rKVgVNua35B43TDyiiEd4+NEC1dqFqWs7K8kq7o9gKkNJ5ndqGRHbe0dwSxwZs vgp9sI5QswWv9bsbmF6OaPU+O643zOLLe1sht3k5yybP/jEveEgPtH/C6hI8MmbQJPHi j4vYShXWsyTSD2tCiRgyxHa3DLazh13WjxQUykEs+hGQop8UsXiVlYOGwn9aGqQHfTO+ MDpWcpT1EGuX1+Gkct6vxQsml15JvPPcOSLpJXAEW7IxEsuWQ06KP4wfGwM9XLpWte4E iUkA== 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:dkim-signature; bh=b8UTzhAdpyBQxIe5FDho0E0NnDq18CgBro9Bv3TILXw=; fh=KMASDkAxmAeyKmyAaAszU4VOn6aBPm+uNxyAYiYcGsM=; b=gT+zTlsnnrrbaQ/0OOE0UITr0Zbgko3wxQfSbuHr++MvTEZlJyPccSK4Vjc//LIDv0 C4SCwczoO6vl7iBkiQa/9tigi01EA+nglu2HQcKGULwesIi8Tx8vuhEgysBcOZSVpVCC 2KzCYifCogytoX/CyYRgiyD/G75WjVh/4Ju2DBAIk1y5UqMoJj/QAaJeienyKSAss/qn APhNaE9+7BkqiFDMnzaHCYZwvwaOppIw/Gc72i8S3X1Jx58AakGBUH5mmUdmsi5zFX1t GRcXlZarsixGs+aY2By4+uSuV9EBVFkbc5kx5eFnrmc+NKjeAuACxm2IopL69zotZsKy qPKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qNOw5QDq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id s140-20020a632c92000000b0056533c00e83si1605704pgs.413.2023.10.05.07.28.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 07:28:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qNOw5QDq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 3D100808BE59; Thu, 5 Oct 2023 07:27:50 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233331AbjJEO0C (ORCPT + 19 others); Thu, 5 Oct 2023 10:26:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36298 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232454AbjJEOYG (ORCPT ); Thu, 5 Oct 2023 10:24:06 -0400 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D5B809008 for ; Thu, 5 Oct 2023 01:36:55 -0700 (PDT) Received: by mail-ej1-x62a.google.com with SMTP id a640c23a62f3a-9ad8a822508so137778666b.0 for ; Thu, 05 Oct 2023 01:36:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1696495014; x=1697099814; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=b8UTzhAdpyBQxIe5FDho0E0NnDq18CgBro9Bv3TILXw=; b=qNOw5QDqz1U7dhoRI5x1OY260qBxXhNrZq/lh/fw/x31GjTF/jvl0uZW8yoZM3VP8p QwMsR7CIXTjRAsnLzkUraqwaiKKyiDBm8AiA7PRqmAhSbPGEYWuQ7hT2EPkhINP2GeFl tmZqon3Sxw+793p0kZk1YS4iKcO5dAWvVBkPo29NfWRjhpttlTj8jxJ7HcAc8KufHAFS ZZ6Rwf/7eww6mgQAHXXcdAZYQnd18Enz/+o5NF51s10SvPas17wd5TtLPWFXAKVNGPrJ SqpLGmlQbm3sIN52B44CJHbfURII70opAUYFme5nVej9+T1FKhx0bKzSYB0et52LkDvm JesQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696495014; x=1697099814; 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=b8UTzhAdpyBQxIe5FDho0E0NnDq18CgBro9Bv3TILXw=; b=HSw6vVaono/1hZ+FY9vl+24FF0pji4DFFEgdWtJ6wyOmO9QU85DooRG4A6zN2NKPQp e+e3m7MMelhSSSkVFJx0NvfzmTDhLbjI00i6c1azIspZKxaufGrnBdPdqICnbSHc5PZe oE1DJzyFicUgkuEtLlbBiPs1ByYZGfYjt92k5wHyxDRPCR1EWXxukbJLEN5uDFR3x/Gx 8nc+QXXzoKfSiUwaUh5R6ipnE93GqGljoBhu3Wxw7I8vDf9zTcd/oyYzRQ1Zni6WMnOR 5tV9RlQnBOrWmxd6BQ0HVrcKMLDkiK/xRJ5FYlD1kFDK8GHsSLfh3kibBP8h1ybvbXxy mOCQ== X-Gm-Message-State: AOJu0Yy8LxVdObpDi1XZ3y6mthSnxb2shLbHC57c2Q+1dkqXrqp39Lli U65xx71v0ZRRxCNPBKXU4xtXgg== X-Received: by 2002:a17:906:2da:b0:9b2:ccd8:2d2b with SMTP id 26-20020a17090602da00b009b2ccd82d2bmr4134279ejk.77.1696495014255; Thu, 05 Oct 2023 01:36:54 -0700 (PDT) Received: from krzk-bin.. (5-157-101-10.dyn.eolo.it. [5.157.101.10]) by smtp.gmail.com with ESMTPSA id i8-20020a17090671c800b009a198078c53sm780677ejk.214.2023.10.05.01.36.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 01:36:53 -0700 (PDT) From: Krzysztof Kozlowski To: Cosmin Tanislav , Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH] dt-bindings: iio: add missing reset-gpios constrain Date: Thu, 5 Oct 2023 10:36:50 +0200 Message-Id: <20231005083650.92222-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Thu, 05 Oct 2023 07:27:50 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778926068137786697 X-GMAIL-MSGID: 1778926068137786697 The Documentation/devicetree/bindings/gpio/gpio-consumer-common.yaml schema does not enforce number of reset GPIOs, thus each device binding must do it. Signed-off-by: Krzysztof Kozlowski Acked-by: Conor Dooley --- Documentation/devicetree/bindings/iio/addac/adi,ad74115.yaml | 3 ++- Documentation/devicetree/bindings/iio/dac/adi,ad5758.yaml | 3 ++- Documentation/devicetree/bindings/iio/health/ti,afe4403.yaml | 3 ++- Documentation/devicetree/bindings/iio/health/ti,afe4404.yaml | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/iio/addac/adi,ad74115.yaml b/Documentation/devicetree/bindings/iio/addac/adi,ad74115.yaml index 2594fa192f93..2a04906531fb 100644 --- a/Documentation/devicetree/bindings/iio/addac/adi,ad74115.yaml +++ b/Documentation/devicetree/bindings/iio/addac/adi,ad74115.yaml @@ -32,7 +32,8 @@ properties: spi-cpol: true - reset-gpios: true + reset-gpios: + maxItems: 1 interrupts: minItems: 1 diff --git a/Documentation/devicetree/bindings/iio/dac/adi,ad5758.yaml b/Documentation/devicetree/bindings/iio/dac/adi,ad5758.yaml index 4e508bfcc9d8..5121685337b5 100644 --- a/Documentation/devicetree/bindings/iio/dac/adi,ad5758.yaml +++ b/Documentation/devicetree/bindings/iio/dac/adi,ad5758.yaml @@ -78,7 +78,8 @@ properties: - const: -1000 - const: 22000 - reset-gpios: true + reset-gpios: + maxItems: 1 adi,dc-dc-ilim-microamp: enum: [150000, 200000, 250000, 300000, 350000, 400000] diff --git a/Documentation/devicetree/bindings/iio/health/ti,afe4403.yaml b/Documentation/devicetree/bindings/iio/health/ti,afe4403.yaml index b9b5beac33b2..5b6cde86b5a5 100644 --- a/Documentation/devicetree/bindings/iio/health/ti,afe4403.yaml +++ b/Documentation/devicetree/bindings/iio/health/ti,afe4403.yaml @@ -23,7 +23,8 @@ properties: maxItems: 1 description: Connected to ADC_RDY pin. - reset-gpios: true + reset-gpios: + maxItems: 1 required: - compatible diff --git a/Documentation/devicetree/bindings/iio/health/ti,afe4404.yaml b/Documentation/devicetree/bindings/iio/health/ti,afe4404.yaml index 2958c4ca75b4..167d10bd60af 100644 --- a/Documentation/devicetree/bindings/iio/health/ti,afe4404.yaml +++ b/Documentation/devicetree/bindings/iio/health/ti,afe4404.yaml @@ -23,7 +23,8 @@ properties: maxItems: 1 description: Connected to ADC_RDY pin. - reset-gpios: true + reset-gpios: + maxItems: 1 additionalProperties: false