From b8bd419f0f87a0f942202a5d1b7d3588916c9d9d Mon Sep 17 00:00:00 2001 From: Marco Franchi Date: Tue, 23 May 2017 12:49:33 -0300 Subject: [PATCH] ARM: dts: imx7d-sdb: Add NFC Click Board support The imx7d-sdb has a mikro bus socket that can be connected to a NFC click board (PN7120 near field communications controller). https://shop.mikroe.com/click/wireless-connectivity/nfc Add a new device tree file to describe such hardware. Signed-off-by: Marco Franchi --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/imx7d-sdb-nfc.dts | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 arch/arm/boot/dts/imx7d-sdb-nfc.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index c107c29..1717939 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -420,6 +420,7 @@ dtb-$(CONFIG_SOC_IMX7D) += \ imx7d-sdb-m4.dtb \ imx7d-sdb-qspi.dtb \ imx7d-sdb-mipi-dsi.dtb \ + imx7d-sdb-nfc.dtb \ imx7d-sdb-reva.dtb \ imx7d-sdb-reva-epdc.dtb \ imx7d-sdb-reva-gpmi-weim.dtb \ diff --git a/arch/arm/boot/dts/imx7d-sdb-nfc.dts b/arch/arm/boot/dts/imx7d-sdb-nfc.dts new file mode 100644 index 0000000..055d9ff --- /dev/null +++ b/arch/arm/boot/dts/imx7d-sdb-nfc.dts @@ -0,0 +1,24 @@ +/* + * Copyright (C) 2015 Freescale Semiconductor, Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + */ + +#include "imx7d-sdb.dts" + +&i2c3 { + clock-frequency = <100000>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c3>; + status = "okay"; + + pn547: pn547@28 { + compatible = "nxp,pn547"; + reg = <0x28>; + clock-frequency = <400000>; + interrupt-gpios = <&gpio6 14 1>; + enable-gpios = <&gpio_spi 3 1>; + }; +}; -- 2.7.4