Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp5004774rwn; Mon, 12 Sep 2022 02:53:52 -0700 (PDT) X-Google-Smtp-Source: AA6agR4gaD51K6kFL007y6e43pfDsdMa1x782RhVVNZqZDlSqTEqq0XACjU/lbz7Q15IDnv14Hso X-Received: by 2002:a17:902:c213:b0:176:cdb9:c504 with SMTP id 19-20020a170902c21300b00176cdb9c504mr26112413pll.44.1662976431957; Mon, 12 Sep 2022 02:53:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662976431; cv=none; d=google.com; s=arc-20160816; b=ycG9kxF2uqeO/R37IjWT+kFDpH6FCC8M+MATYD5az06DKQWXQuYEl+pf+cYYIcP0vp dxmhNw+DfktZDO/YYggXN5NnpQWuLniOMLHY3kaX4gRZrDtgJ0LWiXV6gLfN686MC4+c 0t41vUGeHARI+CXSAf0Hqu3Qrd98FnYDcAmZuFJYt6sKvpfGQOj/NzMYSrQHcTMqfP2y W4/k98y3Gu2i1uqlfi1Nd3GnpbV9/AX/9Fr2Kd1HWkcC6VK+lkBOuE5aT9sB0oWJE9ri 0ogLQ5Aq7W5Og3XeWVjAAfk29qn4MCzVxEQ8lO3EMQ2DeGEMyAX4XykdWsmLvkKKSfVZ pHAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:sender:message-id:content-transfer-encoding :content-disposition:mime-version:subject:cc:to:from:references :in-reply-to:dkim-signature; bh=CF8j1j1/ukgogl9G/djoX8vZI4bL3H0F4h/u4iZZHKc=; b=Ai9Q4p3jr12723AUGOYW9Up+C27Gs4RwIHZDPQXKG0a1vx8rkzdkFLEmGhoEG3hfT1 +sroLjGwvnQW08n/Km1ImlQ0EMKLljViE588zVIxKpXGve0QYsCjv0MNIkAYQm8R8Wv0 r6F9GzRE6MaCeKMA9kmBPWNCGFtuAT+F1X5zNjmwxzAT/TAQnpbncCx4vPuTPsOb4lU8 69itMBvvLufXyVXMD2Me1onGD7Kla2mS+3kyvTQYNR69Vy9/y00cf71w5NEQT7mNdSvc J+c+zlhM8mKI0HpsK3UqaR//Bjrvg3rSroPEX3ppbJZrPliKpafhzbRKmy8R3+Y9bfB6 9e2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=qqhdSsPT; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lb10-20020a17090b4a4a00b001f561cba131si10202808pjb.179.2022.09.12.02.53.43; Mon, 12 Sep 2022 02:53:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=qqhdSsPT; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229939AbiILJxA (ORCPT + 64 others); Mon, 12 Sep 2022 05:53:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50026 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229927AbiILJwz (ORCPT ); Mon, 12 Sep 2022 05:52:55 -0400 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA0AD357F8; Mon, 12 Sep 2022 02:52:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Date:Sender:Message-Id:Content-Type: Content-Transfer-Encoding:MIME-Version:Subject:Cc:To:From:References: In-Reply-To:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=CF8j1j1/ukgogl9G/djoX8vZI4bL3H0F4h/u4iZZHKc=; b=qqhdSsPTtXEScu80qvX7toIfBw xM2X/FCwWT24bkdO41IjOBDDln/XvGMir9JiVLQHCnLw0bJD7J1Nfcgd7ieatI2jXq4rXqDE7Sd1D wM5Xaf3JsdOgKoTJAX07El1bY81rMsLKMdb5M/HxJRtFXuLMHGWSEM6PsdAM/xzNrcSwY5qv+d51o DWsilyf7KBd2qeV/2uoTa5A0TxL2dAVRjDoQ4S4v4cbLFXFauAhfhPs3ge72Xq+lx71vw8X3vl1KC yBNTejAo8KA5BLAyz8XvNCoHpJKNOSTID33Z2mCSOa8jBio19KGpGRQVAm+H/olGfSFKhXJwkpCJ4 BOukDEtQ==; Received: from e0022681537dd.dyn.armlinux.org.uk ([fd8f:7570:feb6:1:222:68ff:fe15:37dd]:33082 helo=rmk-PC.armlinux.org.uk) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1oXg7O-0001RQ-0d; Mon, 12 Sep 2022 10:52:42 +0100 Received: from rmk by rmk-PC.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1oXg7N-0064ug-9l; Mon, 12 Sep 2022 10:52:41 +0100 In-Reply-To: References: From: Russell King (Oracle) To: Arend van Spriel , Franky Lin , Hante Meuleman Cc: Alyssa Rosenzweig , asahi@lists.linux.dev, brcm80211-dev-list.pdl@broadcom.com, "David S. Miller" , devicetree@vger.kernel.org, Eric Dumazet , Hector Martin , Jakub Kicinski , Kalle Valo , Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, Paolo Abeni , "Rafa__ Mi__ecki" , Rob Herring , SHA-cyfmac-dev-list@infineon.com, Sven Peter , van Spriel Subject: [PATCH wireless-next v2 01/12] dt-bindings: net: bcm4329-fmac: Add Apple properties & chips MIME-Version: 1.0 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" Message-Id: Sender: Russell King Date: Mon, 12 Sep 2022 10:52:41 +0100 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Hector Martin This binding is currently used for SDIO devices, but these chips are also used as PCIe devices on DT platforms and may be represented in the DT. Re-use the existing binding and add chip compatibles used by Apple T2 and M1 platforms (the T2 ones are not known to be used in DT platforms, but we might as well document them). Then, add properties required for firmware selection and calibration on M1 machines. Reviewed-by: Linus Walleij Signed-off-by: Hector Martin Reviewed-by: Mark Kettenis Reviewed-by: Rob Herring Signed-off-by: Russell King (Oracle) --- .../net/wireless/brcm,bcm4329-fmac.yaml | 39 +++++++++++++++++-- 1 file changed, 35 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/net/wireless/brcm,bcm4329-fmac.yaml b/Documentation/devicetree/bindings/net/wireless/brcm,bcm4329-fmac.yaml index 53b4153d9bfc..fec1cc9b9a08 100644 --- a/Documentation/devicetree/bindings/net/wireless/brcm,bcm4329-fmac.yaml +++ b/Documentation/devicetree/bindings/net/wireless/brcm,bcm4329-fmac.yaml @@ -4,7 +4,7 @@ $id: http://devicetree.org/schemas/net/wireless/brcm,bcm4329-fmac.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# -title: Broadcom BCM4329 family fullmac wireless SDIO devices +title: Broadcom BCM4329 family fullmac wireless SDIO/PCIE devices maintainers: - Arend van Spriel @@ -41,11 +41,17 @@ title: Broadcom BCM4329 family fullmac wireless SDIO devices - cypress,cyw4373-fmac - cypress,cyw43012-fmac - const: brcm,bcm4329-fmac - - const: brcm,bcm4329-fmac + - enum: + - brcm,bcm4329-fmac + - pci14e4,43dc # BCM4355 + - pci14e4,4464 # BCM4364 + - pci14e4,4488 # BCM4377 + - pci14e4,4425 # BCM4378 + - pci14e4,4433 # BCM4387 reg: - description: SDIO function number for the device, for most cases - this will be 1. + description: SDIO function number for the device (for most cases + this will be 1) or PCI device identifier. interrupts: maxItems: 1 @@ -85,6 +91,31 @@ title: Broadcom BCM4329 family fullmac wireless SDIO devices takes precedence. type: boolean + brcm,cal-blob: + $ref: /schemas/types.yaml#/definitions/uint8-array + description: A per-device calibration blob for the Wi-Fi radio. This + should be filled in by the bootloader from platform configuration + data, if necessary, and will be uploaded to the device if present. + + brcm,board-type: + $ref: /schemas/types.yaml#/definitions/string + description: Overrides the board type, which is normally the compatible of + the root node. This can be used to decouple the overall system board or + device name from the board type for WiFi purposes, which is used to + construct firmware and NVRAM configuration filenames, allowing for + multiple devices that share the same module or characteristics for the + WiFi subsystem to share the same firmware/NVRAM files. On Apple platforms, + this should be the Apple module-instance codename prefixed by "apple,", + e.g. "apple,honshu". + + apple,antenna-sku: + $ref: /schemas/types.yaml#/definitions/string + description: Antenna SKU used to identify a specific antenna configuration + on Apple platforms. This is use to build firmware filenames, to allow + platforms with different antenna configs to have different firmware and/or + NVRAM. This would normally be filled in by the bootloader from platform + configuration data. + required: - compatible - reg -- 2.30.2