Lines Matching +full:no +full:- +full:sdio
1 // SPDX-License-Identifier: ISC
19 struct device_node *np = dev->of_node; in brcmf_of_get_country_codes()
25 count = of_property_count_strings(np, "brcm,ccode-map"); in brcmf_of_get_country_codes()
27 /* If no explicit country code map is specified, check whether in brcmf_of_get_country_codes()
30 settings->trivial_ccode_map = in brcmf_of_get_country_codes()
31 of_property_read_bool(np, "brcm,ccode-map-trivial"); in brcmf_of_get_country_codes()
36 return (count == -EINVAL) ? 0 : count; in brcmf_of_get_country_codes()
41 return -ENOMEM; in brcmf_of_get_country_codes()
43 cc->table_size = count; in brcmf_of_get_country_codes()
48 cce = &cc->table[i]; in brcmf_of_get_country_codes()
50 if (of_property_read_string_index(np, "brcm,ccode-map", in brcmf_of_get_country_codes()
54 /* String format e.g. US-Q2-86 */ in brcmf_of_get_country_codes()
55 if (sscanf(map, "%2c-%2c-%d", cce->iso3166, cce->cc, in brcmf_of_get_country_codes()
56 &cce->rev) != 3) in brcmf_of_get_country_codes()
59 brcmf_dbg(INFO, "%s-%s-%d\n", cce->iso3166, cce->cc, in brcmf_of_get_country_codes()
60 cce->rev); in brcmf_of_get_country_codes()
63 settings->country_codes = cc; in brcmf_of_get_country_codes()
71 struct brcmfmac_sdio_pd *sdio = &settings->bus.sdio; in brcmf_of_probe() local
72 struct device_node *root, *np = dev->of_node; in brcmf_of_probe()
83 err = of_property_read_string(np, "brcm,board-type", &prop); in brcmf_of_probe()
85 settings->board_type = prop; in brcmf_of_probe()
87 if (!of_property_read_string(np, "apple,antenna-sku", &prop)) in brcmf_of_probe()
88 settings->antenna_sku = prop; in brcmf_of_probe()
93 prop = of_get_property(np, "brcm,cal-blob", &settings->cal_size); in brcmf_of_probe()
94 if (prop && settings->cal_size) in brcmf_of_probe()
95 settings->cal_blob = prop; in brcmf_of_probe()
97 /* Set board-type to the first string of the machine compatible prop */ in brcmf_of_probe()
111 strreplace(board_type, '/', '-'); in brcmf_of_probe()
112 settings->board_type = board_type; in brcmf_of_probe()
117 if (!np || !of_device_is_compatible(np, "brcm,bcm4329-fmac")) in brcmf_of_probe()
124 of_get_mac_address(np, settings->mac); in brcmf_of_probe()
129 if (of_property_read_u32(np, "brcm,drive-strength", &val) == 0) in brcmf_of_probe()
130 sdio->drive_strength = val; in brcmf_of_probe()
143 sdio->oob_irq_supported = true; in brcmf_of_probe()
144 sdio->oob_irq_nr = irq; in brcmf_of_probe()
145 sdio->oob_irq_flags = irqf; in brcmf_of_probe()