Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1411383pxf; Fri, 19 Mar 2021 06:47:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyL6Fu19jy0w8I1G44voCBYBuocf591Nqf89iMsddc6Wo6mC5W/EAUWYKx4Ly7I5RdJuVGr X-Received: by 2002:a50:e80c:: with SMTP id e12mr9703725edn.229.1616161622534; Fri, 19 Mar 2021 06:47:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616161622; cv=none; d=google.com; s=arc-20160816; b=BYu3DIR8sTdaWeGpzurs9XnmNGAX8vsv/jlw8RPclVNEfmtna0dXBOull/Z+vLxQcL Lao2Sm8OPVYAz0jVKaabKQqiWlLlTw6KnULTT4g8tx8/zAo1nGIzOx8/Bvs+X3CMwRRR IEnvdnJcmyYjaMAJlVW5RqrnepQyvyn/s1gD7sHbrMq6FSCb/yPheetq97v6brF0WETh o0p4P0bt4csqvBeEFHvmaUGQoFHD61aajlEXr7hjwIctPcihV9dpYw7i2NJrw1inPDbs jPhxn3sgPVMsFdvKoizlA+yLGKNUS2I7R5WMxAIPeHhM+d5b6Uwbmhcg/6ccrUnue5TM TXUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=BmPjIQub1KJPhMOrgHtiWUuKYsN7Yn6qt2C+dcAgWOM=; b=a42SMlZSWMEYZhNk3b4f99Wipi/Uq5NzqEmNCiW3KoNs0vXQTVRAx3mIZTWSufGqfu QbVrdzTYAVRwWB43aHsEohMl9tn/UKVLLhrumHScsLDW3R7VlWAYS3W3xyig75mzZxJU iTtkgMuwslx1a64QmGDWzPp/EnuVDXeoMeXEwWb3T2mnDW/vmkEZmtpPwOHrsm22Ni8D y+kA2iEP6WmYrbb/ahZ2s1jr/Hq1nj14ZOJ44GTxL43303D4YbMNzgnEOSmSrHoizs0p l3/px5Y2EStldkSU0YhS6m9n/4I8FrFbqN0rhXKHpcJo3RG57iz7qjDLmu/VkPwPBVLb 7ikQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="vfIH/HsQ"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dn18si4047505ejc.590.2021.03.19.06.46.34; Fri, 19 Mar 2021 06:47:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="vfIH/HsQ"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230014AbhCSNpR (ORCPT + 99 others); Fri, 19 Mar 2021 09:45:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230081AbhCSNpC (ORCPT ); Fri, 19 Mar 2021 09:45:02 -0400 Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 775A5C06174A for ; Fri, 19 Mar 2021 06:45:02 -0700 (PDT) Received: by mail-lj1-x22a.google.com with SMTP id a1so12062948ljp.2 for ; Fri, 19 Mar 2021 06:45:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=BmPjIQub1KJPhMOrgHtiWUuKYsN7Yn6qt2C+dcAgWOM=; b=vfIH/HsQlKQLUg4JfSfwODGwrxBn9e6tV8/LjWtg48YyMtI8n36pxEiG/pKMYLXeLQ cd5AtquilU8pp8depjciRsp6FLyIS7P8mdq3r1VXa+RntKMRg3imFo/pCvzXTNlDL6PP tnCKKTTAKwhsZ0It9mXw2IYAIX/mw/rIdk7El3Bet2SXEDH6dYYD85zz5tH0kNaKzT+8 irn5eW5ES8kuMGurkujyF6d7H6GxstVQNVRwCO0sJHVqvpDmofRXK0DkQWfBhwHP2vjL XabX1+TLAsoPMy97BjtR6UDVCaIXeRpN4ZKVB1GQup0P868d1cTKg4XK4Ah+SmuF8Bac YN0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=BmPjIQub1KJPhMOrgHtiWUuKYsN7Yn6qt2C+dcAgWOM=; b=VwXo1+nSBXeQ97K1AfZRvEf2crK4i4HWUbK0XJaApeaL/etyq/V5koVaAfs67slAPR KlCj5ux4+gBlqQFB1lzsTrTK7+crqF9eOcQ7q/RnfRODiu7U+UZQX48Vy4OPy361wrwf nYXLJ+gp4/HSuKH0ckPNRwpnYSzTbj4TWWmWdZZEAK/x4urRRlyjZoEdIrB0qp6wIqT5 xI+odUhwdas4OFiHQb5I6ukC5n3LiaPkgRVfugJ/mxXRsTrE3j/OAToiFlEWddu5RL6i 0glCj+yDV9dJxa7y6qd/q7SgPp8BOLh13LECpjZ339bP8q71sPlk7BrwGpErXNUdQCDe UlLA== X-Gm-Message-State: AOAM531BMnhnB5EIvo8YoenoTO7FdXso76A23WULMhVKbqZ8qWyn7s06 oW3LDjM8LO3LliHpVEzgZAtDVO38PkFdcnczSwT1JA== X-Received: by 2002:a2e:988a:: with SMTP id b10mr995559ljj.341.1616161499767; Fri, 19 Mar 2021 06:44:59 -0700 (PDT) MIME-Version: 1.0 References: <20210315105911.138553-1-linus.walleij@linaro.org> In-Reply-To: <20210315105911.138553-1-linus.walleij@linaro.org> From: Ulf Hansson Date: Fri, 19 Mar 2021 14:44:23 +0100 Message-ID: Subject: Re: [PATCH v2] dt-bindings: Convert the BCM4329 bindings to YAML and extend To: Linus Walleij Cc: Arend van Spriel , Franky Lin , Hante Meuleman , Chi-hsien Lin , Wright Feng , Chung-hsien Hsu , linux-wireless , Julian Calaby , brcm80211-dev-list.pdl@broadcom.com, SHA-cyfmac-dev-list@infineon.com, linux-mmc , DTML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Mon, 15 Mar 2021 at 12:00, Linus Walleij wrote: > > This converts the BCM4329 family bindings to YAML schema, and > extends and fixes the bindings like this: > > - Name the bindings after the first chip (BCM4329) since > wildcards like 43xx are nowadays frowned upon by the DT > binding reviewers. We call this the "BCM4329 family" > - Add compatible strings for all the variants that seem to > exist in the wild. (Derived from firmware listings.) > - Support specific-to-generic compatible strings (as already > in use in DTS files). > - Add required reg property (SDIO function number) > - Add reset-gpios property (some systems wire this to a GPIO > line). > - I have only listed Arend as maintainer for now, volunteers > can be added. > > Cc: Arend van Spriel > Cc: Franky Lin > Cc: Hante Meuleman > Cc: Chi-hsien Lin > Cc: Wright Feng > Cc: Chung-hsien Hsu > Cc: Julian Calaby > Cc: brcm80211-dev-list.pdl@broadcom.com > Cc: SHA-cyfmac-dev-list@infineon.com > Cc: linux-mmc@vger.kernel.org > Cc: devicetree@vger.kernel.org > Signed-off-by: Linus Walleij Reviewed-by: Ulf Hansson Kind regards Uffe > --- > ChangeLog v1->v2: > - Specify specific-to-generic compatible strings such as > "brcm,bcm4334-fmac", "brcm,bcm4329-fmac" > - Also allow just "brcm,bcm4329-fmac" for legacy platforms. > - Use this scheme in the example. > --- > .../net/wireless/brcm,bcm4329-fmac.yaml | 101 ++++++++++++++++++ > .../net/wireless/brcm,bcm43xx-fmac.txt | 38 ------- > 2 files changed, 101 insertions(+), 38 deletions(-) > create mode 100644 Documentation/devicetree/bindings/net/wireless/brcm,bcm4329-fmac.yaml > delete mode 100644 Documentation/devicetree/bindings/net/wireless/brcm,bcm43xx-fmac.txt > > diff --git a/Documentation/devicetree/bindings/net/wireless/brcm,bcm4329-fmac.yaml b/Documentation/devicetree/bindings/net/wireless/brcm,bcm4329-fmac.yaml > new file mode 100644 > index 000000000000..b5fcc73ce6be > --- /dev/null > +++ b/Documentation/devicetree/bindings/net/wireless/brcm,bcm4329-fmac.yaml > @@ -0,0 +1,101 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$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 > + > +maintainers: > + - Arend van Spriel > + > +description: > + The Broadcom Single chip MAC part for the BCM4329 family and > + later Cypress chips in the same family named CYW4373 and similar. > + These chips also have a Bluetooth portion described in a separate > + binding. > + > +properties: > + compatible: > + oneOf: > + - items: > + - enum: > + - brcm,bcm43143-fmac > + - brcm,bcm4341b0-fmac > + - brcm,bcm4341b4-fmac > + - brcm,bcm4341b5-fmac > + - brcm,bcm4329-fmac > + - brcm,bcm4330-fmac > + - brcm,bcm4334-fmac > + - brcm,bcm43340-fmac > + - brcm,bcm4335-fmac > + - brcm,bcm43362-fmac > + - brcm,bcm4339-fmac > + - brcm,bcm43430a0-fmac > + - brcm,bcm43430a1-fmac > + - brcm,bcm43455-fmac > + - brcm,bcm43456-fmac > + - brcm,bcm4354-fmac > + - brcm,bcm4356-fmac > + - brcm,bcm4359-fmac > + - cypress,cyw4373-fmac > + - cypress,cyw43012-fmac > + - const: brcm,bcm4329-fmac > + - const: brcm,bcm4329-fmac > + > + reg: > + description: SDIO function number for the device, for most cases > + this will be 1. > + > + interrupts: > + maxItems: 1 > + description: Out-of-band (OOB) IRQ line for waking up the host > + in response to WLAN activity. This corresponds to the HOST_WAKE > + line into the chip. > + > + interrupt-names: > + description: Name for the OOB IRQ, this must be set to "host-wake". > + const: host-wake > + > + brcm,drive-strength: > + $ref: /schemas/types.yaml#/definitions/uint32 > + description: Drive strength used for the SDIO pins on the device in mA. > + minimum: 0 > + maximum: 32 > + > + reset-gpios: > + maxItems: 1 > + description: A GPIO line connected to the WL_RST line, if present > + this shall be flagged as active low. > + > +required: > + - compatible > + - reg > + > +additionalProperties: false > + > +examples: > + - | > + #include > + #include > + mmc@80118000 { > + compatible = "arm,pl18x", "arm,primecell"; > + reg = <0x80118000 0x1000>; > + clocks = <&clk 0>, <&clk 1>; > + clock-names = "mclk", "apb_pclk"; > + interrupts = <0 60 IRQ_TYPE_LEVEL_HIGH>; > + bus-width = <4>; > + non-removable; > + vmmc-supply = <&wl_bt_reg>; > + #address-cells = <1>; > + #size-cells = <0>; > + > + wifi@1 { > + compatible = "brcm,bcm4334-fmac", "brcm,bcm4329-fmac"; > + reg = <1>; > + interrupt-parent = <&gpio>; > + interrupts = <24 IRQ_TYPE_EDGE_FALLING>; > + interrupt-names = "host-wake"; > + reset-gpios = <&gpio 23 GPIO_ACTIVE_LOW>; > + }; > + }; > diff --git a/Documentation/devicetree/bindings/net/wireless/brcm,bcm43xx-fmac.txt b/Documentation/devicetree/bindings/net/wireless/brcm,bcm43xx-fmac.txt > deleted file mode 100644 > index cffb2d6876e3..000000000000 > --- a/Documentation/devicetree/bindings/net/wireless/brcm,bcm43xx-fmac.txt > +++ /dev/null > @@ -1,38 +0,0 @@ > -Broadcom BCM43xx Fullmac wireless SDIO devices > - > -This node provides properties for controlling the Broadcom wireless device. The > -node is expected to be specified as a child node to the SDIO controller that > -connects the device to the system. > - > -Required properties: > - > - - compatible : Should be "brcm,bcm4329-fmac". > - > -Optional properties: > - - brcm,drive-strength : drive strength used for SDIO pins on device in mA > - (default = 6). > - - interrupts : specifies attributes for the out-of-band interrupt (host-wake). > - When not specified the device will use in-band SDIO interrupts. > - - interrupt-names : name of the out-of-band interrupt, which must be set > - to "host-wake". > - > -Example: > - > -mmc3: mmc@1c12000 { > - #address-cells = <1>; > - #size-cells = <0>; > - > - pinctrl-names = "default"; > - pinctrl-0 = <&mmc3_pins_a>; > - vmmc-supply = <®_vmmc3>; > - bus-width = <4>; > - non-removable; > - > - brcmf: wifi@1 { > - reg = <1>; > - compatible = "brcm,bcm4329-fmac"; > - interrupt-parent = <&pio>; > - interrupts = <10 8>; /* PH10 / EINT10 */ > - interrupt-names = "host-wake"; > - }; > -}; > -- > 2.29.2 >