From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, T_DKIMWL_WL_HIGH,USER_AGENT_NEOMUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4E61CC4321A for ; Tue, 11 Jun 2019 11:31:34 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 224C12089E for ; Tue, 11 Jun 2019 11:31:34 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="DcvI1jQm" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 224C12089E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=bootlin.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender:Content-Type:Cc: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: In-Reply-To:MIME-Version:References:Message-ID:Subject:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=Ze8myuHMe7TGDNwvGGojWxdbjH4joZbpObaBdwqycJs=; b=DcvI1jQmx8F0f7JVz8gq/Q0oN cLer0frLSLLRW900DBE/ZheRsa3wYRasw9edywUv7m1FO7CTNIus2ey0laXzV9VfvZaiLpzL5fkpr ER3SFEegkoimRCfrQ06isc3m39KmHF0vXm0VBM+d1e1HRLatqPd2ab/5owuRrwgeSIfetfrbvNZMo FP+DG0hQenOr4WjNBl8uK7NhoIqGw61ESemEDHdf+wRTK6phGJwGDd2sCKNnqNMF5TRE5Wqeuixli 8Hf8RDZci366bbvkxukYvo/pUvzCrn4KD1hW0ygQ1R9qwHv3bnvWOamT/tuB7PdW3YRqEyhDxS9yT J4iO9607Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1haezv-0002RO-3t; Tue, 11 Jun 2019 11:31:27 +0000 Received: from relay3-d.mail.gandi.net ([217.70.183.195]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1haezr-0002Ow-6y for linux-arm-kernel@lists.infradead.org; Tue, 11 Jun 2019 11:31:25 +0000 X-Originating-IP: 90.88.159.246 Received: from localhost (aaubervilliers-681-1-40-246.w90-88.abo.wanadoo.fr [90.88.159.246]) (Authenticated sender: maxime.ripard@bootlin.com) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id B79F460007; Tue, 11 Jun 2019 11:31:08 +0000 (UTC) Date: Tue, 11 Jun 2019 13:31:08 +0200 From: Maxime Ripard To: Rob Herring Subject: Re: [PATCH v2 09/11] dt-bindings: net: sun8i-emac: Convert the binding to a schemas Message-ID: <20190611113108.pxiia2u5skbnl2au@flea> References: <91618c7e9a5497462afa74c6d8a947f709f54331.1560158667.git-series.maxime.ripard@bootlin.com> MIME-Version: 1.0 In-Reply-To: User-Agent: NeoMutt/20180716 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190611_043123_579612_8AA9156B X-CRM114-Status: GOOD ( 12.71 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, Florian Fainelli , Alexandre Torgue , Andrew Lunn , Antoine =?utf-8?Q?T=C3=A9nart?= , netdev , linux-stm32@st-md-mailman.stormreply.com, Chen-Yu Tsai , Maxime Coquelin , Maxime Chevallier , Frank Rowand , "David S . Miller" , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , Heiner Kallweit Content-Type: multipart/mixed; boundary="===============6770857786752918403==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============6770857786752918403== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="twpj3baugamuul24" Content-Disposition: inline --twpj3baugamuul24 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, On Mon, Jun 10, 2019 at 01:22:00PM -0600, Rob Herring wrote: > On Mon, Jun 10, 2019 at 3:26 AM Maxime Ripard wrote: > > + then: > > + properties: > > + allwinner,tx-delay-ps: > > + allOf: > > + - $ref: /schemas/types.yaml#definitions/uint32 > > Can drop this as anything with unit prefix has its type defined > already. Not for picoseconds though. I'll send a PR to dt-schema if you prefer to define it there. > > > + - enum: [0, 100, 200, 300, 400, 500, 600, 700] > > + default: 0 > > + description: > > + External RGMII PHY TX clock delay chain value in ps. > > + > > + allwinner,rx-delay-ps: > > + allOf: > > + - $ref: /schemas/types.yaml#definitions/uint32 > > + - enum: > > + - 0 > > + - 100 > > + - 200 > > + - 300 > > + - 400 > > + - 500 > > + - 600 > > + - 700 > > + - 800 > > + - 900 > > + - 1000 > > + - 1100 > > + - 1200 > > + - 1300 > > + - 1400 > > + - 1500 > > + - 1600 > > + - 1700 > > + - 1800 > > + - 1900 > > + - 2000 > > + - 2100 > > + - 2200 > > + - 2300 > > + - 2400 > > + - 2500 > > + - 2600 > > + - 2700 > > + - 2800 > > + - 2900 > > + - 3000 > > + - 3100 > > I think you can do > > enum: [1, 2, 3, > 4, 5, 6] > > Or you can do: > > minimum: 0 > maximum: 3100 > multipleOf: 100 > > IIRC that multipleOf is a json-schema key. I really like that second syntax, thanks! Maxime -- Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com --twpj3baugamuul24 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCXP+Q/AAKCRDj7w1vZxhR xXNCAP9Z7+EYu847+4dOo5AEj3ZOyAIpaf0cfysGi59ElDt8YgEA36E6Jv7/cOpS KBTjh2j/vsuGvWij3L6KlfuKURO0UwM= =3dqX -----END PGP SIGNATURE----- --twpj3baugamuul24-- --===============6770857786752918403== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel --===============6770857786752918403==--