From patchwork Mon Jul 29 07:00:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacobe Zang X-Patchwork-Id: 13744405 X-Patchwork-Delegate: kvalo@adurom.com Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2102.outbound.protection.outlook.com [40.107.117.102]) (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 D619382D7F; Mon, 29 Jul 2024 07:01:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.117.102 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722236498; cv=fail; b=j1j1m4ootK2aHcinBhXYv2bh4jON1YoMtJqwzwh54y54NquthGiAa8zGp+giuoAHwrdbOxQ30hUDwGz0A4GY2BiZwYZdoh+bwChg3GuStT78usrtoeU18P8YsZUu0qSvYgnMk2YS6W5sE5lh5H7sYOVqyekbyHXmfC4UU0EbSa8= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722236498; c=relaxed/simple; bh=ktRJBsGGjJAW7tpIhCoDO5wtOo/XHcwQyHY92weMLU4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=MN5j+ayb97kh7sula6OBAIdk9sP8D/MZQgOE64PREyWrJ/Zh5ogCKX+cbirR3z0whCF7/OnOG50CufdPES+hAR1+FEL9Gh+zvH54CwYR3OLu1XSaidrLOKfeQMvN4iS9QMN4hy7L5G/a/hqJgS4lty+ziwj/eEAciXaZd+8/3Cw= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=wesion.com; spf=pass smtp.mailfrom=wesion.com; arc=fail smtp.client-ip=40.107.117.102 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=wesion.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=wesion.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=iIN4PoDnYQtooRqRm22M+8GZWJ0zHc6iCeHkTJLtTNa7tb1glzVOt6eH+VOp9DiV7eSug8F5BO8RWeBXlt3pAaIxGHkJvOWvkHv5f9hyOlb30EoyokRi4cM1xBdCcpVgovg2Fz0vwM1783i/ptHjo/jrgcnWgFfz+te4UqlSB/Ld0k/tQArTuM4xJMansN2ppwgltJcTxZlpyR9Ojq4t0G2aOCzD6Mhf0nIYeXmzq22cMGoFdAaAL7w46KoNG2UDE/vSrIopeUQaoUI7ErLq0IJFuZi3XWu+6teuG62F/31K43Y6zCCkUfCpJQukLgqfdLR70FWP9oUtqPQOah9yiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=H6zTTdkpi6ahsF6jVbVHnvRxzFTyyYnmY/2NIU7IZ6g=; b=eso/DCVnr6tPmHH1wIg340cNKz6clG8IK7ob43pgVnvFeaJiibzApv3J4VacEJwR7FQMeAHeDtUqAUeRrDE0RMJ9eK1UK7CnGaWZtLeZ7ek9W1duYhIIpbIHOuyhW6HTmfmXy4qRZECHDOPb2KD6QeNjEb+d3h1fqrS9ETsFEXQX8QPKjrbfdCWQCBpQjmI51hqquw//jPq7JFNt35IWqJbXbWOw3uB7ZDRb9Mu1Jd+qGQoIXM7Ez7ct8qo2AuXRe1Gg8xkinSONfhPuxPaRvPoGr5fFLGyThey+Nzq9E3A8wuEJFXBluY1HhwGVnV060ltDW4EwILLtB2OROzK9Eg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wesion.com; dmarc=pass action=none header.from=wesion.com; dkim=pass header.d=wesion.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=wesion.com; Received: from TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) by KL1PR03MB7870.apcprd03.prod.outlook.com (2603:1096:820:fa::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7807.26; Mon, 29 Jul 2024 07:01:32 +0000 Received: from TYZPR03MB7001.apcprd03.prod.outlook.com ([fe80::78dd:5e68:1a9c:36c0]) by TYZPR03MB7001.apcprd03.prod.outlook.com ([fe80::78dd:5e68:1a9c:36c0%6]) with mapi id 15.20.7784.020; Mon, 29 Jul 2024 07:01:32 +0000 From: Jacobe Zang To: robh@kernel.org, krzk+dt@kernel.org, heiko@sntech.de, kvalo@kernel.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, conor+dt@kernel.org, arend.vanspriel@broadcom.com Cc: efectn@protonmail.com, dsimic@manjaro.org, jagan@edgeble.ai, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, arend@broadcom.com, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, megi@xff.cz, duoming@zju.edu.cn, bhelgaas@google.com, minipli@grsecurity.net, brcm80211@lists.linux.dev, brcm80211-dev-list.pdl@broadcom.com, nick@khadas.com, Jacobe Zang Subject: [PATCH v4 1/5] dt-bindings: net: wireless: brcm4329-fmac: add pci14e4,449d Date: Mon, 29 Jul 2024 15:00:58 +0800 Message-Id: <20240729070102.3770318-2-jacobe.zang@wesion.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240729070102.3770318-1-jacobe.zang@wesion.com> References: <20240729070102.3770318-1-jacobe.zang@wesion.com> X-ClientProxiedBy: TYCP301CA0045.JPNP301.PROD.OUTLOOK.COM (2603:1096:400:380::18) To TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR03MB7001:EE_|KL1PR03MB7870:EE_ X-MS-Office365-Filtering-Correlation-Id: 8f789baf-efe1-4f53-2a22-08dcaf9c470b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|7416014|1800799024|52116014|366016|921020|38350700014; X-Microsoft-Antispam-Message-Info: 5BVk1Vs/AQOEFuAChOgDIlNnULo5dZWoyW4AuAog4PBPHldgtbnv1M/Z5stVumTpu967L6umcotKoj/epdgYaOzRue0mrDEgt4q4ZkrY66bCSbkG0yDIDT/KkgRSZZxm03eOtQcj8Lkk5Nwl03Z6Y6zjxxA7v/kTZmtWAT7Ts757l+4g+gA5mhV/ft5olxN1Iy1TCVDkVB8cshNPlQzlDZzhmb8MFNnzKpZCCKy5xikjZuDtrbzvoOaYPGSL6zlMgb3lOSmG0zQm+TElZz7IsUUSx/HqYpTI2Nrx2FLcEQ6Q8W1Qz1icCNCsalTurhoryr3eFHgCmu+k5B8uABk2dqOdgNZcsRoKizWPc/t5FFwpK3gQMpyc1wBIH/2xXtQUzP7arV/2vfjCnG1LZNHKz+EK55Ab/FSeEgxc7FaONoV/Ff8L8wX/ReTdwQuW4IHjXTkgT+DdSCHCRlwmFY2lhYJcjebMmWNjquBs2xTiJmhcowjsEvHfSetvRGOKta8juZO+inc4OeHfQD4T+g5+xMNFFREZp2rPP16Fs9VbWLWJfeQ8BrYe/iHmTgCN/1lDUNHI5bGhXdq0jPjM8gw+g2nq4zf5aOUplTopaBqnTBoFpKHxiwFNFes8S4jz0nZrsEpznZvI4Qb+joOcFbrdubt3T9LAaDMW0CsBpVSST4yvt8qSrsiLYm2/eS5Lpm3cq6B9oEry6KEo1L/KwSQfrX6MImhcfBQwsDrKAGAYRvcXOk7mjQlGclKWa755G0v0+DeBYpCYIK1rSEo8kyNmnOiA56iYQz4HMojin0+4soikjO+7kZwaBy5khcvtVvaTZiMnDu0tphjMjW0/zP4uwFPRJOXK17+OfwUPX/OzU9K4XQGADJBpK0zkNSG5AilYAgpJmD6DypZ77cC8PHpT7Ma81+ybAxXBByb9x8OqY1+WFBJPlnAsizAN+rb5f8q781KHZ+3XMh69NYo6ggRj0B858BSeIo74o1kMLUFQQfLAxXG7Fd4sFvpF9hP2EH+IYubdqgRDew+sqZ0ggx4NisfWF4S2wQcfNLJxhRSizCneDp05JOehCpMx3V4xPtmEgldZ7crYqbmvpmKiKiFyjV+trYpyMFvNdFHpbRYOFZ/DGfiijJYKW2ojMOSUzl9BuMMQkCdpNNuAICsYoJ3y5m8OgoI6G7bDBnSPmK4dWurdz0wWGFsbl9PDBtVr2wCqoHjQIdaK3bLHx8Jh11SMxQltfy/X2umqMOdH1zSazQjWIQcIQbb7zYwV8NSamCaGvuSnWDBq/GiM6CRKzYYAxkjzT9DDOmFictrTzE+XjhE64c6uf4aDokj1Kc6cGVzT8bSmTt61VDtmJgO9ZwCPDGs0xL68BLhAV2LuGj+kXjPtGS1VChNJ4pP9WLDGO33XsedJ/9hOBPPb7QVxPdePS0/RyLCDUUmaI4AtQhg55f4= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:TYZPR03MB7001.apcprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(7416014)(1800799024)(52116014)(366016)(921020)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 9MpQyz3HPSJ0SkWfytxKZiQVPVtgG+oJN2pm9rt0ukRZ40tn3260izNW4HwwmmwQ4ovnBNOEB3I4moyI1X3fh8+T/lRiyqp422zKxP21qpE1frYWGSWTEjSuYN7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zdjVj5MPVNbZseePbNcTUXDb++hpmNHj04REDK7WIT9zL4zNIvSqg2u246rd8hT0hdS+dGjGorOIc4wn9L1MuepL7BArLpb1jKNCJRXFHLBNZ1JFfBZI4ZhVP24kDs+Le3+a0EajBRKmgpsnmt+ZAOrDf+rmXjvqrpbG29WRY0eVSKuYjuaSC0f0bWMDdAJr62SrahohNArUwRxHMeUMKdABQHpWm/d8ImNUhRcnDvb/nm2AAS+/9avMGgFnaGyi39ZbEY87czS/n/tvYIm7vCY94fs+BDUiCg7lISkANk5NXzrGUaagV8RxnRwdfzb/FSvLlh/dATuQav9ZUd7psQhPKcL+38xIhTqcgYIvQ4hY7bs7b3lOKakHjhsdS5yhEX9rTzqhuDx6V X-OriginatorOrg: wesion.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8f789baf-efe1-4f53-2a22-08dcaf9c470b X-MS-Exchange-CrossTenant-AuthSource: TYZPR03MB7001.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Jul 2024 07:01:32.3025 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 2dc3bd76-7ac2-4780-a5b7-6c6cc6b5af9b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 2DVP4Hqsv2Ou63dcs4NkowWUrzWbjS9fkM/nEHz37Bwjs28TAXqbLf1dHhGM5fWaS63EWQnuXqt771Pb9isk9Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR03MB7870 It's the device id used by AP6275P which is the Wi-Fi module used by Rockchip's RK3588 evaluation board and also used in some other RK3588 boards. Acked-by: Arend van Spriel Signed-off-by: Jacobe Zang --- .../devicetree/bindings/net/wireless/brcm,bcm4329-fmac.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/net/wireless/brcm,bcm4329-fmac.yaml b/Documentation/devicetree/bindings/net/wireless/brcm,bcm4329-fmac.yaml index e564f20d8f415..2c2093c77ec9a 100644 --- a/Documentation/devicetree/bindings/net/wireless/brcm,bcm4329-fmac.yaml +++ b/Documentation/devicetree/bindings/net/wireless/brcm,bcm4329-fmac.yaml @@ -53,6 +53,7 @@ properties: - pci14e4,4488 # BCM4377 - pci14e4,4425 # BCM4378 - pci14e4,4433 # BCM4387 + - pci14e4,449d # BCM43752 reg: description: SDIO function number for the device (for most cases From patchwork Mon Jul 29 07:00:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacobe Zang X-Patchwork-Id: 13744406 X-Patchwork-Delegate: kvalo@adurom.com Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2102.outbound.protection.outlook.com [40.107.117.102]) (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 9D591129A74; Mon, 29 Jul 2024 07:01:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.117.102 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722236500; cv=fail; b=hynqmOwym1tkoCMIAtQf770qJBEaLyrdOcO+P8A+9ELi8TbPc9IjMih7A7AuyDYAl+e7PZNOSTZYlsEbC6p1O1tahPnkAjJu3BpY3CY283tqWZhDwpqheJ4Vdyz+MmIckeotuMty8yweYp0id/jvugT/YNQK6qgEe+DyOIRRT9c= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722236500; c=relaxed/simple; bh=2l/CrUCMYsxDpJqRYp9hPh31Lt5sWgdOhrcrtxx+mAA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=M6gGTJ3sLL/OdTxuB8SNV8vgU3kekVfbIr3IBPHi7VB7qo73yY+9UR26t1YhE02Mz1u8gYzTQ6l7vdIpweKP1DJiLgXKn5nC2aEwzpnaEB0woY9LsejsKcwwNPMEPhyf+R8gt/z+3dajbvC4hGBKZQqkulEPdAgP3lcIiJiGWMQ= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=wesion.com; spf=pass smtp.mailfrom=wesion.com; arc=fail smtp.client-ip=40.107.117.102 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=wesion.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=wesion.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=fLSEhzryZiVQfXu74BlZG7xGUafFLLv+ky/hILoUGExxeQqcNOrQQ1kYetXXFaPEUG9I9P3ofaY2BXEaZkyxOW5m3z4mGQuQrk3ZsTuoUT0LYWJynEkiASl7Z2vx3PgwfwxbBPS1O6NC1rWPVLMroXa0IWYKYqREp7CA57wbbx7kqMSPzae0LVIVs15PeEU6tUyclUX1YErtE9+LOvPSPCzJJtsdGDuIN6mlIptw1yGPrLyFAcw0ia78eGhQCGCfPqmi9fOLCCTr2rRKj2dFomnTXuc+Hi54qjaSFaUvaB8wyN4+9xdBgS2dp6I+5e8dt0Jjnkg57mkIwgm3zsItig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=gJnaATap9OcPyNhPWle4Rtvrxff9malBiQFrlqhDmPo=; b=d/3t8w/tmnhkHkzZBz3JJ5DVJJjPy2lGmSSS3t+lXTEvOhlWUZi3ne7UpUXR/fTKRrBwYXo42Z/7sBwNJ0gy4aVAdqJNBXwqg/95d6NA4TDA/8SWr4OdlJpbIG9pGwV743SUCXLvMQAn3h/y364jyLxgQOjLu+Shwnms1/YHc1p/ZaER7+Wh3trEZu/KjTIJ6jjgVuR5Q8Wg2XbbwNPazftjGFN6UxDWHms93AtB/LTHiK9GoLcKHJU49r65dccOs+JWtOFGiqdRdUMZ6xmqPi3UsR8UphYUfaMGD/P1QNg8UW1seZahqGzeXJWnFELgQ6VFVQRgYeguLEH9e/Pkmg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wesion.com; dmarc=pass action=none header.from=wesion.com; dkim=pass header.d=wesion.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=wesion.com; Received: from TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) by KL1PR03MB7870.apcprd03.prod.outlook.com (2603:1096:820:fa::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7807.26; Mon, 29 Jul 2024 07:01:35 +0000 Received: from TYZPR03MB7001.apcprd03.prod.outlook.com ([fe80::78dd:5e68:1a9c:36c0]) by TYZPR03MB7001.apcprd03.prod.outlook.com ([fe80::78dd:5e68:1a9c:36c0%6]) with mapi id 15.20.7784.020; Mon, 29 Jul 2024 07:01:35 +0000 From: Jacobe Zang To: robh@kernel.org, krzk+dt@kernel.org, heiko@sntech.de, kvalo@kernel.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, conor+dt@kernel.org, arend.vanspriel@broadcom.com Cc: efectn@protonmail.com, dsimic@manjaro.org, jagan@edgeble.ai, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, arend@broadcom.com, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, megi@xff.cz, duoming@zju.edu.cn, bhelgaas@google.com, minipli@grsecurity.net, brcm80211@lists.linux.dev, brcm80211-dev-list.pdl@broadcom.com, nick@khadas.com, Jacobe Zang Subject: [PATCH v4 2/5] dt-bindings: net: wireless: brcm4329-fmac: add clock description for AP6275P Wi-Fi device Date: Mon, 29 Jul 2024 15:00:59 +0800 Message-Id: <20240729070102.3770318-3-jacobe.zang@wesion.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240729070102.3770318-1-jacobe.zang@wesion.com> References: <20240729070102.3770318-1-jacobe.zang@wesion.com> X-ClientProxiedBy: TYCP301CA0045.JPNP301.PROD.OUTLOOK.COM (2603:1096:400:380::18) To TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR03MB7001:EE_|KL1PR03MB7870:EE_ X-MS-Office365-Filtering-Correlation-Id: 516d3bf4-cf17-41f8-2f0a-08dcaf9c48d9 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|7416014|1800799024|52116014|366016|921020|38350700014; X-Microsoft-Antispam-Message-Info: iITWKtONOKDo/LirKxkjhGhszaiLi09Zk85YHN4SPbLCZrKNGaLXSJZuQql5tv/dB+6FrVxYXbjlJJOwRDJbEmZ4U3e+dyV0Oc2urNxmJOvcMiqpTwEL5mkDGXQltynGjEVyAVGsUnMzcO1sem4VYTsIy/GCPcmpUaM9bOE01kqNtpkkI73U/R9SY0+60xb+1LSKt1zaJHro2qbq/mg1/9j3WYKvkGKFcmR1wyjAt0TDl1iOxTlSbit2CN/twhzeRj47d+6A48KndcFtIY268Yw9vh4vJ58DNSM1Crjt3pS5ALhCb/uwrpAmcFniZwmIh9nS6uy4OBNeYzxYj2a6aywi1Ic3c2VOWZ0LRQcjoDdrSjTZrrJWXtIPR4c4B2WeAY002GxY/dR+/rQaMXMTqh0b2gPPynsY5JNWPXlfdU4FjOuTVnPrhGHxH5OuJfmINF76L4yeTftKhkQ/GEenUUYdJFpWYbjmEmsOE70kGZGNM8iREgR1Dxk5QCNRK89sQVi1G+kf+apub+8++caIh0ko/E4ZvWvAh7szQDErYatpGRqOH4sr634B4LKalJzL4jHYIutN+U3YLG/v9PceK/s9sVoBBWtsmh5vT7fXolTygq3TuQtsFXVf3vVqDmAdiZ5783kZewWfQpTC+x6dAuu1Me8ZEHEDLktHl0LwSKgZ1KyiAh4g6aXBNL/Kwvh9RGaOYN6Yk9J9Fb36eam2SFVnG12v+fPmMIM7b8sAzwz4LLoVnZbGApWqkkolhy+t29SGGt3l4n4AiNqyGK60uS3V5a6lU4lwEBqctnesMko5uQUQVc20coXPtug2tgX4lw8WAaUpPh5oDeZ5rzOHE865ulXEj4zd10+vL4ERaofA7qy0FbnXByDXcE5skz1y+yzWZLK7PSkMC/peNFEI6UkYwDZe4YxBERoG986wZ4fpjg0RijCgvny0skzZ82exzZHcGD4rsfgmwTwS6mDASN2g08VGc5kAM2bKyYd7huE2U7BcqJl4u603fLrFXey9uIplAiaJnLUc/ycSoHUPAK0hymsh7+xxFI1KF61/m5LUHFotL6zOlz+qdRDj669h3q0PH8OtzPN0pp9YAA+PcOaMVLmixu1qE5YbyHt5rTY955afyY3zVUs17hxSUVmT12sbhGkqzP8c5V44Ndl0VfusCqrcqbLdGdHRVwwJO1xkRneMLNZ1wIZwgKYlmwEWZDHC5QVBEFdnKmKEB4JwcrtvoHUsOYP21X2seum5mYgfAi6QXGWX15ipWAmmecuUdtJNI+H2vCrJrgvY6tH9WydrbulotcotlvbWjkNuC4XkLeBrfv3blm2IWb4egtyOLSOkfqv62SYApjVv0uxC9NHVoOM7R4aLM8HPuwivncrHNzmCgImciw7fUJMd5egKuOBze9yvIksGio44HxvjDDkEvae7lk2jsEHPRPoZ6as= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:TYZPR03MB7001.apcprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(7416014)(1800799024)(52116014)(366016)(921020)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: qrVWMvZFHdx1rn36bwnyB4O1ejcFIRIGOWrOsk/uebg/5L560yFZU072ocavcQQSE5bwy8ZdwONRaaqY6pIHOwNFZ72GXxFjxjuWF1kmX4RVTeZzQFNI+4yaWXP9DMrXiIluXOZlGN2rpt64smLstpkCYC7iGqs2q2HgIKXOH37j/1l0GSnsR5PkqiUgm4ip2v8pDfcgbkQYjbcnW2pLe8gdpMMT6x0pjWQGs86HzNJECUErPMriNtzSOicRtUQYHr80obXH/SyiNxnyHLNfv1RuBcWN6kxunT47gg0pQiTBNVmraUmbPV5SU9goNqbuaJ13fs3z9X6St41RUEYsBZ34M+ZafBV8SU4Ut1kUweFf/H9s7OMD4CZjOuwPutHt6Qx98Cgybio0KMYjllusVI7TFkrBEx/PnM2C/K8YI4azntVZX7OGPh1nhOMhX1LaOcANo0c/WG+czQFDuXUXzPFN1GeFeyAfn447LokXrf6nbA9opdlzLc/CmcLxMPtUxpH4IZGuAocVT+rPvQ9udac2cRe4ayyaY9mctGDw+5YGTk3h/FBL8CttKqKNK/1Pfsl2tAFvK7NrlYFyhsDPbMTqw1bcIdIdEK0p90XuMNdskxo25EH4qArJUisq1uuRni0aqJiwN5d2AzyaCgj8QVbyrECj55eiYlGhkU5LGC7TnvMiuvWBNLI9877jsxd/VB0Nq6CeDC+kTMGcmErDwa273kCmIcGVz/a9xsDqCTDgN++akLEnzVti961em5tv9FsBz0GcYLmsBaLZPeYa3LSbF2e3eb10jY7aI2+kDWq3N2C5AI6Q5iPm5+N/E36PS/jtG0AwoEXATHjVU0CTtjDzbjm2bxh4eBNwViSYo+qg13cS/R2HjlWgv/qbgO6TdZ2M98l27kmbr4xlKGeu+u3SpyA71CC70fCGrQyfj2lCc0ljzmy9Mba6QS03Vx7J5AR2KhVtngim3OtwuvJUf2naLrrAH0I6ZXeXiUxPU8Plxi/cfMZDYLNsvmfTZ0t8xx0lH3HnrcH9GeY533UEg5yGC17sMDzdpESU4gOvQHE910z05egYux4ac1VEau/lc3wgCeqfY6NIZ2gX/DfnuYlwUuyIahPMv9EbZeaA1cHxhXeqere7kG94mkmEIvbyDdZG+emQNJCM1o3kZACjCPdWMobRx+fdPF1ynBF/NTz/BlddkfEzk2VdRoio49Kp73ssYW29L0DyoaCATgjVPqQTY0oPVIEYNSM3/a/mHdqy1OMhWV2PIVoxvjq+AZRcd6r+Aef7n5MA881kRMGK3pGg4ukG7+yoLXgLny57ywOn9CmA79zIevePHtb/tW7toE3oNu32OSqXmzOleni8jyFiSwtYoFMqYs4voA/9QJ7iBhQADw6zFZ4Z/yICSWGbNPXxNfMTaCdHqI/kUNYtLh9ldQh/Qi1gxagMPqCWqcOmFC6wzdJZL5Q3Ja+Mhd5cLEL6jotql1llJCHXY7QM48NE/EawNktbz5u7TZFD+OUFjGDjflMiydw8wlJh1Ph/guPrC9jS1GbFXtBSlHPBL2g7Lkxi8J8SqaJdnAjjHFxkUkxxr53ToZfpKqZGQWyA X-OriginatorOrg: wesion.com X-MS-Exchange-CrossTenant-Network-Message-Id: 516d3bf4-cf17-41f8-2f0a-08dcaf9c48d9 X-MS-Exchange-CrossTenant-AuthSource: TYZPR03MB7001.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Jul 2024 07:01:35.3314 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 2dc3bd76-7ac2-4780-a5b7-6c6cc6b5af9b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: PiQst60MFmmx/1Uah4bzx4dxqm/9TeK45S4VAdqNo6aAuUj6iMAohq+pXCUeALihtCubsIJYVtj5ZE06S+CsZw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR03MB7870 Add clocks and clock-names for brcm4329-fmac. Reviewed-by: Arend van Spriel Signed-off-by: Jacobe Zang --- .../bindings/net/wireless/brcm,bcm4329-fmac.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Documentation/devicetree/bindings/net/wireless/brcm,bcm4329-fmac.yaml b/Documentation/devicetree/bindings/net/wireless/brcm,bcm4329-fmac.yaml index 2c2093c77ec9a..a3607d55ef367 100644 --- a/Documentation/devicetree/bindings/net/wireless/brcm,bcm4329-fmac.yaml +++ b/Documentation/devicetree/bindings/net/wireless/brcm,bcm4329-fmac.yaml @@ -122,6 +122,14 @@ properties: NVRAM. This would normally be filled in by the bootloader from platform configuration data. + clocks: + items: + - description: External Low Power Clock input (32.768KHz) + + clock-names: + items: + - const: lpo + required: - compatible - reg From patchwork Mon Jul 29 07:01:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacobe Zang X-Patchwork-Id: 13744407 X-Patchwork-Delegate: kvalo@adurom.com Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2102.outbound.protection.outlook.com [40.107.117.102]) (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 73E2912CD96; Mon, 29 Jul 2024 07:01:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.117.102 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722236502; cv=fail; b=orrLyVNbMrkbgTTYBXOJ9AEZ3WACZ5IGyrZ70wRM+CJP7RbT4QZruA/Lhk6pmcxMmNkPjY0qvhwOK5fyiKtVCVJ8YJ+AQ1UDoDzb+toQMMn212z0WlD6Da5ak/4ElgFjJwSY4dhKYGPWhgLh2/6Cn7WWWAdRRS9Eba8AVJZ0tM0= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722236502; c=relaxed/simple; bh=Uhfwlia00gxArAQETzG7tiNrPKwef5eo6ySI/hUTPs8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=WMzhv9fVay2yPDhpRgYPybm49IaNmnjPjUKQB+NRewE2dOADSAHrgEbdowE2olpfSqI0Vyrme77xH+oU6iUlnbZxuAM/gXiR6moYrUb3Sx6jJrbl0qyWwL/XBFur7AAh6wAlbyIawYuo+thZAN/Wx1o1sV7zcrsJVnbWoCDu3yA= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=wesion.com; spf=pass smtp.mailfrom=wesion.com; arc=fail smtp.client-ip=40.107.117.102 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=wesion.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=wesion.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=LJhd5CFDx5gWlaLdZXso+uOF4ZqXo0rV9ro8rtJxoUIOH4QWuCSWyiDleNhuTuLv8Ii5+G1aVVVSAUFjChKBVZYyJQN4hfUxtm/3KZd8bHkXlCedj0OZ/tRKT+0Y6YWOuNKH4Cg/F5NLFxzFVqKCqS6Dg0v1pkrpj+pGg+biJ4vSNWXLy3EEQDiLeOHBJaBf9L0YStEap7kkeDkbicgfF9HqHx59ETD5UuJXPH233CpHG0ubDilhEpbg1v4ARAU7V1yl3zQ7QhQGjMNwkWqm26FoVwHzwxNvGYIT8fy3s6xULvRm++tz1NrLlPUZl6udbi7cHwmU8MmLmXddAYorXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=NRUqt4k/WvlKGJFOdFHO2kFoLNEuStUTybCV25hPoP8=; b=YABhPBH7E88T750iPBz937wETo3md5LueYCh6kq7dlhu4Q60i90IVtXIy9hChtBusYbvWLA636v+qg48uj4ilspXSuCO7N45fa0rEvJOqe5FDs+i8M0Yr/g+5FPZsCeKLlYLenQLwnX38pzVR06I9NLISN4Dja4hsULgOQ288RQ8Q4IpQ0sa7PyU0mADJEYLbL/n2eHZq/JyFwDN3hLUkXseS5+wE5z69J+3uJ1PexAF1iYjepu9MDSuRFUTCYnbxOBW3AIceADLQjN6Ws8q+qSqF/ET/kF2IFiU+fLc4ECo9FDBFT0uncimjsJeByRa9Q+LWBTLUMdW6l0OTUdO9Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wesion.com; dmarc=pass action=none header.from=wesion.com; dkim=pass header.d=wesion.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=wesion.com; Received: from TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) by KL1PR03MB7870.apcprd03.prod.outlook.com (2603:1096:820:fa::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7807.26; Mon, 29 Jul 2024 07:01:38 +0000 Received: from TYZPR03MB7001.apcprd03.prod.outlook.com ([fe80::78dd:5e68:1a9c:36c0]) by TYZPR03MB7001.apcprd03.prod.outlook.com ([fe80::78dd:5e68:1a9c:36c0%6]) with mapi id 15.20.7784.020; Mon, 29 Jul 2024 07:01:38 +0000 From: Jacobe Zang To: robh@kernel.org, krzk+dt@kernel.org, heiko@sntech.de, kvalo@kernel.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, conor+dt@kernel.org, arend.vanspriel@broadcom.com Cc: efectn@protonmail.com, dsimic@manjaro.org, jagan@edgeble.ai, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, arend@broadcom.com, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, megi@xff.cz, duoming@zju.edu.cn, bhelgaas@google.com, minipli@grsecurity.net, brcm80211@lists.linux.dev, brcm80211-dev-list.pdl@broadcom.com, nick@khadas.com, Jacobe Zang Subject: [PATCH v4 3/5] arm64: dts: rockchip: Add AP6275P wireless support to Khadas Edge 2 Date: Mon, 29 Jul 2024 15:01:00 +0800 Message-Id: <20240729070102.3770318-4-jacobe.zang@wesion.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240729070102.3770318-1-jacobe.zang@wesion.com> References: <20240729070102.3770318-1-jacobe.zang@wesion.com> X-ClientProxiedBy: TYCP301CA0045.JPNP301.PROD.OUTLOOK.COM (2603:1096:400:380::18) To TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR03MB7001:EE_|KL1PR03MB7870:EE_ X-MS-Office365-Filtering-Correlation-Id: 280962ca-c0b7-4146-4998-08dcaf9c4ac2 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|7416014|1800799024|52116014|366016|921020|38350700014; X-Microsoft-Antispam-Message-Info: +MQg0kVghdWywTtx9/pIfB9jGQdRBR1PxIK9h3OAw06z3vMlxRHsLlmZhwBGf7oyIf2FnS4gK1J92O8deFGQWC9Bpp+T68kLw/7FZszE6Xx2LxtlCOR0RHvP7BmrqoQbZoCrBPyCC77tFEPjmT7LeX2p1SGUs6YOaQ6CudqWxRfd904c0MSXhKu+6mBU7r8yLdcWjrfwBxhTrE3LLvJzFiItN8fcJwzcqfuTzuY23zVDr2YXqQ1wNgfAepD+PKYSRLWn9TjN7g/o2KU3/O/Hdkl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PhA+hc1mW48a1jZ6aWgdYcZ1jLH1/CD0LMK70d1cSYfp0czaIfS38mu4MV7kV59mMFueB78LsLBWQmFR/HRt4dGxlBn8= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:TYZPR03MB7001.apcprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(7416014)(1800799024)(52116014)(366016)(921020)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: XMpAM77b6gE+L0Pd18Nir8phxOkfStcqesVmdEHY3IGq6edqK99QgfxCnXSMJMczubIirjbQ/YqtvHCTUb73NiioVXobO7ZYUqAz+7naZQim21hr3kDnjtZbZuFtivuHUD85Ir99piAloKI1nqU624G/GDWoxAoj37cGrb48ZfBt3lr3VJumtO+u0EgtK+xMWc9InV7wQzTVSFyEE/DojxbBJt5uNGq1OssJtawj+4YDp23LYOyu4lxNYNnf12EdV09Dcr9KkNDt58MJ4ywYAlOM4KvNhQz28fe3tUOcf4lplE6iXcozWTBOdJqBgaHQfDSYTdKtPOsCO0L72E8fX0ILDEeBznN6kFmC6M9adehgfO4y6NQBd04uBJD+AFvgLv7ulR0mS98cGppnop9ok3TfN7sjo4tY95xvYQnVhELjnzC63FB6Ll6b6X7vhvlr3GdZeOZUbkbFOBC8h0gcc3DZPXqMhaXxYpDqKjmxNsuIHtSxmbOSsvk+7njYE3PDce3IoqTPgK0VArzlRk/WY5R5diBK+23bnZWPCqZIn5OoEXLF5UCeC+hFQcZS6ywg6fCrGs7O4YKPpToYg3WZLGb1q5ZaN6FmPKDIAMDEGREaHbMx9tp6AgY9/UniGWixY7cue6fCqu/ASaVI+vj3NOICup9jX+I6Lc5aL+ajJmX2PRqbdHCuGHEqlceztKyeLztTDl3wE7CSHKJIT4nICM3SEJhPIr0Qh7wb8mlcG+Ha5GhYW+8rNV2rET1nxwIF08l1UmZ4WdzY9inb5tBhMxkjcxnr1swq5D4iH5kuaRuRCqqLgEAf5ih8rzZsZ4PphG7SUC386gYzCAu9uSBMkh1CR2UdXZBqNEmo4MQTzcTyEkenDSw4sD5ZEAivfcUB2tVrp6tiFBqSA2Mz+G/YMhpt1Mkd3DpujJRfBjsGwARwv9T+uWtgIxxKFRlAaAeu0I1WUGC740+Tyh8XumkuP2qtoSMqbaCQyIPO1tqudAIuhgEU5gb0k79OFWTvvwgclVHJhat+w6t391xAY9j8hb6uthEPOGS5UhhMXDeYW5vHRXUaZbT9SQymmBNNy7b2LE0QyVQFAUNualQYo6fRfeXruh0EGZacWVmSfQeC8XBKfe6BWB74Z/I9099iTplFrSOHbov107WgKHN5lQcf++rZSMVnCgZlDFuN3yf1zQSYLVi79IHCLl42qM3RljKAOsICAp9JZZlQujp4ZxzmxFUwDZ3+bNoi78s7LtImlTLCyoP2E243yAJ2pxwJo7WyyRPLg5edJrPrZiavB5LgCE6ZDwmd7QbuzrZaMOIU98pfp0YF+sDRZtthb3NfyAQ8Ob2ZtuzTtYOig70P/Wh2K1gaL2YScYl5Yegekl4wAQCYPchrtHjUmSOCaq9UcImAlBCzE5B5+utxNl2+LJUcp3TPAU+4UhgxcbaWu4ZjR7aSUW60iMOknk+8HUN7O32A2tGmM3bZtZfAiKJRKF2gvZb996FCNeG86YajemF4TBIAxmB9fmaYjfPZaNmHS6/1/jE+b9yT3YnVmvZqUESgQZC9LTH8ue7kxZ6p40k5l45aT4512wIYHPvCuo4bDo1j X-OriginatorOrg: wesion.com X-MS-Exchange-CrossTenant-Network-Message-Id: 280962ca-c0b7-4146-4998-08dcaf9c4ac2 X-MS-Exchange-CrossTenant-AuthSource: TYZPR03MB7001.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Jul 2024 07:01:38.5386 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 2dc3bd76-7ac2-4780-a5b7-6c6cc6b5af9b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: mWcx5XNtoAA2wKryCSc76kONfRN1tjRXDeS1iIh6pOczeOKV5bpgq7u4Mqpl5upzBedvtCLwgkeQMlT1iXUoIw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR03MB7870 Khadas Edge2 uses the PCI-e Ampak AP6275P 2T2R Wi-Fi 6 module. The pcie@0 node can be used as Bridge1, so the wifi@0 node is used as a device under the Bridge1. As a PCIe device the wifi@0 can be probed without compatible. Co-developed-by: Muhammed Efe Cetin Signed-off-by: Muhammed Efe Cetin Signed-off-by: Jacobe Zang --- .../boot/dts/rockchip/rk3588s-khadas-edge2.dts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts b/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts index dbddfc3bb4641..b80a552dad883 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts @@ -283,6 +283,22 @@ &pcie2x1l2 { reset-gpios = <&gpio3 RK_PD1 GPIO_ACTIVE_HIGH>; vpcie3v3-supply = <&vcc3v3_pcie_wl>; status = "okay"; + + pcie@0,0 { + reg = <0x400000 0 0 0 0>; + #address-cells = <3>; + #size-cells = <2>; + ranges; + device_type = "pci"; + bus-range = <0x40 0x4f>; + + wifi: wifi@0,0 { + compatible = "pci14e4,449d"; + reg = <0x410000 0 0 0 0>; + clocks = <&hym8563>; + clock-names = "lpo"; + }; + }; }; &pwm11 { From patchwork Mon Jul 29 07:01:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacobe Zang X-Patchwork-Id: 13744408 X-Patchwork-Delegate: kvalo@adurom.com Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2115.outbound.protection.outlook.com [40.107.215.115]) (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 7DA0B82D8E; Mon, 29 Jul 2024 07:01:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.215.115 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722236509; cv=fail; b=HgyIMP9TGFZIV9+I6ZLXSKVL4/qlX90QQJSbSfaYQ2/6Je796lVJCz9XlERBFZxnD4gKcNS3XOryFsXdp7izM2qlS5OFQJGbThAkKZ+GkSz0Ak7Z9PeYcudH06LxB7jqRZWUAdVxsy/0pCrLx0GBdqkCSznxONerZMY7LZF8dqc= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722236509; c=relaxed/simple; bh=cXyDpjpIJHRlBBUmaIxf3V2a+SUXjH6qhWX4t0CSBeo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=EhUyDflFufIZq54HlE0McKK8ZPFOFyys34npM2iaoRK4g5awCNV39SGRkhJJC0kWiWEFK7mzQUnECEmtTyVEdSPhv4MMZOc1iM+m+BNP0yJZ+7ykaJs8ZtN2zoHN4CrIsZI8e+uOqtDYABQLBk8c3AMmqkJAhpP8Al4TfFyd+BU= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=wesion.com; spf=pass smtp.mailfrom=wesion.com; arc=fail smtp.client-ip=40.107.215.115 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=wesion.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=wesion.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=eVVeg96k9o5VF9+PZDfyYi68Sp46EoLqxtk0U5+NC48OdUZ3PwBm82FDF2oOO9aOyH5ZaQpNeoT19aTIDWxcjohjQC1It6Tg1KY/4oZxZgWEhBz7kxqhK17BhIDVexfnsdksmQu/zRIgMEXKlFYLGXOfZh7P8yvcaq45xZiqCkfG6hyESIrkpSZgAgJ+d6JnzwSGxeEH1Z00PfCGIxiPB60CM4oAG8j/xfj7Y1xV0xX0qYEeh4E1hM5p/d3jWUTLzxXl0XdYOFW1MGFx2/Rm5qxDEj7eOyojyj9uIAd1Z+NeTNFsnUoAgvoZWilVl9GTtwGLpgL2iiJjVMtot8hKYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=MYKJs4frLMyY/hHebaJZVjY+NW1dFhFvHLypRIA/l2U=; b=iTSO1mS6kISU5RDTw0tnkDYSZBNGflamOQx84wbxWYRiNqXWRtlw9VOosmLJREm8usrO8oooBNkI4FeKZ2V+fAEU8GquG0zs0ST1/C9RM0e2gsOItdqDQtROKHaFEIw9YLOr91YRJ6zRhHnxCxbpBUa0sYPHDh0dqzXIpDoxVNO6tpd1ZjIrYjVGsOGm+2AdjNwEd1J5ypSQfLRjWk0Kdfryweqm0/in9xQn+eIWBkRe0OV+tGVBunf7c+ct1JX5R862KyB2xXeHWswRPyksqWomgyqdy5UUN/n7QNsG17h6iJU7asB9/WmgReJCcKYmv/SbOBASbVgD4nI0PhOhsg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wesion.com; dmarc=pass action=none header.from=wesion.com; dkim=pass header.d=wesion.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=wesion.com; Received: from TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) by TY0PR03MB6881.apcprd03.prod.outlook.com (2603:1096:400:264::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7807.27; Mon, 29 Jul 2024 07:01:41 +0000 Received: from TYZPR03MB7001.apcprd03.prod.outlook.com ([fe80::78dd:5e68:1a9c:36c0]) by TYZPR03MB7001.apcprd03.prod.outlook.com ([fe80::78dd:5e68:1a9c:36c0%6]) with mapi id 15.20.7784.020; Mon, 29 Jul 2024 07:01:41 +0000 From: Jacobe Zang To: robh@kernel.org, krzk+dt@kernel.org, heiko@sntech.de, kvalo@kernel.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, conor+dt@kernel.org, arend.vanspriel@broadcom.com Cc: efectn@protonmail.com, dsimic@manjaro.org, jagan@edgeble.ai, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, arend@broadcom.com, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, megi@xff.cz, duoming@zju.edu.cn, bhelgaas@google.com, minipli@grsecurity.net, brcm80211@lists.linux.dev, brcm80211-dev-list.pdl@broadcom.com, nick@khadas.com, Jacobe Zang Subject: [PATCH v4 4/5] wifi: brcmfmac: Add optional lpo clock enable support Date: Mon, 29 Jul 2024 15:01:01 +0800 Message-Id: <20240729070102.3770318-5-jacobe.zang@wesion.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240729070102.3770318-1-jacobe.zang@wesion.com> References: <20240729070102.3770318-1-jacobe.zang@wesion.com> X-ClientProxiedBy: TYCP301CA0045.JPNP301.PROD.OUTLOOK.COM (2603:1096:400:380::18) To TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR03MB7001:EE_|TY0PR03MB6881:EE_ X-MS-Office365-Filtering-Correlation-Id: 998c9d03-e556-4e1f-7a48-08dcaf9c4c8d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|1800799024|52116014|7416014|376014|921020|38350700014; X-Microsoft-Antispam-Message-Info: O0+qyjkQkBylSilyjGcy0dagB5lyFs3sU+qjJfu3eOg7+4Fz4MmME9S7GKtm2Vcs9uc1bdme7UX1+HARLD/H26U2+p0cGVlqZq0sCY//XAmpOtazPK2m7GX2xfLHjP2c3d5g1e3D/LedYfqDe/gSr96Q5A5epb7nzX2pklJ3msGnAOrXWUYCsxu38L+eMXF+W1b+PaFHT+5dhQ+Jhx8UJiTKqK89HcxiynF8p8H7/2u0e+jMEfxqTzgsZmHIRBn6OXGnTpkJ/gD1F2fhWR/b7fZrA3TrJU6IDEbm4iMhycfiN3pdMQ5sa0VS9sfdQmPnpp7U1PqvH8B97t1FPDIATVjb5Y5Y3y28zmWV/N5bi9vsSACfYN75J84tqoohssI4zU2TlD1knUpecdcdsW+xsWYa8W5ia62uVjWklT+3eZtvKfTU7AycxhHyh+DVtebriGFCyDX/ECcSKgo9n7EBH2Ob2v7+AansaCVn4AnTjqcd6QzXjXsKC5J6RxvLC4tt7QHJhStOMrgNjFULO/ukhibEXNkk/tjRDk1SLCZluntfcQrdKGfYdp4i+789P0NpNLAlNhFjnh4mgczRn8HWeCuw+yvRV2gW2F1HsYd1CcoE6F1XSUcbGduqeD/y9VCZ0Oh4AOgaQLpVWOdyiE+CuS+RjNt+rUr70PxCRJVwB789OrK2Bp81iCHKTX0iNciehgZa5pN+sEbXGgBi/7LuIFghI0OSYfWU0HfgWtZI7P6IQqIXKhQ4OQXy8doOzUJSdPOtGu0iSbvAUY8fOHP52R19UrugYWkqNb5L60zsvZKG2FQh1YraHwMCGrvoioxWyvNn1aL14KMoIDvqvJR5jj7k5pKgAIQ/29uhuE5BaYkch9sW85688YVxTvldCTe+IbzUGT14zDKfCk4YwW3ANxpEt5xzi32j+QnaJu9ZgOu3mvwTMnDVJe2RdnF3dXurZ1q9d62eaWxvKbJtzD4voI052hlhMRra8/PlScOOQLQRBivgNu7xdCZiXK88kfucroicSKvQU3aMnG33Gb1H4m23/pj6X7tFxPiIr6BwORgy9QrJ53/kmq8xSfHA+rdoNMbMlcbByxhPrJ2MFtYTNvyStngudLCRTkKJlW3aVwj72GlXO3AVSIYEv1k/1MqAB9ZbLoYtTNTSMFvHCKN3lJqazXiLzwEdWy8HSImZmhlhJJqkQIoNH9w39HepLfIGVKdTYiktg3a4kjSSQ2jmgnGNkPIVKlnifL5F+iisT99nlGc1i0vuw5CUOyknnEgknvqlTPh03wtP0ynmLIoAYVX114vi+8j3bLTz5/LBXucTaqpqWdwK420oI/YHUUw0+KXT4e9BfbXASRJTbncZDFCVbKA7G/LDGD/VO5Fkc8nLU5JZxO0M/LIlvWr5d3elL02zRIL5/tdmmdeeSTytGbdGVpFCWx8NafCEi4tQL5o= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:TYZPR03MB7001.apcprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(1800799024)(52116014)(7416014)(376014)(921020)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: NKbVvkpj42oYOm+R9e65BfOOJo0puAb+ScO1WDAsJFlGRn6ztrQCmQJ6XKaMn3BXZthyfXwsEPgieoO7rTR5ZhDYAaVfIeA8n8eZf896srejOm3wSI9gKo58Bn6F1MXxwXREAALFtyhQAC2S2gZifXRhs1krISGEmNbMaErmVfAZWiRtZaRsYeQ7keD7ZK/w2K3ZrOWkGjDpOAxe1boU8CbD/PVZPVPUrKQnZ9wIv9sxaS/gHQDugUmB3BTiJ5cDYajk0VLdNPLVW2vLEoJSbq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e+QkNzG+NPt0V6kEVTxGUbBP8l2dur0h05JN9d2JjHaJurpmH/rHorqK2CTwjeg64HNRjIcxmW8g74O66N0BIJJCo9BPVjrmc+1dmkiRZP4zunhGXpr6LTnbGlwzPkAGacxIdAfvtReYKXSd0MTyZMShNCBR2jd4hoA3kmNd8rheNt8gL/bt5SsH/XHYvWeaFbhYzSKXUE/7kTkzYFPMHEMxrkXAy3j1ttl67WjXw/VfpSgKt28ih X-OriginatorOrg: wesion.com X-MS-Exchange-CrossTenant-Network-Message-Id: 998c9d03-e556-4e1f-7a48-08dcaf9c4c8d X-MS-Exchange-CrossTenant-AuthSource: TYZPR03MB7001.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Jul 2024 07:01:41.5545 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 2dc3bd76-7ac2-4780-a5b7-6c6cc6b5af9b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: HuO/4+HoiNfJv7yNSLNrQZRUZBLnu9NH1s9ZIe15iWo1Co4wL+rLMeRmV6eEcoGO9ZHLOabrvCyuu+J5oScMBg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY0PR03MB6881 WiFi modules often require 32kHz clock to function. Add support to enable the clock to PCIe driver. Co-developed-by: Ondrej Jirman Signed-off-by: Ondrej Jirman Signed-off-by: Jacobe Zang --- drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c index e406e11481a62..4db188a41fd52 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c @@ -6,6 +6,7 @@ #include #include #include +#include #include #include "debug.h" @@ -70,6 +71,7 @@ void brcmf_of_probe(struct device *dev, enum brcmf_bus_type bus_type, { struct brcmfmac_sdio_pd *sdio = &settings->bus.sdio; struct device_node *root, *np = dev->of_node; + struct clk *clk; const char *prop; int irq; int err; @@ -113,6 +115,13 @@ void brcmf_of_probe(struct device *dev, enum brcmf_bus_type bus_type, of_node_put(root); } + clk = devm_clk_get_optional_enabled(dev, "lpo"); + if (IS_ERR(clk)) + if (clk) { + brcmf_dbg(INFO, "enabling 32kHz clock\n"); + clk_set_rate(clk, 32768); + } + if (!np || !of_device_is_compatible(np, "brcm,bcm4329-fmac")) return; From patchwork Mon Jul 29 07:01:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacobe Zang X-Patchwork-Id: 13744409 X-Patchwork-Delegate: kvalo@adurom.com Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2115.outbound.protection.outlook.com [40.107.215.115]) (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 D511D130A53; Mon, 29 Jul 2024 07:01:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.215.115 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722236511; cv=fail; b=Q1I7qLGsB4TrjRGSCO6lUx/qcCbBEH0GbmYwhrOGhiK9mPvqujIJ7OkU1w9QbbC0iuRfGRRgKnggxONsL8KNc2pb04ojCB0u8bQktwD7w4LbnVjpFMG6IUy1OvVj6JN7/Yg4gB4b75o13qTujPJHSlGt49X2tgJasTc2FGw3d30= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722236511; c=relaxed/simple; bh=8fr2le2RRkyBxxo0cMbqgGIl5Pqcs8qpx2qLsAezPSE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=l4smdgwp3nB8OccQblzk4nawEt1fj5t4ouUevSE3mxGZHohlT5Z2Hl4Q913EewFD7Sb2r2isSa4rhKO/aMT6XtcNrymve+LckDQBNDwkVoVYNiHPT7RHa0t+AybvVdAC3ATKWMtI6a5iSZwLXCSIOmBJ7pHqADx00PakFk2BVJU= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=wesion.com; spf=pass smtp.mailfrom=wesion.com; arc=fail smtp.client-ip=40.107.215.115 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=wesion.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=wesion.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=dOvvAshdDRVXR35FHakOfCqYqA/HVyhwhx9NK4j728UHYztY3vrSR7u5Eo5cVaVDffB0z/Hg9UcQuCs2yKbJy+GhuDMcOgrsHfPtsV59rjNqI+UU1JVZqvrxYDtRjfXiYKLV0FNu3RBksDvjTF4KSbg+zt1mXR8gTXZd2SOnYUvG1Cv1QNf7+2jOTAw+b0R865jrTBG+76MwmfwKzCRT8VUflGXFRU8upEXW9uYDKUEqTOXC2/16byqLiV2pxhPjgQtH7HGbSe0jYl0S9/soPAYvQcMSoyb/cMgNFhmByKytUr0OlIamotx3CRs7bk7DvCr9RekmYdgS2MvI7PABUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=XB3tez9D3u90dIBU3uiBuPnvK5S2Zx5c0jWE2G6mkbA=; b=RH/s9QTJVpyMxEmEBLkrCxG2m2cNhDYGOZJPTcC5hR0ZWL75yv9Wpl7x7dKjEkyaYoiBjOld6gI2NVVPYg9V5CO+abd3OCyRFtWGTbyUChLOxi8oc3YFgHYOLRwFEMMplgChJWD5AkoWbDmxC+ObYiI2I8Bznd8FqQL8A/SkgdT+MdwzLpWjvSMFjxAs9Cb5f4Nsx0saUt77+LqdF4bapvX1MgMVysGwrM4TQmWy1+XtAAp7UAGmEZ0e+6Ev8ZOQzZcRy4hUYNv3+69AGI37pHM054JbTht5JG3agv/OhHH3fZPrenJ9z0nbEVUOX5LWR07c8E7L3P4MkAalHPLJnA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wesion.com; dmarc=pass action=none header.from=wesion.com; dkim=pass header.d=wesion.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=wesion.com; Received: from TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) by TY0PR03MB6881.apcprd03.prod.outlook.com (2603:1096:400:264::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7807.27; Mon, 29 Jul 2024 07:01:44 +0000 Received: from TYZPR03MB7001.apcprd03.prod.outlook.com ([fe80::78dd:5e68:1a9c:36c0]) by TYZPR03MB7001.apcprd03.prod.outlook.com ([fe80::78dd:5e68:1a9c:36c0%6]) with mapi id 15.20.7784.020; Mon, 29 Jul 2024 07:01:44 +0000 From: Jacobe Zang To: robh@kernel.org, krzk+dt@kernel.org, heiko@sntech.de, kvalo@kernel.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, conor+dt@kernel.org, arend.vanspriel@broadcom.com Cc: efectn@protonmail.com, dsimic@manjaro.org, jagan@edgeble.ai, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, arend@broadcom.com, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, megi@xff.cz, duoming@zju.edu.cn, bhelgaas@google.com, minipli@grsecurity.net, brcm80211@lists.linux.dev, brcm80211-dev-list.pdl@broadcom.com, nick@khadas.com, Jacobe Zang Subject: [PATCH v4 5/5] wifi: brcmfmac: add flag for random seed during firmware download Date: Mon, 29 Jul 2024 15:01:02 +0800 Message-Id: <20240729070102.3770318-6-jacobe.zang@wesion.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240729070102.3770318-1-jacobe.zang@wesion.com> References: <20240729070102.3770318-1-jacobe.zang@wesion.com> X-ClientProxiedBy: TYCP301CA0045.JPNP301.PROD.OUTLOOK.COM (2603:1096:400:380::18) To TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR03MB7001:EE_|TY0PR03MB6881:EE_ X-MS-Office365-Filtering-Correlation-Id: 3001ca05-ce51-4c86-b054-08dcaf9c4e5b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|1800799024|52116014|7416014|376014|921020|38350700014; X-Microsoft-Antispam-Message-Info: QnSiuuk9oZ51A8J9BN5CHUJp7lz76Riw27M8W6j0YKtUGYKw9kVK3C2LXU3X7yZPzQz8VgAQ8dAmTcS7bkAnL/PHYb/M2oYUbyCPgVCt9hsKdH9zgvXwinYf9y/PALDbKH69/BRusigiG9CCJgjLi4F+dhBqYWBXlGPEtH5tf6bB/LwlRNys0w4giGHx+ueZyc49D+aNtoCaDuPRnwNFk7Zeq7J4i7/zNhH40uiHFy609m/kG/Ie0x5RjH6w52+5+eU0/ryvsX2V2IvQX30hXti4QfWlTGXT3wwpGW2yP1O1CBc6w+LMbXK1cVKH9XpkcbQAKp3udKJH39XGTShUq3b4n1nszWjQ9oDNmBTFYynYT7Q4fNi6ihkRsjJ7hA4y+HU8N+DOZcqsBF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CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:TYZPR03MB7001.apcprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(1800799024)(52116014)(7416014)(376014)(921020)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: LYcVsUkqMadZJCeccrkzS8bF8bHWlSnZB90beO0J1fNiZpEKARdJWH2D351orj1Y8mce8lYJKaRAuE/xyWJ3ITAXzjyDLeCVm3dgBIswjwcs/uUEuz+5C+kVk7Elr6y7lv6MYZLsSxYPjwZjtLYyzzehUJ7awk5OUVKcQgtTPJ7OCETxejN6es97eFEK3nBMyYQsfWh/+ypx+rKVW36VHrdsZuzJSrOYv5W0+gyAAMxXHkgIsFR69TGuYODoEAjX5I7yDJHzA1Xq8w4RFs2Y1TZM34g5hXA6BZdKJMcm7TIStKPw7fk1iDnMj5QDMugqcq3G0HvUBhkAEVvpDKNR0xlI05ZmjmJfYVN4geQxbskrrG0zDj+Lluz/PmTo98k7yqHf+RJqnOYDOTo17GWyOq+50yg9Hpeouv+PHsLXnpi+nkG7xvieNVx1pUv9t++Z3DQNWJjY/DaiDczisdiI51hxJkPvnVfsTS+eqpRbGx3nIWTlhaz7X5VAakNEW/1mLiPZm3JDRgvu4vHyuSmoewM2YXE6fzSdmiZrNuLe6wyqMNuxgLZRujuPFk/jt1COxxJ09PthVkQUcKbQlYwr0E23uLRVQS3W6fkwIpnsYlGviRL4k9WLKV5TYOOuhhRReOiLMVbWKyLNcYgDRIaV88t/j92APa4wFIZeweUVnRd8NT3Q3R0H0msC0KfgwggxZ3Zo6CvgSUNHIPmYrNKeLm5i0GoC4EXg0wVtoga9Hx0YZFZTe3swqXH/DbwRDZr4uKbNYyECUhmTPcNQcn12MNg8QQym5niWpIRjOYPi6ly0fiA8T13gNr+CFcWuwo0Uf2BSNhcEePQqEpJHeL3e9p4sJ++/TJn35ajLVuSvwLEfTJN2OAWBlfp8IwvQFLXYw+iaIKBaK5DExKQD8h5OwqRpDFbUIQpyrvyeev/Cy/Lo1p08bIjDK0dLyBujlDPUpgqQuHCD7R3LWI+nYEJT8Li0wfkqSF+wWjazxnKn+EwyjmgxE1HYIcOO/WrJOhdnlDakc3n+LabR5Fq6Kr21YF78Zj2qmnvJuSVAYLZz1aPLbITLCm8Qx22swwUWwe/4OHI4MYXtMPS7dasNLLymf3ERlmMFfGNuKR/M+E3AGyyHYkASfMPJz++mjTe/cewgEj4TRbB0XUbGo/Gv24IEiKnumloMQpEgTcak9GBX6nxUtdFh2lQJujLYYE4tq3Tzo7dfr3z3rfTxWgGSrnTskmlSl8TEOiDnKw37vmLdoffi6Flp4up5b+6G9SmqbsbKf4QkCYJRKs2/jeYup9mwGyXgxoHtP6tULc1QXsX+rJkhfsSpBWrBy1AMf8xwSmpRMs5wD5Id4lhH8lrlDCVEAzmC0QiYfUgMkaNgznUgEQJs7p0qDcFmXynF400GNrWAalQzD422TLaW7XTgsHS816JPRLIV1vv/Kgbq4uIPi68ecqH6YBeBD3/FV/SDxYTqsJ6cRHRYqYAlkAszqQ0VRoQ98KcBnFdPJQmTq/CNxJTmcWJvweeAwiIElEKLZFiIZriXrRq9pBkAJX8DzNUduHsMQa/LaHYbOisxK8rr2wRCD25wxpcMcqSudh5G8T6Q X-OriginatorOrg: wesion.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3001ca05-ce51-4c86-b054-08dcaf9c4e5b X-MS-Exchange-CrossTenant-AuthSource: TYZPR03MB7001.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Jul 2024 07:01:44.5671 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 2dc3bd76-7ac2-4780-a5b7-6c6cc6b5af9b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: WQO6tfpKSrtFAYeDNsrX0RBClol/Jg7pDIdhvvIUvy+aOP3icCp6S8wflnnB9u5n/VuWQCfL4S+u02YH9aXHTA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY0PR03MB6881 Providing the random seed to firmware was tied to the fact that the device has a valid OTP, which worked for some Apple chips. However, it turns out the BCM43752 device also needs the random seed in order to get firmware running. Suspect it is simply tied to the firmware branch used for the device. Introducing a mechanism to allow setting it for a device through the device table. Co-developed-by: Ondrej Jirman Signed-off-by: Ondrej Jirman Co-developed-by: Arend van Spriel Signed-off-by: Arend van Spriel Signed-off-by: Jacobe Zang --- .../broadcom/brcm80211/brcmfmac/pcie.c | 52 ++++++++++++++++--- .../broadcom/brcm80211/include/brcm_hw_ids.h | 2 + 2 files changed, 46 insertions(+), 8 deletions(-) diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c index 06698a714b523..938632daf30a9 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c @@ -66,6 +66,7 @@ BRCMF_FW_DEF(4365C, "brcmfmac4365c-pcie"); BRCMF_FW_DEF(4366B, "brcmfmac4366b-pcie"); BRCMF_FW_DEF(4366C, "brcmfmac4366c-pcie"); BRCMF_FW_DEF(4371, "brcmfmac4371-pcie"); +BRCMF_FW_CLM_DEF(43752, "brcmfmac43752-pcie"); BRCMF_FW_CLM_DEF(4377B3, "brcmfmac4377b3-pcie"); BRCMF_FW_CLM_DEF(4378B1, "brcmfmac4378b1-pcie"); BRCMF_FW_CLM_DEF(4378B3, "brcmfmac4378b3-pcie"); @@ -104,6 +105,7 @@ static const struct brcmf_firmware_mapping brcmf_pcie_fwnames[] = { BRCMF_FW_ENTRY(BRCM_CC_43664_CHIP_ID, 0xFFFFFFF0, 4366C), BRCMF_FW_ENTRY(BRCM_CC_43666_CHIP_ID, 0xFFFFFFF0, 4366C), BRCMF_FW_ENTRY(BRCM_CC_4371_CHIP_ID, 0xFFFFFFFF, 4371), + BRCMF_FW_ENTRY(BRCM_CC_43752_CHIP_ID, 0xFFFFFFFF, 43752), BRCMF_FW_ENTRY(BRCM_CC_4377_CHIP_ID, 0xFFFFFFFF, 4377B3), /* revision ID 4 */ BRCMF_FW_ENTRY(BRCM_CC_4378_CHIP_ID, 0x0000000F, 4378B1), /* revision ID 3 */ BRCMF_FW_ENTRY(BRCM_CC_4378_CHIP_ID, 0xFFFFFFE0, 4378B3), /* revision ID 5 */ @@ -358,6 +360,7 @@ struct brcmf_pciedev_info { u16 value); struct brcmf_mp_device *settings; struct brcmf_otp_params otp; + bool fwseed; #ifdef DEBUG u32 console_interval; bool console_active; @@ -1720,14 +1723,14 @@ static int brcmf_pcie_download_fw_nvram(struct brcmf_pciedev_info *devinfo, memcpy_toio(devinfo->tcm + address, nvram, nvram_len); brcmf_fw_nvram_free(nvram); - if (devinfo->otp.valid) { + if (devinfo->fwseed) { size_t rand_len = BRCMF_RANDOM_SEED_LENGTH; struct brcmf_random_seed_footer footer = { .length = cpu_to_le32(rand_len), .magic = cpu_to_le32(BRCMF_RANDOM_SEED_MAGIC), }; - /* Some Apple chips/firmwares expect a buffer of random + /* Some chips/firmwares expect a buffer of random * data to be present before NVRAM */ brcmf_dbg(PCIE, "Download random seed\n"); @@ -2399,6 +2402,37 @@ static void brcmf_pcie_debugfs_create(struct device *dev) } #endif +struct brcmf_pcie_drvdata { + enum brcmf_fwvendor vendor; + bool fw_seed; +}; + +enum { + BRCMF_DRVDATA_CYW, + BRCMF_DRVDATA_BCA, + BRCMF_DRVDATA_WCC, + BRCMF_DRVDATA_WCC_SEED, +}; + +static const struct brcmf_pcie_drvdata drvdata[] = { + [BRCMF_DRVDATA_CYW] = { + .vendor = BRCMF_FWVENDOR_CYW, + .fw_seed = false, + }, + [BRCMF_DRVDATA_BCA] = { + .vendor = BRCMF_FWVENDOR_BCA, + .fw_seed = false, + }, + [BRCMF_DRVDATA_WCC] = { + .vendor = BRCMF_FWVENDOR_WCC, + .fw_seed = false, + }, + [BRCMF_DRVDATA_WCC_SEED] = { + .vendor = BRCMF_FWVENDOR_WCC, + .fw_seed = true, + }, +}; + /* Forward declaration for pci_match_id() call */ static const struct pci_device_id brcmf_pcie_devid_table[]; @@ -2477,9 +2511,10 @@ brcmf_pcie_probe(struct pci_dev *pdev, const struct pci_device_id *id) bus->bus_priv.pcie = pcie_bus_dev; bus->ops = &brcmf_pcie_bus_ops; bus->proto_type = BRCMF_PROTO_MSGBUF; - bus->fwvid = id->driver_data; bus->chip = devinfo->coreid; bus->wowl_supported = pci_pme_capable(pdev, PCI_D3hot); + bus->fwvid = drvdata[id->driver_data].vendor; + devinfo->fwseed = drvdata[id->driver_data].fw_seed; dev_set_drvdata(&pdev->dev, bus); ret = brcmf_alloc(&devinfo->pdev->dev, devinfo->settings); @@ -2665,14 +2700,14 @@ static const struct dev_pm_ops brcmf_pciedrvr_pm = { BRCM_PCIE_VENDOR_ID_BROADCOM, (dev_id), \ PCI_ANY_ID, PCI_ANY_ID, \ PCI_CLASS_NETWORK_OTHER << 8, 0xffff00, \ - BRCMF_FWVENDOR_ ## fw_vend \ + BRCMF_DRVDATA_ ## fw_vend \ } #define BRCMF_PCIE_DEVICE_SUB(dev_id, subvend, subdev, fw_vend) \ { \ BRCM_PCIE_VENDOR_ID_BROADCOM, (dev_id), \ (subvend), (subdev), \ PCI_CLASS_NETWORK_OTHER << 8, 0xffff00, \ - BRCMF_FWVENDOR_ ## fw_vend \ + BRCMF_DRVDATA_ ## fw_vend \ } static const struct pci_device_id brcmf_pcie_devid_table[] = { @@ -2700,9 +2735,10 @@ static const struct pci_device_id brcmf_pcie_devid_table[] = { BRCMF_PCIE_DEVICE(BRCM_PCIE_4366_5G_DEVICE_ID, BCA), BRCMF_PCIE_DEVICE(BRCM_PCIE_4371_DEVICE_ID, WCC), BRCMF_PCIE_DEVICE(BRCM_PCIE_43596_DEVICE_ID, CYW), - BRCMF_PCIE_DEVICE(BRCM_PCIE_4377_DEVICE_ID, WCC), - BRCMF_PCIE_DEVICE(BRCM_PCIE_4378_DEVICE_ID, WCC), - BRCMF_PCIE_DEVICE(BRCM_PCIE_4387_DEVICE_ID, WCC), + BRCMF_PCIE_DEVICE(BRCM_PCIE_4377_DEVICE_ID, WCC_SEED), + BRCMF_PCIE_DEVICE(BRCM_PCIE_4378_DEVICE_ID, WCC_SEED), + BRCMF_PCIE_DEVICE(BRCM_PCIE_4387_DEVICE_ID, WCC_SEED), + BRCMF_PCIE_DEVICE(BRCM_PCIE_43752_DEVICE_ID, WCC_SEED), { /* end: all zeroes */ } }; diff --git a/drivers/net/wireless/broadcom/brcm80211/include/brcm_hw_ids.h b/drivers/net/wireless/broadcom/brcm80211/include/brcm_hw_ids.h index 44684bf1b9acc..c1e22c589d85e 100644 --- a/drivers/net/wireless/broadcom/brcm80211/include/brcm_hw_ids.h +++ b/drivers/net/wireless/broadcom/brcm80211/include/brcm_hw_ids.h @@ -52,6 +52,7 @@ #define BRCM_CC_43664_CHIP_ID 43664 #define BRCM_CC_43666_CHIP_ID 43666 #define BRCM_CC_4371_CHIP_ID 0x4371 +#define BRCM_CC_43752_CHIP_ID 43752 #define BRCM_CC_4377_CHIP_ID 0x4377 #define BRCM_CC_4378_CHIP_ID 0x4378 #define BRCM_CC_4387_CHIP_ID 0x4387 @@ -94,6 +95,7 @@ #define BRCM_PCIE_4366_5G_DEVICE_ID 0x43c5 #define BRCM_PCIE_4371_DEVICE_ID 0x440d #define BRCM_PCIE_43596_DEVICE_ID 0x4415 +#define BRCM_PCIE_43752_DEVICE_ID 0x449d #define BRCM_PCIE_4377_DEVICE_ID 0x4488 #define BRCM_PCIE_4378_DEVICE_ID 0x4425 #define BRCM_PCIE_4387_DEVICE_ID 0x4433