/* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and * only version 2 as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ #if 0 #if 0 &${ese_check_parent} { ese_check_default: check_default { pins_cmd_dat { pinmux = ; input-enable; bias-disable; }; }; }; #endif &${ese_spi_parent} { ese_spi_bus: ese_spi_bus { pins_cmd_dat { /* spi func is 2, but this can be different by AP */ pinmux = , , , ; bias-disable; }; }; ese_spi_bus_suspend: ese_spi_bus_suspend { pins_cmd_dat { /* spi func is 2, but this can be different by AP */ pinmux = , , ; input-enable; bias-pull-down; }; }; /*need cs pin controlled by ese driver*/ ese_spi_cs: ese_spi_cs { pins_cmd_dat { pinmux = ; output-high; bias-disable; }; }; ese_spi_cs_suspend: ese_spi_cs_suspend { pins_cmd_dat { pinmux = ; output-high; bias-disable; }; }; }; &${ese_spi} { status = "ok"; pinctrl-names = "ese_active", "ese_suspend"; pinctrl-0 = <&ese_spi_bus>; pinctrl-1 = <&ese_spi_bus_suspend &ese_spi_cs_suspend>; ese_spi@0 { compatible = "ese_p3"; reg = <0>; spi-max-frequency = <7000000>; #if 0 ese-det-gpio = ; pinctrl-names = "default"; pinctrl-0 = <&ese_check_default>; #endif #if 0 p3-vdd-supply = <&${ese_pvdd_ldo}>; #endif /*need cs pin controlled by ese driver*/ /*ese_p3,cs-gpio = ;*/ }; }; #if 0 / { fragment@ese_platform { target-path = "/"; __overlay__ { ese_platform { compatible = "p3_platform"; }; }; }; }; #endif #endif &pio { nfc_ven: nfc_ven { pins_cmd_dat{ pinmux = ; output-high; bias-disable; }; }; ven_nc: ven_nc { pins_cmd_dat{ pinmux = ; input-enable; bias-pull-down; }; }; }; &pio { nfc_firm: nfc_firm { pins_cmd_dat{ pinmux = ; output-low; bias-disable; }; }; firm_nc: firm_nc { pins_cmd_dat{ pinmux = ; input-enable; bias-pull-down; }; }; }; &pio { nfc_clk_req: nfc_clk_req { pins_cmd_dat{ pinmux = ; input-enable; bias-pull-down; }; }; clk_req_nc: clk_req_nc { pins_cmd_dat{ pinmux = ; input-enable; bias-pull-down; }; }; }; &pio { nfc_irq: nfc_irq { pins_cmd_dat { pinmux = ; input-enable; bias-pull-down; }; }; irq_nc: irq_nc { pins_cmd_dat { pinmux = ; input-enable; bias-pull-down; }; }; }; #if 1 &pio { nfc_check: nfc_check { pins_cmd_dat { pinmux = ; input-enable; bias-disable; }; }; }; #endif #if 0 &${sw_parent} { nfc_sw: nfc_sw { pins_cmd_dat { pinmux = ; output-low; bias-disable; }; }; sw_nc: sw_nc { pins_cmd_dat { pinmux = ; input-enable; bias-pull-down; }; }; }; #endif &i2c3 { status = "ok"; clock-frequency = <400000>; mediatek,use-open-drain; sec_nfc: sec-nfc@27 { compatible = "sec-nfc"; reg = <0x27>; interrupt-parent = <&pio>; interrupts = ; sec-nfc,irq-gpio = ; sec-nfc,ven-gpio = ; sec-nfc,firm-gpio = ; sec-nfc,clk_req-gpio = ; #if 1 nfc_pvdd-supply = <&mt_pmic_vfp_ldo_reg>; #endif #if 1 sec-nfc,check_nfc = ; #endif #if 0 sec-nfc,coldreset-gpio = ; #endif sec-nfc,clk_req_wake; sec-nfc,ldo_control; /* sec-nfc,pvdd-gpio = <&pio 154 0>;*/ #if 0 sec-nfc,sw-gpio = ; #endif sec-nfc,bootloader_ver = <6>; /*sec-nfc,irq_all_trigger;*/ pinctrl-names = "default", "nfc_nc"; pinctrl-0 = <&nfc_ven &nfc_firm &nfc_clk_req &nfc_irq #if 1 &nfc_check #endif #if 0 &nfc_sw #endif >; pinctrl-1 = <&ven_nc &firm_nc &clk_req_nc &irq_nc #if 0 &sw_nc #endif >; }; };