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
76 if (of_get_property(np, "sdhci,auto-cmd12", NULL)) in sdhci_get_of_property()
79 if (of_get_property(np, "sdhci,1-bit-only", NULL) || in sdhci_get_of_property()
80 (of_property_read_u32(np, "bus-width", &bus_width) == 0 && in sdhci_get_of_property()
84 if (sdhci_of_wp_inverted(np)) in sdhci_get_of_property()
87 if (of_get_property(np, "broken-cd", NULL)) in sdhci_get_of_property()
90 if (of_get_property(np, "no-1-8-v", NULL)) in sdhci_get_of_property()
93 if (of_device_is_compatible(np, "fsl,p2020-rev1-esdhc")) in sdhci_get_of_property()
96 if (of_device_is_compatible(np, "fsl,p2020-esdhc") || in sdhci_get_of_property()
97 of_device_is_compatible(np, "fsl,p1010-esdhc") || in sdhci_get_of_property()
98 of_device_is_compatible(np, "fsl,t4240-esdhc") || in sdhci_get_of_property()
99 of_device_is_compatible(np, "fsl,mpc8536-esdhc")) in sdhci_get_of_property()
102 of_property_read_u32(np, "clock-frequency", &pltfm_host->clock); in sdhci_get_of_property()
104 if (of_find_property(np, "keep-power-in-suspend", NULL)) in sdhci_get_of_property()
107 if (of_find_property(np, "enable-sdio-wakeup", NULL)) in sdhci_get_of_property()