Message ID | 20240111161927.3689084-1-catalin.popescu@leica-geosystems.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-23853-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2411:b0:101:2151:f287 with SMTP id m17csp1705394dyi; Thu, 11 Jan 2024 12:29:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IGr55/stmD4RWxLVBznlzfvj33k4s056FwZWQxDfZGwKOWQagJh7YjQOxIMfwcPnPX7Uo+/ X-Received: by 2002:a17:902:6848:b0:1d5:769f:389d with SMTP id f8-20020a170902684800b001d5769f389dmr358724pln.8.1705004993574; Thu, 11 Jan 2024 12:29:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705004993; cv=pass; d=google.com; s=arc-20160816; b=ArRoXp/MCaLgvBitcPzNaXDAkFSRB85NHzeHIz5ZfHhnu1M9AE3uIhWfZGd0keUxg9 ZiXhCL9HxIZU0fRugz8TEQQ4U+Aq11Gy5EVAnpSyba2B9IzkkO4lj58j88TSY5uyCH1P rL11zsTcyW8h1VM/iZQdsPbu+ana22w2oHPl3J4EJI0axAEx8AcTQbK9+Y3vRVq+Mvvg gmFlLwKI2NsSTjKUSlPt6AtFfUW5t4pcFOXuiYCPiUV2iYPW3dfigfPrIqtSq/VgKhbW mUwNxI+FaR7De8RSiyfILFfp7FgowqxKgB0iSSQq7wlPek9Wx+0QEthucSF43++tSSRi zTSg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=0aQqe5Pbmg9/g7Hqzu5M8uFwCumDkHgty4VSR4lSNjk=; fh=9yE+bCZdJs+81B9mNzieng86rscYGzbA7xy/MA8qae4=; b=a84NhZWqSxSzCb6pIX9qqkc2AofmM0AhpLy/8gSQ2vSvpJkDUMAhCZ3lpX7x+PMZj6 6aCArVoAUUBbbEpIZGQn4S0mJDhOWsKC0Xg9ToTTYm/6a3bDWL+jD879BUBeRqRLznPt /VrhZ5qxmm2JrfnIZorU8GVg4YC33WW7lQ5ekr+MxN0YMEDUsSMSw6BVhxM5+O3J8NpY xegOdM7VMPwK4DGe4BRSN2nDrg79OCBHhPVk9mKUNtYswj1ZvJ/Kgw23uZ1hqCskMYjt EU+VRAXD1pyNdpAJMdQ7Q2VIghmuzSseXcbdXweAEiPGOC+aZafIaBd+OZA31vYP1Uf8 6yow== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@leica-geosystems.com header.s=selector1 header.b=tybnatGY; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-23853-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23853-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=leica-geosystems.com Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id mi7-20020a170902fcc700b001d508fd4d4csi1691783plb.476.2024.01.11.12.29.53 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 12:29:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-23853-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@leica-geosystems.com header.s=selector1 header.b=tybnatGY; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-23853-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23853-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=leica-geosystems.com 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id D05B5B26041 for <ouuuleilei@gmail.com>; Thu, 11 Jan 2024 16:22:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1CE3B52F83; Thu, 11 Jan 2024 16:20:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=leica-geosystems.com header.i=@leica-geosystems.com header.b="tybnatGY" Received: from EUR02-AM0-obe.outbound.protection.outlook.com (mail-am0eur02on2100.outbound.protection.outlook.com [40.107.247.100]) (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 394735025A; Thu, 11 Jan 2024 16:20:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=leica-geosystems.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=leica-geosystems.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HWc/uJYrOhlCJ30ixQ+q3HDyvHImT8ftNjUXMxAAf/HNDE8Rcc0+AZKg+nK3ngx+ALCizTq7ChVLcA3S6VSRLcdDwJl4PvHecVw4+ZqZm4+S8n4wKQAOIWAeLFk7RefpMlyOPg/h2HV3APioGd1e75jAppl1rTQ5hYkhwzt7ZiYKLriWHwZRM6QxhMce4qFmQIdzB4KODuuhsSN885Pu+zPYmJgtEC0w57jZbPYu+SQiX247RIqN1f5iWqGT2Z9YE/yJHlz9Ay5Z7Caa5PozY8dR/xxyqTuVq/0f/r2kDkOEBtncfli+QFQkPzmKlJMCVbh+ALJZpBKHymLpfsFWtw== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=0aQqe5Pbmg9/g7Hqzu5M8uFwCumDkHgty4VSR4lSNjk=; b=ZPlZE0Qo4Ws+4fEHeyeOI8vsKHG/54YCgyLnjW7MLLFz5yJ46lJtkdPZSKJewJAIMFkTcnWj2eb2ulJ5/3VIqHdn47SziJGOt9Ao6xuixn1zKP90dAl2q5ameou/GY/V19ellYfOlfiv6oH+GWYifwKhg8u8a4rg/1ZVhqmCJjJyd04Rss3nGy5Gx71lTT8Knle1VgKhuVN8TP5adps2eF53yJU29P6WzmoVTRmyZW9elusk56R+BYOEqe9BT8xEwCoAsh2yfzpdwNPnGomAqpSqT4yDtA54pV7XmfA4UqdzlmB0/WLE+xWTqSIMVVcCB813bXh4XoXHX1g1oaU+1Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=temperror (sender ip is 193.8.40.94) smtp.rcpttodomain=vger.kernel.org smtp.mailfrom=leica-geosystems.com; dmarc=temperror action=none header.from=leica-geosystems.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leica-geosystems.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0aQqe5Pbmg9/g7Hqzu5M8uFwCumDkHgty4VSR4lSNjk=; b=tybnatGYYYeeQTPjki7liG8Cpdw+tv1vVDkF6rXGw5L3vSKl50++9tORhDqtA4RV//P/g61VLIeqtB/yV6CgNM9bLGx84nm2ljm3DlplQu3CDtPada/yj74CPZ8pCCUPg22Peb3x13PypFE/nqsh13mfEz9OwIxNO11u6cUbIow= Received: from DU2P251CA0022.EURP251.PROD.OUTLOOK.COM (2603:10a6:10:230::20) by AM8PR06MB6867.eurprd06.prod.outlook.com (2603:10a6:20b:1dc::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7181.18; Thu, 11 Jan 2024 16:20:20 +0000 Received: from DB5PEPF00014B9B.eurprd02.prod.outlook.com (2603:10a6:10:230:cafe::9b) by DU2P251CA0022.outlook.office365.com (2603:10a6:10:230::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7181.19 via Frontend Transport; Thu, 11 Jan 2024 16:20:20 +0000 X-MS-Exchange-Authentication-Results: spf=temperror (sender IP is 193.8.40.94) smtp.mailfrom=leica-geosystems.com; dkim=none (message not signed) header.d=none;dmarc=temperror action=none header.from=leica-geosystems.com; Received-SPF: TempError (protection.outlook.com: error in processing during lookup of leica-geosystems.com: DNS Timeout) Received: from hexagon.com (193.8.40.94) by DB5PEPF00014B9B.mail.protection.outlook.com (10.167.8.168) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7181.14 via Frontend Transport; Thu, 11 Jan 2024 16:20:19 +0000 Received: from aherlnxbspsrv01.lgs-net.com ([10.60.34.116]) by hexagon.com with Microsoft SMTPSVC(10.0.17763.1697); Thu, 11 Jan 2024 17:20:19 +0100 From: Catalin Popescu <catalin.popescu@leica-geosystems.com> To: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, afd@ti.com, andrew@lunn.ch, hkallweit1@gmail.com, linux@armlinux.org.uk Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Catalin Popescu <catalin.popescu@leica-geosystems.com> Subject: [PATCH 1/3] dt-bindings: net: dp83826: add ti,cfg-dac-minus binding Date: Thu, 11 Jan 2024 17:19:25 +0100 Message-Id: <20240111161927.3689084-1-catalin.popescu@leica-geosystems.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-OriginalArrivalTime: 11 Jan 2024 16:20:19.0199 (UTC) FILETIME=[11A4C0F0:01DA44AA] X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB5PEPF00014B9B:EE_|AM8PR06MB6867:EE_ Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 21d94795-6ee9-4970-5c92-08dc12c13481 X-SET-LOWER-SCL-SCANNER: YES X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: NqlWwgovF6YMwSXVrG7JlijejGgjyCIknlQVU/HkMjug1QPSVkMMQZTyppkApvSbQzPcLM+7N08lTXsHhdutd03iukkyhHy3WfnZxNh6/cDWxllq1XTSQE524/IGNIlrchubwpOTGlado1b86R43xYCo3kXhOK6axE33ux6zT1ADlASMU6rH39d1EZ7lQlqhT3X9CWHAh3SVoN7fnV1GkAQr8TuEtc6WzZZDASTikkcaAP7JqlkSVAuoGISiXLsmwlKwpkWx4e87bC2vOl8Zn0TyPomASX1oPtqDxrn1YWLegSQzz59TzMkJR7I0EASWe8qun2QH3tybHYm5tKgdevCfzG3KjdZS+cH+rWBQ5eKTWKqd1IySx32nPDi07dr2siQVMrJZqc3H9IW/aexgsHbE5DG7eIjy2CKRMLGFBBlZELooPPJFkXC2dmr/Goh18jqcq8llP7YU6XNbf3KH6w6me9Dv8F/wuZRi1+jguWpBY+hyc7grQ9d8AvVbUbpKrJgxgT4yO2EQMiIfb6uhwEkNivfbDnEe1C6qkgm05VP3IV6xvKdacWCKLyoBIbRCCsyYO+TPmPpZe5RZteJP99vVSuvm4FQomg2huS/F5dtqUrvzc8h9tMDVIcvnMo1guf4GMXIpJiCYW3JQU9HRiSM2gFb2Su+6W95vrAh2mwzjOcQ6SuSGt+shJjbbT0Q6LeDyCdKspnR+1iFhxeieVftTxms4qDIzBdzDM1rTBDsjwilYVRAppmf69NT9wE6X2Kc5HEKl+5+tf+zwU8OF6A== X-Forefront-Antispam-Report: CIP:193.8.40.94;CTRY:CH;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:hexagon.com;PTR:ahersrvdom50.leica-geosystems.com;CAT:NONE;SFS:(13230031)(4636009)(136003)(376002)(396003)(346002)(39860400002)(230922051799003)(1800799012)(451199024)(64100799003)(186009)(82310400011)(36840700001)(40470700004)(46966006)(40460700003)(40480700001)(921011)(70586007)(336012)(36756003)(81166007)(86362001)(356005)(41300700001)(36860700001)(63350400001)(63370400001)(2616005)(82740400003)(1076003)(107886003)(26005)(47076005)(2906002)(6666004)(70206006)(8936002)(316002)(450100002)(478600001)(5660300002)(4326008)(44832011)(8676002);DIR:OUT;SFP:1102; X-OriginatorOrg: leica-geosystems.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jan 2024 16:20:19.6617 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 21d94795-6ee9-4970-5c92-08dc12c13481 X-MS-Exchange-CrossTenant-Id: 1b16ab3e-b8f6-4fe3-9f3e-2db7fe549f6a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=1b16ab3e-b8f6-4fe3-9f3e-2db7fe549f6a;Ip=[193.8.40.94];Helo=[hexagon.com] X-MS-Exchange-CrossTenant-AuthSource: DB5PEPF00014B9B.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8PR06MB6867 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787813201597792414 X-GMAIL-MSGID: 1787827316412081648 |
Series |
[1/3] dt-bindings: net: dp83826: add ti,cfg-dac-minus binding
|
|
Commit Message
POPESCU Catalin
Jan. 11, 2024, 4:19 p.m. UTC
Add property ti,cfg-dac-minus to allow for voltage tuning
of logical level -1 of the MLT-3 encoded data.
Signed-off-by: Catalin Popescu <catalin.popescu@leica-geosystems.com>
---
Documentation/devicetree/bindings/net/ti,dp83822.yaml | 9 +++++++++
1 file changed, 9 insertions(+)
Comments
On Thu, 11 Jan 2024 17:19:25 +0100, Catalin Popescu wrote: > Add property ti,cfg-dac-minus to allow for voltage tuning > of logical level -1 of the MLT-3 encoded data. > > Signed-off-by: Catalin Popescu <catalin.popescu@leica-geosystems.com> > --- > Documentation/devicetree/bindings/net/ti,dp83822.yaml | 9 +++++++++ > 1 file changed, 9 insertions(+) > My bot found errors running 'make DT_CHECKER_FLAGS=-m dt_binding_check' on your patch (DT_CHECKER_FLAGS is new in v5.13): yamllint warnings/errors: dtschema/dtc warnings/errors: /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/net/ti,dp83822.yaml: ti,cfg-dac-minus: missing type definition doc reference errors (make refcheckdocs): See https://patchwork.ozlabs.org/project/devicetree-bindings/patch/20240111161927.3689084-1-catalin.popescu@leica-geosystems.com The base for the series is generally the latest rc1. A different dependency should be noted in *this* patch. If you already ran 'make dt_binding_check' and didn't see the above error(s), then make sure 'yamllint' is installed and dt-schema is up to date: pip3 install dtschema --upgrade Please check and re-submit after running the above command yourself. Note that DT_SCHEMA_FILES can be set to your schema file to speed up checking your schema. However, it must be unset to test all examples with your schema.
On 11.01.24 17:47, Andrew Lunn wrote: > This email is not from Hexagon’s Office 365 instance. Please be careful while clicking links, opening attachments, or replying to this email. > > >> These are not raw register values and these are not voltage values but >> voltage ratios. I'm mapping the voltage ratios to enum values [0-16] >> which are converted to register raw values by the driver. I don't see a >> better way to do this. > I assume 802.3 states what the actual voltage should be? So you can > calculate what 50% of that is? > > Andrew The actual voltage depends on the mode (I know that for 100BASE-TX and MLT-3 it's +/-1V) : it makes no sense to try to code the actual voltage, we need to keep voltage ratio here.
On 11.01.24 18:20, Krzysztof Kozlowski wrote: > [You don't often get email from krzysztof.kozlowski@linaro.org. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ] > > This email is not from Hexagon’s Office 365 instance. Please be careful while clicking links, opening attachments, or replying to this email. > > > On 11/01/2024 17:19, Catalin Popescu wrote: >> Add property ti,cfg-dac-minus to allow for voltage tuning >> of logical level -1 of the MLT-3 encoded data. > A nit, subject: drop second/last, redundant "binding". The "dt-bindings" > prefix is already stating that these are bindings. > See also: > https://elixir.bootlin.com/linux/v6.7-rc8/source/Documentation/devicetree/bindings/submitting-patches.rst#L18 >> Signed-off-by: Catalin Popescu <catalin.popescu@leica-geosystems.com> >> --- >> Documentation/devicetree/bindings/net/ti,dp83822.yaml | 9 +++++++++ >> 1 file changed, 9 insertions(+) > Don't add properties one by one. Especially if they are related. OK > >> diff --git a/Documentation/devicetree/bindings/net/ti,dp83822.yaml b/Documentation/devicetree/bindings/net/ti,dp83822.yaml >> index db74474207ed..2f010333be49 100644 >> --- a/Documentation/devicetree/bindings/net/ti,dp83822.yaml >> +++ b/Documentation/devicetree/bindings/net/ti,dp83822.yaml >> @@ -62,6 +62,15 @@ properties: >> for the PHY. The internal delay for the PHY is fixed to 3.5ns relative >> to transmit data. >> >> + ti,cfg-dac-minus: >> + description: | >> + DP83826 PHY only. >> + Sets the voltage ratio of the logical level -1 for the MLT-3 encoded data. > ratio between what and what? It's the ration b/w the actual output voltage of AOI and the spec reference (the datasheet is not very clear). > >> + 0 = 50%, 1 = 56.25%, 2 = 62.50%, 3 = 68.75%, 4 = 75%, 5 = 81.25%, 6 = 87.50%, >> + 7 = 93.75%, 8 = 100%, 9 = 106.25%, 10 = 112.50%, 11 = 118.75%, 12 = 125%, >> + 13 = 131.25%, 14 = 137.50%, 15 = 143.75%, 16 = 150%. >> + enum: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16] > Missing: "default:" > > > Best regards, > Krzysztof >
On 11.01.24 18:21, Krzysztof Kozlowski wrote: > [You don't often get email from krzysztof.kozlowski@linaro.org. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ] > > This email is not from Hexagon’s Office 365 instance. Please be careful while clicking links, opening attachments, or replying to this email. > > > On 11/01/2024 17:59, POPESCU Catalin wrote: >> On 11.01.24 17:52, Russell King (Oracle) wrote: >>> This email is not from Hexagon’s Office 365 instance. Please be careful while clicking links, opening attachments, or replying to this email. >>> >>> >>> On Thu, Jan 11, 2024 at 04:45:26PM +0000, POPESCU Catalin wrote: >>>> On 11.01.24 17:35, Andrew Lunn wrote: >>>>> [You don't often get email from andrew@lunn.ch. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ] >>>>> >>>>> This email is not from Hexagon’s Office 365 instance. Please be careful while clicking links, opening attachments, or replying to this email. >>>>> >>>>> >>>>> On Thu, Jan 11, 2024 at 05:19:25PM +0100, Catalin Popescu wrote: >>>>>> Add property ti,cfg-dac-minus to allow for voltage tuning >>>>>> of logical level -1 of the MLT-3 encoded data. >>>>>> >>>>>> Signed-off-by: Catalin Popescu <catalin.popescu@leica-geosystems.com> >>>>>> --- >>>>>> Documentation/devicetree/bindings/net/ti,dp83822.yaml | 9 +++++++++ >>>>>> 1 file changed, 9 insertions(+) >>>>>> >>>>>> diff --git a/Documentation/devicetree/bindings/net/ti,dp83822.yaml b/Documentation/devicetree/bindings/net/ti,dp83822.yaml >>>>>> index db74474207ed..2f010333be49 100644 >>>>>> --- a/Documentation/devicetree/bindings/net/ti,dp83822.yaml >>>>>> +++ b/Documentation/devicetree/bindings/net/ti,dp83822.yaml >>>>>> @@ -62,6 +62,15 @@ properties: >>>>>> for the PHY. The internal delay for the PHY is fixed to 3.5ns relative >>>>>> to transmit data. >>>>>> >>>>>> + ti,cfg-dac-minus: >>>>>> + description: | >>>>>> + DP83826 PHY only. >>>>>> + Sets the voltage ratio of the logical level -1 for the MLT-3 encoded data. >>>>>> + 0 = 50%, 1 = 56.25%, 2 = 62.50%, 3 = 68.75%, 4 = 75%, 5 = 81.25%, 6 = 87.50%, >>>>>> + 7 = 93.75%, 8 = 100%, 9 = 106.25%, 10 = 112.50%, 11 = 118.75%, 12 = 125%, >>>>>> + 13 = 131.25%, 14 = 137.50%, 15 = 143.75%, 16 = 150%. >>>>>> + enum: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16] >>>>> We try to avoid register values in DT. We use real units. This is a >>>>> voltage you are configuring, so can you change the unit to millivolts? >>>>> Have the driver do the conversion of volts to register value. >>>>> >>>>> Is it possible to configure any of the other logical levels? >>>> Hi Andrew, >>>> These are not raw register values and these are not voltage values but >>>> voltage ratios. I'm mapping the voltage ratios to enum values [0-16] >>>> which are converted to register raw values by the driver. I don't see a >>>> better way to do this. >>> enum: [ 5000, 5625, 6250, 6875, 7500, 8125, 8750, 9375, 10000, >>> 10625, 11250, 11875, 12500 13125, 13750, 14375, 15000 ] >>> >>> ? >> I'm okay with that approach if there's no better one. I would need to >> remove the register raw values tables from the driver and use a switch >> statement to map those values to raw values. > You can also use -bp or -percent: > https://github.com/devicetree-org/dt-schema/blob/main/dtschema/schemas/property-units.yaml ti,cfg-dac-minus-percent: description: | DP83826 PHY only. Sets the voltage ratio of the logical level -1 relative to the nominal level for the MLT-3 encoded TX data. enum: [50, 56, 62, 68, 75, 81, 87, 93, 100, 106, 112, 118, 125, 131, 137, 143, 150] default: 100 would this be acceptable ?? > Best regards, > Krzysztof >
On 12/01/2024 14:41, POPESCU Catalin wrote: > On 11.01.24 18:21, Krzysztof Kozlowski wrote: >> [You don't often get email from krzysztof.kozlowski@linaro.org. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ] >> >> This email is not from Hexagon’s Office 365 instance. Please be careful while clicking links, opening attachments, or replying to this email. >> >> >> On 11/01/2024 17:59, POPESCU Catalin wrote: >>> On 11.01.24 17:52, Russell King (Oracle) wrote: >>>> This email is not from Hexagon’s Office 365 instance. Please be careful while clicking links, opening attachments, or replying to this email. >>>> >>>> >>>> On Thu, Jan 11, 2024 at 04:45:26PM +0000, POPESCU Catalin wrote: >>>>> On 11.01.24 17:35, Andrew Lunn wrote: >>>>>> [You don't often get email from andrew@lunn.ch. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ] >>>>>> >>>>>> This email is not from Hexagon’s Office 365 instance. Please be careful while clicking links, opening attachments, or replying to this email. >>>>>> >>>>>> >>>>>> On Thu, Jan 11, 2024 at 05:19:25PM +0100, Catalin Popescu wrote: >>>>>>> Add property ti,cfg-dac-minus to allow for voltage tuning >>>>>>> of logical level -1 of the MLT-3 encoded data. >>>>>>> >>>>>>> Signed-off-by: Catalin Popescu <catalin.popescu@leica-geosystems.com> >>>>>>> --- >>>>>>> Documentation/devicetree/bindings/net/ti,dp83822.yaml | 9 +++++++++ >>>>>>> 1 file changed, 9 insertions(+) >>>>>>> >>>>>>> diff --git a/Documentation/devicetree/bindings/net/ti,dp83822.yaml b/Documentation/devicetree/bindings/net/ti,dp83822.yaml >>>>>>> index db74474207ed..2f010333be49 100644 >>>>>>> --- a/Documentation/devicetree/bindings/net/ti,dp83822.yaml >>>>>>> +++ b/Documentation/devicetree/bindings/net/ti,dp83822.yaml >>>>>>> @@ -62,6 +62,15 @@ properties: >>>>>>> for the PHY. The internal delay for the PHY is fixed to 3.5ns relative >>>>>>> to transmit data. >>>>>>> >>>>>>> + ti,cfg-dac-minus: >>>>>>> + description: | >>>>>>> + DP83826 PHY only. >>>>>>> + Sets the voltage ratio of the logical level -1 for the MLT-3 encoded data. >>>>>>> + 0 = 50%, 1 = 56.25%, 2 = 62.50%, 3 = 68.75%, 4 = 75%, 5 = 81.25%, 6 = 87.50%, >>>>>>> + 7 = 93.75%, 8 = 100%, 9 = 106.25%, 10 = 112.50%, 11 = 118.75%, 12 = 125%, >>>>>>> + 13 = 131.25%, 14 = 137.50%, 15 = 143.75%, 16 = 150%. >>>>>>> + enum: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16] >>>>>> We try to avoid register values in DT. We use real units. This is a >>>>>> voltage you are configuring, so can you change the unit to millivolts? >>>>>> Have the driver do the conversion of volts to register value. >>>>>> >>>>>> Is it possible to configure any of the other logical levels? >>>>> Hi Andrew, >>>>> These are not raw register values and these are not voltage values but >>>>> voltage ratios. I'm mapping the voltage ratios to enum values [0-16] >>>>> which are converted to register raw values by the driver. I don't see a >>>>> better way to do this. >>>> enum: [ 5000, 5625, 6250, 6875, 7500, 8125, 8750, 9375, 10000, >>>> 10625, 11250, 11875, 12500 13125, 13750, 14375, 15000 ] >>>> >>>> ? >>> I'm okay with that approach if there's no better one. I would need to >>> remove the register raw values tables from the driver and use a switch >>> statement to map those values to raw values. >> You can also use -bp or -percent: >> https://github.com/devicetree-org/dt-schema/blob/main/dtschema/schemas/property-units.yaml > > ti,cfg-dac-minus-percent: > description: | > DP83826 PHY only. > Sets the voltage ratio of the logical level -1 relative to the > nominal level for the MLT-3 encoded TX data. > enum: [50, 56, 62, 68, 75, 81, 87, 93, 100, 106, 112, 118, 125, > 131, 137, 143, 150] > default: 100 Yes, which would also solve your problem of binding errors. But does not remove the need of testing it before sending to the lists. Best regards, Krzysztof
Hi Catalin,
kernel test robot noticed the following build warnings:
[auto build test WARNING on robh/for-next]
[also build test WARNING on net-next/main net/main linus/master v6.7 next-20240112]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Catalin-Popescu/dt-bindings-net-dp83826-add-ti-cfg-dac-plus-binding/20240112-002701
base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
patch link: https://lore.kernel.org/r/20240111161927.3689084-1-catalin.popescu%40leica-geosystems.com
patch subject: [PATCH 1/3] dt-bindings: net: dp83826: add ti,cfg-dac-minus binding
compiler: loongarch64-linux-gcc (GCC) 13.2.0
reproduce: (https://download.01.org/0day-ci/archive/20240113/202401131320.WhWHSzeD-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202401131320.WhWHSzeD-lkp@intel.com/
dtcheck warnings: (new ones prefixed by >>)
>> Documentation/devicetree/bindings/net/ti,dp83822.yaml: ti,cfg-dac-minus: missing type definition
Documentation/devicetree/bindings/net/snps,dwmac.yaml: mac-mode: missing type definition
diff --git a/Documentation/devicetree/bindings/net/ti,dp83822.yaml b/Documentation/devicetree/bindings/net/ti,dp83822.yaml index db74474207ed..2f010333be49 100644 --- a/Documentation/devicetree/bindings/net/ti,dp83822.yaml +++ b/Documentation/devicetree/bindings/net/ti,dp83822.yaml @@ -62,6 +62,15 @@ properties: for the PHY. The internal delay for the PHY is fixed to 3.5ns relative to transmit data. + ti,cfg-dac-minus: + description: | + DP83826 PHY only. + Sets the voltage ratio of the logical level -1 for the MLT-3 encoded data. + 0 = 50%, 1 = 56.25%, 2 = 62.50%, 3 = 68.75%, 4 = 75%, 5 = 81.25%, 6 = 87.50%, + 7 = 93.75%, 8 = 100%, 9 = 106.25%, 10 = 112.50%, 11 = 118.75%, 12 = 125%, + 13 = 131.25%, 14 = 137.50%, 15 = 143.75%, 16 = 150%. + enum: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16] + required: - reg