xref: /freebsd/sys/contrib/device-tree/Bindings/net/wireless/brcm,bcm4329-fmac.yaml (revision 2eb4d8dc723da3cf7d735a3226ae49da4c8c5dbc)
1*2eb4d8dcSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2*2eb4d8dcSEmmanuel Vadot%YAML 1.2
3*2eb4d8dcSEmmanuel Vadot---
4*2eb4d8dcSEmmanuel Vadot$id: http://devicetree.org/schemas/net/wireless/brcm,bcm4329-fmac.yaml#
5*2eb4d8dcSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*2eb4d8dcSEmmanuel Vadot
7*2eb4d8dcSEmmanuel Vadottitle: Broadcom BCM4329 family fullmac wireless SDIO devices
8*2eb4d8dcSEmmanuel Vadot
9*2eb4d8dcSEmmanuel Vadotmaintainers:
10*2eb4d8dcSEmmanuel Vadot  - Arend van Spriel <arend@broadcom.com>
11*2eb4d8dcSEmmanuel Vadot
12*2eb4d8dcSEmmanuel Vadotdescription:
13*2eb4d8dcSEmmanuel Vadot  The Broadcom Single chip MAC part for the BCM4329 family and
14*2eb4d8dcSEmmanuel Vadot  later Cypress chips in the same family named CYW4373 and similar.
15*2eb4d8dcSEmmanuel Vadot  These chips also have a Bluetooth portion described in a separate
16*2eb4d8dcSEmmanuel Vadot  binding.
17*2eb4d8dcSEmmanuel Vadot
18*2eb4d8dcSEmmanuel Vadotproperties:
19*2eb4d8dcSEmmanuel Vadot  compatible:
20*2eb4d8dcSEmmanuel Vadot    oneOf:
21*2eb4d8dcSEmmanuel Vadot      - items:
22*2eb4d8dcSEmmanuel Vadot          - enum:
23*2eb4d8dcSEmmanuel Vadot              - brcm,bcm43143-fmac
24*2eb4d8dcSEmmanuel Vadot              - brcm,bcm4341b0-fmac
25*2eb4d8dcSEmmanuel Vadot              - brcm,bcm4341b4-fmac
26*2eb4d8dcSEmmanuel Vadot              - brcm,bcm4341b5-fmac
27*2eb4d8dcSEmmanuel Vadot              - brcm,bcm4329-fmac
28*2eb4d8dcSEmmanuel Vadot              - brcm,bcm4330-fmac
29*2eb4d8dcSEmmanuel Vadot              - brcm,bcm4334-fmac
30*2eb4d8dcSEmmanuel Vadot              - brcm,bcm43340-fmac
31*2eb4d8dcSEmmanuel Vadot              - brcm,bcm4335-fmac
32*2eb4d8dcSEmmanuel Vadot              - brcm,bcm43362-fmac
33*2eb4d8dcSEmmanuel Vadot              - brcm,bcm4339-fmac
34*2eb4d8dcSEmmanuel Vadot              - brcm,bcm43430a0-fmac
35*2eb4d8dcSEmmanuel Vadot              - brcm,bcm43430a1-fmac
36*2eb4d8dcSEmmanuel Vadot              - brcm,bcm43455-fmac
37*2eb4d8dcSEmmanuel Vadot              - brcm,bcm43456-fmac
38*2eb4d8dcSEmmanuel Vadot              - brcm,bcm4354-fmac
39*2eb4d8dcSEmmanuel Vadot              - brcm,bcm4356-fmac
40*2eb4d8dcSEmmanuel Vadot              - brcm,bcm4359-fmac
41*2eb4d8dcSEmmanuel Vadot              - cypress,cyw4373-fmac
42*2eb4d8dcSEmmanuel Vadot              - cypress,cyw43012-fmac
43*2eb4d8dcSEmmanuel Vadot          - const: brcm,bcm4329-fmac
44*2eb4d8dcSEmmanuel Vadot      - const: brcm,bcm4329-fmac
45*2eb4d8dcSEmmanuel Vadot
46*2eb4d8dcSEmmanuel Vadot  reg:
47*2eb4d8dcSEmmanuel Vadot    description: SDIO function number for the device, for most cases
48*2eb4d8dcSEmmanuel Vadot      this will be 1.
49*2eb4d8dcSEmmanuel Vadot
50*2eb4d8dcSEmmanuel Vadot  interrupts:
51*2eb4d8dcSEmmanuel Vadot    maxItems: 1
52*2eb4d8dcSEmmanuel Vadot    description: Out-of-band (OOB) IRQ line for waking up the host
53*2eb4d8dcSEmmanuel Vadot      in response to WLAN activity. This corresponds to the HOST_WAKE
54*2eb4d8dcSEmmanuel Vadot      line into the chip.
55*2eb4d8dcSEmmanuel Vadot
56*2eb4d8dcSEmmanuel Vadot  interrupt-names:
57*2eb4d8dcSEmmanuel Vadot    description: Name for the OOB IRQ, this must be set to "host-wake".
58*2eb4d8dcSEmmanuel Vadot    const: host-wake
59*2eb4d8dcSEmmanuel Vadot
60*2eb4d8dcSEmmanuel Vadot  brcm,drive-strength:
61*2eb4d8dcSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
62*2eb4d8dcSEmmanuel Vadot    description: Drive strength used for the SDIO pins on the device in mA.
63*2eb4d8dcSEmmanuel Vadot    minimum: 0
64*2eb4d8dcSEmmanuel Vadot    maximum: 32
65*2eb4d8dcSEmmanuel Vadot
66*2eb4d8dcSEmmanuel Vadot  reset-gpios:
67*2eb4d8dcSEmmanuel Vadot    maxItems: 1
68*2eb4d8dcSEmmanuel Vadot    description: A GPIO line connected to the WL_RST line, if present
69*2eb4d8dcSEmmanuel Vadot      this shall be flagged as active low.
70*2eb4d8dcSEmmanuel Vadot
71*2eb4d8dcSEmmanuel Vadot  brcm,ccode-map:
72*2eb4d8dcSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/string-array
73*2eb4d8dcSEmmanuel Vadot    description: Multiple strings for translating ISO3166 country code to
74*2eb4d8dcSEmmanuel Vadot      brcmfmac firmware country code and revision.
75*2eb4d8dcSEmmanuel Vadot    items:
76*2eb4d8dcSEmmanuel Vadot      pattern: '^[A-Z][A-Z]-[A-Z][0-9A-Z]-[0-9]+$'
77*2eb4d8dcSEmmanuel Vadot
78*2eb4d8dcSEmmanuel Vadotrequired:
79*2eb4d8dcSEmmanuel Vadot  - compatible
80*2eb4d8dcSEmmanuel Vadot  - reg
81*2eb4d8dcSEmmanuel Vadot
82*2eb4d8dcSEmmanuel VadotadditionalProperties: false
83*2eb4d8dcSEmmanuel Vadot
84*2eb4d8dcSEmmanuel Vadotexamples:
85*2eb4d8dcSEmmanuel Vadot  - |
86*2eb4d8dcSEmmanuel Vadot    #include <dt-bindings/interrupt-controller/irq.h>
87*2eb4d8dcSEmmanuel Vadot    #include <dt-bindings/gpio/gpio.h>
88*2eb4d8dcSEmmanuel Vadot    mmc@80118000 {
89*2eb4d8dcSEmmanuel Vadot      compatible = "arm,pl18x", "arm,primecell";
90*2eb4d8dcSEmmanuel Vadot      reg = <0x80118000 0x1000>;
91*2eb4d8dcSEmmanuel Vadot      clocks = <&clk 0>, <&clk 1>;
92*2eb4d8dcSEmmanuel Vadot      clock-names = "mclk", "apb_pclk";
93*2eb4d8dcSEmmanuel Vadot      interrupts = <0 60 IRQ_TYPE_LEVEL_HIGH>;
94*2eb4d8dcSEmmanuel Vadot      bus-width = <4>;
95*2eb4d8dcSEmmanuel Vadot      non-removable;
96*2eb4d8dcSEmmanuel Vadot      vmmc-supply = <&wl_bt_reg>;
97*2eb4d8dcSEmmanuel Vadot      #address-cells = <1>;
98*2eb4d8dcSEmmanuel Vadot      #size-cells = <0>;
99*2eb4d8dcSEmmanuel Vadot
100*2eb4d8dcSEmmanuel Vadot      wifi@1 {
101*2eb4d8dcSEmmanuel Vadot        compatible = "brcm,bcm4334-fmac", "brcm,bcm4329-fmac";
102*2eb4d8dcSEmmanuel Vadot        reg = <1>;
103*2eb4d8dcSEmmanuel Vadot        interrupt-parent = <&gpio>;
104*2eb4d8dcSEmmanuel Vadot        interrupts = <24 IRQ_TYPE_EDGE_FALLING>;
105*2eb4d8dcSEmmanuel Vadot        interrupt-names = "host-wake";
106*2eb4d8dcSEmmanuel Vadot        reset-gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
107*2eb4d8dcSEmmanuel Vadot        brcm,ccode-map = "JP-JP-78", "US-Q2-86";
108*2eb4d8dcSEmmanuel Vadot      };
109*2eb4d8dcSEmmanuel Vadot    };
110