Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3798626ybi; Mon, 29 Jul 2019 12:50:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqzhc6m+JulrQfGfY+EO7fJO6HG8K9L59Gu3in75CKhnq022lH3KFTQ3+OSxUnTK5VdM6FCH X-Received: by 2002:a62:e308:: with SMTP id g8mr40046281pfh.162.1564429853689; Mon, 29 Jul 2019 12:50:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564429853; cv=none; d=google.com; s=arc-20160816; b=rUX6hoEQT40HT/CL8MVE6OolfkwdHw+jYlaZ8s45IJ26Mr3CdqJPyF6iSRJ2FhuAnv q2qubH25A0IufzqKYgSBB8WY4gc8r/rkviZw3n1vx8w5zxai984sGU5GG80P474CjKy/ hGmprvnvbkI+1j4J8kOViI9/xtnzBHNmIP4Aj7oP89daHCl3rLRc8chJKgUgHZLCV62b PqzLwflOP/noUnOgf2fJ1RsqCeM1DVTDN2MLY9fxVBOON2x8nAr2BsrY6MyPIcoD72GG vnQ6EbKzdFBGHs0x0LAgKslO3mo9/uUjlla84wtyeh8Zncz9/5rdZ1Ct0go5GJW1C0qG E8Mw== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Zb2larLb11vsJDejfSonAPg3d+Na1v2uHpQZMauZ1Hc=; b=yLCsmg13DOMoSUymos2PXbva4CXmG1FqGIpDvKVPPAJQMXQzw0K7Pzk0AxgOhBrdyL QUKAWQgsRzmEeHIVYaHG3Mn8SVazsgCpO0IYEWHe9tJV9LC/HPxmjdO+ahUP9zRFHsTW r59wp+BsRI9tmsnKs/AOQ1zaJ3V6va8pBWoSmS3LiSqw/39f2ndnvN8yUoUis3u5l77R z+CMMxT/ht/V5Ibjb1bK4on0a87d54h/EpaVqhXap5nws8OucExW9nWGTmwwTkkgpLLU j/kEJOZRa8TFbrOnnnqcJrSjb4zfXf0YMbsxIvSFh2n8aG7mfIbw9kEstMtaWpRwkp6D ZGCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=iacrIsBL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u126si16536349pgc.418.2019.07.29.12.50.39; Mon, 29 Jul 2019 12:50:53 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=iacrIsBL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390355AbfG2Tt1 (ORCPT + 99 others); Mon, 29 Jul 2019 15:49:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:39952 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390530AbfG2Tt0 (ORCPT ); Mon, 29 Jul 2019 15:49:26 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id EB4CA21655; Mon, 29 Jul 2019 19:49:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564429765; bh=Fp1/PCJzmmL4q7pkcIlbBIawt4Iaunw6ZRL7LHFPzwg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iacrIsBLW+tmPO7DywqNF2DwLyOE5aLDrlaKQYmN0iwXx8r82PLj+udb+HzprTGmY sy0y9uCEMoq5YGjgyHXR+zYwbbPukAFZ5TdQ0ON8QtY6HZCSNaa2umgAJCGxb/+dp1 S2pyDTfPOXWS7h5gjXUMk2zzdNxdwhJsDmXemkOg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Brian Masney , Rob Herring , Daniel Thompson , Dan Murphy , Rob Herring , Sasha Levin Subject: [PATCH 5.2 089/215] dt-bindings: backlight: lm3630a: correct schema validation Date: Mon, 29 Jul 2019 21:21:25 +0200 Message-Id: <20190729190754.820886392@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190729190739.971253303@linuxfoundation.org> References: <20190729190739.971253303@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Upstream commit ef4db28c1f45cda6989bc8a8e45294894786d947 ] The '#address-cells' and '#size-cells' properties were not defined in the lm3630a bindings and would cause the following error when attempting to validate the examples against the schema: Documentation/devicetree/bindings/leds/backlight/lm3630a-backlight.example.dt.yaml: '#address-cells', '#size-cells' do not match any of the regexes: '^led@[01]$', 'pinctrl-[0-9]+' Correct this by adding those two properties. While we're here, move the ti,linear-mapping-mode property to the led@[01] child nodes to correct the following validation error: Documentation/devicetree/bindings/leds/backlight/lm3630a-backlight.example.dt.yaml: led@0: 'ti,linear-mapping-mode' does not match any of the regexes: 'pinctrl-[0-9]+' Fixes: 32fcb75c66a0 ("dt-bindings: backlight: Add lm3630a bindings") Signed-off-by: Brian Masney Reported-by: Rob Herring Acked-by: Daniel Thompson Acked-by: Dan Murphy [robh: also drop maxItems from child reg] Signed-off-by: Rob Herring Signed-off-by: Sasha Levin --- .../leds/backlight/lm3630a-backlight.yaml | 21 ++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/Documentation/devicetree/bindings/leds/backlight/lm3630a-backlight.yaml b/Documentation/devicetree/bindings/leds/backlight/lm3630a-backlight.yaml index 4d61fe0a98a4..dc129d9a329e 100644 --- a/Documentation/devicetree/bindings/leds/backlight/lm3630a-backlight.yaml +++ b/Documentation/devicetree/bindings/leds/backlight/lm3630a-backlight.yaml @@ -23,16 +23,17 @@ properties: reg: maxItems: 1 - ti,linear-mapping-mode: - description: | - Enable linear mapping mode. If disabled, then it will use exponential - mapping mode in which the ramp up/down appears to have a more uniform - transition to the human eye. - type: boolean + '#address-cells': + const: 1 + + '#size-cells': + const: 0 required: - compatible - reg + - '#address-cells' + - '#size-cells' patternProperties: "^led@[01]$": @@ -48,7 +49,6 @@ patternProperties: in this property. The two current sinks can be controlled independently with both banks, or bank A can be configured to control both sinks with the led-sources property. - maxItems: 1 minimum: 0 maximum: 1 @@ -73,6 +73,13 @@ patternProperties: minimum: 0 maximum: 255 + ti,linear-mapping-mode: + description: | + Enable linear mapping mode. If disabled, then it will use exponential + mapping mode in which the ramp up/down appears to have a more uniform + transition to the human eye. + type: boolean + required: - reg -- 2.20.1