Lines Matching +full:no +full:- +full:sdio

1 // SPDX-License-Identifier: ISC
20 struct device_node *np = dev->of_node; in brcmf_of_get_country_codes()
26 count = of_property_count_strings(np, "brcm,ccode-map"); in brcmf_of_get_country_codes()
28 /* If no explicit country code map is specified, check whether in brcmf_of_get_country_codes()
31 settings->trivial_ccode_map = in brcmf_of_get_country_codes()
32 of_property_read_bool(np, "brcm,ccode-map-trivial"); in brcmf_of_get_country_codes()
37 return (count == -EINVAL) ? 0 : count; in brcmf_of_get_country_codes()
42 return -ENOMEM; in brcmf_of_get_country_codes()
44 cc->table_size = count; in brcmf_of_get_country_codes()
49 cce = &cc->table[i]; in brcmf_of_get_country_codes()
51 if (of_property_read_string_index(np, "brcm,ccode-map", in brcmf_of_get_country_codes()
55 /* String format e.g. US-Q2-86 */ in brcmf_of_get_country_codes()
56 if (sscanf(map, "%2c-%2c-%d", cce->iso3166, cce->cc, in brcmf_of_get_country_codes()
57 &cce->rev) != 3) in brcmf_of_get_country_codes()
60 brcmf_dbg(INFO, "%s-%s-%d\n", cce->iso3166, cce->cc, in brcmf_of_get_country_codes()
61 cce->rev); in brcmf_of_get_country_codes()
64 settings->country_codes = cc; in brcmf_of_get_country_codes()
72 struct brcmfmac_sdio_pd *sdio = &settings->bus.sdio; in brcmf_of_probe() local
73 struct device_node *root, *np = dev->of_node; in brcmf_of_probe()
85 err = of_property_read_string(np, "brcm,board-type", &prop); in brcmf_of_probe()
87 settings->board_type = prop; in brcmf_of_probe()
89 if (!of_property_read_string(np, "apple,antenna-sku", &prop)) in brcmf_of_probe()
90 settings->antenna_sku = prop; in brcmf_of_probe()
95 prop = of_get_property(np, "brcm,cal-blob", &settings->cal_size); in brcmf_of_probe()
96 if (prop && settings->cal_size) in brcmf_of_probe()
97 settings->cal_blob = prop; in brcmf_of_probe()
99 /* Set board-type to the first string of the machine compatible prop */ in brcmf_of_probe()
113 strreplace(board_type, '/', '-'); in brcmf_of_probe()
114 settings->board_type = board_type; in brcmf_of_probe()
122 brcmf_dbg(INFO, "%s LPO clock\n", clk ? "enable" : "no"); in brcmf_of_probe()
124 if (!np || !of_device_is_compatible(np, "brcm,bcm4329-fmac")) in brcmf_of_probe()
131 of_get_mac_address(np, settings->mac); in brcmf_of_probe()
136 if (of_property_read_u32(np, "brcm,drive-strength", &val) == 0) in brcmf_of_probe()
137 sdio->drive_strength = val; in brcmf_of_probe()
150 sdio->oob_irq_supported = true; in brcmf_of_probe()
151 sdio->oob_irq_nr = irq; in brcmf_of_probe()
152 sdio->oob_irq_flags = irqf; in brcmf_of_probe()