Lines Matching full:dt

3  * NAND Flash Controller Device Driver for DT
129 * Check the DT binding.
150 struct denali_dt *dt; in denali_dt_probe() local
156 dt = devm_kzalloc(dev, sizeof(*dt), GFP_KERNEL); in denali_dt_probe()
157 if (!dt) in denali_dt_probe()
159 denali = &dt->controller; in denali_dt_probe()
185 dt->clk = devm_clk_get(dev, "nand"); in denali_dt_probe()
186 if (IS_ERR(dt->clk)) in denali_dt_probe()
187 return PTR_ERR(dt->clk); in denali_dt_probe()
189 dt->clk_x = devm_clk_get(dev, "nand_x"); in denali_dt_probe()
190 if (IS_ERR(dt->clk_x)) in denali_dt_probe()
191 return PTR_ERR(dt->clk_x); in denali_dt_probe()
193 dt->clk_ecc = devm_clk_get(dev, "ecc"); in denali_dt_probe()
194 if (IS_ERR(dt->clk_ecc)) in denali_dt_probe()
195 return PTR_ERR(dt->clk_ecc); in denali_dt_probe()
197 ret = clk_prepare_enable(dt->clk); in denali_dt_probe()
201 ret = clk_prepare_enable(dt->clk_x); in denali_dt_probe()
205 ret = clk_prepare_enable(dt->clk_ecc); in denali_dt_probe()
209 denali->clk_rate = clk_get_rate(dt->clk); in denali_dt_probe()
210 denali->clk_x_rate = clk_get_rate(dt->clk_x); in denali_dt_probe()
230 platform_set_drvdata(pdev, dt); in denali_dt_probe()
237 clk_disable_unprepare(dt->clk_ecc); in denali_dt_probe()
239 clk_disable_unprepare(dt->clk_x); in denali_dt_probe()
241 clk_disable_unprepare(dt->clk); in denali_dt_probe()
248 struct denali_dt *dt = platform_get_drvdata(pdev); in denali_dt_remove() local
250 denali_remove(&dt->controller); in denali_dt_remove()
251 clk_disable_unprepare(dt->clk_ecc); in denali_dt_remove()
252 clk_disable_unprepare(dt->clk_x); in denali_dt_remove()
253 clk_disable_unprepare(dt->clk); in denali_dt_remove()
262 .name = "denali-nand-dt",
270 MODULE_DESCRIPTION("DT driver for Denali NAND controller");