From patchwork Thu Jan 11 02:55:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: ChunHau Tan X-Patchwork-Id: 13516720 Received: from CHN02-BJS-obe.outbound.protection.partner.outlook.cn (mail-bjschn02on2084.outbound.protection.partner.outlook.cn [139.219.17.84]) (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 DF0325663; Thu, 11 Jan 2024 02:55:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=starfivetech.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=starfivetech.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ww4igYk6QENc6wCtfajSrI0F1Q4/NL2iaVXvEjsfM9CG/5aITYYVuCGDsdHuR6m3JJ6s2wSWH5tVOyOn7OmONM5FhTbrJlfRgKW7ilz5cGtIptG57QCWRXKyW+yln3v2tbY/K3eUHvcMLv+MD0ZbqVJyAFtWNwpQ1ROq/Q0lpnaN56CQxi0k8mIUcNnG50UVAfih9BV828MZeQLfOt80p3A1kwT4XED4h2TO8h6nTshIzFEzhYkyKdGBlYKfW7TEegtZ+Y+kevFn0JP4L7yhFriMPX0WtoNzHC50FvPN5dgOla6JeZKlSD2mfqYfwN0mPTk9x5l9ECxOW4+mSK8aXQ== 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=PwwDBu0gXSi7M/F3xxe9Thhq9p3oLgAJoRlVEKQgPJA=; b=RawMjEYiC8qGZRTdeNr6RcvAeVWrHOJa0fS5oi4y2tqTLdJU/jqS+BCG1lisV6NFsLIq7T9WItGOiMfFOnuYhkNsk0JL4Qvcuo0OoYQJO0Pcyup2PPnpPIjEZSXSNojdzp2cvYPvXH/bdBEfoxvvYBKp/kqMoShYs6JNF0Zqdd6npBJ1SqFNwkEo8trWwcX974UkhPc2qDJS1QYCaSPDunAj8fx/93RzkWGbPIu+zGrI7bhsZ0uB4TAVXNtXQJ8ccvQxVYW6GLVy/HXy6taeX7BRmro4Ne9XXpqfSKwG2itBldf1ELA0iWbsKo8W7JYvjRAf1QFvjbrrb4ir9bPtYg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=starfivetech.com; dmarc=pass action=none header.from=starfivetech.com; dkim=pass header.d=starfivetech.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=starfivetech.com; Received: from BJSPR01MB0595.CHNPR01.prod.partner.outlook.cn (2406:e500:c211:e::20) by BJSPR01MB0561.CHNPR01.prod.partner.outlook.cn (2406:e500:c211:f::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7135.33; Thu, 11 Jan 2024 02:55:43 +0000 Received: from BJSPR01MB0595.CHNPR01.prod.partner.outlook.cn ([fe80::9fb5:b2ec:ed6f:b0a4]) by BJSPR01MB0595.CHNPR01.prod.partner.outlook.cn ([fe80::9fb5:b2ec:ed6f:b0a4%3]) with mapi id 15.20.7135.032; Thu, 11 Jan 2024 02:55:43 +0000 From: Tan Chun Hau To: "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Emil Renner Berthing , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Maxime Coquelin , Alexandre Torgue , Simon Horman , Bartosz Golaszewski , Andrew Halaney , Jisheng Zhang , =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= , Russell King Cc: Ley Foon Tan , Jee Heng Sia , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org Subject: [PATCH v2 0/1] Add StarFive JH8100 dwmac support Date: Wed, 10 Jan 2024 18:55:30 -0800 Message-Id: <20240111025531.2875-1-chunhau.tan@starfivetech.com> X-Mailer: git-send-email 2.25.1 X-ClientProxiedBy: BJXPR01CA0064.CHNPR01.prod.partner.outlook.cn (2406:e500:c211:12::31) To BJSPR01MB0595.CHNPR01.prod.partner.outlook.cn (2406:e500:c211:e::20) Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BJSPR01MB0595:EE_|BJSPR01MB0561:EE_ X-MS-Office365-Filtering-Correlation-Id: ce8d7af1-5342-4f3a-28e3-08dc1250cd1f X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: VCwKSiEpkl5zZeCr4l6L29KBI83xVHGRZ7vAeTFnVhLDICL39/CbLN6XT2pzyFDfgoU1EQAIvBEkqJjwgEA96wXwG2wxBcx9H7E+opXawWbW77wb1PqbANkm9Ns+MbmBKCj19Khb19v699TlX0SjckXmI0we5sEJenPlPSD+wEsuWRhQ0SRGURr6FxvN+VoHmLYEqxliapkV3soD5NjG6nVDE5kizsj1unkooZ/00DBUmR6RTPGsQwRAFUQoWHBwHrYQZlGNkXEsN52DqESA5ApvvJJAJTI+m9saE4n0HmcV8kQuLCO/Z/pZp6gVwLdVeFXPfJ5kl2H1GuQWt8NiF+kppNZldLwkTawxgxDcUOxzVIzWwf4OsDvtCrcQTEPELfe9p8eQsxO7ijR9E2ihiJkB4wSSUZNthDRyJvQ+2jfaQn9hWpKlIUI3STqfRATgFpZRUicvJzu/quCxqmXIKW5N0ZhtI1FIr+83Su8VqKN+lObDFH+JvkMgChe2NNv9t85G166hgJ5wuU/UG/RSSma/mbK9n2q0YrVn6aRQvpZS76mQ0XuzIbdVgaDvMsWy+xqm1e5+nqWU7wu9vQ4dpA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BJSPR01MB0595.CHNPR01.prod.partner.outlook.cn;PTR:;CAT:NONE;SFS:(13230031)(136003)(366004)(39830400003)(396003)(346002)(230922051799003)(64100799003)(1800799012)(451199024)(186009)(921011)(38100700002)(8676002)(8936002)(6666004)(508600001)(4326008)(26005)(2616005)(1076003)(66946007)(66556008)(40160700002)(110136005)(54906003)(66476007)(52116002)(83380400001)(41300700001)(2906002)(86362001)(7416002)(5660300002)(4744005)(40180700001)(38350700005)(36756003)(41320700001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: bRKKB0PNmIM1k2pc1kvGixo8Tx1YYxsonn4BdcvipIxOMz4OwhZczm2ypSx1ID5i8i7gCvgT79Z0QwY0j2ZLEn7LQoOAIeadZwzlXuM5U5pT5znn8O816kKZTE47a5CVnxv67yw64mWpVuvS9PTZbIw3BHqtDTlb0ekKQ5BwVBNh+LAVzAzEUKYQqrphGfI7mfBD8jdmgM+hX5R/BfzD2llRgGrJLMLh4YhfyLv19H1tFhv9/YDXaUZ1rS8G8risKRnEIbFBUcvDssWslggmJdnpN/uI1a15eXbrQYn4SeqL/SZ1xwwbNp20huZfeHUklsFZdhuH8j0qMM4E8ybe/0Yst5i7ytS+QLbycmNrjcJBTeIwP5ziStCuHjjR/8JYodFI9PENcJvBkBb7lOTL2CaswokLVDuEP1yNZwEzTg6Xug6ZTg/TiZDYkVrLo/y7e2MWWYbrPpjEPwyxwstjXy6D0RQY/weP1/qisnXokfocG6EGJDkctIhnZff75pg3IDTb26/MApGlqvr1AsWf6RqXz+iHWxUkPciJeFAPvy7oMw4gjVFtQVqeM8+3oA/6781dPr/hIQM6ek4ZmCkjSZ33s6MW1DpppepAuR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1250cd1f X-MS-Exchange-CrossTenant-AuthSource: BJSPR01MB0595.CHNPR01.prod.partner.outlook.cn X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jan 2024 02:55:43.0745 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 06fe3fa3-1221-43d3-861b-5a4ee687a85c X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: zVdMeuuvY2FBAeRuZn8H4s4yFxMfmHTgpwXjwDEuOJFHwQVAlfzY4vG5cNaL30YtXfDl/ts04vCYUS2RD+l72isL0l1Z2hJOtfo+2OTHsIw= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BJSPR01MB0561 Add StarFive JH8100 dwmac support. JH8100 dwmac has one reset signal instead of 2 resets as in JH7110. Changes in v2: - Drop driver patch. - Add missing "starfive,jh8100-dwmac" to snps,dwmac - Add handling resets for starfive,jh8100-dwmac and provide an else condition for others. --- Tan Chun Hau (1): dt-bindings: net: starfive,jh7110-dwmac: Add StarFive JH8100 support .../devicetree/bindings/net/snps,dwmac.yaml | 1 + .../bindings/net/starfive,jh7110-dwmac.yaml | 50 +++++++++++++------ 2 files changed, 37 insertions(+), 14 deletions(-)