summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQC Publisher <qcpublisher@qti.qualcomm.com>2023-02-06 10:31:44 -0800
committerAndrei Ciubotariu <aciubotariu@google.com>2023-02-06 18:02:48 -0800
commit957c7a12d16c9513aca88673a16774a10c278472 (patch)
tree7061f9bedd64528b0062147d7ea1b9e720a43090
downloadnfc-devicetree-957c7a12d16c9513aca88673a16774a10c278472.tar.gz
Commit label r00040.3 - ES4 0.0.040.3
TRACKING-ID: 72eeaf0e-66b0-4fb9-bbb8-091dc3ddf9bf Change-Id: I69704437a3c8724cfc51189cd57ab4af334b174b
-rwxr-xr-xKbuild19
-rwxr-xr-xMakefile12
-rwxr-xr-xnxp/kalama-nfc-cdp.dts10
-rwxr-xr-xnxp/kalama-nfc-common.dtsi28
-rwxr-xr-xnxp/kalama-nfc-mtp.dts10
-rwxr-xr-xnxp/kalama-nfc-qrd.dts10
-rwxr-xr-xnxp/kalama-nfc.dts10
-rwxr-xr-xnxp/kalama-pinctrl.dtsi60
-rwxr-xr-xnxp/monaco-nfc-common.dtsi36
-rwxr-xr-xnxp/monaco-nfc-idp-v1.dts10
-rwxr-xr-xnxp/monaco-nfc-standalone-idp-v1.dts10
-rwxr-xr-xnxp/monaco-nfc.dts10
-rwxr-xr-xnxp/monaco-pinctrl.dtsi92
-rwxr-xr-xst/kalama-nfc-common.dtsi22
-rwxr-xr-xst/kalama-nfc-mtp.dts10
-rwxr-xr-xst/kalama-nfc.dts10
-rwxr-xr-xst/kalama-pinctrl.dtsi60
17 files changed, 419 insertions, 0 deletions
diff --git a/Kbuild b/Kbuild
new file mode 100755
index 0000000..38ab95c
--- /dev/null
+++ b/Kbuild
@@ -0,0 +1,19 @@
+ifeq ($(CONFIG_ARCH_KALAMA),y)
+dtbo-y += nxp/kalama-nfc.dtbo \
+ nxp/kalama-nfc-mtp.dtbo \
+ nxp/kalama-nfc-qrd.dtbo \
+ nxp/kalama-nfc-cdp.dtbo
+
+dtbo-y += st/kalama-nfc.dtbo \
+ st/kalama-nfc-mtp.dtbo
+endif
+
+ifeq ($(CONFIG_ARCH_MONACO),y)
+dtbo-y += nxp/monaco-nfc.dtbo \
+ nxp/monaco-nfc-standalone-idp-v1.dtbo \
+ nxp/monaco-nfc-idp-v1.dtbo
+endif
+
+always-y := $(dtb-y) $(dtbo-y)
+subdir-y := $(dts-dirs)
+clean-files := *.dtb *.dtbo
diff --git a/Makefile b/Makefile
new file mode 100755
index 0000000..f2d100f
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,12 @@
+KBUILD_OPTIONS += KBUILD_EXTMOD_DTS=.
+
+all: dtbs
+
+%:
+ $(MAKE) -C $(KERNEL_SRC) M=$(M) $@ $(KBUILD_OPTIONS)
+
+modules_install:
+ $(MAKE) M=$(M) -C $(KERNEL_SRC) modules_install
+
+clean:
+ $(MAKE) -C $(KERNEL_SRC) M=$(M) clean \ No newline at end of file
diff --git a/nxp/kalama-nfc-cdp.dts b/nxp/kalama-nfc-cdp.dts
new file mode 100755
index 0000000..f16d9a7
--- /dev/null
+++ b/nxp/kalama-nfc-cdp.dts
@@ -0,0 +1,10 @@
+/dts-v1/;
+/plugin/;
+
+#include "kalama-nfc-common.dtsi"
+/ {
+ model = "Qualcomm Technologies, Inc. Kalama CDP";
+ compatible = "qcom,kalama-cdp", "qcom,kalama", "qcom,cdp";
+ qcom,msm-id = <519 0x10000>, <536 0x10000>;
+ qcom,board-id = <0x10001 0>;
+};
diff --git a/nxp/kalama-nfc-common.dtsi b/nxp/kalama-nfc-common.dtsi
new file mode 100755
index 0000000..554f3d4
--- /dev/null
+++ b/nxp/kalama-nfc-common.dtsi
@@ -0,0 +1,28 @@
+#include <dt-bindings/clock/qcom,rpmh.h>
+
+&qupv3_se0_i2c {
+ status = "ok";
+ qcom,clk-freq-out = <1000000>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+ nq@28 {
+ compatible = "qcom,sn-nci";
+ reg = <0x28>;
+ qcom,sn-irq = <&tlmm 55 0x00>;
+ qcom,sn-ven = <&tlmm 30 0x00>;
+ qcom,sn-firm = <&tlmm 12 0x00>;
+ qcom,clk-src = "BBCLK2";
+ qcom,sn-vdd-1p8-supply = <&L15B>;
+ qcom,sn-vdd-1p8-voltage = <1760000 1800000>;
+ qcom,sn-vdd-1p8-current = <157000>;
+ interrupt-parent = <&tlmm>;
+ interrupts = <55 0>;
+ interrupt-names = "nfc_irq";
+ pinctrl-names = "nfc_active", "nfc_suspend";
+ pinctrl-0 = <&nfc_int_active &nfc_enable_active>;
+ pinctrl-1 = <&nfc_int_suspend &nfc_enable_suspend>;
+ clocks = <&rpmhcc RPMH_LN_BB_CLK2>;
+ clock-names = "nfc_ref_clk";
+ };
+};
+
diff --git a/nxp/kalama-nfc-mtp.dts b/nxp/kalama-nfc-mtp.dts
new file mode 100755
index 0000000..a28aa8d
--- /dev/null
+++ b/nxp/kalama-nfc-mtp.dts
@@ -0,0 +1,10 @@
+/dts-v1/;
+/plugin/;
+
+#include "kalama-nfc-common.dtsi"
+/ {
+ model = "Qualcomm Technologies, Inc. Kalama MTP";
+ compatible = "qcom,kalama-mtp", "qcom,kalama", "qcom,mtp";
+ qcom,msm-id = <519 0x10000>, <536 0x10000>;
+ qcom,board-id = <0x10008 0>;
+};
diff --git a/nxp/kalama-nfc-qrd.dts b/nxp/kalama-nfc-qrd.dts
new file mode 100755
index 0000000..897d4e8
--- /dev/null
+++ b/nxp/kalama-nfc-qrd.dts
@@ -0,0 +1,10 @@
+/dts-v1/;
+/plugin/;
+
+#include "kalama-nfc-common.dtsi"
+/ {
+ model = "Qualcomm Technologies, Inc. Kalama QRD";
+ compatible = "qcom,kalama-qrd", "qcom,kalama", "qcom,qrd";
+ qcom,msm-id = <519 0x10000>, <536 0x10000>;
+ qcom,board-id = <0x1000B 0>;
+};
diff --git a/nxp/kalama-nfc.dts b/nxp/kalama-nfc.dts
new file mode 100755
index 0000000..3525c67
--- /dev/null
+++ b/nxp/kalama-nfc.dts
@@ -0,0 +1,10 @@
+/dts-v1/;
+/plugin/;
+
+#include "kalama-pinctrl.dtsi"
+/ {
+ model = "Qualcomm Technologies, Inc. Kalama";
+ compatible = "qcom,kalama";
+ qcom,msm-id = <519 0x10000>, <536 0x10000>;
+ qcom,board-id = <0 0>;
+};
diff --git a/nxp/kalama-pinctrl.dtsi b/nxp/kalama-pinctrl.dtsi
new file mode 100755
index 0000000..9137ab7
--- /dev/null
+++ b/nxp/kalama-pinctrl.dtsi
@@ -0,0 +1,60 @@
+&tlmm {
+ nfc {
+ nfc_int_active: nfc_int_active {
+ /* active state */
+ mux {
+ /* NFC Read Interrupt */
+ pins = "gpio55";
+ function = "gpio";
+ };
+
+ config {
+ pins = "gpio55";
+ drive-strength = <2>; /* 2 MA */
+ bias-pull-down;
+ };
+ };
+
+ nfc_int_suspend: nfc_int_suspend {
+ /* sleep state */
+ mux {
+ /* NFC Read Interrupt */
+ pins = "gpio55";
+ function = "gpio";
+ };
+
+ config {
+ pins = "gpio55";
+ drive-strength = <2>; /* 2 MA */
+ bias-pull-down;
+ };
+ };
+
+ nfc_enable_active: nfc_enable_active {
+ mux {
+ /* Enable and Firmware gpios */
+ pins = "gpio30", "gpio12";
+ function = "gpio";
+ };
+
+ config {
+ pins = "gpio30", "gpio12";
+ drive-strength = <2>; /* 2 MA */
+ bias-disable;
+ };
+ };
+
+ nfc_enable_suspend: nfc_enable_suspend {
+ mux {
+ pins = "gpio30", "gpio12";
+ function = "gpio";
+ };
+
+ config {
+ pins = "gpio30", "gpio12";
+ drive-strength = <2>; /* 2 MA */
+ bias-disable;
+ };
+ };
+ }; //nfc
+}; //tlmm
diff --git a/nxp/monaco-nfc-common.dtsi b/nxp/monaco-nfc-common.dtsi
new file mode 100755
index 0000000..52f2b29
--- /dev/null
+++ b/nxp/monaco-nfc-common.dtsi
@@ -0,0 +1,36 @@
+#include <dt-bindings/clock/qcom,rpmcc.h>
+
+&pm5100_gpios {
+ nfc_clk {
+ nfc_clk_default: nfc_clk_default {
+ pins = "gpio4";
+ function = "normal";
+ input-enable;
+ power-source = <1>;
+ };
+ };
+};
+
+&qupv3_se0_i2c {
+ status = "ok";
+ #address-cells = <1>;
+ #size-cells = <0>;
+ nq@28 {
+ compatible = "qcom,sn-nci";
+ reg = <0x28>;
+ qcom,sn-irq = <&tlmm 7 0x00>;
+ qcom,sn-ven = <&tlmm 6 0x00>;
+ qcom,sn-firm = <&tlmm 8 0x00>;
+ qcom,sn-clkreq = <&pm5100_gpios 4 0x00>;
+ qcom,clk-src = "LNBBKCLK3";
+ interrupt-parent = <&tlmm>;
+ interrupts = <7 0>;
+ interrupt-names = "nfc_irq";
+ pinctrl-names = "nfc_active", "nfc_suspend";
+ pinctrl-0 = <&nfc_int_active &nfc_enable_active &nfc_clk_default>;
+ pinctrl-1 = <&nfc_int_suspend &nfc_enable_suspend>;
+ clocks = <&rpmcc RPM_SMD_LN_BB_CLK3_PIN>;
+ clock-names = "nfc_ref_clk";
+ };
+};
+
diff --git a/nxp/monaco-nfc-idp-v1.dts b/nxp/monaco-nfc-idp-v1.dts
new file mode 100755
index 0000000..bba4b44
--- /dev/null
+++ b/nxp/monaco-nfc-idp-v1.dts
@@ -0,0 +1,10 @@
+/dts-v1/;
+/plugin/;
+
+#include "monaco-nfc-common.dtsi"
+/ {
+ model = "Qualcomm Technologies, Inc. Monaco";
+ compatible = "qcom,monaco", "qcom,idp";
+ qcom,msm-id = <517 0x10000>;
+ qcom,board-id = <0x010022 0x0>;
+};
diff --git a/nxp/monaco-nfc-standalone-idp-v1.dts b/nxp/monaco-nfc-standalone-idp-v1.dts
new file mode 100755
index 0000000..b6e43f4
--- /dev/null
+++ b/nxp/monaco-nfc-standalone-idp-v1.dts
@@ -0,0 +1,10 @@
+/dts-v1/;
+/plugin/;
+
+#include "monaco-nfc-common.dtsi"
+/ {
+ model = "Qualcomm Technologies, Inc. Monaco";
+ compatible = "qcom,monaco", "qcom,idp";
+ qcom,msm-id = <517 0x10000>;
+ qcom,board-id = <0x010022 0x1>;
+};
diff --git a/nxp/monaco-nfc.dts b/nxp/monaco-nfc.dts
new file mode 100755
index 0000000..fd462c5
--- /dev/null
+++ b/nxp/monaco-nfc.dts
@@ -0,0 +1,10 @@
+/dts-v1/;
+/plugin/;
+
+#include "monaco-pinctrl.dtsi"
+/ {
+ model = "Qualcomm Technologies, Inc. Monaco";
+ compatible = "qcom,monaco";
+ qcom,msm-id = <517 0x10000>;
+ qcom,board-id = <0 0>;
+};
diff --git a/nxp/monaco-pinctrl.dtsi b/nxp/monaco-pinctrl.dtsi
new file mode 100755
index 0000000..19a0c3f
--- /dev/null
+++ b/nxp/monaco-pinctrl.dtsi
@@ -0,0 +1,92 @@
+&tlmm {
+
+ qupv3_se0_i2c_pins: qupv3_se0_i2c_pins {
+ qupv3_se0_i2c_active: qupv3_se0_i2c_active {
+ mux {
+ pins = "gpio4", "gpio5";
+ function = "qup00";
+ };
+
+ config {
+ pins = "gpio4", "gpio5";
+ drive-strength = <2>;
+ bias-pull-up;
+ };
+ };
+
+ qupv3_se0_i2c_sleep: qupv3_se0_i2c_sleep {
+ mux {
+ pins = "gpio4", "gpio5";
+ function = "gpio";
+ };
+
+ config {
+ pins = "gpio4", "gpio5";
+ drive-strength = <2>;
+ bias-disable;
+ };
+ };
+ };
+
+ nfc {
+ nfc_int_active: nfc_int_active {
+ /* active state */
+ mux {
+ /* NFC Read Interrupt */
+ pins = "gpio7";
+ function = "gpio";
+ };
+
+ config {
+ pins = "gpio7";
+ drive-strength = <2>; /* 2 MA */
+ bias-pull-up;
+ };
+ };
+
+ nfc_int_suspend: nfc_int_suspend {
+ /* sleep state */
+ mux {
+ /* NFC Read Interrupt */
+ pins = "gpio7";
+ function = "gpio";
+ };
+
+ config {
+ pins = "gpio7";
+ drive-strength = <2>; /* 2 MA */
+ bias-pull-up;
+ };
+ };
+
+ nfc_enable_active: nfc_enable_active {
+ /* active state */
+ mux {
+ /* Enable */
+ pins = "gpio6";
+ function = "gpio";
+ };
+
+ config {
+ pins = "gpio6";
+ drive-strength = <2>; /* 2 MA */
+ bias-pull-up;
+ };
+ };
+
+ nfc_enable_suspend: nfc_enable_suspend {
+ /* sleep state */
+ mux {
+ /* Enable */
+ pins = "gpio6";
+ function = "gpio";
+ };
+
+ config {
+ pins = "gpio6";
+ drive-strength = <2>; /* 2 MA */
+ bias-disable;
+ };
+ };
+ }; //nfc
+}; //tlmm
diff --git a/st/kalama-nfc-common.dtsi b/st/kalama-nfc-common.dtsi
new file mode 100755
index 0000000..c0408a2
--- /dev/null
+++ b/st/kalama-nfc-common.dtsi
@@ -0,0 +1,22 @@
+#include <dt-bindings/clock/qcom,rpmh.h>
+
+&qupv3_se0_i2c {
+ status = "ok";
+ qcom,clk-freq-out = <1000000>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+ st21nfc: st21nfc@08 {
+ compatible = "st,st21nfc";
+ reg = <0x08>;
+ irq-gpios = <&tlmm 55 0x00>;
+ reset-gpios = <&tlmm 30 0x00>;
+ interrupt-parent = <&tlmm>;
+ interrupts = <55 0>;
+ interrupt-names = "nfc_irq";
+ pinctrl-names = "nfc_active", "nfc_suspend";
+ pinctrl-0 = <&nfc_int_active &nfc_enable_active>;
+ pinctrl-1 = <&nfc_int_suspend &nfc_enable_suspend>;
+ clocks = <&rpmhcc RPMH_LN_BB_CLK2>;
+ clock-names = "nfc_ref_clk";
+ };
+};
diff --git a/st/kalama-nfc-mtp.dts b/st/kalama-nfc-mtp.dts
new file mode 100755
index 0000000..8cdf0fd
--- /dev/null
+++ b/st/kalama-nfc-mtp.dts
@@ -0,0 +1,10 @@
+/dts-v1/;
+/plugin/;
+
+#include "kalama-nfc-common.dtsi"
+/ {
+ model = "Qualcomm Technologies, Inc. Kalama MTP";
+ compatible = "qcom,kalama-mtp", "qcom,kalama", "qcom,mtp";
+ qcom,msm-id = <519 0x10000>, <536 0x10000>;
+ qcom,board-id = <0x1010008 0>;
+};
diff --git a/st/kalama-nfc.dts b/st/kalama-nfc.dts
new file mode 100755
index 0000000..3525c67
--- /dev/null
+++ b/st/kalama-nfc.dts
@@ -0,0 +1,10 @@
+/dts-v1/;
+/plugin/;
+
+#include "kalama-pinctrl.dtsi"
+/ {
+ model = "Qualcomm Technologies, Inc. Kalama";
+ compatible = "qcom,kalama";
+ qcom,msm-id = <519 0x10000>, <536 0x10000>;
+ qcom,board-id = <0 0>;
+};
diff --git a/st/kalama-pinctrl.dtsi b/st/kalama-pinctrl.dtsi
new file mode 100755
index 0000000..1de4b14
--- /dev/null
+++ b/st/kalama-pinctrl.dtsi
@@ -0,0 +1,60 @@
+&tlmm {
+ nfc {
+ nfc_int_active: nfc_int_active {
+ /* active state */
+ mux {
+ /* NFC Read Interrupt */
+ pins = "gpio55";
+ function = "gpio";
+ };
+
+ config {
+ pins = "gpio55";
+ drive-strength = <2>; /* 2 MA */
+ bias-pull-down;
+ };
+ };
+
+ nfc_int_suspend: nfc_int_suspend {
+ /* sleep state */
+ mux {
+ /* NFC Read Interrupt */
+ pins = "gpio55";
+ function = "gpio";
+ };
+
+ config {
+ pins = "gpio55";
+ drive-strength = <2>; /* 2 MA */
+ bias-pull-down;
+ };
+ };
+
+ nfc_enable_active: nfc_enable_active {
+ mux {
+ /* Enable gpio */
+ pins = "gpio30";
+ function = "gpio";
+ };
+
+ config {
+ pins = "gpio30";
+ drive-strength = <2>; /* 2 MA */
+ bias-disable;
+ };
+ };
+
+ nfc_enable_suspend: nfc_enable_suspend {
+ mux {
+ pins = "gpio30";
+ function = "gpio";
+ };
+
+ config {
+ pins = "gpio30";
+ drive-strength = <2>; /* 2 MA */
+ bias-disable;
+ };
+ };
+ }; //nfc
+}; //tlmm