Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3070657pxu; Tue, 8 Dec 2020 02:45:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJzPo1oii6csdHb094fD9Cjj0wG2eYTqw2CN7wkC2nT82WRJoEhrrLW6uDzOTn6JMOzVZ5Sa X-Received: by 2002:a17:906:1752:: with SMTP id d18mr23097132eje.529.1607424347631; Tue, 08 Dec 2020 02:45:47 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1607424347; cv=pass; d=google.com; s=arc-20160816; b=P0bM4pNdxX3ha+nxP4knWDg6aJk4yM63WpTD11kZUxUnb/rrT0IBw4GEgq6dRJ4DJO Z2mw+UKjJ2FGgOOj2czjcNp11e6xRPvEeZ9NP/mcrqr0jxiWUp+MTzK2KeqxwzsFEkNF //m+xB05+YggiTmutScBohw5j0EE0g+EZpLJl3UDR8Pr/iuKRBs651p6KUDFXyWaswcd FICzEH5jZtFojdj+c7qQjAHcFAOQ3v+cHGPu6xvjpi71WYl9IfDvLVKPYKb5uS3/qRCE BElTgjMinUa4YSJ9JVJQH1ZeT5SsW0sxzdjx9WtOSo3vopnNDGT6M8rjBzoVn+koLg63 yYpw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=Snw2YEy+pwInDvkiBLQlduDOACkn2viXYFWAgunYsnM=; b=ZkJnDns+FrAceALj8S3ROl8onBp6vswbgj1jRwP42O587qlSuC2lX1zy0WaHXkGo/g ZAY17HozFm8nlNipCmtikNf78vziPrNIeP7keRx/I2bIgIYAMx8LOlUQUMa1D4/PC+9k yrY/WmZSR7NdDWYyGlWWgq11BP9bpQcVbrnPme2VkEpXWnimAg67KYIF5Ehxf0piZv0O a3BuNrbwGFPhuzxRJrfhSddcNrDLYGPU9E8MVejbcbB2mXE7GrxXmLmX8SJacEwIELEk OwQsUTlgX3F1x/GjHLkaOMqr6oVDjCRv+MAe10EAAPvbmksEtN5k+mwMQVKhfyLUS66W VFeQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@dialogsemiconductor.onmicrosoft.com header.s=selector1-dialogsemiconductor-onmicrosoft-com header.b=VORCTIm9; arc=pass (i=1 spf=pass spfdomain=diasemi.com dkim=pass dkdomain=diasemi.com dmarc=pass fromdomain=diasemi.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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=diasemi.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t26si8046551ejx.4.2020.12.08.02.45.23; Tue, 08 Dec 2020 02:45:47 -0800 (PST) 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=@dialogsemiconductor.onmicrosoft.com header.s=selector1-dialogsemiconductor-onmicrosoft-com header.b=VORCTIm9; arc=pass (i=1 spf=pass spfdomain=diasemi.com dkim=pass dkdomain=diasemi.com dmarc=pass fromdomain=diasemi.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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=diasemi.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729031AbgLHKms (ORCPT + 99 others); Tue, 8 Dec 2020 05:42:48 -0500 Received: from mail-eopbgr60044.outbound.protection.outlook.com ([40.107.6.44]:32737 "EHLO EUR04-DB3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727754AbgLHKms (ORCPT ); Tue, 8 Dec 2020 05:42:48 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DfX/MixtUoF1/EuaZOi70nF+aNFXJ2Wb/zW/UWxtySkerBt/27YfoUpfyL4BvXE444QXN+nndH4BZz1+JGjSzXXklopJ+kMU2CuqPTy8mZLaWyRHwEI2DZyKVUo8DQw/hD8cFKK2yHuoJIAnu/M/8K66ECHTN8ukF0/PShJBlus0/iGG4dK/4UPtG9gTq5E6nATzxuV9EYAkGOM0Xzi3a6e1GGa8N1BYJwDQLsMAB09s80WBa/cork69K8FPcFs09arq+LuviWERdRwRsuaORWyMtwj9U3RpTiTGP0Vl6GFuCXiFAMlNHXSRrNInwoAt0szb+/h7iTbNC2aT5TrkuQ== 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=Snw2YEy+pwInDvkiBLQlduDOACkn2viXYFWAgunYsnM=; b=gIEwE6WC0wDWEt2g4osjpTfM6kEDXxEQtYBD5rFfwhT+9Rubp6jF5iQbt2nGgyuhJdL4N6On/VdGaPySvYMXWNaNZXVXKIzr/ROaH/VIl/1AUemghnWwnC55UEnb4v5LRj+x1qpHWMbOGEPcGk/5x54tuHsRZuZBBy1YJpfymeuVcU5MWIZWeWQChOcMtjje7rlyFvl41+fJPVURHk8oVWsIsxSDG6ka6n3w8VjrlIR+ricr61sVVIMg3RdD3vb/FojwsY4QpYmRjZxrdp1nhUjfgkdupBE1V5DpkNxzGaYdXSdsCT5JhxkPPjpsGh14dZ78KcK0Z/40XaJANftprw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=diasemi.com; dmarc=pass action=none header.from=diasemi.com; dkim=pass header.d=diasemi.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dialogsemiconductor.onmicrosoft.com; s=selector1-dialogsemiconductor-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Snw2YEy+pwInDvkiBLQlduDOACkn2viXYFWAgunYsnM=; b=VORCTIm9pP75iiUbKKR5OqMzmhKqyEMlqknPQFWPYP2wDrMUTgE9pdpSrufbz18FOXS5/vrUR93TnguWabrWuwcLjNFWC/ku4gOywj7Ao1TV+i9Ze+4iGbbeJ+1NWqYq/FUO6aGUiFiSGCFN1nY4r8mLygD673sMZZc8YeBm5zM= Received: from AM6PR10MB2807.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:aa::16) by AM7PR10MB3221.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:109::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.12; Tue, 8 Dec 2020 10:41:57 +0000 Received: from AM6PR10MB2807.EURPRD10.PROD.OUTLOOK.COM ([fe80::5438:1932:b075:be6c]) by AM6PR10MB2807.EURPRD10.PROD.OUTLOOK.COM ([fe80::5438:1932:b075:be6c%6]) with mapi id 15.20.3632.021; Tue, 8 Dec 2020 10:41:57 +0000 From: Adam Ward To: Rob Herring , Adam Ward CC: Mark Brown , Liam Girdwood , Vincent Whitchurch , "linux-kernel@vger.kernel.org" , "devicetree@vger.kernel.org" , Support Opensource Subject: RE: [PATCH V4 01/10] regulator: Update DA9121 dt-bindings Thread-Topic: [PATCH V4 01/10] regulator: Update DA9121 dt-bindings Thread-Index: AQHWx+k2nPrYkNpltUGZPYQaTY+Kt6nr9TiAgAEQJQA= Date: Tue, 8 Dec 2020 10:41:57 +0000 Message-ID: References: <0606d3ded5fef4c38760246146f197db4ce3a374.1606830377.git.Adam.Ward.opensource@diasemi.com> <20201207175809.GA503826@robh.at.kernel.org> In-Reply-To: <20201207175809.GA503826@robh.at.kernel.org> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=diasemi.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [165.225.80.51] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: c00d89e8-9b9c-4052-f199-08d89b65e325 x-ms-traffictypediagnostic: AM7PR10MB3221: x-ms-exchange-sharedmailbox-routingagent-processed: True x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8882; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: LZgoOoNF1IR0Lo6l13yKtOdpD0HtR3mmYD23T1fVQatTi1teZe4jjWSZe/tRxL500II85VkA1T5SCU9C8BXobSRzqipdK238CZzY+pqd//auUqGbGVZQrmgqe65FKANxY174FQLjOoxJR8kFs+Xa6UJH5vsRrOqdIH99UapvQz3Hp996Msglj+P6+lkWUTA3I6F+3P6XQGl+WJ/9BQaTkjezMLmlV8i3XlRbiSk1UiP4xYTznflYDt1pmLc8N7p86VO2/MpW36gy7bqJOD+h4IYcHCcmDe4UgxjUbAK1LeFa98L3qVw7lVuEX0m1sHsfvaFH614X/ylqrIid6QJlVg== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM6PR10MB2807.EURPRD10.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(4636009)(366004)(5660300002)(71200400001)(186003)(7696005)(55016002)(66946007)(33656002)(66476007)(66556008)(66446008)(2906002)(9686003)(4326008)(26005)(64756008)(8936002)(86362001)(8676002)(54906003)(107886003)(55236004)(76116006)(498600001)(52536014)(6506007)(110136005);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?CRWetWOYiqaxCbtL+QrsgrKxK9yPPZg5aCp9bxr8LC7aH4nUwo1joSZVlp1B?= =?us-ascii?Q?/1sPrQQZeveOnNul3mRWUNzrUhDQTvg5gTidDXnK5ZXqQ+u1bplBfDH8W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X69LEGg=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: diasemi.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: AM6PR10MB2807.EURPRD10.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: c00d89e8-9b9c-4052-f199-08d89b65e325 X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Dec 2020 10:41:57.6882 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 511e3c0e-ee96-486e-a2ec-e272ffa37b7c X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: qwrhhnQyEsO/li+X5xX0d/WUURndXjs0Htae2vg27exKAxV+T7Z9V5h5fKOUJGuG1QmfOb4y63EcESx9i+oe/w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM7PR10MB3221 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 07, 2020 at 17:58PM, Rob Herring wrote: > > + properties: > > + regulator-mode: > > + maxItems: 1 > > + description: Defined in include/dt-bindings/regulator/dlg,= da9121- > regulator.h >=20 > 'regulator-mode' is defined as a property of a > 'regulator-state-(standby|mem|disk)' child node. I don't see how you > would use this with 'regulator-initial-mode' either. >=20 > > + > > + regulator-initial-mode: > > + maxItems: 1 >=20 > 'maxItems' applies to arrays and this is not an array. What you should > have is constraints on the values: >=20 > enum: [ 0, 1, 2, 3 ] OK, I see better now - would this be the valid way to scope them both? properties: regulator-state-(standby|mem|disk): type: object properties: regulator-mode: enum: [ 0, 1, 2, 3 ] description: Defined in include/dt-bindings/regulator/dlg,da9= 121-regulator.h regulator-initial-mode: enum: [ 0, 1, 2, 3 ] description: Defined in include/dt-bindings/regulator/dlg,da912= 1-regulator.h I couldn't find a precedent in regulator yaml, and it's far removed enough = from what I see in the abstract JSON-schema documentation to make relating them trick= y, even if I had sufficient familiarity with the terminology to believe I'd properl= y understood that! Perhaps I'd be better off abandoning this attempt, and just having the regu= lator description mention these properties/file, like the texts for act8865 and m= ax77802 do?