From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A6FD96F for ; Thu, 25 Mar 2021 18:05:45 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id 0891561A34; Thu, 25 Mar 2021 18:05:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1616695545; bh=Q2tZBsdPQDvnqOQufuHyqZzw7WUjXHdEbtYO9wUPA7A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gK2Mo16kFK2WfM9n6gTrjftef34tnwJgP7HsrrgPcXKzlYS8cPachnYvIvYfua/Fr NPJ6+XdFhrf58gRkMtarbGkgUiAHXzJZYh2EDujNrpBjRjAMUb6oY73F//QQKe3J9F ogm058TZ9aKB9VlRWNsJ7Q2h3paYOvYS3GpTC9+0zP/iGi6hrVsHVxKaIkYArqefG2 FodBD88EoGjcIaszvzO0XQjtid76v/CXaOVNp3NBIYa1I9YrG66VwuZBVDEq5UEWnM A8WCl5EiCdxnaxcl1sMUmwu0qsabLUcOt5kI7UwlEnCkLqSOwQOD2YkbkCTT8YpXeQ xyi/CJRGJEdHA== Received: by mail.kernel.org with local (Exim 4.94) (envelope-from ) id 1lPUMX-001Maj-Rc; Thu, 25 Mar 2021 19:05:41 +0100 From: Mauro Carvalho Chehab To: Greg Kroah-Hartman Cc: Mauro Carvalho Chehab , linux-kernel@vger.kernel.org, linux-staging@lists.linux.dev Subject: [PATCH v5 (RESEND) 2/7] staging: hisilicon,hisi-spmi-controller.yaml cleanup schema Date: Thu, 25 Mar 2021 19:05:34 +0100 Message-Id: <4e4a80d3a1b84a354d3c40be374a1689ae6c0fb1.1616695231.git.mchehab+huawei@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: References: X-Mailing-List: linux-staging@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: Mauro Carvalho Chehab Remove some properties already defined at SPMI bus, and place the type for the spmi-channel. Signed-off-by: Mauro Carvalho Chehab --- .../hisilicon,hisi-spmi-controller.yaml | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/drivers/staging/hikey9xx/hisilicon,hisi-spmi-controller.yaml b/drivers/staging/hikey9xx/hisilicon,hisi-spmi-controller.yaml index 21f68a9c2df1..6b755039a74c 100644 --- a/drivers/staging/hikey9xx/hisilicon,hisi-spmi-controller.yaml +++ b/drivers/staging/hikey9xx/hisilicon,hisi-spmi-controller.yaml @@ -16,7 +16,11 @@ description: | The PMIC part is provided by drivers/staging/hikey9xx/hisilicon,hi6421-spmi-pmic.yaml. +allOf: + - $ref: spmi.yaml# + properties: + $nodename: pattern: "spmi@[0-9a-f]" @@ -26,13 +30,8 @@ properties: reg: maxItems: 1 - "#address-cells": - const: 2 - - "#size-cells": - const: 0 - spmi-channel: + $ref: /schemas/types.yaml#/definitions/uint32 description: | number of the Kirin 970 SPMI channel where the SPMI devices are connected. @@ -40,18 +39,16 @@ required: - compatible - reg - spmi-channel - - "#address-cells" - - "#size-cells" patternProperties: - "^pmic@[0-9a-f]$": + "@[0-9a-f]$": description: | PMIC properties, which are specific to the used SPMI PMIC device(s). When used in combination with HiSilicon 6421v600, the properties are documented at drivers/staging/hikey9xx/hisilicon,hi6421-spmi-pmic.yaml. -additionalProperties: false +unevaluatedProperties: false examples: - | @@ -63,7 +60,6 @@ examples: compatible = "hisilicon,kirin970-spmi-controller"; #address-cells = <2>; #size-cells = <0>; - status = "ok"; reg = <0x0 0xfff24000 0x0 0x1000>; spmi-channel = <2>; -- 2.30.2