From patchwork Thu Jan 11 16:19:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: POPESCU Catalin X-Patchwork-Id: 187483 Return-Path: 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 (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 ; 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 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 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: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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_ 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 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 --- 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] + required: - reg From patchwork Thu Jan 11 16:19:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: POPESCU Catalin X-Patchwork-Id: 187442 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2411:b0:101:2151:f287 with SMTP id m17csp1561996dyi; Thu, 11 Jan 2024 08:23:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IE4EsdUVcpmOc3sfNDhZ969h21lQ0x+aYs8gXVWbiUzV33r+0qo2A/3kBBBFG+wozXTrB5E X-Received: by 2002:a81:ae21:0:b0:5f5:87e0:cf4b with SMTP id m33-20020a81ae21000000b005f587e0cf4bmr33632ywh.42.1704990197584; Thu, 11 Jan 2024 08:23:17 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1704990197; cv=pass; d=google.com; s=arc-20160816; b=eKsFtEsxZsRJuW0GEGWk8upNpBQcpN7mnwjk40r7MoH0i3ChnHwFXNB+9X/31sFbur WpSAcxaoKuW73gAQlg8vpnJqo/tpujQjZjt2ZzJIURgaUihbj8GHg/d+o0foO4hWqkys ra5ddDQ2j8hH9Cu6hyl2vfObuh/L8JmU7+HctDYobQnH+Fsl/LIMjlpYIPOVK0cy031R gmuZXwDjBOI6N91BYSzD/2cdW4fv8DpL6qdLhUEEfbP+aJXN1UYo5NLGuDJEyb++efd/ AFtEBz7TzN25QiPVEZ1RY5WobN7jnvggB06wvO0JlCGqHWwFPy3UyIcsI+u9z5Qh/Mo/ DzSQ== 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:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=gC1seJZBwcuGR7ox2hJGmTyrtxhQ0BMKZoBjDabEJPE=; fh=9yE+bCZdJs+81B9mNzieng86rscYGzbA7xy/MA8qae4=; b=JjoPdoQhqJRR1i8qSA2+6xMFMjilrmB7Sh4k8ds2FRszYw+eYe+eFy4t1dfEdU5AoC GEYvY4gzpXorE+ApzAqBQX+k3c4BgVRwcH/KRpXPgCLKe7HgWSio3bba5e8xRQaiH6RX +jg6tP0ENSFCTxucv/KO0oqiqX4sV8fIBm5g/wUjUnp9bLjMhmFYk3tsEnTTwEih969T q3xTlnIPm7yiBdC+8M00iW0aZ87GQ9FQcU9vU2tDVKt9uXiQ4NjpxEkpyL6Hg3fGLWQ5 Tc4APAJBLUZvNHVXRJKYc9qh8vNYidpu6wUm2rxCzTRgTOnDf2Ug1Chto8qJjw/HveG5 I0Bg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@leica-geosystems.com header.s=selector1 header.b=gJW4wtcL; arc=pass (i=1 spf=pass spfdomain=leica-geosystems.com dmarc=pass fromdomain=leica-geosystems.com); spf=pass (google.com: domain of linux-kernel+bounces-23854-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23854-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=leica-geosystems.com Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id vq21-20020a05620a559500b0078151aaae56si1146216qkn.223.2024.01.11.08.23.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 08:23:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-23854-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@leica-geosystems.com header.s=selector1 header.b=gJW4wtcL; arc=pass (i=1 spf=pass spfdomain=leica-geosystems.com dmarc=pass fromdomain=leica-geosystems.com); spf=pass (google.com: domain of linux-kernel+bounces-23854-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23854-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 50F7F1C23E83 for ; Thu, 11 Jan 2024 16:23:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 760E054BCE; Thu, 11 Jan 2024 16:20:35 +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="gJW4wtcL" Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03on2130.outbound.protection.outlook.com [40.107.104.130]) (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 7BEF75025A; Thu, 11 Jan 2024 16:20:30 +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=A+tmRD4dXJ1B7VJ/aUa/Yerh/2ArUE0r/UtKsO9o86QESkqhBv1nogbDu25X0FLi2yd1oFjlt8P5OIWdIh3yyeAysTfPy4f4NenwB/bfNh7Sd5WZmB6AhWWm94hR5++IpvLanJ6pynvf9zAqq7wvijG7oRCoJRjb0c/8scMsGa04Krx2WxUvI1KuxLMkWJDSBqM1gty/w+TEWAalmx2Igz33TSk1EQlCF0RQZ4IcF5sZcaTlMIhlMBkzH7n94/G3lOa3qYEafPKREj98eida+zvMYHZbUDv4doyRzHqqMIVD7PPo1nANPmTBtmDjTCs4ew/la0RBUYtQK1yRUZ7JqQ== 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=gC1seJZBwcuGR7ox2hJGmTyrtxhQ0BMKZoBjDabEJPE=; b=XSzyVxqqTnyUBYRvaQMBtfY2DdAfho6ddKms+aV4/plMUIvfkvzhivEi8wnUS690v1j4czRpr4M0PHjIRL3YEOfyWpV0fAyyvGxbqWUq5vDQHH32nHPyxJ17dKsAn2cPoYMY0zATIeCiiPiN4gbmykvrn9Km8TLRSQZjbjbNjlyzkcAnqu0ghO17y2xESWPxF1/z8pvcji2Uro+p5yizC4qeYQ5e9M8K6qF6WomTd92v4djQV6/7wOKanaPeCsuny1UbLOkTr2CPAJjvsRfj9oO+5R1hEz7hzGN7jD/LW7rahvy7NmoLF2OmsHcJ/tvXeJEk9ZZgpAqdAdMdlpkvOA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 193.8.40.94) smtp.rcpttodomain=vger.kernel.org smtp.mailfrom=leica-geosystems.com; dmarc=pass (p=reject sp=reject pct=100) 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=gC1seJZBwcuGR7ox2hJGmTyrtxhQ0BMKZoBjDabEJPE=; b=gJW4wtcLkUAlFkH+tMjPh32Fk7ux/SIA5PdaQRo//02ekMdYSGq/utKb8jQ0M09L0f0sVti1PnrrEJa6nXqvOC+YTBNhFirAU6eIWkD3BbJGmc9Wnr5ZrYeEfIOMe8aqKxLUri3ujBO5OLg6kKaStdKTDh/PHNQaKeX+B7oEbmo= Received: from DB8P191CA0025.EURP191.PROD.OUTLOOK.COM (2603:10a6:10:130::35) by AS5PR06MB8655.eurprd06.prod.outlook.com (2603:10a6:20b:652::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7159.23; Thu, 11 Jan 2024 16:20:27 +0000 Received: from DB5PEPF00014B9C.eurprd02.prod.outlook.com (2603:10a6:10:130:cafe::8b) by DB8P191CA0025.outlook.office365.com (2603:10a6:10:130::35) 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:27 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 193.8.40.94) smtp.mailfrom=leica-geosystems.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=leica-geosystems.com; Received-SPF: Pass (protection.outlook.com: domain of leica-geosystems.com designates 193.8.40.94 as permitted sender) receiver=protection.outlook.com; client-ip=193.8.40.94; helo=hexagon.com; pr=C Received: from hexagon.com (193.8.40.94) by DB5PEPF00014B9C.mail.protection.outlook.com (10.167.8.170) 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:27 +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:27 +0100 From: Catalin Popescu 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 Subject: [PATCH 2/3] dt-bindings: net: dp83826: add ti,cfg-dac-plus binding Date: Thu, 11 Jan 2024 17:19:26 +0100 Message-Id: <20240111161927.3689084-2-catalin.popescu@leica-geosystems.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240111161927.3689084-1-catalin.popescu@leica-geosystems.com> References: <20240111161927.3689084-1-catalin.popescu@leica-geosystems.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-OriginalArrivalTime: 11 Jan 2024 16:20:27.0433 (UTC) FILETIME=[168D2990:01DA44AA] X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB5PEPF00014B9C:EE_|AS5PR06MB8655:EE_ X-MS-Office365-Filtering-Correlation-Id: 29fcc8cc-2aec-494f-3950-08dc12c1394b 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: 6JMLU9NOgxBy0fkYllbqnDfqR2RqoUawd+U6fyERKUTTT3xLmHKcIyb3M30w9T+Wl0TVI6RNgNDcRFRLeALTdUCyG9Q76P3Kh9FW0j27pM7WL0we6bxwMFr0wkD3a5Jis/db2fEb1WOUd97xg5HX0rmhhcPDDPAQc6PWeO8pmLKqWuyQj4r+s6pLXBX0ben4nM6xsA9xZAq+Ga63HWAdc6hA52547SAQIcqI4MhOKha4bP9imAZ2hkFrgE52KSmC4JAfW6kYBLFw4bugvoKwT8lRtiyl3if9nLo+jcbaMkdUlnbn9azVLg5tHWk2UMzNA77zFgFvNLgXmTS+IA5ht54IQmmLk70EucZ0ji6uL2Hl+mc4XK3Kl+RhXR6Yj4kDb8+Z5HipuPGx/f65grPdxaQzd1H7Zi1Xmu4gwOCttV8DpI7wRNS7atby7ijSa+dn6zMBNDNRxn9407m1Fp7BKDAa/B3B5AlxgYuOP+PnyTafTda0crAvZktpKYIhEw41eVM2t5ue0JepVbS095LlI40Ss95cF56Br4HdhRTiHEG6EKJwUt7ZJrD26WcwsWycULOfqnIJJ3S9YXia8TAUsqxL0rMRvILUUHaan46/CY67TsCAvsfT0qggS3D/tr22F4zSkx0bZAFZNoQDbSLtojwgmVzCGgSECFjceZWtRqn00mWVopLmYJVZip5Z3UPoSevHi1o33ZdnGZ6rvb+hhG1+PDVXFJkPz6/dFmP1aD8fVAKczDGLGqn+VXuD/afpmwkW+8r0fhTDhJuZrpbAVA== 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)(396003)(39860400002)(136003)(346002)(376002)(230922051799003)(1800799012)(186009)(82310400011)(64100799003)(451199024)(46966006)(36840700001)(40470700004)(40460700003)(40480700001)(336012)(41300700001)(356005)(36756003)(70206006)(86362001)(921011)(81166007)(2906002)(36860700001)(47076005)(82740400003)(107886003)(478600001)(2616005)(26005)(1076003)(316002)(70586007)(5660300002)(8936002)(4326008)(8676002)(44832011)(450100002);DIR:OUT;SFP:1102; X-OriginatorOrg: leica-geosystems.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jan 2024 16:20:27.7424 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 29fcc8cc-2aec-494f-3950-08dc12c1394b 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: DB5PEPF00014B9C.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS5PR06MB8655 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787811801155896421 X-GMAIL-MSGID: 1787811801155896421 Add property ti,cfg-dac-plus to allow for voltage tuning of logical level +1 of the MLT-3 encoded data. Signed-off-by: Catalin Popescu --- 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 2f010333be49..f9b68bde57a4 100644 --- a/Documentation/devicetree/bindings/net/ti,dp83822.yaml +++ b/Documentation/devicetree/bindings/net/ti,dp83822.yaml @@ -71,6 +71,15 @@ properties: 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] + ti,cfg-dac-plus: + 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 From patchwork Thu Jan 11 16:19:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: POPESCU Catalin X-Patchwork-Id: 187443 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2411:b0:101:2151:f287 with SMTP id m17csp1562070dyi; Thu, 11 Jan 2024 08:23:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IFA7/09zcubOBFsKnPiD94v/4NSPBxb80oKt4aIY0wRErYYVyj01LomNHkicuCesS7ish6a X-Received: by 2002:a05:6512:3583:b0:50e:4ebe:ca46 with SMTP id m3-20020a056512358300b0050e4ebeca46mr670273lfr.78.1704990206814; Thu, 11 Jan 2024 08:23:26 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1704990206; cv=pass; d=google.com; s=arc-20160816; b=y0wD+PDcDwsPnta+3/jvPtZOzoGjKbd+hNR/0oUmb4Ca+BSSuvI2td/bQwrJT5NHQB waTGKwssbkUkSYQPwMrlBH2EI2y6C977T9JUNEHWk2fOuGDNspaxbWR5moQg2Wx1z0Ea zZMO5H9D18wEPMfr2K1YWrBv8x8KqnZG21wQ3p5x4sC4DmPh/y/SpM47qhqGSoHaPWtR l9XQ99YNGL4wScZt0MwMfEX8ZGt4QK8YGm5z74khBOZIhNZEogjooxT2C7akwVXGtgAW fHb97zWxBAGq9MuDEml/G4dYv33obQBJHLuEeSL5apkp/Yt9y7L1VhecGwR13lU4hGSM CNvg== 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:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=bZmJu/MFCJvPTh6O8Bx6egjMmivl7bmsl9NwLHxy4pw=; fh=9yE+bCZdJs+81B9mNzieng86rscYGzbA7xy/MA8qae4=; b=OYJOX9lMeDjkmI2zi49JCyse7G3U9PiBSJU4urRwl/wlU21ifw362srmTGVgiXd+Ll a8LADHJWrcLU2pBbG4KSgR2GX3MQYLI73Ts1ngHMoJp0Pk5z2PtFMexsag2wf4AiR2fz Ry3mzGw62eqzWHb+xBf5Q8hoMN7c+/vRSH1KO8y0GrzVvbJUIQdTlYoPCF5g66wHpcX+ 4lOpuGKrVfxu7oGqoiJ16QS02cUC7YlYmGkFQCLdYhpsQb4JdWVJYr+7A166hTY0U72k k7KZYWDxKS91usGxpjqNM6KvJE1ozl/MxEUX/XL7UkWtKCxSMDLzO6PJNV/mBPr1kN0b otsw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@leica-geosystems.com header.s=selector1 header.b=cr5yCxDF; arc=pass (i=1 spf=pass spfdomain=leica-geosystems.com dmarc=pass fromdomain=leica-geosystems.com); spf=pass (google.com: domain of linux-kernel+bounces-23855-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23855-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=leica-geosystems.com Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id r12-20020a056402234c00b00558a6025391si468241eda.21.2024.01.11.08.23.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 08:23:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-23855-ouuuleilei=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=@leica-geosystems.com header.s=selector1 header.b=cr5yCxDF; arc=pass (i=1 spf=pass spfdomain=leica-geosystems.com dmarc=pass fromdomain=leica-geosystems.com); spf=pass (google.com: domain of linux-kernel+bounces-23855-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23855-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 4091F1F25DB1 for ; Thu, 11 Jan 2024 16:23:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 921F554FB1; Thu, 11 Jan 2024 16:20:37 +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="cr5yCxDF" Received: from EUR02-AM0-obe.outbound.protection.outlook.com (mail-am0eur02on2099.outbound.protection.outlook.com [40.107.247.99]) (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 8A71252F82; Thu, 11 Jan 2024 16:20:31 +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=L1YAZT3A052JTJig41kSVRkBzHqe2uhjhgexY3nGRXf4Xi9dlx1CXtReLqADV7JLy999qnutm8httwMW9ZsCgUb/Xkl0j0kh8lo7D9VaEqu/IxOF9mcZObHZjsRwO6fdUBWFYZBqGeTyTsb0GSz/YNMzmYlVzBkeKVjFl2w29x1eG5rnByoB/3c3j9X2mh6utiyXVkDwsfBi94zHzhHcZ8xLb69r8en2MkiBcD1t8i4JCehI5t7pkMVT6Im5e6wqlOmX7wPx/pS/fiPJ7op4v0c0dzc5Y29yLlhU0ricfobvGw2ex11mGwVg+5l3DQpEA1NYjJg1lBgO1QA/WMFc8A== 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=bZmJu/MFCJvPTh6O8Bx6egjMmivl7bmsl9NwLHxy4pw=; b=bQ7aaFb93ssofWA2i1xoUUuVMMlXLfp6HgsnlelRPj3cchfyk7a3ozv/ygk+L6SoYsbRRP1sX1Ovrf+CBgKBIU+mUPPS/BIGiPYT8+y0uHcET3S+ajxw3YauZDMVDpWQnpPaS5GUv+CgDC3Ko5pHE7mN5iz9vtjm7cPAlp1JvpkottqnS8DUnx2UGTGUoiy29/zUatUY6QEeF6i3XrCiuhvcmhlQh8mTi0JyM/u9w0pXBqJFD48cKAPGbydFNkr8WjKGpy0gbj5aI5PMpY8puSiscedVIxCMSzhZUuN0g9Q39/6YzqtWF0tinYAX6pGQZsyH8t7LDGVIWBSyeJfzCQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 193.8.40.94) smtp.rcpttodomain=vger.kernel.org smtp.mailfrom=leica-geosystems.com; dmarc=pass (p=reject sp=reject pct=100) 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=bZmJu/MFCJvPTh6O8Bx6egjMmivl7bmsl9NwLHxy4pw=; b=cr5yCxDF7ElU5xOY8lZZ9e1WU9kUKHJgbNlj02svz658svznaHj9m9qje3OZ7wGQ1ibZ6lui+VTMmv2j8uOnxac4Q63OV0awV5CW88jwDJrjHUq0XMOhkbBEUJPJm+ooVWDmeB8rV0u+LBGISarvsd0XE5TzmZw/cXJfITv1/c0= Received: from DU2PR04CA0037.eurprd04.prod.outlook.com (2603:10a6:10:234::12) by AM8PR06MB7764.eurprd06.prod.outlook.com (2603:10a6:20b:363::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7181.19; Thu, 11 Jan 2024 16:20:28 +0000 Received: from DB5PEPF00014B98.eurprd02.prod.outlook.com (2603:10a6:10:234:cafe::fa) by DU2PR04CA0037.outlook.office365.com (2603:10a6:10:234::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7181.18 via Frontend Transport; Thu, 11 Jan 2024 16:20:28 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 193.8.40.94) smtp.mailfrom=leica-geosystems.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=leica-geosystems.com; Received-SPF: Pass (protection.outlook.com: domain of leica-geosystems.com designates 193.8.40.94 as permitted sender) receiver=protection.outlook.com; client-ip=193.8.40.94; helo=hexagon.com; pr=C Received: from hexagon.com (193.8.40.94) by DB5PEPF00014B98.mail.protection.outlook.com (10.167.8.165) 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:28 +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:28 +0100 From: Catalin Popescu 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 Subject: [PATCH 3/3] net: phy: dp83826: add support for voltage tuning of logical levels Date: Thu, 11 Jan 2024 17:19:27 +0100 Message-Id: <20240111161927.3689084-3-catalin.popescu@leica-geosystems.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240111161927.3689084-1-catalin.popescu@leica-geosystems.com> References: <20240111161927.3689084-1-catalin.popescu@leica-geosystems.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-OriginalArrivalTime: 11 Jan 2024 16:20:28.0261 (UTC) FILETIME=[170B8150:01DA44AA] X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB5PEPF00014B98:EE_|AM8PR06MB7764:EE_ X-MS-Office365-Filtering-Correlation-Id: 11169f95-f652-422b-9711-08dc12c139c6 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: Iqa4UR3jpGpJYGpdJO2wxVayIAF0wveM6VeadIhcQihe9n/ZWyEEpsEwZHto24P7P60KUuZ0NIulB+kgUJd1tjwz7xBg/GXwxgQCmMRdaf9fl+qiMR9cEWSh1yhTA5xYX/dfGd/tG1sgMRY1o/KfqimUxQGdW7wHLkrFbUN15mX13/aCTalMqIcR+5qUpW9wAaefV5pjKbSW8jNV8GGH9mV0wBd1bOl/sZ1kJFp6qak5lDLODkd9pwju7/wTf3HX0nX3UWfj6nx6MSLotnZxd2+/nR27d+ZdD+OQyJ35ToRI+iWfSVIazmgxWZnSGm5fGLwBcQjjhqpe0SjvcvkEtZkH6wZEqDC74eynuQgSlCZpM+27+vzb36qhUG25pmqv5MdSM//seowlv3NHmndYbF9hVu3o49GRJ6YwAmRfccghhOAYdCBCZpbqR6keZpeMvCfbP15TncpPJfbu9gVuORSCdZJWZj2cavsfucfALj88f50arSuRmot7W8Rk6bXby7bb7OZhjCmOnpVOnVKogWQ1drQV6KeOSRr8tWc80oBtaBlyrkx/BHA5+zadD0JnzecLca++ISdT2uijozB0XyQRjP4ZhavahJWLOP9c3mxz5FDafuff+MhID/EpImUQMR9nvIvKv6EkJcsPErr+MT21oocqaoGV7xfR1awlWn8r2b8JkE1jz6Gv13J1nmUAJ9rfPBLvZNBQ5laCUaKidSyo+hqbN3VCQiWAaemeXjkHWSC7O3ObKdUX4L/elGYlzCor927PVTmkOl22sQSQ7Q== 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)(396003)(346002)(376002)(39860400002)(230922051799003)(1800799012)(64100799003)(186009)(82310400011)(451199024)(36840700001)(46966006)(40470700004)(66899024)(336012)(26005)(1076003)(2616005)(36756003)(107886003)(82740400003)(86362001)(81166007)(356005)(83380400001)(47076005)(41300700001)(36860700001)(478600001)(921011)(44832011)(8936002)(8676002)(40480700001)(40460700003)(450100002)(4326008)(5660300002)(70206006)(70586007)(316002)(2906002);DIR:OUT;SFP:1102; X-OriginatorOrg: leica-geosystems.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jan 2024 16:20:28.5665 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 11169f95-f652-422b-9711-08dc12c139c6 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: DB5PEPF00014B98.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8PR06MB7764 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787811810761097190 X-GMAIL-MSGID: 1787811810761097190 DP83826 offers the possibility to tune the voltage of logical levels of the MLT-3 encoded data. This is especially interesting when the data path is lossy and we want to increase the voltage levels to compensate the loss. Signed-off-by: Catalin Popescu --- drivers/net/phy/dp83822.c | 127 ++++++++++++++++++++++++++++++++++++-- 1 file changed, 123 insertions(+), 4 deletions(-) diff --git a/drivers/net/phy/dp83822.c b/drivers/net/phy/dp83822.c index b7cb71817780..e26aaacc7ea5 100644 --- a/drivers/net/phy/dp83822.c +++ b/drivers/net/phy/dp83822.c @@ -12,6 +12,7 @@ #include #include #include +#include #define DP83822_PHY_ID 0x2000a240 #define DP83825S_PHY_ID 0x2000a140 @@ -34,6 +35,10 @@ #define MII_DP83822_GENCFG 0x465 #define MII_DP83822_SOR1 0x467 +/* DP83826 specific registers */ +#define MII_DP83826_VOD_CFG1 0x30b +#define MII_DP83826_VOD_CFG2 0x30c + /* GENCFG */ #define DP83822_SIG_DET_LOW BIT(0) @@ -110,6 +115,16 @@ #define DP83822_RX_ER_STR_MASK GENMASK(9, 8) #define DP83822_RX_ER_SHIFT 8 +/* DP83826: VOD_CFG1 & VOD_CFG2 */ +#define DP83826_VOD_CFG1_MINUS_MDIX_MASK GENMASK(13, 12) +#define DP83826_VOD_CFG1_MINUS_MDI_MASK GENMASK(11, 6) +#define DP83826_VOD_CFG2_MINUS_MDIX_MASK GENMASK(15, 12) +#define DP83826_VOD_CFG2_PLUS_MDIX_MASK GENMASK(11, 6) +#define DP83826_VOD_CFG2_PLUS_MDI_MASK GENMASK(5, 0) +#define DP83826_CFG_DAC_MINUS_MDIX_5_TO_4 GENMASK(5, 4) +#define DP83826_CFG_DAC_MINUS_MDIX_3_TO_0 GENMASK(3, 0) +#define DP83826_CFG_DAC_RAW_VALUES_MAX 17 + #define MII_DP83822_FIBER_ADVERTISE (ADVERTISED_TP | ADVERTISED_MII | \ ADVERTISED_FIBRE | \ ADVERTISED_Pause | ADVERTISED_Asym_Pause) @@ -118,6 +133,8 @@ struct dp83822_private { bool fx_signal_det_low; int fx_enabled; u16 fx_sd_enable; + u8 cfg_dac_minus; + u8 cfg_dac_plus; }; static int dp83822_set_wol(struct phy_device *phydev, @@ -233,7 +250,7 @@ static int dp83822_config_intr(struct phy_device *phydev) DP83822_ENERGY_DET_INT_EN | DP83822_LINK_QUAL_INT_EN); - /* Private data pointer is NULL on DP83825/26 */ + /* Private data pointer is NULL on DP83825 */ if (!dp83822 || !dp83822->fx_enabled) misr_status |= DP83822_ANEG_COMPLETE_INT_EN | DP83822_DUP_MODE_CHANGE_INT_EN | @@ -254,7 +271,7 @@ static int dp83822_config_intr(struct phy_device *phydev) DP83822_PAGE_RX_INT_EN | DP83822_EEE_ERROR_CHANGE_INT_EN); - /* Private data pointer is NULL on DP83825/26 */ + /* Private data pointer is NULL on DP83825 */ if (!dp83822 || !dp83822->fx_enabled) misr_status |= DP83822_ANEG_ERR_INT_EN | DP83822_WOL_PKT_INT_EN; @@ -474,6 +491,46 @@ static int dp83822_config_init(struct phy_device *phydev) return dp8382x_disable_wol(phydev); } +static int dp83826_config_init(struct phy_device *phydev) +{ + struct dp83822_private *dp83822 = phydev->priv; + u16 vod_cfg1_val = 0, vod_cfg1_msk = 0, vod_cfg2_val = 0, vod_cfg2_msk = 0; + int ret; + + if (dp83822->cfg_dac_plus) { + vod_cfg2_val = FIELD_PREP(DP83826_VOD_CFG2_PLUS_MDIX_MASK, dp83822->cfg_dac_plus) | + FIELD_PREP(DP83826_VOD_CFG2_PLUS_MDI_MASK, dp83822->cfg_dac_plus); + vod_cfg2_msk = DP83826_VOD_CFG2_PLUS_MDIX_MASK | DP83826_VOD_CFG2_PLUS_MDI_MASK; + } + + if (dp83822->cfg_dac_minus) { + vod_cfg2_val |= FIELD_PREP(DP83826_VOD_CFG2_MINUS_MDIX_MASK, + FIELD_GET(DP83826_CFG_DAC_MINUS_MDIX_3_TO_0, + dp83822->cfg_dac_minus)); + vod_cfg2_msk |= DP83826_VOD_CFG2_MINUS_MDIX_MASK; + vod_cfg1_val = FIELD_PREP(DP83826_VOD_CFG1_MINUS_MDI_MASK, dp83822->cfg_dac_minus) | + FIELD_PREP(DP83826_VOD_CFG1_MINUS_MDIX_MASK, + FIELD_GET(DP83826_CFG_DAC_MINUS_MDIX_5_TO_4, + dp83822->cfg_dac_minus)); + vod_cfg1_msk = DP83826_VOD_CFG1_MINUS_MDIX_MASK | DP83826_VOD_CFG1_MINUS_MDI_MASK; + } + + if (vod_cfg1_msk) { + ret = phy_modify_mmd(phydev, DP83822_DEVADDR, MII_DP83826_VOD_CFG1, + vod_cfg1_msk, vod_cfg1_val); + if (ret) + return ret; + } + if (vod_cfg2_msk) { + ret = phy_modify_mmd(phydev, DP83822_DEVADDR, MII_DP83826_VOD_CFG2, + vod_cfg2_msk, vod_cfg2_val); + if (ret) + return ret; + } + + return 0; +} + static int dp8382x_config_init(struct phy_device *phydev) { return dp8382x_disable_wol(phydev); @@ -509,11 +566,41 @@ static int dp83822_of_init(struct phy_device *phydev) return 0; } + +u8 dp83826_cfg_dac_minus_raw[DP83826_CFG_DAC_RAW_VALUES_MAX] = {0x38, 0x37, 0x36, 0x35, 0x34, 0x33, + 0x32, 0x31, 0x30, 0x2f, 0x2e, 0x2d, + 0x2c, 0x2b, 0x2a, 0x29, 0x28}; +u8 dp83826_cfg_dac_plus_raw[DP83826_CFG_DAC_RAW_VALUES_MAX] = {0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, + 0x0e, 0x0f, 0x10, 0x11, 0x12, 0x13, + 0x14, 0x15, 0x16, 0x17, 0x18}; + +static int dp83826_of_init(struct phy_device *phydev) +{ + struct dp83822_private *dp83822 = phydev->priv; + struct device *dev = &phydev->mdio.dev; + u32 val; + int ret; + + ret = device_property_read_u32(dev, "ti,cfg-dac-minus", &val); + if (!ret && val < DP83826_CFG_DAC_RAW_VALUES_MAX) + dp83822->cfg_dac_minus = dp83826_cfg_dac_minus_raw[val]; + + ret = device_property_read_u32(dev, "ti,cfg-dac-plus", &val); + if (!ret && val < DP83826_CFG_DAC_RAW_VALUES_MAX) + dp83822->cfg_dac_plus = dp83826_cfg_dac_plus_raw[val]; + + return 0; +} #else static int dp83822_of_init(struct phy_device *phydev) { return 0; } + +static int dp83826_of_init(struct phy_device *phydev) +{ + return 0; +} #endif /* CONFIG_OF_MDIO */ static int dp83822_read_straps(struct phy_device *phydev) @@ -567,6 +654,22 @@ static int dp83822_probe(struct phy_device *phydev) return 0; } +static int dp83826_probe(struct phy_device *phydev) +{ + struct dp83822_private *dp83822; + + dp83822 = devm_kzalloc(&phydev->mdio.dev, sizeof(*dp83822), + GFP_KERNEL); + if (!dp83822) + return -ENOMEM; + + phydev->priv = dp83822; + + dp83826_of_init(phydev); + + return 0; +} + static int dp83822_suspend(struct phy_device *phydev) { int value; @@ -610,6 +713,22 @@ static int dp83822_resume(struct phy_device *phydev) .resume = dp83822_resume, \ } +#define DP83826_PHY_DRIVER(_id, _name) \ + { \ + PHY_ID_MATCH_MODEL(_id), \ + .name = (_name), \ + /* PHY_BASIC_FEATURES */ \ + .probe = dp83826_probe, \ + .soft_reset = dp83822_phy_reset, \ + .config_init = dp83826_config_init, \ + .get_wol = dp83822_get_wol, \ + .set_wol = dp83822_set_wol, \ + .config_intr = dp83822_config_intr, \ + .handle_interrupt = dp83822_handle_interrupt, \ + .suspend = dp83822_suspend, \ + .resume = dp83822_resume, \ + } + #define DP8382X_PHY_DRIVER(_id, _name) \ { \ PHY_ID_MATCH_MODEL(_id), \ @@ -628,8 +747,8 @@ static int dp83822_resume(struct phy_device *phydev) static struct phy_driver dp83822_driver[] = { DP83822_PHY_DRIVER(DP83822_PHY_ID, "TI DP83822"), DP8382X_PHY_DRIVER(DP83825I_PHY_ID, "TI DP83825I"), - DP8382X_PHY_DRIVER(DP83826C_PHY_ID, "TI DP83826C"), - DP8382X_PHY_DRIVER(DP83826NC_PHY_ID, "TI DP83826NC"), + DP83826_PHY_DRIVER(DP83826C_PHY_ID, "TI DP83826C"), + DP83826_PHY_DRIVER(DP83826NC_PHY_ID, "TI DP83826NC"), DP8382X_PHY_DRIVER(DP83825S_PHY_ID, "TI DP83825S"), DP8382X_PHY_DRIVER(DP83825CM_PHY_ID, "TI DP83825M"), DP8382X_PHY_DRIVER(DP83825CS_PHY_ID, "TI DP83825CS"),