Lines Matching refs:np
55 static bool sdhci_of_wp_inverted(struct device_node *np) in sdhci_of_wp_inverted() argument
57 if (of_get_property(np, "sdhci,wp-inverted", NULL) || in sdhci_of_wp_inverted()
58 of_get_property(np, "wp-inverted", NULL)) in sdhci_of_wp_inverted()
71 struct device_node *np = pdev->dev.of_node; in sdhci_get_of_property() local
78 if (of_get_property(np, "sdhci,auto-cmd12", NULL)) in sdhci_get_of_property()
81 if (of_get_property(np, "sdhci,1-bit-only", NULL) || in sdhci_get_of_property()
82 (of_property_read_u32(np, "bus-width", &bus_width) == 0 && in sdhci_get_of_property()
86 if (sdhci_of_wp_inverted(np)) in sdhci_get_of_property()
89 if (of_get_property(np, "broken-cd", NULL)) in sdhci_get_of_property()
92 if (of_get_property(np, "no-1-8-v", NULL)) in sdhci_get_of_property()
95 if (of_device_is_compatible(np, "fsl,p2020-rev1-esdhc")) in sdhci_get_of_property()
98 if (of_device_is_compatible(np, "fsl,p2020-esdhc") || in sdhci_get_of_property()
99 of_device_is_compatible(np, "fsl,p1010-esdhc") || in sdhci_get_of_property()
100 of_device_is_compatible(np, "fsl,t4240-esdhc") || in sdhci_get_of_property()
101 of_device_is_compatible(np, "fsl,mpc8536-esdhc")) in sdhci_get_of_property()
104 clk = of_get_property(np, "clock-frequency", &size); in sdhci_get_of_property()
108 if (of_find_property(np, "keep-power-in-suspend", NULL)) in sdhci_get_of_property()
111 if (of_find_property(np, "enable-sdio-wakeup", NULL)) in sdhci_get_of_property()