Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp2053888rdb; Wed, 31 Jan 2024 18:51:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IE1FLj9TO+xkX6iP5ehck6hFFDwfEpzsJKisTKT/9yr9BZ/M3dM9Bzxcjm8mzmeGfXCOq2I X-Received: by 2002:a50:ec96:0:b0:55f:18fa:eb59 with SMTP id e22-20020a50ec96000000b0055f18faeb59mr3426442edr.16.1706755915601; Wed, 31 Jan 2024 18:51:55 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706755915; cv=pass; d=google.com; s=arc-20160816; b=ejSeWSoqJZEQwRkZNL4EYWcSG7cFtxtNupDRVY04gTLsUEfFcduCL0wEGjOxjjEiIN Fi1KJAb+qQhmawEY6dwBsbxkI8DRbkr/kWgffBVn6C7XvauKfes5FLtT5DIycoN1Jp+d oHcQB9V7xFPutQfswN1jcsd+Wm+aZESIEHWo2aUMaaSsb6ZgTLWU+B2bUJIq7zk6Atn8 42QezN33PuLsKiVXN1GBy5q4j9LdvJgZqk5jYEOXTDjEyj9ab+SR/qFaAwvpYxRMEKrM fy4c2liRCWceyV3tq95dkuBxsUdldPTLNd+3JY5E1mJyXWLOffOCS4/lO08QSaQxcVtf NhZQ== 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=1FCD7TewqQtQ/+NDwhbXiuyVwjThunikA4QhpumNVSU=; fh=ZZYV5RykJJnZW1hrcNFETEcqv6UArHwcXRJDgGoEGlo=; b=a91NHYXFbKhQ4/7mQuPYF70gXtTQzbNelaasSlwhvnT9PgS1qwrdGT+EHIdaqjuex5 78HqX5cXbmDxo8SgZuZqBSOkMKnAr3AJJkcNuqcdV9vGESwGhf6NgJIytc4bgv7xaALw YVUJcN0t2AjhTEH2OqScsMjzEETHfACjLxB/91/EM2hxA38S2ZOuTA/W72lwWKCUeXsz S0E1yuj2iulA7NYw80w6UVH547Ugm3K9TYYOU6r/4ejfDXEXg88WR2463yjTPrDKlNZv Ycx0iaYid93W/xMFMHzamMryuViFqjxiehY2c0aGw9G28Mlvrr6dATF4l53fjVCxiSQB FMRg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=5OFYTm68; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-47270-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47270-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch X-Forwarded-Encrypted: i=1; AJvYcCUzqA7VlU/+gGvgYnr9fr5VGs4RuFBePPeFTAXVFsK9OJaMcXwOreZYuz7qy+EDJ40NHuaSf59l5d/jZm3dMr2InKbzzSkLD50RY+gWlw== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id cn14-20020a0564020cae00b0055f5cebe7d4si1816628edb.561.2024.01.31.18.51.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 18:51:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-47270-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=5OFYTm68; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-47270-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47270-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch 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 7FC7C1F2112A for ; Wed, 31 Jan 2024 22:41:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9CD2C3A29B; Wed, 31 Jan 2024 22:41:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="5OFYTm68" Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (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 3E4C4364CA; Wed, 31 Jan 2024 22:40:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=156.67.10.101 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706740862; cv=none; b=QKFTz+Av7m3SOZj6uQ7hyRls0oGuTfV5PbgMV5fTN+shvn6/sOiEvVoiQ+FvbdnSznGNPe/vhtzHf4xiJ+2Ue83/kkY4qfyxs30uZ50lPfQXMvlnIrOhmTM8H8VQPXvAeA+SlZYIpRMaQUnPXY7zmS87y/pHH8gu9ec69jD4nu0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706740862; c=relaxed/simple; bh=mTsfTmcgyNMXPcwEfj9zRffg8acVqn20k2Ate8tbaG8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=s/k+XIDT5vmp20uHo4j6jJ4C7EKaetFkNQA+n1laUx1ALaW7WH1CyeUkVo6K11Zqhl7wZWjUdzu/adY1KkbS3aNA1bHJxFq2W8vHN6q9xmcpi3R5TqK0RWAHSmYNeJWT/N+qcuwYmVpB+Z9JKNAsSgukVC6INkZf7EMta/VItYg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b=5OFYTm68; arc=none smtp.client-ip=156.67.10.101 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=1FCD7TewqQtQ/+NDwhbXiuyVwjThunikA4QhpumNVSU=; b=5OFYTm68G0r5vPSoHrEi0vd196 qULK9+VCXwxp55c7CKayoDKirkf/RjynE6/yXifl8UlN1T4LwuKUxZiy+nI3tLiDk4SPRUIjf7vSn 0mYoDqsjzdCImnuJGE0TynQCxs3XcQcig6iyjBh8fzaeDUXHBa6Tp9/fAP2ylvjmHOvE=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1rVJG9-006cek-Iq; Wed, 31 Jan 2024 23:40:45 +0100 Date: Wed, 31 Jan 2024 23:40:45 +0100 From: Andrew Lunn To: Conor Dooley Cc: Rob Herring , Bastien Curutchet , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Krzysztof Kozlowski , Conor Dooley , Richard Cochran , 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: References: <20240130085935.33722-1-bastien.curutchet@bootlin.com> <20240130085935.33722-2-bastien.curutchet@bootlin.com> <20240130-impulsive-widow-9142a069b7fd@spud> <20240131210521.GA2289883-robh@kernel.org> <20240131-tummy-imperfect-e6d6f0e245e9@spud> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240131-tummy-imperfect-e6d6f0e245e9@spud> On Wed, Jan 31, 2024 at 09:18:39PM +0000, Conor Dooley wrote: > On Wed, Jan 31, 2024 at 03:05:21PM -0600, Rob Herring wrote: > > On Tue, Jan 30, 2024 at 05:56:37PM +0000, Conor Dooley wrote: > > > On Tue, Jan 30, 2024 at 09:59:34AM +0100, Bastien Curutchet wrote: > > > > > + 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". > > > > Tristate properties are fairly common pattern where we need > > on/off/default. I've thought about making it a type. I don't think we > > need defines for it. > > I think a type would be a good idea. I am not at all a fan of any of the > properties people introduce along these lines. Before going too far with that, i'm not actually sure it is required here. I've not looked at the PHY driver itself, but i expect there is some indication somewhere that the network stack expects a fibre link is to be used. We probably can determine at runtime if fibre should be used. Andrew