From patchwork Mon Jul 15 23:04:57 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 169024 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp13377ilk; Mon, 15 Jul 2019 16:05:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqxd5M4uLIsM8lNLmj4yyB6M9V7rXKNhovBD660dVuswAMRW/lyMPPbb1KfIHKK0pIf+6o7U X-Received: by 2002:a63:ff20:: with SMTP id k32mr29625984pgi.445.1563231902063; Mon, 15 Jul 2019 16:05:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563231902; cv=none; d=google.com; s=arc-20160816; b=xTnoCe8MwseFKQBcyeS5g1fBZgXWw9UtwahkToxxqKWg01a5Ut1eUeDrGRwKOswlzR ssR6EA5PckZWIb+ivuV7s1+fEo2BqOPHnVNCihsWUZ5UrqoDkIEYwFw80czHw1ZICRDu Gk5kE+zMLe/17kR3sPzYPtXUTb7QRXwmJV2c6QMuFz37vKInqDR0hiBCso3wMDRBP1bL /ipkRqaC3uxNTTXjUkISOC+pbQiVdhmRo2O1izT97okeOVFk1/SXQImCwP8VMhjnezhn pNwHcnxl8WlqCLBpLX8OorVhL19Itq9vxGMWbXJLsRDZPMnIgMAxtRRjBmjveJLeGqQV au3A== 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; bh=k28XQmjVwDonv00Vu61ACUarMShzug/T9SvQGCXzgaE=; b=BoaLtwM4Ab1GbVdMcvXAji5eVN7v/isQE9JvgM31sIn+e5uK8Od3I7Q1V/3HWq6coe SdWiu1/zRN+uJqyc1S+GrkOZr9XegvneFkrPo/MmScCw4QFA969xyUsWX/eZt7xviDcZ g+6AviLhb7f36rIkV2riHOCijLc8FDxCIqkaV/HvVkRCYGe0YKi6RL+ZyFx71g96XrY1 E66JrpZes1LVNBiIVSkcgUTR+dih+98TtU22Kjt100lOy7t8ErMheHOHlB/tBfO0uBcd A3xiMG6gI4PZrUN+ObGBFGWzDA4j5EYyHZ+icBTHhuoGKnu6JeuQciv/3Z6ZayTl8YNH oxiA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-spi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-spi-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 136si18478592pgg.354.2019.07.15.16.05.01; Mon, 15 Jul 2019 16:05:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-spi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-spi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-spi-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732037AbfGOXFB (ORCPT + 1 other); Mon, 15 Jul 2019 19:05:01 -0400 Received: from mail-io1-f67.google.com ([209.85.166.67]:44642 "EHLO mail-io1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731690AbfGOXFB (ORCPT ); Mon, 15 Jul 2019 19:05:01 -0400 Received: by mail-io1-f67.google.com with SMTP id s7so36798126iob.11; Mon, 15 Jul 2019 16:05:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=k28XQmjVwDonv00Vu61ACUarMShzug/T9SvQGCXzgaE=; b=TInxfc9QZLFvxHjR59y88wSPsZE43q+VS+ILh/AAnEPM0mlAHrz07iCGu1nBU5qec7 O1AV5pwVM7Cwejs4W1vpmjukjuvrtSdxlEfzgyjnaNRCgInwESH/SexHyKmZ16Fa5fKG V9Yf5McnAhoSOTQCd+5vtAoxRpP6bonZzGov2Hi4hKYOlXWfnbvJ+6Q8QsBEqldlBZFT IaBuuY4ag8e4yInHsFVfC4/Hv1VwWtTCEn/PYRM1IfWZgorFj9DsIMJbWkfYmfNIdJiD y2iaUcnAF4yP0JKhIJMxaBYH8Dlu9ip7lFtdXG18T4zMqnToZDC2RPwGa95TPuN1+rhK Dplg== X-Gm-Message-State: APjAAAUPxrcnekVXHIneILHxMbKAZ4QJippg0NrL/U4I3Md92GPIOeaX 3OaoG+WI1R/cc7SDbqzZap5cKpk= X-Received: by 2002:a5e:9404:: with SMTP id q4mr28791973ioj.46.1563231899603; Mon, 15 Jul 2019 16:04:59 -0700 (PDT) Received: from xps15.herring.priv ([64.188.179.249]) by smtp.googlemail.com with ESMTPSA id h8sm19123434ioq.61.2019.07.15.16.04.58 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 15 Jul 2019 16:04:59 -0700 (PDT) From: Rob Herring To: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Maxime Ripard , Chen-Yu Tsai , David Woodhouse , Brian Norris , Marek Vasut , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Linus Walleij , Maxime Coquelin , Alexandre Torgue , Mark Brown , linux-mtd@lists.infradead.org, linux-gpio@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-spi@vger.kernel.org Subject: [PATCH] dt-bindings: Ensure child nodes are of type 'object' Date: Mon, 15 Jul 2019 17:04:57 -0600 Message-Id: <20190715230457.3901-1-robh@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org Properties which are child node definitions need to have an explict type. Otherwise, a matching (DT) property can silently match when an error is desired. Fix this up tree-wide. Once this is fixed, the meta-schema will enforce this on any child node definitions. Cc: Maxime Ripard Cc: Chen-Yu Tsai Cc: David Woodhouse Cc: Brian Norris Cc: Marek Vasut Cc: Miquel Raynal Cc: Richard Weinberger Cc: Vignesh Raghavendra Cc: Linus Walleij Cc: Maxime Coquelin Cc: Alexandre Torgue Cc: Mark Brown Cc: linux-mtd@lists.infradead.org Cc: linux-gpio@vger.kernel.org Cc: linux-stm32@st-md-mailman.stormreply.com Cc: linux-spi@vger.kernel.org Signed-off-by: Rob Herring --- Please ack. I will take this via the DT tree. Rob .../devicetree/bindings/bus/allwinner,sun8i-a23-rsb.yaml | 1 + .../devicetree/bindings/mtd/allwinner,sun4i-a10-nand.yaml | 1 + Documentation/devicetree/bindings/mtd/nand-controller.yaml | 1 + .../devicetree/bindings/pinctrl/st,stm32-pinctrl.yaml | 3 +++ .../devicetree/bindings/spi/allwinner,sun4i-a10-spi.yaml | 1 + .../devicetree/bindings/spi/allwinner,sun6i-a31-spi.yaml | 1 + 6 files changed, 8 insertions(+) -- 2.20.1 Acked-by: Miquel Raynal Acked-by: Alexandre TORGUE diff --git a/Documentation/devicetree/bindings/bus/allwinner,sun8i-a23-rsb.yaml b/Documentation/devicetree/bindings/bus/allwinner,sun8i-a23-rsb.yaml index fc2f63860cc8..be32f087c529 100644 --- a/Documentation/devicetree/bindings/bus/allwinner,sun8i-a23-rsb.yaml +++ b/Documentation/devicetree/bindings/bus/allwinner,sun8i-a23-rsb.yaml @@ -42,6 +42,7 @@ properties: patternProperties: "^.*@[0-9a-fA-F]+$": + type: object properties: reg: maxItems: 1 diff --git a/Documentation/devicetree/bindings/mtd/allwinner,sun4i-a10-nand.yaml b/Documentation/devicetree/bindings/mtd/allwinner,sun4i-a10-nand.yaml index e5a411518be1..b5b3cf5b1ac2 100644 --- a/Documentation/devicetree/bindings/mtd/allwinner,sun4i-a10-nand.yaml +++ b/Documentation/devicetree/bindings/mtd/allwinner,sun4i-a10-nand.yaml @@ -55,6 +55,7 @@ patternProperties: "^pinctrl-[0-9]+$": true "^nand@[a-f0-9]+$": + type: object properties: reg: minimum: 0 diff --git a/Documentation/devicetree/bindings/mtd/nand-controller.yaml b/Documentation/devicetree/bindings/mtd/nand-controller.yaml index 199ba5ac2a06..d261b7096c69 100644 --- a/Documentation/devicetree/bindings/mtd/nand-controller.yaml +++ b/Documentation/devicetree/bindings/mtd/nand-controller.yaml @@ -40,6 +40,7 @@ properties: patternProperties: "^nand@[a-f0-9]$": + type: object properties: reg: description: diff --git a/Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.yaml index 06c4b66c3ee6..3ac5d2088e49 100644 --- a/Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.yaml +++ b/Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.yaml @@ -55,6 +55,7 @@ properties: patternProperties: '^gpio@[0-9a-f]*$': + type: object properties: gpio-controller: true '#gpio-cells': @@ -113,8 +114,10 @@ patternProperties: - st,bank-name '-[0-9]*$': + type: object patternProperties: '^pins': + type: object description: | A pinctrl node should contain at least one subnode representing the pinctrl group available on the machine. Each subnode will list the diff --git a/Documentation/devicetree/bindings/spi/allwinner,sun4i-a10-spi.yaml b/Documentation/devicetree/bindings/spi/allwinner,sun4i-a10-spi.yaml index c374fd4923a6..6d1329c28170 100644 --- a/Documentation/devicetree/bindings/spi/allwinner,sun4i-a10-spi.yaml +++ b/Documentation/devicetree/bindings/spi/allwinner,sun4i-a10-spi.yaml @@ -50,6 +50,7 @@ properties: patternProperties: "^.*@[0-9a-f]+": + type: object properties: reg: items: diff --git a/Documentation/devicetree/bindings/spi/allwinner,sun6i-a31-spi.yaml b/Documentation/devicetree/bindings/spi/allwinner,sun6i-a31-spi.yaml index bda7a5befd8b..f36c46d236d7 100644 --- a/Documentation/devicetree/bindings/spi/allwinner,sun6i-a31-spi.yaml +++ b/Documentation/devicetree/bindings/spi/allwinner,sun6i-a31-spi.yaml @@ -55,6 +55,7 @@ properties: patternProperties: "^.*@[0-9a-f]+": + type: object properties: reg: items: