Skip to content

Commit f010d1b

Browse files
AngeloGioacchino Del Regnombgg
authored andcommitted
arm64: dts: mediatek: mt6795-xperia-m5: Add NXP PN547 NFC on I2C3
Add support for the NXP PN547 NFC chip found on this smartphone and configure its pins. Signed-off-by: AngeloGioacchino Del Regno <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Matthias Brugger <[email protected]>
1 parent d5ed9a0 commit f010d1b

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

arch/arm64/boot/dts/mediatek/mt6795-sony-xperia-m5.dts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
*/
66

77
/dts-v1/;
8+
#include <dt-bindings/gpio/gpio.h>
89
#include "mt6795.dtsi"
910

1011
/ {
@@ -100,6 +101,16 @@
100101
pinctrl-0 = <&i2c3_pins>;
101102
status = "okay";
102103

104+
pn547: nfc@28 {
105+
compatible = "nxp,pn544-i2c";
106+
reg = <0x28>;
107+
interrupts-extended = <&pio 3 IRQ_TYPE_EDGE_RISING>;
108+
pinctrl-names = "default";
109+
pinctrl-0 = <&nfc_pins>;
110+
enable-gpios = <&pio 149 GPIO_ACTIVE_HIGH>;
111+
firmware-gpios = <&pio 94 GPIO_ACTIVE_HIGH>;
112+
};
113+
103114
proximity@48 {
104115
compatible = "sensortek,stk3310";
105116
reg = <0x48>;
@@ -110,6 +121,19 @@
110121
};
111122

112123
&pio {
124+
nfc_pins: nfc-pins {
125+
pins-irq {
126+
pinmux = <PINMUX_GPIO3__FUNC_GPIO3>;
127+
bias-pull-down;
128+
input-enable;
129+
};
130+
131+
pins-fw-ven {
132+
pinmux = <PINMUX_GPIO94__FUNC_GPIO94>,
133+
<PINMUX_GPIO149__FUNC_GPIO149>;
134+
};
135+
};
136+
113137
ts_pins: touchscreen-pins {
114138
pins-irq {
115139
pinmux = <PINMUX_GPIO6__FUNC_GPIO6>;

0 commit comments

Comments
 (0)