Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1841630pxa; Sun, 2 Aug 2020 23:47:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzUzQF20L9OE4x2ZxRgJScDymBTs26lA//BbNbrt1KnddaRO/eu7Z8+H3VjB8SbVPKJHxFp X-Received: by 2002:aa7:d155:: with SMTP id r21mr13694612edo.87.1596437236993; Sun, 02 Aug 2020 23:47:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1596437236; cv=pass; d=google.com; s=arc-20160816; b=PuDkyRrkdDKUtHmLFdpJe8OthAtYGZhRwlNJi9WlOYYEWVtkHU6CkhwXjejcuCt7jy M1AOClxRDBrGvhichQB3XPqxro/OIod7grb8R/qcqQ/DT0anSn8FemoGwJBhFFVtI7PK Ynqm6ami5sbuo3hEDZI0uognkm1ZKhXVHoC3l5blwUqbbaU2bX6yLeHx8jBv+V9co0Zo I2TiG02GPLP70DUzwE5Jd9O3sFYXG55vzD3tHxXNwjGQco4XcollIclv9so4hpd32P8E uCacMJhgZ/GhhL64h2zwhUBHXftf1sFgGg3bUZtSDxuMmceaZbVgWeilmDqQIqDbvonk tLoQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :message-id:subject:cc:to:from:date:dkim-signature; bh=bqn38w4AjSGBOcPUNyWYKKGZFOEIHQSkbK3zaA0NX+0=; b=EUS6KsFKd5/16zf/5+OG28bZweHQQRd45CvYJqYHYUm2kku8+AGb/k+gyXHI923q27 hafsWi1zJgEXzdosVmCxuhjoAiddgC1iMv7QYk8iCiwfudOgKUQ9yhm0hWtOWI+y0gnG gb7tn0748KcCT3DSWtInLKlgG6ZvbYHbHWmXEc9KYTqkS62M+PN1VMwAxvtt+XgWtWE4 kwG7/b/E+GLRzGzyURV6JNuvh7E02C1r+mB6uYAr2AWugbtAz8ThnTWK39n/J3HU8Go7 Xhg6rsbz/g9vl466EAOpgMDRJgW8PUoVfSffyTo5VUL3FGXlQDFj/NmNys7K239Ip9f+ H9gQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Synaptics.onmicrosoft.com header.s=selector2-Synaptics-onmicrosoft-com header.b=WtEvkcBr; arc=pass (i=1 spf=pass spfdomain=synaptics.com dkim=pass dkdomain=synaptics.com dmarc=pass fromdomain=synaptics.com); 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r6si9460740ejd.213.2020.08.02.23.46.54; Sun, 02 Aug 2020 23:47:16 -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=@Synaptics.onmicrosoft.com header.s=selector2-Synaptics-onmicrosoft-com header.b=WtEvkcBr; arc=pass (i=1 spf=pass spfdomain=synaptics.com dkim=pass dkdomain=synaptics.com dmarc=pass fromdomain=synaptics.com); 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727053AbgHCGpA (ORCPT + 99 others); Mon, 3 Aug 2020 02:45:00 -0400 Received: from mail-dm6nam10on2043.outbound.protection.outlook.com ([40.107.93.43]:49536 "EHLO NAM10-DM6-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726998AbgHCGpA (ORCPT ); Mon, 3 Aug 2020 02:45:00 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=D5uj8ge4TrW5esK9EmMsP4Ob6u+nm7hrZjRRBEnPtRXJMKjUocpOjecGzo7q3JB1KM/Jbn65jcM7f0wK7dxtKo4vSwjx6idtgEAHOOZhcY+lRMpnd1UWh0pi1ROrEOACC6KN2G1crwnJddpmNTd2omOo0QxUuxEysL4zSE1PVEUotr3IlrAGfJStL0Dg6KdWAmWp2MgzDgdtUK3RdvTs9VRTwVu9xV/JiRE0cnKdTaW55tnSAakEDo8/mZgSnP3T8xUz+umoIXJnGrTBB7xFMHzEyElT/iMmo/l0oJZxrQxiKQw5DgHVLSp0mtdqFqVK6yM8KoWvble2AaN/B8CWMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=bqn38w4AjSGBOcPUNyWYKKGZFOEIHQSkbK3zaA0NX+0=; b=e9BN4IPMu4aNfLBVRUJXFrN4ldw/KmOwXBH4YTDgxd55oF2PbFw7IS7R6uEJpzeKsbgoiN0kQljSkav6cBCgYMawR/DHzzqykMuOddeRU9You+JDNX4oN0u0fcBcn425svr8pQB6033+I6wEmYuC5vlojfChfUWPunrhEJZYyTuCuhaV3GVyogrSO4mQl0ZnT+x9su7UgGYQT4iiDoYZf5u9qoOuut4DMZKFxtZKRB01go8mEiINPA+v4Hr4kymLPkzADZxMEZEfHWtIUKqnrsazS4ZcgfhkvpVTEypRFxrL4Xd7245eh6eZ8J2YhD7w64iRuySQorfLvAa07L7m+w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=synaptics.com; dmarc=pass action=none header.from=synaptics.com; dkim=pass header.d=synaptics.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Synaptics.onmicrosoft.com; s=selector2-Synaptics-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=bqn38w4AjSGBOcPUNyWYKKGZFOEIHQSkbK3zaA0NX+0=; b=WtEvkcBrsViDj7vEGbhN9FFwqIwOfmjBIBun+euRONXFb4P8R89b2XumI44Tr8qRWWJur1y/zah9gNUecwEAp5ImQYuh05gDwhusRnZAu4OAMfohaab0kdejNBzPKrFiTpshYnA/2kqQRwlxTPuPBilW7vbauGFxDWxzDhA4KgY= Authentication-Results: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=synaptics.com; Received: from DM6PR03MB4555.namprd03.prod.outlook.com (2603:10b6:5:102::17) by DM6PR03MB5113.namprd03.prod.outlook.com (2603:10b6:5:1f0::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3239.16; Mon, 3 Aug 2020 06:44:56 +0000 Received: from DM6PR03MB4555.namprd03.prod.outlook.com ([fe80::d9af:b798:6945:27b]) by DM6PR03MB4555.namprd03.prod.outlook.com ([fe80::d9af:b798:6945:27b%3]) with mapi id 15.20.3239.021; Mon, 3 Aug 2020 06:44:56 +0000 Date: Mon, 3 Aug 2020 14:44:36 +0800 From: Jisheng Zhang To: Liam Girdwood , Mark Brown , Rob Herring Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v3] dt-bindings: regulator: Convert sy8824x to json-schema Message-ID: <20200803144436.5d2b7e54@xhacker.debian> X-Mailer: Claws Mail 3.17.6 (GTK+ 2.24.32; x86_64-pc-linux-gnu) Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-ClientProxiedBy: TY2PR0101CA0040.apcprd01.prod.exchangelabs.com (2603:1096:404:8000::26) To DM6PR03MB4555.namprd03.prod.outlook.com (2603:10b6:5:102::17) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from xhacker.debian (124.74.246.114) by TY2PR0101CA0040.apcprd01.prod.exchangelabs.com (2603:1096:404:8000::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3239.16 via Frontend Transport; Mon, 3 Aug 2020 06:44:54 +0000 X-Mailer: Claws Mail 3.17.6 (GTK+ 2.24.32; x86_64-pc-linux-gnu) X-Originating-IP: [124.74.246.114] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ac30496f-16b3-444a-d151-08d83778bbc0 X-MS-TrafficTypeDiagnostic: DM6PR03MB5113: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6790; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: p5JoDNuaFooG/6ywWXUtvPZVzP9tETrr0vI/Ftiv3uvqBCteMhcX/d3EtTyeDZyH0oo13O+pXSNDkGOHRgJo6Ov4M3+MBSdp+FF4dolpiZfgkpEYP5RKWQ5p2JW29g1CQF/PQSycaggSmP+oePI75IlFco+c96sgVXh3NkwmUjC1gbWs2uGZ10buqw/ZEPQOTMMfkuhVD3e1Qjuqo+mddOTTpiluypL8rX/SRxebhKwISUr9DzyDzVmvACfIh+79xKhCkjYZ+YUn7uUbUgdvi2y9xK2W+caF13J4d0FJKJZ4Sy8Lj3zkSZFx6lwxzCkW1qbbuNvpbmOB8hUWpdat3xwM0JA0SIYeo5A96rHtkRS1e61JtS9Tz6KJe5pnJyv0b0sd5Jolq3Khye0JuQ+zww== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR03MB4555.namprd03.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:(366004)(8676002)(16526019)(186003)(110136005)(66556008)(8936002)(1076003)(66946007)(5660300002)(66476007)(6666004)(83380400001)(26005)(9686003)(6506007)(956004)(52116002)(7696005)(86362001)(4326008)(966005)(498600001)(55016002)(2906002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: zf1p6c9EuZDyoSUYHAG4fuVUDrCwBsnpMczXz5cteKzUuoAl1YhnG7JU5LISvY/NQdcjd2Or7G1BEaAkaJvDT3B3YzegKX4rqC5WCiCg18NU0dT+WY5YJu2rW9S3nGH6VglAvAvuDuD+NyugCm7mXjllkrS0kYJDFx3w3XBFgRCHRkbhlojj/yQsr/TQFpVqSx/IM2ikUXFhKBimlwCcdfI8D0YqB+A79yNXSP8sTiBlwWen5TVaImzj6/QAAP99En6RGb9fFMqMaEkx+CmFeYoE0cUul3NLQb/Pq6A5Tajr3ji4mCEODGFNAQtACrXfypG2T5SA6Gwa3dCviybi86kx1T4QPv2JKJj6dweTmE77eRbND4GvqTiOMKhE8b7wpvHC20spsQHa8GtaZ+O2hyq9YzcxO4S3BUmiLPkAMVdi9xK6Cm1qM1OZgsHMcrbF1snqUWDamSJaGOq6YkInp7AiToHH1cCUaK+5ZTjAqvhk4q6naJUGP7Uxpvsa2wgThRmRgUFP1TpcGnZK8VXeTytV3zIm88cUgVDlI18+B2ScCX1YWRTgmlMC+OtMTbBqsDYxCBd8nGPaqb+tF9PQqmZeKpzVg+EKvY8y5NWh+Dew51M96Sg4ETKwX4cc1mBM0QkkzpTwEI6FOtZHUINc7A== X-OriginatorOrg: synaptics.com X-MS-Exchange-CrossTenant-Network-Message-Id: ac30496f-16b3-444a-d151-08d83778bbc0 X-MS-Exchange-CrossTenant-AuthSource: DM6PR03MB4555.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Aug 2020 06:44:55.9743 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 335d1fbc-2124-4173-9863-17e7051a2a0e X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: HrCR5Fa0/dIKaHMb+yWo7tkyNQWIBCbbiLC2nrvNl1A1icj4KWsSf86JBMU+i6ybgKgysoeLgmlLVSI8wD5rZA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR03MB5113 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Convert the sy8824x binding to DT schema format using json-schema. Signed-off-by: Jisheng Zhang --- Since v2: - add $ref to regulator.yaml - add unevaluatedProperties Since v1: - It seems there's something wrong with my last email, so send out a v2 with another email account .../bindings/regulator/silergy,sy8824x.yaml | 45 +++++++++++++++++++ .../devicetree/bindings/regulator/sy8824x.txt | 24 ---------- 2 files changed, 45 insertions(+), 24 deletions(-) create mode 100644 Documentation/devicetree/bindings/regulator/silergy,sy8824x.yaml delete mode 100644 Documentation/devicetree/bindings/regulator/sy8824x.txt diff --git a/Documentation/devicetree/bindings/regulator/silergy,sy8824x.yaml b/Documentation/devicetree/bindings/regulator/silergy,sy8824x.yaml new file mode 100644 index 000000000000..82af4d656177 --- /dev/null +++ b/Documentation/devicetree/bindings/regulator/silergy,sy8824x.yaml @@ -0,0 +1,45 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/regulator/silergy,sy8824x.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: silergy sy8824c,sy8824e,sy20276 and sy20278 PMIC + +maintainers: + - Jisheng Zhang + +allOf: + - $ref: regulator.yaml# + +properties: + compatible: + enum: + - silergy,sy8824c + - silergy,sy8824e + - silergy,sy20276 + - silergy,sy20278 + + reg: + maxItems: 1 + +required: + - compatible + - reg + +unevaluatedProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + regulator@60 { + compatible = "silergy,sy8824c"; + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <1150000>; + reg = <0x60>; + }; + }; + +... diff --git a/Documentation/devicetree/bindings/regulator/sy8824x.txt b/Documentation/devicetree/bindings/regulator/sy8824x.txt deleted file mode 100644 index c5e95850c427..000000000000 --- a/Documentation/devicetree/bindings/regulator/sy8824x.txt +++ /dev/null @@ -1,24 +0,0 @@ -SY8824C/SY8824E/SY20276 Voltage regulator - -Required properties: -- compatible: Must be one of the following. - "silergy,sy8824c" - "silergy,sy8824e" - "silergy,sy20276" - "silergy,sy20278" -- reg: I2C slave address - -Any property defined as part of the core regulator binding, defined in -./regulator.txt, can also be used. - -Example: - - vcore: regulator@00 { - compatible = "silergy,sy8824c"; - reg = <0x66>; - regulator-name = "vcore"; - regulator-min-microvolt = <800000>; - regulator-max-microvolt = <1150000>; - regulator-boot-on; - regulator-always-on; - }; -- 2.28.0