From patchwork Sat Aug 12 15:11:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Keguang Zhang X-Patchwork-Id: 13351873 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 0B72DC04A6A for ; Sat, 12 Aug 2023 15:12:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231414AbjHLPMH (ORCPT ); Sat, 12 Aug 2023 11:12:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229475AbjHLPMH (ORCPT ); Sat, 12 Aug 2023 11:12:07 -0400 Received: from mail-pl1-x62e.google.com (mail-pl1-x62e.google.com [IPv6:2607:f8b0:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6C951984; Sat, 12 Aug 2023 08:12:09 -0700 (PDT) Received: by mail-pl1-x62e.google.com with SMTP id d9443c01a7336-1bcad794ad4so19845635ad.3; Sat, 12 Aug 2023 08:12:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691853129; x=1692457929; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=mdbUNkku7p7EjUqwDMY1rwpQnBjCJuEzhk5BzNxLshM=; b=Wsr8ZcmiWcKPNmBmmJfvjR9UghArhBb0EGxghNU90G+bnwqxTD753ekuLb+AWZqzH+ UiF22Ib+QnWNMd/5XZUEdETXaubacEWdxl2jw/ArzWlcFrFWVS1crtaJ0zFiOo9cXnk1 1Vr03dKlmFXWfRLfAaENr4ihzQs0peBFeylu30AVCOxL2UX9i3n/1N8FJxRK9K8CaRNb 6vPaJioWXjc7iMiTvg0yoNZIu4CsNfYb97C9SizhISM5rF45DX591QayPNhWxgbItn9l Uj88dFZJRcI2r4yTgnD4vULk+MkWyYEQR6rs8Hc6vmYBe++xRNtQCxlBTg9LCl1yNAHS Nxsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691853129; x=1692457929; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=mdbUNkku7p7EjUqwDMY1rwpQnBjCJuEzhk5BzNxLshM=; b=Eh9ccIb7BuceTQraKkagyRTaba3U78XA0zpAOQapEEnMYqSnJ3THNNuHiGY8KlZOb7 xh/qZz+DWxbu3Ka/67/spP70X1Kw1oTgCu7/lOL88ZBBs1srGtsPggQwYtC53JYTi3fT b83YzMqxQJIT35mFMIwEGkdyArtk/ArENYeVUgUzVbPjmewjpjUsKJ7SW06xhLMKdZ3w iWc9Sg6b7OgdS2sPLcIoFvyyz+Wb/+wSDUo1zc840aQMS8hvM6tHrru7x08973Y1aU20 ZRJEBipwPay/EWPeKCGiHBneOqeBzooEtPDXrI3Wh51mTO/OdiK+kxUs+ZDiZzI/iz/6 pTag== X-Gm-Message-State: AOJu0YxXpqLOFFU7XASVGHqFbRAdMojPAwNnoqF9TCyl9GfOE3Agr1i5 euYBr8uD/yHL/3jTxxH1oWyMX9M8u9mYj3T2 X-Google-Smtp-Source: AGHT+IEiDAiPR0YpiPHCuRK8/M603XfedzSYj6efGlRqNuDOXUIUTHtpmBYa8M50vwtLBxBO+kBwvg== X-Received: by 2002:a17:903:11c3:b0:1bb:4861:d3a7 with SMTP id q3-20020a17090311c300b001bb4861d3a7mr3715888plh.16.1691853128608; Sat, 12 Aug 2023 08:12:08 -0700 (PDT) Received: from kelvin-ThinkPad-L14-Gen-1.. ([38.114.108.131]) by smtp.gmail.com with ESMTPSA id 17-20020a17090a195100b0026b41363887sm1040927pjh.27.2023.08.12.08.12.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Aug 2023 08:12:08 -0700 (PDT) From: Keguang Zhang To: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Lee Jones , Rob Herring , Krzysztof Kozlowski , Conor Dooley , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Thomas Bogendoerfer , Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , Serge Semin , Keguang Zhang Subject: [PATCH 1/5] MIPS: loongson32: Remove Loongson1 MAC arch-code Date: Sat, 12 Aug 2023 23:11:31 +0800 Message-Id: <20230812151135.1028780-2-keguang.zhang@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230812151135.1028780-1-keguang.zhang@gmail.com> References: <20230812151135.1028780-1-keguang.zhang@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org Loongson1 MAC arch-code should be moved to the driver dir. Therefore, remove the deprecated implementation. Signed-off-by: Keguang Zhang --- arch/mips/loongson32/common/platform.c | 127 +++++-------------------- 1 file changed, 23 insertions(+), 104 deletions(-) diff --git a/arch/mips/loongson32/common/platform.c b/arch/mips/loongson32/common/platform.c index 8075590a9f83..37dcda402680 100644 --- a/arch/mips/loongson32/common/platform.c +++ b/arch/mips/loongson32/common/platform.c @@ -10,7 +10,6 @@ #include #include #include -#include #include #include @@ -62,87 +61,7 @@ void __init ls1x_serial_set_uartclk(struct platform_device *pdev) } /* Synopsys Ethernet GMAC */ -static struct stmmac_mdio_bus_data ls1x_mdio_bus_data = { - .phy_mask = 0, -}; - -static struct stmmac_dma_cfg ls1x_eth_dma_cfg = { - .pbl = 1, -}; - -int ls1x_eth_mux_init(struct platform_device *pdev, void *priv) -{ - struct plat_stmmacenet_data *plat_dat = NULL; - u32 val; - - val = __raw_readl(LS1X_MUX_CTRL1); - -#if defined(CONFIG_LOONGSON1_LS1B) - plat_dat = dev_get_platdata(&pdev->dev); - if (plat_dat->bus_id) { - __raw_writel(__raw_readl(LS1X_MUX_CTRL0) | GMAC1_USE_UART1 | - GMAC1_USE_UART0, LS1X_MUX_CTRL0); - switch (plat_dat->phy_interface) { - case PHY_INTERFACE_MODE_RGMII: - val &= ~(GMAC1_USE_TXCLK | GMAC1_USE_PWM23); - break; - case PHY_INTERFACE_MODE_MII: - val |= (GMAC1_USE_TXCLK | GMAC1_USE_PWM23); - break; - default: - pr_err("unsupported mii mode %d\n", - plat_dat->phy_interface); - return -ENOTSUPP; - } - val &= ~GMAC1_SHUT; - } else { - switch (plat_dat->phy_interface) { - case PHY_INTERFACE_MODE_RGMII: - val &= ~(GMAC0_USE_TXCLK | GMAC0_USE_PWM01); - break; - case PHY_INTERFACE_MODE_MII: - val |= (GMAC0_USE_TXCLK | GMAC0_USE_PWM01); - break; - default: - pr_err("unsupported mii mode %d\n", - plat_dat->phy_interface); - return -ENOTSUPP; - } - val &= ~GMAC0_SHUT; - } - __raw_writel(val, LS1X_MUX_CTRL1); -#elif defined(CONFIG_LOONGSON1_LS1C) - plat_dat = dev_get_platdata(&pdev->dev); - - val &= ~PHY_INTF_SELI; - if (plat_dat->phy_interface == PHY_INTERFACE_MODE_RMII) - val |= 0x4 << PHY_INTF_SELI_SHIFT; - __raw_writel(val, LS1X_MUX_CTRL1); - - val = __raw_readl(LS1X_MUX_CTRL0); - __raw_writel(val & (~GMAC_SHUT), LS1X_MUX_CTRL0); -#endif - - return 0; -} - -static struct plat_stmmacenet_data ls1x_eth0_pdata = { - .bus_id = 0, - .phy_addr = -1, -#if defined(CONFIG_LOONGSON1_LS1B) - .phy_interface = PHY_INTERFACE_MODE_MII, -#elif defined(CONFIG_LOONGSON1_LS1C) - .phy_interface = PHY_INTERFACE_MODE_RMII, -#endif - .mdio_bus_data = &ls1x_mdio_bus_data, - .dma_cfg = &ls1x_eth_dma_cfg, - .has_gmac = 1, - .tx_coe = 1, - .rx_queues_to_use = 1, - .tx_queues_to_use = 1, - .init = ls1x_eth_mux_init, -}; - +#ifdef CONFIG_LOONGSON1_LS1B static struct resource ls1x_eth0_resources[] = { [0] = { .start = LS1X_GMAC0_BASE, @@ -157,27 +76,10 @@ static struct resource ls1x_eth0_resources[] = { }; struct platform_device ls1x_eth0_pdev = { - .name = "stmmaceth", + .name = "loongson,ls1b-dwmac", .id = 0, .num_resources = ARRAY_SIZE(ls1x_eth0_resources), .resource = ls1x_eth0_resources, - .dev = { - .platform_data = &ls1x_eth0_pdata, - }, -}; - -#ifdef CONFIG_LOONGSON1_LS1B -static struct plat_stmmacenet_data ls1x_eth1_pdata = { - .bus_id = 1, - .phy_addr = -1, - .phy_interface = PHY_INTERFACE_MODE_MII, - .mdio_bus_data = &ls1x_mdio_bus_data, - .dma_cfg = &ls1x_eth_dma_cfg, - .has_gmac = 1, - .tx_coe = 1, - .rx_queues_to_use = 1, - .tx_queues_to_use = 1, - .init = ls1x_eth_mux_init, }; static struct resource ls1x_eth1_resources[] = { @@ -194,15 +96,32 @@ static struct resource ls1x_eth1_resources[] = { }; struct platform_device ls1x_eth1_pdev = { - .name = "stmmaceth", + .name = "loongson,ls1b-dwmac", .id = 1, .num_resources = ARRAY_SIZE(ls1x_eth1_resources), .resource = ls1x_eth1_resources, - .dev = { - .platform_data = &ls1x_eth1_pdata, +}; +#elif defined(CONFIG_LOONGSON1_LS1C) +static struct resource ls1x_eth0_resources[] = { + [0] = { + .start = LS1X_GMAC0_BASE, + .end = LS1X_GMAC0_BASE + SZ_64K - 1, + .flags = IORESOURCE_MEM, + }, + [1] = { + .name = "macirq", + .start = LS1X_GMAC0_IRQ, + .flags = IORESOURCE_IRQ, }, }; -#endif /* CONFIG_LOONGSON1_LS1B */ + +struct platform_device ls1x_eth0_pdev = { + .name = "loongson,ls1c-dwmac", + .id = 0, + .num_resources = ARRAY_SIZE(ls1x_eth0_resources), + .resource = ls1x_eth0_resources, +}; +#endif /* GPIO */ static struct resource ls1x_gpio0_resources[] = { From patchwork Sat Aug 12 15:11:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Keguang Zhang X-Patchwork-Id: 13351874 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 31801C04A6A for ; Sat, 12 Aug 2023 15:12:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229475AbjHLPMP (ORCPT ); Sat, 12 Aug 2023 11:12:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231649AbjHLPMM (ORCPT ); Sat, 12 Aug 2023 11:12:12 -0400 Received: from mail-pl1-x62d.google.com (mail-pl1-x62d.google.com [IPv6:2607:f8b0:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8DD661984; Sat, 12 Aug 2023 08:12:15 -0700 (PDT) Received: by mail-pl1-x62d.google.com with SMTP id d9443c01a7336-1bc0d39b52cso18189115ad.2; Sat, 12 Aug 2023 08:12:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691853134; x=1692457934; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ignyGYbUhiro7sp9pns65fCFSZE8D435RePFW+tmIxQ=; b=mfwclZ6AkfVpdPH6aefIaSl87gqAAKO0yKQVe1T9zugP/3snDx3VxOx5S7LZoST8BU 8lYaq0wdfMrDIa5zRoPRfRxxOs57NwiFabW8r9UauKNHt29AUQn7/GY9uh2z9kbdFx/t 0CuLY9GHsehXj+tMDNHUINWV44ofKQI7JSvtn6WNAmPx5VqFipOQ8Ny9Ywabfhh5m92q NH3madymlDIPESxxF4fmmCoe43zP78s+8lfjerX2aj2nQRzGsNNSo8byIHjDAOA2wq29 HmqtcqdzEzMVk1SZeydSosLqYWtE7TICPq4LIbkXvIs72Hi1EnJf1tXMBXexD3YMyQk4 g4kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691853134; x=1692457934; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ignyGYbUhiro7sp9pns65fCFSZE8D435RePFW+tmIxQ=; b=X+CiLktD88/oUe8+VmT121ztoQG7hFXeLpb1w+cDzBG6477D29a/d0gtl7XA1vYxVl sURhxFi2ZV7ucQRmLyyMC1iiQyI9wpLe6UVB/3Nu6eqe8QslHubs3d+nqhl33KJlXR65 7Td7hZ71nufxt4mTyneLZeQ1dlplqCdeJ4CD3/lJWlseY6bB8wwdcqf1Rpve57paNTCX gjnqzwPfaaourY26XRqeLBk/EvxspPDkXBIelj1ix0ddCJVyqyAPfNEOUY997rCsAujF evPVx/ce32zzU3tQHOm9hGms0XLQfjR+5akgis2gNGCnSVspQLdfAxCjAolJRWJgSV5e WJXQ== X-Gm-Message-State: AOJu0YyBVYMKTLxMrdwb0uGyp/5EaoMieI4xIJDW6SIOPwKZMuy7dryG bPjqh0KDhjYDmHDjaSBnw8AvH0jfo6PGZWZC X-Google-Smtp-Source: AGHT+IEgMYxDqJQyDXMPiIh42MXSuuu+YT8CCypWuikKy+hTnohqcVnEDmQgivbyWIY+bJwBH28QDA== X-Received: by 2002:a17:902:ec86:b0:1b0:3df7:5992 with SMTP id x6-20020a170902ec8600b001b03df75992mr3945834plg.32.1691853134710; Sat, 12 Aug 2023 08:12:14 -0700 (PDT) Received: from kelvin-ThinkPad-L14-Gen-1.. ([38.114.108.131]) by smtp.gmail.com with ESMTPSA id 17-20020a17090a195100b0026b41363887sm1040927pjh.27.2023.08.12.08.12.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Aug 2023 08:12:14 -0700 (PDT) From: Keguang Zhang To: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Lee Jones , Rob Herring , Krzysztof Kozlowski , Conor Dooley , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Thomas Bogendoerfer , Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , Serge Semin , Keguang Zhang Subject: [PATCH 2/5] dt-bindings: mfd: syscon: Add compatibles for Loongson-1 syscon Date: Sat, 12 Aug 2023 23:11:32 +0800 Message-Id: <20230812151135.1028780-3-keguang.zhang@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230812151135.1028780-1-keguang.zhang@gmail.com> References: <20230812151135.1028780-1-keguang.zhang@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org Add Loongson LS1B and LS1C compatibles for system controller. Signed-off-by: Keguang Zhang --- Documentation/devicetree/bindings/mfd/syscon.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/mfd/syscon.yaml b/Documentation/devicetree/bindings/mfd/syscon.yaml index 8103154bbb52..c77d7b155a4c 100644 --- a/Documentation/devicetree/bindings/mfd/syscon.yaml +++ b/Documentation/devicetree/bindings/mfd/syscon.yaml @@ -49,6 +49,8 @@ properties: - hisilicon,peri-subctrl - hpe,gxp-sysreg - intel,lgm-syscon + - loongson,ls1b-syscon + - loongson,ls1c-syscon - marvell,armada-3700-usb2-host-misc - mediatek,mt8135-pctl-a-syscfg - mediatek,mt8135-pctl-b-syscfg From patchwork Sat Aug 12 15:11:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Keguang Zhang X-Patchwork-Id: 13351875 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 8709EC04A6A for ; Sat, 12 Aug 2023 15:12:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232042AbjHLPMV (ORCPT ); Sat, 12 Aug 2023 11:12:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52934 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231649AbjHLPMS (ORCPT ); Sat, 12 Aug 2023 11:12:18 -0400 Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com [IPv6:2607:f8b0:4864:20::102f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73A761BFC; Sat, 12 Aug 2023 08:12:21 -0700 (PDT) Received: by mail-pj1-x102f.google.com with SMTP id 98e67ed59e1d1-268030e1be7so1607102a91.3; Sat, 12 Aug 2023 08:12:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691853140; x=1692457940; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=3/iziWyfIEDBODF3dYR9bJqy9Xme/VXIWSVPfKLpUtA=; b=f0FDJcqWXwa9fv7btMtVYtLAWsARkk1yBVb2Xptl+LO2npbaQLZwocoTxp719dfNSN 1yMT6l2qhenTuBfx2YGlK2PoNtGsBTHF5WmMdcawWRl3r7u1Iy+xaDeodHhxRVpEh+qm P4MfsLL9+FkzeMv3QxyGCt3wXLaJzd4Zs8TY5HNGlA0/sErSZN+PIHPxdyeL2y4q4g42 XgMFR2fG5Dep6y/swBCgmyv6nTBz03Z+EXY3d0HCV60AIfvEW8mmmTjUbPvluvUuKZd2 XtqyFo0fMhkJtnqq25BVB3NYDslt+Y91Dx25PgeEuLAWREoH7reHCaNzJDBmyFezqtXV 3Muw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691853140; x=1692457940; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=3/iziWyfIEDBODF3dYR9bJqy9Xme/VXIWSVPfKLpUtA=; b=BNWQxtuDPKUwZsfk+jNMf9rGMCSZ7/Xnz6j+eTkKxh2axidFye2Yo9wRr6f3UhnJPo gD5o6CEJ6eNp6T4LqiFhc4TjAAd1+ljmEpwAe+zL8dfz1s7tHDI0LJq63y1wnB4zcyRj NvLTJbEV0salzEg+RYA/GAng1HB8zZpztqt9OvO9rFjkH/xZS0ZwX5GY0JxXH2vtW/Ch 4J+yLVgMyqB1Sil02yVimuMidwJrFKw06o0u9e4fK9Tx1DTshqmuMwBnEx9h+MRTBc9x B128ouP7rIAEjtWsy0OZI7cWmtft5ucTUftHk11qMznQU8KnkkwPbCDU9hKGACVe2fie jOqQ== X-Gm-Message-State: AOJu0YyfNsBmRGijHG8VyL2+yLZ7O4XnPcispWXu+K4QcNIk5knOPy+Y 6c8FRdFkMt1BHWQmU03Ba7FbjPjCb3JIM79C X-Google-Smtp-Source: AGHT+IEEXNH13zLswghnUouJ6Io1nSFnOQ8dENneyU8Wne2HfffGwtswOnHsjzvgFRqbcKL+b3pRNQ== X-Received: by 2002:a17:90a:4304:b0:26b:9e2:1298 with SMTP id q4-20020a17090a430400b0026b09e21298mr2715618pjg.11.1691853140458; Sat, 12 Aug 2023 08:12:20 -0700 (PDT) Received: from kelvin-ThinkPad-L14-Gen-1.. ([38.114.108.131]) by smtp.gmail.com with ESMTPSA id 17-20020a17090a195100b0026b41363887sm1040927pjh.27.2023.08.12.08.12.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Aug 2023 08:12:20 -0700 (PDT) From: Keguang Zhang To: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Lee Jones , Rob Herring , Krzysztof Kozlowski , Conor Dooley , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Thomas Bogendoerfer , Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , Serge Semin , Keguang Zhang Subject: [PATCH 3/5] dt-bindings: net: Add Loongson-1 DWMAC glue layer Date: Sat, 12 Aug 2023 23:11:33 +0800 Message-Id: <20230812151135.1028780-4-keguang.zhang@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230812151135.1028780-1-keguang.zhang@gmail.com> References: <20230812151135.1028780-1-keguang.zhang@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org Add devicetree binding document for Loongson-1 DWMAC glue layer. Signed-off-by: Keguang Zhang --- .../bindings/net/loongson,ls1x-dwmac.yaml | 98 +++++++++++++++++++ .../devicetree/bindings/net/snps,dwmac.yaml | 2 + 2 files changed, 100 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/loongson,ls1x-dwmac.yaml diff --git a/Documentation/devicetree/bindings/net/loongson,ls1x-dwmac.yaml b/Documentation/devicetree/bindings/net/loongson,ls1x-dwmac.yaml new file mode 100644 index 000000000000..150799460599 --- /dev/null +++ b/Documentation/devicetree/bindings/net/loongson,ls1x-dwmac.yaml @@ -0,0 +1,98 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/loongson,ls1x-dwmac.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Loongson-1 DWMAC glue layer + +maintainers: + - Keguang Zhang + +select: + properties: + compatible: + contains: + enum: + - loongson,ls1b-dwmac + - loongson,ls1c-dwmac + required: + - compatible + +properties: + compatible: + items: + - enum: + - loongson,ls1b-dwmac + - loongson,ls1c-dwmac + - const: snps,dwmac-3.50a + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + clock-names: + const: stmmaceth + + interrupts: + maxItems: 1 + + interrupt-names: + const: macirq + + syscon: + $ref: /schemas/types.yaml#/definitions/phandle + description: + Phandle to the syscon containing some extra configurations + including PHY interface mode. + +required: + - compatible + - reg + - clocks + - clock-names + - interrupts + - interrupt-names + - phy-handle + - phy-mode + - syscon + +allOf: + - $ref: snps,dwmac.yaml# + +unevaluatedProperties: false + +examples: + - | + #include + #include + + gmac0: ethernet@1fe10000 { + compatible = "loongson,ls1b-dwmac", "snps,dwmac-3.50a"; + reg = <0x1fe10000 0x10000>; + + clocks = <&clkc LS1X_CLKID_AHB>; + clock-names = "stmmaceth"; + + interrupt-parent = <&intc1>; + interrupts = <2 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "macirq"; + + phy-handle = <&phy0>; + phy-mode = "mii"; + + snps,pbl = <1>; + syscon = <&syscon>; + + mdio { + #address-cells = <1>; + #size-cells = <0>; + compatible = "snps,dwmac-mdio"; + + phy0: ethernet-phy@0 { + reg = <0x0>; + }; + }; + }; diff --git a/Documentation/devicetree/bindings/net/snps,dwmac.yaml b/Documentation/devicetree/bindings/net/snps,dwmac.yaml index ddf9522a5dc2..e1a956cf171e 100644 --- a/Documentation/devicetree/bindings/net/snps,dwmac.yaml +++ b/Documentation/devicetree/bindings/net/snps,dwmac.yaml @@ -66,6 +66,8 @@ properties: - ingenic,x2000-mac - loongson,ls2k-dwmac - loongson,ls7a-dwmac + - loongson,ls1b-dwmac + - loongson,ls1c-dwmac - qcom,qcs404-ethqos - qcom,sa8775p-ethqos - qcom,sc8280xp-ethqos From patchwork Sat Aug 12 15:11:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Keguang Zhang X-Patchwork-Id: 13351876 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 68777C0015E for ; Sat, 12 Aug 2023 15:12:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231649AbjHLPM0 (ORCPT ); Sat, 12 Aug 2023 11:12:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53008 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231948AbjHLPMY (ORCPT ); Sat, 12 Aug 2023 11:12:24 -0400 Received: from mail-pg1-x52d.google.com (mail-pg1-x52d.google.com [IPv6:2607:f8b0:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6EF3E171B; Sat, 12 Aug 2023 08:12:27 -0700 (PDT) Received: by mail-pg1-x52d.google.com with SMTP id 41be03b00d2f7-564af0ac494so1817758a12.0; Sat, 12 Aug 2023 08:12:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691853146; x=1692457946; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=H5m6F3i/v1HMLujNpQ+XOzhCck1dkyuJ1wEYOVlRLU4=; b=ouE5+VJXJLaujLiCfq+338Ragxkw50DPPAGnHzOl9Ny4Jn0qT/dSdmcuOn88zmxGO6 /USLo6lFyFcOxLhov84lNKuVOLdbxrGtXEa4mmDwxlOMneYFdORM8Mrkr7uyc0JoCUNj bdxG6aIqrFaW4zpuu7COO989cqEIOAETcaHvrimpaHqKBgW0bWkOKiZ7H+mXwBGJBP/Z 9SFFBGB/0nJJvuobX8rgM+/r3hdOXucGx6ut6cgO3pTmQieeFu6Z3xpqNObDSTWpuTeJ 77PWcIetg5Zh6/sWOC1jXNtZYH2lxZLNZKanx/G4RYiYzm38bpKno7iShv+HMKWVxX7P FKWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691853146; x=1692457946; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=H5m6F3i/v1HMLujNpQ+XOzhCck1dkyuJ1wEYOVlRLU4=; b=lAn4l4nz6bOkdmMo0s03ECwDW460GmA2tN1m4lNY6aDRQqBqcQOHXOZfMU3KJstxq2 wH2qp2RnvgqUdzCcWHKkI8kfYhvXdSHnT5FSZFC7KA4xmeo1BnEX6m7nJhj7+mmpJh5h Am47/qdNbR0tX/dH0IYZclr+3g8TkNLFVer25dJ//WUTFLOkHc8TXUZkl99CvFEZZJwI MSyILwsGkWdpu7QsC+/VgGQuZnsaUC0CXRWid2FlPTlAxbXe0V1zUXQZE66EQZn1SPps LLU35+kdpf6IoC3OGK5uCu9O1plPoAPSPrfQ3MjpTCi3zJYqgWlHbocrCF440aucZ655 C4Ng== X-Gm-Message-State: AOJu0YzgXSQs3194wqK6Q9CEUe5pYexQKVNGJlWW0LD9UBHWjX6XoR1u Afg95Jyi+KS26IWWg8CK7Glml4xfZdsNyxdb X-Google-Smtp-Source: AGHT+IHNU0ve0r5taU0RMmPNNMLWPtuKfYz6AyIvI1ZWFwRnFcBqiLiEdES5Zxa3zNamtfWIZJi7dQ== X-Received: by 2002:a17:90b:1d03:b0:268:314f:8f35 with SMTP id on3-20020a17090b1d0300b00268314f8f35mr2930349pjb.6.1691853146441; Sat, 12 Aug 2023 08:12:26 -0700 (PDT) Received: from kelvin-ThinkPad-L14-Gen-1.. ([38.114.108.131]) by smtp.gmail.com with ESMTPSA id 17-20020a17090a195100b0026b41363887sm1040927pjh.27.2023.08.12.08.12.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Aug 2023 08:12:26 -0700 (PDT) From: Keguang Zhang To: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Lee Jones , Rob Herring , Krzysztof Kozlowski , Conor Dooley , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Thomas Bogendoerfer , Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , Serge Semin , Keguang Zhang Subject: [PATCH 4/5] net: stmmac: Add glue layer for Loongson-1 SoC Date: Sat, 12 Aug 2023 23:11:34 +0800 Message-Id: <20230812151135.1028780-5-keguang.zhang@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230812151135.1028780-1-keguang.zhang@gmail.com> References: <20230812151135.1028780-1-keguang.zhang@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org This glue driver is created based on the arch-code implemented earlier with the platform-specific settings. Use syscon for SYSCON register access. Partialy based on the previous work by Serge Semin. Signed-off-by: Keguang Zhang --- drivers/net/ethernet/stmicro/stmmac/Kconfig | 11 + drivers/net/ethernet/stmicro/stmmac/Makefile | 1 + .../ethernet/stmicro/stmmac/dwmac-loongson1.c | 257 ++++++++++++++++++ 3 files changed, 269 insertions(+) create mode 100644 drivers/net/ethernet/stmicro/stmmac/dwmac-loongson1.c diff --git a/drivers/net/ethernet/stmicro/stmmac/Kconfig b/drivers/net/ethernet/stmicro/stmmac/Kconfig index 06c6871f8788..a2b9e289aa36 100644 --- a/drivers/net/ethernet/stmicro/stmmac/Kconfig +++ b/drivers/net/ethernet/stmicro/stmmac/Kconfig @@ -239,6 +239,17 @@ config DWMAC_INTEL_PLAT the stmmac device driver. This driver is used for the Intel Keem Bay SoC. +config DWMAC_LOONGSON1 + tristate "Loongson1 GMAC support" + default MACH_LOONGSON32 + depends on OF && (MACH_LOONGSON32 || COMPILE_TEST) + help + Support for ethernet controller on Loongson1 SoC. + + This selects Loongson1 SoC glue layer support for the stmmac + device driver. This driver is used for Loongson1-based boards + like Loongson LS1B/LS1C. + config DWMAC_TEGRA tristate "NVIDIA Tegra MGBE support" depends on ARCH_TEGRA || COMPILE_TEST diff --git a/drivers/net/ethernet/stmicro/stmmac/Makefile b/drivers/net/ethernet/stmicro/stmmac/Makefile index 5b57aee19267..80e598bd4255 100644 --- a/drivers/net/ethernet/stmicro/stmmac/Makefile +++ b/drivers/net/ethernet/stmicro/stmmac/Makefile @@ -29,6 +29,7 @@ obj-$(CONFIG_DWMAC_SUNXI) += dwmac-sunxi.o obj-$(CONFIG_DWMAC_SUN8I) += dwmac-sun8i.o obj-$(CONFIG_DWMAC_DWC_QOS_ETH) += dwmac-dwc-qos-eth.o obj-$(CONFIG_DWMAC_INTEL_PLAT) += dwmac-intel-plat.o +obj-$(CONFIG_DWMAC_LOONGSON1) += dwmac-loongson1.o obj-$(CONFIG_DWMAC_GENERIC) += dwmac-generic.o obj-$(CONFIG_DWMAC_IMX8) += dwmac-imx.o obj-$(CONFIG_DWMAC_TEGRA) += dwmac-tegra.o diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-loongson1.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-loongson1.c new file mode 100644 index 000000000000..368d6cd2cb78 --- /dev/null +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-loongson1.c @@ -0,0 +1,257 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * Loongson-1 DWMAC glue layer + * + * Copyright (C) 2011-2023 Keguang Zhang + */ + +#include +#include +#include +#include +#include + +#include "stmmac.h" +#include "stmmac_platform.h" + +/* Loongson-1 SYSCON Registers */ +#define LS1X_SYSCON0 (0x0) +#define LS1X_SYSCON1 (0x4) + +struct ls1x_dwmac_syscon { + const struct reg_field *reg_fields; + unsigned int nr_reg_fields; + int (*syscon_init)(struct plat_stmmacenet_data *plat); +}; + +struct ls1x_dwmac { + struct device *dev; + struct plat_stmmacenet_data *plat_dat; + const struct ls1x_dwmac_syscon *syscon; + struct regmap *regmap; + struct regmap_field *regmap_fields[]; +}; + +enum ls1b_dwmac_syscon_regfield { + GMAC1_USE_UART1, + GMAC1_USE_UART0, + GMAC1_SHUT, + GMAC0_SHUT, + GMAC1_USE_TXCLK, + GMAC0_USE_TXCLK, + GMAC1_USE_PWM23, + GMAC0_USE_PWM01, +}; + +enum ls1c_dwmac_syscon_regfield { + GMAC_SHUT, + PHY_INTF_SELI, +}; + +const struct reg_field ls1b_dwmac_syscon_regfields[] = { + [GMAC1_USE_UART1] = REG_FIELD(LS1X_SYSCON0, 4, 4), + [GMAC1_USE_UART0] = REG_FIELD(LS1X_SYSCON0, 3, 3), + [GMAC1_SHUT] = REG_FIELD(LS1X_SYSCON1, 13, 13), + [GMAC0_SHUT] = REG_FIELD(LS1X_SYSCON1, 12, 12), + [GMAC1_USE_TXCLK] = REG_FIELD(LS1X_SYSCON1, 3, 3), + [GMAC0_USE_TXCLK] = REG_FIELD(LS1X_SYSCON1, 2, 2), + [GMAC1_USE_PWM23] = REG_FIELD(LS1X_SYSCON1, 1, 1), + [GMAC0_USE_PWM01] = REG_FIELD(LS1X_SYSCON1, 0, 0) +}; + +const struct reg_field ls1c_dwmac_syscon_regfields[] = { + [GMAC_SHUT] = REG_FIELD(LS1X_SYSCON0, 6, 6), + [PHY_INTF_SELI] = REG_FIELD(LS1X_SYSCON1, 28, 30) +}; + +static int ls1b_dwmac_syscon_init(struct plat_stmmacenet_data *plat) +{ + struct ls1x_dwmac *dwmac = plat->bsp_priv; + struct regmap_field **regmap_fields = dwmac->regmap_fields; + + if (plat->bus_id) { + regmap_field_write(regmap_fields[GMAC1_USE_UART1], 1); + regmap_field_write(regmap_fields[GMAC1_USE_UART0], 1); + + switch (plat->phy_interface) { + case PHY_INTERFACE_MODE_RGMII: + regmap_field_write(regmap_fields[GMAC1_USE_TXCLK], 0); + regmap_field_write(regmap_fields[GMAC1_USE_PWM23], 0); + break; + case PHY_INTERFACE_MODE_MII: + regmap_field_write(regmap_fields[GMAC1_USE_TXCLK], 1); + regmap_field_write(regmap_fields[GMAC1_USE_PWM23], 1); + break; + default: + dev_err(dwmac->dev, "Unsupported PHY mode %u\n", + plat->phy_interface); + return -EOPNOTSUPP; + } + + regmap_field_write(regmap_fields[GMAC1_SHUT], 0); + } else { + switch (plat->phy_interface) { + case PHY_INTERFACE_MODE_RGMII: + regmap_field_write(regmap_fields[GMAC0_USE_TXCLK], 0); + regmap_field_write(regmap_fields[GMAC0_USE_PWM01], 0); + break; + case PHY_INTERFACE_MODE_MII: + regmap_field_write(regmap_fields[GMAC0_USE_TXCLK], 1); + regmap_field_write(regmap_fields[GMAC0_USE_PWM01], 1); + break; + default: + dev_err(dwmac->dev, "Unsupported PHY mode %u\n", + plat->phy_interface); + return -EOPNOTSUPP; + } + + regmap_field_write(regmap_fields[GMAC0_SHUT], 0); + } + + return 0; +} + +static int ls1c_dwmac_syscon_init(struct plat_stmmacenet_data *plat) +{ + struct ls1x_dwmac *dwmac = plat->bsp_priv; + struct regmap_field **regmap_fields = dwmac->regmap_fields; + + if (plat->phy_interface == PHY_INTERFACE_MODE_RMII) { + regmap_field_write(regmap_fields[PHY_INTF_SELI], 0x4); + } else { + dev_err(dwmac->dev, "Unsupported PHY-mode %u\n", + plat->phy_interface); + return -EOPNOTSUPP; + } + + regmap_field_write(regmap_fields[GMAC_SHUT], 0); + + return 0; +} + +static const struct ls1x_dwmac_syscon ls1b_dwmac_syscon = { + .reg_fields = ls1b_dwmac_syscon_regfields, + .nr_reg_fields = ARRAY_SIZE(ls1b_dwmac_syscon_regfields), + .syscon_init = ls1b_dwmac_syscon_init, +}; + +static const struct ls1x_dwmac_syscon ls1c_dwmac_syscon = { + .reg_fields = ls1c_dwmac_syscon_regfields, + .nr_reg_fields = ARRAY_SIZE(ls1c_dwmac_syscon_regfields), + .syscon_init = ls1c_dwmac_syscon_init, +}; + +static int ls1x_dwmac_init(struct platform_device *pdev, void *priv) +{ + struct ls1x_dwmac *dwmac = priv; + int ret; + + ret = devm_regmap_field_bulk_alloc(dwmac->dev, dwmac->regmap, + dwmac->regmap_fields, + dwmac->syscon->reg_fields, + dwmac->syscon->nr_reg_fields); + if (ret) + return ret; + + if (dwmac->syscon->syscon_init) { + ret = dwmac->syscon->syscon_init(dwmac->plat_dat); + if (ret) + return ret; + } + + return 0; +} + +static const struct of_device_id ls1x_dwmac_syscon_match[] = { + { .compatible = "loongson,ls1b-syscon", .data = &ls1b_dwmac_syscon }, + { .compatible = "loongson,ls1c-syscon", .data = &ls1c_dwmac_syscon }, + { } +}; + +static int ls1x_dwmac_probe(struct platform_device *pdev) +{ + struct plat_stmmacenet_data *plat_dat; + struct stmmac_resources stmmac_res; + struct device_node *syscon_np; + const struct of_device_id *match; + struct regmap *regmap; + struct ls1x_dwmac *dwmac; + const struct ls1x_dwmac_syscon *syscon; + size_t size; + int ret; + + ret = stmmac_get_platform_resources(pdev, &stmmac_res); + if (ret) + return ret; + + /* Probe syscon */ + syscon_np = of_parse_phandle(pdev->dev.of_node, "syscon", 0); + if (!syscon_np) + return -ENODEV; + + match = of_match_node(ls1x_dwmac_syscon_match, syscon_np); + if (!match) { + of_node_put(syscon_np); + return -EINVAL; + } + syscon = (const struct ls1x_dwmac_syscon *)match->data; + + regmap = syscon_node_to_regmap(syscon_np); + of_node_put(syscon_np); + if (IS_ERR(regmap)) { + ret = PTR_ERR(regmap); + dev_err(&pdev->dev, "Unable to map syscon: %d\n", ret); + return ret; + } + + size = syscon->nr_reg_fields * sizeof(struct regmap_field *); + dwmac = devm_kzalloc(&pdev->dev, sizeof(*dwmac) + size, GFP_KERNEL); + if (!dwmac) + return -ENOMEM; + + plat_dat = stmmac_probe_config_dt(pdev, stmmac_res.mac); + if (IS_ERR(plat_dat)) { + dev_err(&pdev->dev, "dt configuration failed\n"); + return PTR_ERR(plat_dat); + } + + plat_dat->bsp_priv = dwmac; + plat_dat->init = ls1x_dwmac_init; + dwmac->dev = &pdev->dev; + dwmac->plat_dat = plat_dat; + dwmac->syscon = syscon; + dwmac->regmap = regmap; + + ret = stmmac_pltfr_probe(pdev, plat_dat, &stmmac_res); + if (ret) + goto err_remove_config_dt; + + return 0; + +err_remove_config_dt: + if (pdev->dev.of_node) + stmmac_remove_config_dt(pdev, plat_dat); + + return ret; +} + +static const struct of_device_id ls1x_dwmac_match[] = { + { .compatible = "loongson,ls1b-dwmac" }, + { .compatible = "loongson,ls1c-dwmac" }, + { } +}; +MODULE_DEVICE_TABLE(of, ls1x_dwmac_match); + +static struct platform_driver ls1x_dwmac_driver = { + .probe = ls1x_dwmac_probe, + .remove_new = stmmac_pltfr_remove, + .driver = { + .name = "loongson1-dwmac", + .of_match_table = ls1x_dwmac_match, + }, +}; +module_platform_driver(ls1x_dwmac_driver); + +MODULE_AUTHOR("Keguang Zhang "); +MODULE_DESCRIPTION("Loongson1 DWMAC glue layer"); +MODULE_LICENSE("GPL"); From patchwork Sat Aug 12 15:11:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Keguang Zhang X-Patchwork-Id: 13351877 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 357A8C0015E for ; Sat, 12 Aug 2023 15:12:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232277AbjHLPMc (ORCPT ); Sat, 12 Aug 2023 11:12:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47914 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230004AbjHLPMa (ORCPT ); Sat, 12 Aug 2023 11:12:30 -0400 Received: from mail-pf1-x432.google.com (mail-pf1-x432.google.com [IPv6:2607:f8b0:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E834E171B; Sat, 12 Aug 2023 08:12:32 -0700 (PDT) Received: by mail-pf1-x432.google.com with SMTP id d2e1a72fcca58-686f38692b3so2756662b3a.2; Sat, 12 Aug 2023 08:12:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691853152; x=1692457952; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=rLKDp3T6ffay96ib2FA9KVmMuF8tytRGA1tsnDfcuNs=; b=jcGsstu8S3vEwBz5ePUklEY5prrQ2W3LObE9qaprsVYWf0Ur3o3lzEcNCVWFLiljp6 atOLRLplDheA5GNNeQvYpZq6mAXQELTvDjfzHbbqJweBQZiajFGMtWFStUeqiTTz6YFs LyUGh0TIWdHapWZd97lMHdkAD66AoNQxyzA8pAkVh0psC/+gEy1aXtPvte99ManFdF/z dhBxV7FXeLYUMNhUAYx0R2bS4HZ4jA0PdNasgOCTkQCVpa6bq0a2HfxTneQb0bOfl3IK csDoL98bJkLqCgQhpu3WjnD9fRpCB21LmCNok8LOdBRRsh99dSvalYQQjI4eFQwD1K8Z HsHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691853152; x=1692457952; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=rLKDp3T6ffay96ib2FA9KVmMuF8tytRGA1tsnDfcuNs=; b=KaZMEz/I/wDyIXIly4v57WnvtUxVyIwlaYP2Gl+60g1V6RAjZyzY/asE7IOzfRzSx4 xRnBTs/JhxjuOOlGn0KrQbB4bEJ+6A0/5jq84f/jFi6WDDvJYVEp0PItZqE/19Zm3gSq ANJ2yVEy3p6XEXMjISlMTVsGw9M2SY3prgxYIYgGKULHKrMa7nBJa8KvV3mzk9SpSC+i Ya0jWg9ncvsy636YiZyVPZXx2Aeq4mtGAgdS0P2MrdF/SHPMl9aXZvBrAKe8G+To/K4C hwlI+ARb96fixSL6qG/LrXj7hfDmhJLvsWUkE4bOdWvLS2Aorn+u+EsRPB3tyohkvFWO H7Aw== X-Gm-Message-State: AOJu0YxzyvugMeOalyejKRViJhMCCyxmSO/vcEcnBq3DLUR/wOV4ToQx faxXixoSWIvoOcZns9FSWZrYeTFS1R49HXkh X-Google-Smtp-Source: AGHT+IHY9afC8zBSv4tsGszq25Eb9wETHJeaXyDIT/2sfKfCfDnWL80tgUYa1XpBgikYc+gDeetNWw== X-Received: by 2002:a17:903:32cd:b0:1bc:2d43:c747 with SMTP id i13-20020a17090332cd00b001bc2d43c747mr6830712plr.38.1691853152056; Sat, 12 Aug 2023 08:12:32 -0700 (PDT) Received: from kelvin-ThinkPad-L14-Gen-1.. ([38.114.108.131]) by smtp.gmail.com with ESMTPSA id 17-20020a17090a195100b0026b41363887sm1040927pjh.27.2023.08.12.08.12.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Aug 2023 08:12:31 -0700 (PDT) From: Keguang Zhang To: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Lee Jones , Rob Herring , Krzysztof Kozlowski , Conor Dooley , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Thomas Bogendoerfer , Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , Serge Semin , Keguang Zhang Subject: [PATCH 5/5] MAINTAINERS: Add entry for Loongson-1 DWMAC Date: Sat, 12 Aug 2023 23:11:35 +0800 Message-Id: <20230812151135.1028780-6-keguang.zhang@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230812151135.1028780-1-keguang.zhang@gmail.com> References: <20230812151135.1028780-1-keguang.zhang@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org Update MAINTAINERS to add Loongson-1 DWMAC entry. Signed-off-by: Keguang Zhang --- MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 02a3192195af..3f47f2a43b41 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -14309,9 +14309,11 @@ MIPS/LOONGSON1 ARCHITECTURE M: Keguang Zhang L: linux-mips@vger.kernel.org S: Maintained +F: Documentation/devicetree/bindings/*/loongson,ls1x-*.yaml F: arch/mips/include/asm/mach-loongson32/ F: arch/mips/loongson32/ F: drivers/*/*loongson1* +F: drivers/net/ethernet/stmicro/stmmac/dwmac-loongson1.c MIPS/LOONGSON2EF ARCHITECTURE M: Jiaxun Yang