Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1174197rdb; Tue, 30 Jan 2024 09:57:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IGmgkaeeA3gRjGJQ4UM538PvkVhyhOkIS9i8MG6b+lQ3qeXgeHl0eMbSSIbOCOrvGR0ppXi X-Received: by 2002:a05:6402:2696:b0:55f:4bd8:495 with SMTP id w22-20020a056402269600b0055f4bd80495mr1708934edd.6.1706637427880; Tue, 30 Jan 2024 09:57:07 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706637427; cv=pass; d=google.com; s=arc-20160816; b=R1Uyf0pLOdEuWQOY0d+sFdX7y7lm9AIMPkoVRTghZK1L5/ZaE3y7sDu1l8+XQr/Eom fWS7o+LkpbLWNy9HoGDrDhEe1PEfsAUBG8Z2/OpKTsbtWz9a680nRhKa31mw8dK16bw8 oyA7Pf6Ly7YuTNLDZgfHS6B0U9GJ7L45G/VCliqD7BH04zaCf92tUUTNdrqWwj7o/8az r8jmB2YHCQgZW+m309cu8kZ/a3lximCzH4KAiIFNXcjSvfhwy9FnNdPMco3ahTc2cevC GDVJ+X8wwGgiRls565UYBnpqOdVanhN+LyvVts5qzDl7/p8QCwdJz4TnZGsCk1SAM69W S1/Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=7YHY0L5RUnnHRKcrrXGiYznHWUBIb7jwFLVtrTRPJVE=; fh=OCnqaYcUNdlplbBzql01+L97rKNLkMU9/PFRkCI/wU4=; b=KaqRXCUUYSbgiUI6mVinvSRuaj8HZaCM/nWEx/lJnUCA7IXjWSnvlVh6DlrsSy7n76 K4+lXKL5isBIGH5tnpBHpfbSLrAjFsk+8NT4TUcFmtxWV+rp3YRZ7xWsReA0wnahpg88 kbhOD0tGa5rRRF4h1BwhPLdv2UjcTKxV3JUjmoiMIYNn3rvRSNpqcFS5ZiA0YqsfvUW7 beKAquJQySPQbCJmLzcYq3gBmNTYD1BuT6Ja8Joeh7HPbwVvDc70CRqJScC44CAo0qpn oWX7yqcoPfo6XBIezVDJlqe9iPhJtjy22oXFu4X6m3oM53+wniwsW6S7+yBl/V/2Cz+7 4oOQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=p8j0BtX5; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-45064-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-45064-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id d14-20020a50cd4e000000b0055c7ce8e57asi4963144edj.0.2024.01.30.09.57.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 09:57:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-45064-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=p8j0BtX5; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-45064-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-45064-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 803F61F23BEE for ; Tue, 30 Jan 2024 17:57:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B8273151478; Tue, 30 Jan 2024 17:56:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="p8j0BtX5" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 D4306151CC4; Tue, 30 Jan 2024 17:56:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706637404; cv=none; b=tBiqcvqNjttQ89WR8+05K3//HciE1F3OISQQuimiQpiP8MUdcyJAHNVgEWe/SFIS7ULMCKazEtSa7dvi3FEXRYWfy3H9KN+7kzcELSHnOlVr5YGs029gKt9F4JzuMU7z+thiSXZ1mX1bd4313L8JEbJTdxNUULNTSDBm0YgfLrs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706637404; c=relaxed/simple; bh=Yb/9/lIzuxOAl9LlxJ374p+pZ3mV2yczBgo+ljHDeKY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=SV6joVV8p6ZmKVCgiKzwoUodDrsvC26JyzCHUQFKrdZS4fnfcxKHQk4sWEB99Kbtj9kM9RMGukUvCEt/VLrld8UHlJz4PPPSNEkE/5A6D343m/3TwpMe+rqyO/6XQWC4RYnKm8Taiq0XIIGEja7/sCzPyzCBvInGBlT0/FeZOJA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=p8j0BtX5; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 213FDC433F1; Tue, 30 Jan 2024 17:56:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706637403; bh=Yb/9/lIzuxOAl9LlxJ374p+pZ3mV2yczBgo+ljHDeKY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=p8j0BtX5Ynuq9zhz1R1Jsk79RG7Ky6/WW0lNaSGJ5412sUUM30tUeQcFaqWTZsvUP pDUK56hdOmF1huF/uLh4VEn1YdBlLGGsCZMxhjItgfeC9j2Ivt9MSMcEh/wSGlx9mm AAhFS/PSndmNl2f19w6ZEYwmmbNiRdGHabYj04on/IcUZpidIXeAFLN1pnBLeJTpb8 mCTgDCIktuAXwgI+ZfMFNezKxN8uSqHAnEPmoA35zMvGjgb2d4CcsxiVLEGs8VlWWk CMG6blBzxWOgVKyJbC8x+2ecvhEqgJXE/YMOmyNUDjEbLmgvYqi+eY32uZ8869uscO 8PtjDa4L4Vuzg== Date: Tue, 30 Jan 2024 17:56:37 +0000 From: Conor Dooley To: Bastien Curutchet Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Richard Cochran , Andrew Lunn , Heiner Kallweit , Russell King , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Thomas Petazzoni , Herve Codina Subject: Re: [PATCH 1/2] dt-bindings: net: Add TI DP83640 Message-ID: <20240130-impulsive-widow-9142a069b7fd@spud> References: <20240130085935.33722-1-bastien.curutchet@bootlin.com> <20240130085935.33722-2-bastien.curutchet@bootlin.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="Y5GnecSt1OF2hlII" Content-Disposition: inline In-Reply-To: <20240130085935.33722-2-bastien.curutchet@bootlin.com> --Y5GnecSt1OF2hlII Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hey, On Tue, Jan 30, 2024 at 09:59:34AM +0100, Bastien Curutchet wrote: > +description: | > + The DP83640 Precision PHYTER device delivers the highest level of precision This is not a marketing document. > + clock synchronization for real time industrial connectivity based on the > + IEEE 1588 standard. The DP83640 has deterministic, low latency and allows > + choice of microcontroller with no hardware customization required > + > + This device interfaces directly to the MAC layer through the > + IEEE 802.3 Standard Media Independent Interface (MII), or Reduced MII (RMII). > + > + Specifications about the Ethernet PHY can be found at: > + https://www.ti.com/lit/gpn/dp83640 > + > +properties: > + reg: > + maxItems: 1 > + > + ti,clk-output: > + $ref: /schemas/types.yaml#/definitions/uint32 > + enum: [0, 1] > + description: | > + If present, enables or disables the CLK_OUT pin. > + CLK_OUT pin disabling can also be strapped. If the strap pin is not set > + correctly or not set at all then this can be used to configure it. > + - 0 = CLK_OUT pin disabled > + - 1 = CLK_OUT pin enabled > + - unset = Configured by straps If you are providing a clock, why is there no clock-controller property here? I don't think the 3-way nature of this property is needed, if you make this a "real" clock controller. > + ti,fiber-mode: > + $ref: /schemas/types.yaml#/definitions/uint32 > + enum: [0, 1] > + description: | > + If present, enables or disables the FX Fiber Mode. > + Fiber mode support can also be strapped. If the strap pin is not set > + correctly or not set at all then this can be used to configure it. > + - 0 = FX Fiber Mode disabled > + - 1 = FX Fiber Mode enabled > + - unset = Configured by straps I don't like these properties that map meanings onto numbers. We can have enums of strings in bindings that allow you to use something more meaningful than "0" or "1". Cheers, Conor. --Y5GnecSt1OF2hlII Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZbk4VQAKCRB4tDGHoIJi 0sc9AP9/5gdJl8glaf7X/USWmsQy+VhIxi9nZrUhkpklLAx09gEAs00QJHIiHRDu j51c3BLSHaUypla7gPW7LWlopEKQeAs= =Zij8 -----END PGP SIGNATURE----- --Y5GnecSt1OF2hlII--