From patchwork Mon Aug 22 01:59:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Fang X-Patchwork-Id: 12950110 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 18FB4C32774 for ; Mon, 22 Aug 2022 01:59:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232211AbiHVB7s (ORCPT ); Sun, 21 Aug 2022 21:59:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232076AbiHVB7r (ORCPT ); Sun, 21 Aug 2022 21:59:47 -0400 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2084.outbound.protection.outlook.com [40.107.22.84]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C608F21815; Sun, 21 Aug 2022 18:59:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aUBQjJvoOvHmb83UZ1nhJXiImyeRTMKoiIRisNISC3E1oNKMdcowoz4fmahPm5Dk0nek3eTJ8Wh65Uw54FMFS4OzX7f2A/t0j5E0FMXDAtKv/ZgJOYpo1fR41u2V7HlzkjyHUpUZMAkTTV/oWvfK9yJ8lyMmNmxytGwB2C0tXYOIFaj+WcAMchqY/1+0x0ji9JNhvMIUXqY56YkZpxBgsMkxkVESNaM+MATFjuyIoXuVogTBuyXhik2+hWZvd27Ed3s0NuybBeqwNLy4dhAouGXZb28Qmu2LbIFVKa0+BsWJS0mSVAPvh8pwSpeXn4SU5C77Bhg2SkAStV6190/HRA== 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=CULa9flY15bsPQVIiuBuA6ls7ndbAXl9Ec3WwDk5sj4=; b=ofiFHj7CKFrl7B3+ZwzE3/qPYwdgSmBpMUWkYyqHpE3+pmrKTeFRAXbAQYup90QFWC03MAYz6b4HrBQwCUl3Zq0KsSsse+vCIh6BqDp3DxCICnwV4g0u1Ztp85Sy6KPLoAlZRc7o3kyJLd0GCGXP8dshMtScC4mh8528gokYE5haJZV/kMIqT+sS4h+7o25qeNcAZg36+gDv//GaoYwqvawfas9wb5d3GP4Vl8XnxSY0Voc/zDgR05IcCq2MuYJh/sASMrCWQ5SjpQxGqvxy6scynAsT6eUr2PKCbeOXimXqvi7NQ+lt/gDbyomaPUCWFAKExWQQ0WLf9NMA1qAlcg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=CULa9flY15bsPQVIiuBuA6ls7ndbAXl9Ec3WwDk5sj4=; b=ZcTw2aN1bsvuzlvdhIvlKkA5GU2jb+wV1e9HewknBUIRej2PfhJRdoMtG4L60RS7ChPpkQGxbOFfsUfR+YAmJCkDKifHdnmy7p0XvG//mbIB++WNszmKhijj/tNPpWW8xkqZ/VnT5rUh4sVVt1/Zcp58ONJ/AsZ6QS8QNkielCs= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from DB9PR04MB8106.eurprd04.prod.outlook.com (2603:10a6:10:24b::13) by AM6PR0402MB3335.eurprd04.prod.outlook.com (2603:10a6:209:a::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5525.11; Mon, 22 Aug 2022 01:59:43 +0000 Received: from DB9PR04MB8106.eurprd04.prod.outlook.com ([fe80::a569:c84a:d972:38ce]) by DB9PR04MB8106.eurprd04.prod.outlook.com ([fe80::a569:c84a:d972:38ce%9]) with mapi id 15.20.5546.022; Mon, 22 Aug 2022 01:59:43 +0000 From: wei.fang@nxp.com To: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, andrew@lunn.ch, f.fainelli@gmail.com, hkallweit1@gmail.com, linux@armlinux.org.uk Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH V2 net-next 0/2] add interface mode select and RMII Date: Mon, 22 Aug 2022 09:59:47 +0800 Message-Id: <20220822015949.1569969-1-wei.fang@nxp.com> X-Mailer: git-send-email 2.25.1 X-ClientProxiedBy: SG2P153CA0029.APCP153.PROD.OUTLOOK.COM (2603:1096:4:c7::16) To DB9PR04MB8106.eurprd04.prod.outlook.com (2603:10a6:10:24b::13) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5ce43109-183e-440e-b239-08da83e1fb4a X-MS-TrafficTypeDiagnostic: AM6PR0402MB3335:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: R0sw44voXIqKf5J+WON5tlH/YVl7Vz3jzzfjJ8+/Twn95TGuLnsBOU5sS6OjfcDv6MAKbWPY4WxzYAIEaHoEX1wRHUYJfl8IXfdSb+Eow9cLxTpj+KrMBm/Wkg2vCUyt8IlGU8Z4yJGEugCP4qqIdmbJuAPEo8IIdlurE7iwO4XFwNVYfJKQ1gu+OVZ93YCxg1nIpsnO8iZ0sy00mr3wCuX89/nTqKMfMTq/4HYPP/q4wfwSfaEgJlNO8X9LuwsHwlPdtPGRXu0941OVVmzIyIY4mUWCOO0R6S5d1C7ozqKX4xci6E+rkgeuJSrg4kkbCjNUU+hP2ZmJ9ZmuItgXVaJ+3IxfkRr98Q6flJv4qqRrF7fdZkGlF7Zp3Pb6B8XHqY/adiYzWUY8FCjC2oImEph6KB+39cm39ka6WvJW1KdMdAd4Jnie4/ZmhkEmZ//XPUJJSf2q3zw9IbchFYsGXZiHmA5ALWF+j8zYpyHwunVSKJjCH0xiBQrah4S98UNARe95QNgDYu9RInlimtMe1xu2olU7MQ1ZNY//D/4o3Sbm6QZKjYe0f+PKJwy54kWPkUyQfKdp6N1ey3TGOV+X/glGuA/w4a/YIqarFPG5DmxRGpdAOOD0ONtpqQ/cN2637SPWPMwgB6fZJDtSjFzh1jmAoazkzSNaZxk8s+dfd2nJlAY4+0665acYXZxHgpwUScqWqCzr2GC7Igb6Bo826CGdtLMdrHXFamVjwxlHCh+Na1MsKWlgZjZro8ONGEx8/FTgcTBooMQ3vjzwMvLpOw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB9PR04MB8106.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230016)(4636009)(376002)(39860400002)(346002)(396003)(366004)(136003)(66476007)(66946007)(38350700002)(4326008)(86362001)(8676002)(4744005)(66556008)(921005)(8936002)(36756003)(38100700002)(6512007)(6506007)(6486002)(1076003)(52116002)(316002)(478600001)(2616005)(2906002)(83380400001)(41300700001)(5660300002)(9686003)(26005)(7416002)(186003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: ZQR4uqErITNyJMb1sNbgnw0JWJ7ULgCD4WvaySoIr78k2EuovpcJeixAoNNuXrT8wFQIHcFtxcUZo213i//NBsA8Q6QlUxAxRW98lhOFnEkAqlIhlD7IbD9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u/xZGTeTiPU8egst9KjyTVpRq3uvOsNj5rv6v8QNu5hd/9V68Pam/XB4nyEZm6k8Aj42ivayzakcGWzb0s33G9d0+dvxPX8Bd6HG+Z7UV377bMrYJh/D9SyonNblsK5u5Iw/9PCF7lYrLgb8lMNlxqRrYTRDmeILl4Ai82Kgczed2jGMWjKK/Zxjk24kRVWwPZmmzaY2U5CNlQHljgrdw+L2JmV8c92CsugULW592X0H+0fC3WZe9qrP0XWQPp9qK0EMCuPNcAdnp+XEhbRfUeG36LTEUk535sWVLss7T76e9djEVFmXSDvGbLNXP9zXqrTpWUm6SnHXFWf0FG1B1+f8CipL5xPppTH1n+uZt81ANbpwNq5hhnNQmHYXUh1p/X2JMep15VCMs9Ox3E7Vq X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5ce43109-183e-440e-b239-08da83e1fb4a X-MS-Exchange-CrossTenant-AuthSource: DB9PR04MB8106.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Aug 2022 01:59:43.6484 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: iJnmKzTwbPctp5pup80qvA3GETZR2Nt1/JAL23JCSE8fNe8kO5jvS1WBW8bEr6LO/+uf3vlt8j7qUB+n09ny1Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR0402MB3335 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org From: Wei Fang The patches add the below feature support for both TJA1100 and TJA1101 PHYs cards: - Add MII and RMII mode support. - Add REF_CLK input/output support for RMII mode. Wei Fang (2): dt-bindings: net: tja11xx: add nxp,refclk_in property net: phy: tja11xx: add interface mode and RMII REF_CLK support .../devicetree/bindings/net/nxp,tja11xx.yaml | 17 ++++ drivers/net/phy/nxp-tja11xx.c | 83 +++++++++++++++++-- 2 files changed, 95 insertions(+), 5 deletions(-)