Lines Matching refs:fdt
108 static uint32_t at91_shdwc_get_wakeup_input(const void *fdt, int np) in at91_shdwc_get_wakeup_input() argument
117 fdt_for_each_subnode(child, fdt, np) { in at91_shdwc_get_wakeup_input()
118 prop = fdt_getprop(fdt, child, "reg", &len); in at91_shdwc_get_wakeup_input()
121 fdt_get_name(fdt, child, NULL)); in at91_shdwc_get_wakeup_input()
133 if (fdt_getprop(fdt, child, "atmel,wakeup-active-high", NULL)) in at91_shdwc_get_wakeup_input()
140 static void at91_shdwc_dt_configure(const void *fdt, int np) in at91_shdwc_dt_configure() argument
148 prop = fdt_getprop(fdt, np, "debounce-delay-us", &len); in at91_shdwc_dt_configure()
154 if (fdt_getprop(fdt, np, "atmel,wakeup-rtc-timer", &len)) in at91_shdwc_dt_configure()
157 if (fdt_getprop(fdt, np, "atmel,wakeup-rtt-timer", &len)) in at91_shdwc_dt_configure()
162 input = at91_shdwc_get_wakeup_input(fdt, np); in at91_shdwc_dt_configure()
166 static TEE_Result atmel_shdwc_probe(const void *fdt, int node, in atmel_shdwc_probe() argument
180 if (fdt_get_status(fdt, node) != DT_STATUS_OK_SEC) in atmel_shdwc_probe()
186 if (dt_map_dev(fdt, node, &shdwc_base, &size, DT_MAP_AUTO) < 0) in atmel_shdwc_probe()
189 ddr_node = fdt_node_offset_by_compatible(fdt, -1, in atmel_shdwc_probe()
194 if (dt_map_dev(fdt, ddr_node, &mpddrc_base, &size, DT_MAP_AUTO) < 0) in atmel_shdwc_probe()
211 at91_shdwc_dt_configure(fdt, node); in atmel_shdwc_probe()
213 return sam_pm_init(fdt, shdwc_base); in atmel_shdwc_probe()