Lines Matching refs:fdt
84 static uint32_t at91_shdwc_get_wakeup_input(const void *fdt, int np) in at91_shdwc_get_wakeup_input() argument
93 fdt_for_each_subnode(child, fdt, np) { in at91_shdwc_get_wakeup_input()
94 prop = fdt_getprop(fdt, child, "reg", &len); in at91_shdwc_get_wakeup_input()
97 fdt_get_name(fdt, child, NULL)); in at91_shdwc_get_wakeup_input()
109 if (fdt_getprop(fdt, child, "atmel,wakeup-active-high", NULL)) in at91_shdwc_get_wakeup_input()
116 static void at91_shdwc_dt_configure(const void *fdt, int np) in at91_shdwc_dt_configure() argument
124 prop = fdt_getprop(fdt, np, "debounce-delay-us", &len); in at91_shdwc_dt_configure()
130 if (fdt_getprop(fdt, np, "atmel,wakeup-rtc-timer", &len)) in at91_shdwc_dt_configure()
135 input = at91_shdwc_get_wakeup_input(fdt, np); in at91_shdwc_dt_configure()
139 static TEE_Result atmel_shdwc_probe(const void *fdt, int node, in atmel_shdwc_probe() argument
152 if (dt_map_dev(fdt, node, &shdwc_base, &size) < 0) in atmel_shdwc_probe()
155 ddr_node = fdt_node_offset_by_compatible(fdt, -1, in atmel_shdwc_probe()
160 if (dt_map_dev(fdt, ddr_node, &mpddrc_base, &size) < 0) in atmel_shdwc_probe()
167 at91_shdwc_dt_configure(fdt, node); in atmel_shdwc_probe()