Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define DRIVER_NAME "nf4"
- static struct platform_driver nf4_driver = {
- .driver = {
- .name = DRIVER_NAME,
- .of_match_table = of_match_ptr(nf4_of_match),
- .owner = THIS_MODULE,
- .pm = NF4_DEV_PM_OPS,
- },
- .remove = nf4_remove,
- .id_table = nf4_ids,
- };
- static int __init nf4_init(void)
- {
- pr_info("%s init drivern", __func__);
- return platform_driver_probe(&nf4_driver, nf4_probe);
- }
- late_initcall(nf4_init);
- static int __init nf4_probe(struct platform_device *pdev)
- {
- struct nf4_platform_data_t *pdata = NULL;
- struct nf4_platform_data_t data = { 0 };
- struct nf4_dev_t* nf4 = NULL;
- struct device *dev = NULL;
- struct device *device = NULL;
- int err = 0;
- int count = 0;
- if(!pdev || (NULL == &pdev->dev))
- return -ENODEV;
- [...]
- }
- if (code == 0 && list_empty(&drv->driver.p->klist_devices.k_list))
- retval = -ENODEV;
- nf4tag {
- compatible = "nf4";
- pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_iso7816_default>;
- status = "disable";
- power_regulator-supply = <&nf4_regulator>;
- data-gpio = <&pioA 81 GPIO_ACTIVE_HIGH>;
- clock-gpio = <&pioA 82 GPIO_ACTIVE_HIGH>;
- reset-gpio = <&pca9506 20 GPIO_ACTIVE_HIGH>;
- clock-delay = <20>;
- tx-parity = <1>;
- rx-parity = <1>;
- };
Add Comment
Please, Sign In to add comment