From patchwork Thu Nov 23 12:14:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 746961 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=wolfvision.net header.i=@wolfvision.net header.b="HiXFXGOl" Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-he1eur04on2058.outbound.protection.outlook.com [40.107.7.58]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B3BFD56; Thu, 23 Nov 2023 04:15:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=A+2jiqE8R9ZGKAgRsjUUTHKYQJFAsSgLD5M4qpFGVN4AFWs54gRykB8hS5j5gG8ocm0iNWk/THC2WUowiZEIr9A5jIfB1EeKPIT9mF/OROnqKkvEP0BCFapEw9GvkYgygQhfsmFTdn0fsepudcw3ASqOY19PiKvdLgnavLiPsR2nS3tPUkqBolY41fag3WkOLVh3CJMyqgEtmhjiMTnPtYQ4qGu7lC8of3xwMbR83HuNYvtmciyV7L/jZElcbHryuczhIaCU2ZZiDxbeDZ3z+ZvXyjvrX19rJN7hRnaRQPN0b0EtgCSo9jlFat9ASX5YPgYL9EpZO5o7ahc9OT+Rew== 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=JT1UHAK8mf2BxFRMKPA7B37sIWgCMnP/9/n44FUcXBk=; b=IM6FVpC7/Oo3KQo85jvEcDsRbs/nry7WtoUpYg7RmnqSFwE/WD39e80AILzjknzFJCDvgh6GVENl/IDrZZscq4lyrrAJggaSbfF6wioGAt3xljJUYfEultYbM5xLOAxBsmTGYAhKESILaAePNYh5cYuaX+5H0yRR7pYeFhp53vRDbw68xktUmbqxgEa2i8L0IaBx65+j7U8P5z+mF9dJFNjE3JPJ3Bc4ZpjCEOTSzkTdzO+r6D1hiPq+pPfOJHtPW3MG8+tNgQckyC1YHQTYA84hNX+QDp41RLAT1RLvBIjd8WtzUxAbi0SXK0ii6RkWqZPcf/0OKSAd825Oy9GRbQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wolfvision.net; dmarc=pass action=none header.from=wolfvision.net; dkim=pass header.d=wolfvision.net; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wolfvision.net; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=JT1UHAK8mf2BxFRMKPA7B37sIWgCMnP/9/n44FUcXBk=; b=HiXFXGOlVIR7w/G7VTO1+rYfIQfMsQKltI8H3C6J8h+EWgAYkU8UgMW16nK6nHjsxgEIT3HSrP0TW3BKN1EBK1ab+0hnbbTnMwX+CQylwxlSIo6KVypF4rjbP9FwW1QrucvbfXqVsGZt1hLir3+cQSJBFPL9wmNt2yqVM3pToHc= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=wolfvision.net; Received: from VE1PR08MB4974.eurprd08.prod.outlook.com (2603:10a6:803:111::15) by DU0PR08MB8423.eurprd08.prod.outlook.com (2603:10a6:10:405::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7025.18; Thu, 23 Nov 2023 12:15:16 +0000 Received: from VE1PR08MB4974.eurprd08.prod.outlook.com ([fe80::6b40:1e6f:7c94:71dc]) by VE1PR08MB4974.eurprd08.prod.outlook.com ([fe80::6b40:1e6f:7c94:71dc%4]) with mapi id 15.20.7025.020; Thu, 23 Nov 2023 12:15:16 +0000 From: Javier Carrasco Date: Thu, 23 Nov 2023 13:14:13 +0100 Subject: [PATCH RFC WIP 1/2] dt-bindings: net: rockchip-dwmac: add rockchip,phy-wol property Message-Id: <20231123-dwmac-rk_phy_wol-v1-1-bf4e718081b9@wolfvision.net> References: <20231123-dwmac-rk_phy_wol-v1-0-bf4e718081b9@wolfvision.net> In-Reply-To: <20231123-dwmac-rk_phy_wol-v1-0-bf4e718081b9@wolfvision.net> To: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , David Wu , Alexandre Torgue , Jose Abreu , Maxime Coquelin Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, Javier Carrasco X-Mailer: b4 0.12.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1700741701; l=1046; i=javier.carrasco@wolfvision.net; s=20230509; h=from:subject:message-id; bh=5nCO7JT4rELhAOOidUsUPsNZ2GKEnGwXx3JdX0dzDQQ=; b=UeEC7LCJswlJVl64pR16sDF8op2YugDv1KeanMbaonXr+v5Pq1wNbIKTv5zk8Q9qoUJ2G3Szt s2Q2MpIVOLtCRpLd2dATlMYGcb+SigDPkFkFJNm7VW9piKpMjEcszBg X-Developer-Key: i=javier.carrasco@wolfvision.net; a=ed25519; pk=tIGJV7M+tCizagNijF0eGMBGcOsPD+0cWGfKjl4h6K8= X-ClientProxiedBy: VI1PR06CA0227.eurprd06.prod.outlook.com (2603:10a6:802:2c::48) To VE1PR08MB4974.eurprd08.prod.outlook.com (2603:10a6:803:111::15) Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR08MB4974:EE_|DU0PR08MB8423:EE_ X-MS-Office365-Filtering-Correlation-Id: d2b22efc-0458-4139-1fcb-08dbec1dd2e0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: +0BUUNwvy1j/IDnejKD9cl8+cKbzQKEgxe17dS5Hn5jU/5QKGtO8qwvirM+1rExlV8vgE8pwwLkeDlhZP00ThrlnuSypn3OckMZPE05a/9Et8r2mWPGz9/Y4Tv2NPmoeGt8eALL7E7TSS4Ef/haEELBFk3UfaN+EM/YcP6BaXwa1FEZboHmNaG/Zpk0drbwr3AOaAVLo8GUX5FPdF84Gj5CbDA2UIw3bJS2i/2BNP4bZ1mPn0WsuB4K6yGs59c1f8G/4TapFgarPwnjbQ8ZVM8MwlKT0lFPiN/1Af0F/tmADCyd82ZLLj+v4OjT2cawE7VjN9BPg9qs1C3oEFvtUEw9ZEWUPq/CTFzS0B/VmdOt7jQHqcM7RWSXTnWxMyUFgi+ssbiD0eVKjSL9aDAHpLvxkr89hWWx2HBMD99JgqNtAHKZUVg7BotW8zJaG5hpmFSebQGlhLKskOUhF9+2a0SaYg3k117sqZumbAmjX0X8wtpOG5hv4utdjtN/1tOcCULYTqIBopmCLI3e5YLMHyiJ027B07YdwNPwHW0nU6YgLCNhUPNPO0mXTpR79QY/b1Z8wdyQd3RZw/S0soJrnoIrJuS+HFo7Aw0srSsX35safGo/SYGQOUoZP0Zt8dCUb88bYwm3AH0MkxcfyXSntCQ== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VE1PR08MB4974.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(396003)(136003)(376002)(346002)(366004)(39850400004)(230922051799003)(186009)(1800799012)(64100799003)(451199024)(921008)(26005)(2906002)(7416002)(4744005)(38100700002)(66556008)(66946007)(2616005)(107886003)(44832011)(5660300002)(41300700001)(8936002)(4326008)(8676002)(6486002)(86362001)(38350700005)(478600001)(66476007)(36756003)(110136005)(316002)(6512007)(6666004)(52116002)(6506007); DIR:OUT; SFP:1101; X-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rIWCck+wjiWAqTTJkqpXOZmTzI4?= =?utf-8?q?1X0eVmFjk+4qm+TqTduEzHQ4XZQ0SEVhoXIlcNn+d2aJUEku6ti9welKO8Kmc6mDe?= =?utf-8?q?FJIerTvXuwRDY2/xWNhwRseTUl0uBbUirsC0VmKLFuV3yCUXSjBTXAEBuOZr8JJBv?= =?utf-8?q?Ixnl5G0LwkIaaUC/kohWnr1DTg/QEHQGvkHY3woTwIf9eBdJJGx/+YC4tRKg4snkZ?= =?utf-8?q?q7RVWeKdxhdYFvg+mUGGRS/FyltPzFRYyQpDMQnLb0hY4dxBnc/o2af2kzPnVIRNm?= =?utf-8?q?MieTNvuMogZGUT4dIEotZjWZyZrfOVFYJmrjXBqdE0948BWBZXFiWxK2GG4KNKyCD?= =?utf-8?q?yL1yH3VTLrVWDUnIjZh4WlEhu3RT9eUGPjAeQqtwMUOcM9dZ8s77a+FxojV2g3oHj?= =?utf-8?q?62/vjodeodtYDd1soN7FhS5MVh0hAGArSl5xdQIw744itmsWxdT6N5YdAt/PWSTYr?= =?utf-8?q?Mshu5oFUAAFTxTFsvVPRoNl8/8iMK+F7C6dhDE0fsbmghnY6w3Bq8io8ByYKE2W6D?= =?utf-8?q?ndi1AzXwCLFXZkbaC4baGUHh2mJGfuhgGLArximWQGENAOdF0h6A9koxkqjzryAu3?= =?utf-8?q?cLXHAogd76PVl9D3oglvd7ClixSJfVxSenxf5KGu7HEdtPW2e55wWyBOOuO1G0td+?= =?utf-8?q?G28ycffXBTcVy+E7R15wfDRAXjOekf+/t847/VHMz5QIH3sgQ8JnzGTyxhKiX8d1S?= =?utf-8?q?ZqBsj2xaRHH9K5bTOFzrWF87lM2efX5x83fHJtZ/f8+mljdiyjdqyCQ=3D?= X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: d2b22efc-0458-4139-1fcb-08dbec1dd2e0 X-MS-Exchange-CrossTenant-AuthSource: VE1PR08MB4974.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Nov 2023 12:15:04.0333 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: e94ec9da-9183-471e-83b3-51baa8eb804f X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Ueja0yb86HgygVWt4v+g3oDWA36hJFf81zeQcEDqnTwvR2MwIc25sIVAtwYW7+iomSF/ilT0MISDiOAq9KZjAtAHoSRWNseU96paf2EMlmg= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR08MB8423 This property defines if PHY WOL is preferred. If it is not defined, MAC WOL will be preferred instead. Signed-off-by: Javier Carrasco --- Documentation/devicetree/bindings/net/rockchip-dwmac.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/net/rockchip-dwmac.yaml b/Documentation/devicetree/bindings/net/rockchip-dwmac.yaml index 70bbc4220e2a..fc4b02a5a375 100644 --- a/Documentation/devicetree/bindings/net/rockchip-dwmac.yaml +++ b/Documentation/devicetree/bindings/net/rockchip-dwmac.yaml @@ -91,6 +91,12 @@ properties: The phandle of the syscon node for the peripheral general register file. $ref: /schemas/types.yaml#/definitions/phandle + rockchip,phy-wol: + type: boolean + description: + If present, indicates that PHY WOL is preferred. MAC WOL is preferred + otherwise. + tx_delay: description: Delay value for TXD timing. $ref: /schemas/types.yaml#/definitions/uint32