Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp1992173pxv; Sat, 24 Jul 2021 01:45:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJywZYUZ8LWOgN5Va+ffJBbJ3K7TxM0MgokNlAEgwteTASrJXs4nwoiCF2ywg88GtErpoeK3 X-Received: by 2002:a05:6638:379c:: with SMTP id w28mr7519967jal.23.1627116314945; Sat, 24 Jul 2021 01:45:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627116314; cv=none; d=google.com; s=arc-20160816; b=h3sfnMR4XnvrdAmbO3DNh6v5gKO1jjEa0zt1JWuidHk+dOjt8k6Sq7lGxxZoqaylki kdK2w3Okn+wwhI5oyEHwTuQUczcl/lIymW+ScRyI5ZK8oU7BZOj/VqE4juWARwQmLpvX k1zXPzZ4QS5Y5jWkq/ml28zzGLIFrBKBOqxa7OG6pLpe42gxieIAyo3pD9aFZBePnO9x vye/DUAK7ouIUdgHQpZW96OXqSa+SJf8E7ZEA0Htmo2yqVZwxgL3zaevnRaQ8p6ByRkW oVklipWpuAtzzC3jYR9P8wdRmsww5oJKM5asyCaJbSmPBb9D/zVEZtRJC7adJYe9xyLk NZGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=TGPOpleDXliTkoQ0i4f8mYDLsl+UuFsT/0AxMpLdkXI=; b=vB24sqNv4M74Pp8m2Qece0STUDhOTiLl8+53Gt5d6QtWDhVV+kByNR8UaXQqF87J2j LeHKGSd1cb3JeRdJH31t+NrwRkTW7WGpHrPj5v42vdKJ/pvR2kh+UFBNcgAoTqJl8HO4 tv6xesXdPK/cnHnNH5loP+BB0ri21nNU0aISFqNh9XJVie/rd8LVnNbgfuvwM6BU68vt bezG4zo3aMF0LcacqkGDpKwv/29hj36b00NrTyUPwue9l78VMxrBj7jclIqHTOdcfjiF IahjV8taQjPHxhyDYqK6k+4FHsglh1ToZFIq2FewMefOKcgLuv+M+HxnNe3F3bt46/pp dL7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=c69gNAtm; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b15si32435808ilj.38.2021.07.24.01.44.37; Sat, 24 Jul 2021 01:45:14 -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=@kernel.org header.s=k20201202 header.b=c69gNAtm; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234584AbhGXIBT (ORCPT + 99 others); Sat, 24 Jul 2021 04:01:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:59868 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234232AbhGXIBS (ORCPT ); Sat, 24 Jul 2021 04:01:18 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 29E9660E91; Sat, 24 Jul 2021 08:41:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1627116111; bh=moILCmtiV0p2uGFG391GTWj+y6SvAuyzOjgR3BA13Ls=; h=From:To:Cc:Subject:Date:From; b=c69gNAtmmqAF0//TDI1Tw3gBd9UJc6N6MXEGWjIRDGxDDZC2vZ23BtTBOjCn4fhsF orSTIDGF/RjpCdcpxEZuH0gfZFquvbNIb3mj59Eljx3SSh56gdlkqLowXvEFeYp3AK SitDwgT4GfGqEbrn8L71k2tVNQyeYZzF7JF6RMo9wz5PkRi+uENSXoW9vC4o2T/R/c Iq09JPj+mKeDthPQ6s03r+GxkoQcS+Qs0p9OaX+fke4Q7MHSDmArml5Yd56ccWKb57 De6aN/ZP0HGFzcBLOp8G35LSvhY6h20bK09+XCukNE3yXX2dmftJAfz+oYfjwlWtrF 8KnvHvyvNJlvg== Received: by mail.kernel.org with local (Exim 4.94.2) (envelope-from ) id 1m7DEC-00BEqc-R7; Sat, 24 Jul 2021 10:41:48 +0200 From: Mauro Carvalho Chehab To: Greg Kroah-Hartman Cc: linuxarm@huawei.com, mauro.chehab@huawei.com, Mauro Carvalho Chehab , "Rob Herring" , Lee Jones , Rob Herring , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] dt-bindings: hisilicon,hi6421-spmi-pmic.yaml: make some rules stricter Date: Sat, 24 Jul 2021 10:41:45 +0200 Message-Id: X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: Mauro Carvalho Chehab Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Define maxItems for interrupts and accept only "ldo" in lower case. Reviewed-by: Rob Herring Signed-off-by: Mauro Carvalho Chehab --- Greg, Please apply this patch on your staging tree. It addresses the remaining bits from Rob's review. I'll submit the DTS patches via HiSilicon tree, c/c you and Rob. .../mfd/hisilicon,hi6421-spmi-pmic.yaml | 21 ++++++++++--------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/Documentation/devicetree/bindings/mfd/hisilicon,hi6421-spmi-pmic.yaml b/Documentation/devicetree/bindings/mfd/hisilicon,hi6421-spmi-pmic.yaml index cedf9d99a34b..22edcb4b212f 100644 --- a/Documentation/devicetree/bindings/mfd/hisilicon,hi6421-spmi-pmic.yaml +++ b/Documentation/devicetree/bindings/mfd/hisilicon,hi6421-spmi-pmic.yaml @@ -34,7 +34,8 @@ properties: interrupt-controller: true - interrupts: true + interrupts: + maxItems: 1 regulators: type: object @@ -49,7 +50,7 @@ properties: const: 0 patternProperties: - '^(ldo|LDO)[0-9]+$': + '^ldo[0-9]+$': type: object $ref: "/schemas/regulator/regulator.yaml#" @@ -79,55 +80,55 @@ examples: #address-cells = <1>; #size-cells = <0>; - ldo3: LDO3 { + ldo3: ldo3 { regulator-name = "ldo3"; regulator-min-microvolt = <1500000>; regulator-max-microvolt = <2000000>; regulator-boot-on; }; - ldo4: LDO4 { + ldo4: ldo4 { regulator-name = "ldo4"; regulator-min-microvolt = <1725000>; regulator-max-microvolt = <1900000>; regulator-boot-on; }; - ldo9: LDO9 { + ldo9: ldo9 { regulator-name = "ldo9"; regulator-min-microvolt = <1750000>; regulator-max-microvolt = <3300000>; regulator-boot-on; }; - ldo15: LDO15 { + ldo15: ldo15 { regulator-name = "ldo15"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <3000000>; regulator-always-on; }; - ldo16: LDO16 { + ldo16: ldo16 { regulator-name = "ldo16"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <3000000>; regulator-boot-on; }; - ldo17: LDO17 { + ldo17: ldo17 { regulator-name = "ldo17"; regulator-min-microvolt = <2500000>; regulator-max-microvolt = <3300000>; }; - ldo33: LDO33 { + ldo33: ldo33 { regulator-name = "ldo33"; regulator-min-microvolt = <2500000>; regulator-max-microvolt = <3300000>; regulator-boot-on; }; - ldo34: LDO34 { + ldo34: ldo34 { regulator-name = "ldo34"; regulator-min-microvolt = <2600000>; regulator-max-microvolt = <3300000>; -- 2.31.1