replace common qcom sources with samsung ones
This commit is contained in:
34
qcom/opensource/nfc-devicetree/Kbuild
Normal file
34
qcom/opensource/nfc-devicetree/Kbuild
Normal file
@@ -0,0 +1,34 @@
|
||||
ifeq ($(CONFIG_ARCH_SUN),y)
|
||||
dtbo-y += nxp/sun-nfc.dtbo \
|
||||
nxp/sun-nfc-cdp.dtbo \
|
||||
nxp/sun-nfc-mtp.dtbo \
|
||||
|
||||
dtbo-y += st/sun-nfc.dtbo \
|
||||
st/sun-nfc-mtp.dtbo \
|
||||
st/sun-nfc-cdp.dtbo \
|
||||
st/sun-nfc-qrd-sku1.dtbo \
|
||||
st/sun-nfc-qrd-sku1-v8.dtbo \
|
||||
st/sun-nfc-qrd-sku2-v8.dtbo \
|
||||
st/sun-nfc-atp.dtbo \
|
||||
st/sun-mtp-kiwi-v8.dtbo \
|
||||
st/sun-nfc-rcm.dtbo
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_ARCH_PARROT),y)
|
||||
dtbo-y += nxp/parrot-nfc.dtbo \
|
||||
nxp/parrot-nfc-qrd.dtbo \
|
||||
nxp/parrot-nfc-idp.dtbo \
|
||||
nxp/parrot-nfc-atp.dtbo \
|
||||
nxp/parrot-nfc-idp-wcn6755.dtbo
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_ARCH_RAVELIN),y)
|
||||
dtbo-y += nxp/ravelin-nfc.dtbo \
|
||||
nxp/ravelin-nfc-qrd.dtbo \
|
||||
nxp/ravelin-nfc-idp.dtbo \
|
||||
nxp/ravelin-nfc-atp.dtbo
|
||||
endif
|
||||
|
||||
always-y := $(dtb-y) $(dtbo-y)
|
||||
subdir-y := $(dts-dirs)
|
||||
clean-files := *.dtb *.dtbo
|
12
qcom/opensource/nfc-devicetree/Makefile
Normal file
12
qcom/opensource/nfc-devicetree/Makefile
Normal file
@@ -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
|
19
qcom/opensource/nfc-devicetree/nxp/parrot-nfc-atp.dts
Normal file
19
qcom/opensource/nfc-devicetree/nxp/parrot-nfc-atp.dts
Normal file
@@ -0,0 +1,19 @@
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
/*
|
||||
* Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
#include "parrot-nfc-common.dtsi"
|
||||
|
||||
/ {
|
||||
model = "Qualcomm Technologies, Inc. Parrot ATP";
|
||||
compatible = "qcom,parrot-atp", "qcom,parrot", "qcom,atp";
|
||||
qcom,msm-id = <537 0x10000>, <583 0x10000>, <613 0x10000>, <631 0x10000>,
|
||||
<633 0x10000>, <634 0x10000>, <638 0x10000>,
|
||||
<663 0x10000>;
|
||||
qcom,board-id = <33 0>;
|
||||
};
|
28
qcom/opensource/nfc-devicetree/nxp/parrot-nfc-common.dtsi
Normal file
28
qcom/opensource/nfc-devicetree/nxp/parrot-nfc-common.dtsi
Normal file
@@ -0,0 +1,28 @@
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
/*
|
||||
* Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
&qupv3_se6_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 9 0x00>;
|
||||
qcom,sn-ven = <&tlmm 6 0x00>;
|
||||
qcom,sn-clkreq = <&tlmm 7 0x00>;
|
||||
qcom,sn-vdd-1p8-supply = <&L21B>;
|
||||
qcom,sn-vdd-1p8-voltage = <1800000 1800000>;
|
||||
qcom,sn-vdd-1p8-current = <157000>;
|
||||
interrupt-parent = <&tlmm>;
|
||||
interrupts = <9 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>;
|
||||
};
|
||||
};
|
@@ -0,0 +1,17 @@
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
/*
|
||||
* Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
#include "parrot-nfc-common.dtsi"
|
||||
/ {
|
||||
model = "Qualcomm Technologies, Inc. Parrot WCN6755 IDP";
|
||||
compatible = "qcom,parrot-idp", "qcom,parrot", "qcom,idp";
|
||||
qcom,msm-id = <537 0x10000>, <583 0x10000>, <613 0x10000>, <631 0x10000>,
|
||||
<633 0x10000>, <634 0x10000>, <638 0x10000>,
|
||||
<663 0x10000>;
|
||||
qcom,board-id = <34 5>;
|
||||
};
|
19
qcom/opensource/nfc-devicetree/nxp/parrot-nfc-idp.dts
Normal file
19
qcom/opensource/nfc-devicetree/nxp/parrot-nfc-idp.dts
Normal file
@@ -0,0 +1,19 @@
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
/*
|
||||
* Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
#include "parrot-nfc-common.dtsi"
|
||||
|
||||
/ {
|
||||
model = "Qualcomm Technologies, Inc. Parrot IDP";
|
||||
compatible = "qcom,parrot-idp", "qcom,parrot", "qcom,idp";
|
||||
qcom,msm-id = <537 0x10000>, <583 0x10000>, <613 0x10000>, <631 0x10000>,
|
||||
<633 0x10000>, <634 0x10000>, <638 0x10000>,
|
||||
<663 0x10000>;
|
||||
qcom,board-id = <34 0>, <34 1>, <34 5>;
|
||||
};
|
66
qcom/opensource/nfc-devicetree/nxp/parrot-nfc-pinctrl.dtsi
Normal file
66
qcom/opensource/nfc-devicetree/nxp/parrot-nfc-pinctrl.dtsi
Normal file
@@ -0,0 +1,66 @@
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
/*
|
||||
* Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
&tlmm {
|
||||
nfc {
|
||||
nfc_int_active: nfc_int_active {
|
||||
/* active state */
|
||||
mux {
|
||||
/* NFC Read Interrupt */
|
||||
pins = "gpio9";
|
||||
function = "gpio";
|
||||
};
|
||||
|
||||
config {
|
||||
pins = "gpio9";
|
||||
drive-strength = <2>; /* 2 MA */
|
||||
bias-pull-down;
|
||||
};
|
||||
};
|
||||
|
||||
nfc_int_suspend: nfc_int_suspend {
|
||||
/* sleep state */
|
||||
mux {
|
||||
/* NFC Read Interrupt */
|
||||
pins = "gpio9";
|
||||
function = "gpio";
|
||||
};
|
||||
|
||||
config {
|
||||
pins = "gpio9";
|
||||
drive-strength = <2>; /* 2 MA */
|
||||
bias-pull-down;
|
||||
};
|
||||
};
|
||||
|
||||
nfc_enable_active: nfc_enable_active {
|
||||
mux {
|
||||
/* Enable and Clock request gpios */
|
||||
pins = "gpio6", "gpio7";
|
||||
function = "gpio";
|
||||
};
|
||||
|
||||
config {
|
||||
pins = "gpio6", "gpio7";
|
||||
drive-strength = <2>; /* 2 MA */
|
||||
bias-disable;
|
||||
};
|
||||
};
|
||||
|
||||
nfc_enable_suspend: nfc_enable_suspend {
|
||||
mux {
|
||||
pins = "gpio6", "gpio7";
|
||||
function = "gpio";
|
||||
};
|
||||
|
||||
config {
|
||||
pins = "gpio6", "gpio7";
|
||||
drive-strength = <2>; /* 2 MA */
|
||||
bias-disable;
|
||||
};
|
||||
};
|
||||
}; //nfc
|
||||
}; //tlmm
|
20
qcom/opensource/nfc-devicetree/nxp/parrot-nfc-qrd.dts
Normal file
20
qcom/opensource/nfc-devicetree/nxp/parrot-nfc-qrd.dts
Normal file
@@ -0,0 +1,20 @@
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
/*
|
||||
* Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
#include "parrot-nfc-common.dtsi"
|
||||
|
||||
/ {
|
||||
model = "Qualcomm Technologies, Inc. Parrot QRD";
|
||||
compatible = "qcom,parrot-qrd";
|
||||
qcom,msm-id = <537 0x10000>, <583 0x10000>, <613 0x10000>, <631 0x10000>,
|
||||
<633 0x10000>, <634 0x10000>, <638 0x10000>,
|
||||
<663 0x10000>;
|
||||
qcom,board-id = <0x1000B 0>;
|
||||
};
|
||||
|
18
qcom/opensource/nfc-devicetree/nxp/parrot-nfc.dts
Normal file
18
qcom/opensource/nfc-devicetree/nxp/parrot-nfc.dts
Normal file
@@ -0,0 +1,18 @@
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
/*
|
||||
* Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
#include "parrot-nfc-pinctrl.dtsi"
|
||||
/ {
|
||||
model = "Qualcomm Technologies, Inc. Parrot SoC";
|
||||
compatible = "qcom,parrot";
|
||||
qcom,msm-id = <537 0x10000>, <583 0x10000>, <613 0x10000>, <631 0x10000>,
|
||||
<633 0x10000>, <634 0x10000>, <638 0x10000>,
|
||||
<663 0x10000>;
|
||||
qcom,board-id = <0 0>;
|
||||
};
|
17
qcom/opensource/nfc-devicetree/nxp/ravelin-nfc-atp.dts
Normal file
17
qcom/opensource/nfc-devicetree/nxp/ravelin-nfc-atp.dts
Normal file
@@ -0,0 +1,17 @@
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
/*
|
||||
* Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
#include "ravelin-nfc-common.dtsi"
|
||||
|
||||
/ {
|
||||
model = "Qualcomm Technologies, Inc. Ravelin ATP";
|
||||
compatible = "qcom,ravelin-atp", "qcom,ravelin", "qcom,atp";
|
||||
qcom,msm-id = <568 0x10000>, <602 0x10000>;
|
||||
qcom,board-id = <33 0>;
|
||||
};
|
29
qcom/opensource/nfc-devicetree/nxp/ravelin-nfc-common.dtsi
Normal file
29
qcom/opensource/nfc-devicetree/nxp/ravelin-nfc-common.dtsi
Normal file
@@ -0,0 +1,29 @@
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
/*
|
||||
* Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
&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 9 0x00>;
|
||||
qcom,sn-ven = <&tlmm 6 0x00>;
|
||||
qcom,sn-firm = <&tlmm 8 0x00>;
|
||||
qcom,sn-clkreq = <&tlmm 7 0x00>;
|
||||
qcom,sn-vdd-1p8-supply = <&L21B>;
|
||||
qcom,sn-vdd-1p8-voltage = <1800000 1800000>;
|
||||
qcom,sn-vdd-1p8-current = <157000>;
|
||||
interrupt-parent = <&tlmm>;
|
||||
interrupts = <9 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>;
|
||||
};
|
||||
};
|
17
qcom/opensource/nfc-devicetree/nxp/ravelin-nfc-idp.dts
Normal file
17
qcom/opensource/nfc-devicetree/nxp/ravelin-nfc-idp.dts
Normal file
@@ -0,0 +1,17 @@
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
/*
|
||||
* Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
#include "ravelin-nfc-common.dtsi"
|
||||
|
||||
/ {
|
||||
model = "Qualcomm Technologies, Inc. Ravelin IDP";
|
||||
compatible = "qcom,ravelin-idp", "qcom,ravelin", "qcom,idp";
|
||||
qcom,msm-id = <568 0x10000>, <602 0x10000>;
|
||||
qcom,board-id = <34 0>;
|
||||
};
|
66
qcom/opensource/nfc-devicetree/nxp/ravelin-nfc-pinctrl.dtsi
Normal file
66
qcom/opensource/nfc-devicetree/nxp/ravelin-nfc-pinctrl.dtsi
Normal file
@@ -0,0 +1,66 @@
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
/*
|
||||
* Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
&tlmm {
|
||||
nfc {
|
||||
nfc_int_active: nfc_int_active {
|
||||
/* active state */
|
||||
mux {
|
||||
/* NFC Read Interrupt */
|
||||
pins = "gpio9";
|
||||
function = "gpio";
|
||||
};
|
||||
|
||||
config {
|
||||
pins = "gpio9";
|
||||
drive-strength = <2>; /* 2 MA */
|
||||
bias-pull-down;
|
||||
};
|
||||
};
|
||||
|
||||
nfc_int_suspend: nfc_int_suspend {
|
||||
/* sleep state */
|
||||
mux {
|
||||
/* NFC Read Interrupt */
|
||||
pins = "gpio9";
|
||||
function = "gpio";
|
||||
};
|
||||
|
||||
config {
|
||||
pins = "gpio9";
|
||||
drive-strength = <2>; /* 2 MA */
|
||||
bias-pull-down;
|
||||
};
|
||||
};
|
||||
|
||||
nfc_enable_active: nfc_enable_active {
|
||||
mux {
|
||||
/* Enable, Firmware and Clock request gpios */
|
||||
pins = "gpio6","gpio8", "gpio7";
|
||||
function = "gpio";
|
||||
};
|
||||
|
||||
config {
|
||||
pins = "gpio6", "gpio8", "gpio7";
|
||||
drive-strength = <2>; /* 2 MA */
|
||||
bias-disable;
|
||||
};
|
||||
};
|
||||
|
||||
nfc_enable_suspend: nfc_enable_suspend {
|
||||
mux {
|
||||
pins = "gpio6", "gpio8", "gpio7";
|
||||
function = "gpio";
|
||||
};
|
||||
|
||||
config {
|
||||
pins = "gpio6", "gpio8", "gpio7";
|
||||
drive-strength = <2>; /* 2 MA */
|
||||
bias-disable;
|
||||
};
|
||||
};
|
||||
}; //nfc
|
||||
}; //tlmm
|
17
qcom/opensource/nfc-devicetree/nxp/ravelin-nfc-qrd.dts
Normal file
17
qcom/opensource/nfc-devicetree/nxp/ravelin-nfc-qrd.dts
Normal file
@@ -0,0 +1,17 @@
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
/*
|
||||
* Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
#include "ravelin-nfc-common.dtsi"
|
||||
|
||||
/ {
|
||||
model = "Qualcomm Technologies, Inc. Ravelin QRD";
|
||||
compatible = "qcom,ravelin-qrd", "qcom,ravelin", "qcom,qrd";
|
||||
qcom,msm-id = <568 0x10000>, <602 0x10000>;
|
||||
qcom,board-id = <0x1000B 0>;
|
||||
};
|
17
qcom/opensource/nfc-devicetree/nxp/ravelin-nfc.dts
Normal file
17
qcom/opensource/nfc-devicetree/nxp/ravelin-nfc.dts
Normal file
@@ -0,0 +1,17 @@
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
/*
|
||||
* Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
#include "ravelin-nfc-pinctrl.dtsi"
|
||||
/ {
|
||||
model = "Qualcomm Technologies, Inc. Ravelin SoC";
|
||||
compatible = "qcom,ravelin";
|
||||
qcom,msm-id = <568 0x10000>, <602 0x10000>, <581 0x10000>, <582 0x10000>, <653 0x10000>,
|
||||
<654 0x10000>, <663 0x10000>;
|
||||
qcom,board-id = <0 0>;
|
||||
};
|
19
qcom/opensource/nfc-devicetree/nxp/sun-nfc-cdp.dts
Normal file
19
qcom/opensource/nfc-devicetree/nxp/sun-nfc-cdp.dts
Normal file
@@ -0,0 +1,19 @@
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
/*
|
||||
* Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
#include "sun-nfc-common.dtsi"
|
||||
|
||||
/ {
|
||||
model = "Qualcomm Technologies, Inc. Sun CDP";
|
||||
compatible = "qcom,sun-cdp", "qcom,sun", "qcom,sunp-cdp", "qcom,sunp", "qcom,cdp";
|
||||
qcom,msm-id = <618 0x10000>, <618 0x20000>, <639 0x10000>, <639 0x20000>,
|
||||
<0x100026a 0x10000>, <0x100026a 0x20000>,
|
||||
<0x100027f 0x10000>, <0x100027f 0x20000>;
|
||||
qcom,board-id = <0x40001 0>;
|
||||
};
|
27
qcom/opensource/nfc-devicetree/nxp/sun-nfc-common.dtsi
Normal file
27
qcom/opensource/nfc-devicetree/nxp/sun-nfc-common.dtsi
Normal file
@@ -0,0 +1,27 @@
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
/*
|
||||
* Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
&qupv3_se0_i2c {
|
||||
/*status = "ok";*/
|
||||
/*qcom,clk-freq-out = <1000000>;*/
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
nq@28 {
|
||||
status = "disabled";
|
||||
compatible = "qcom,sn-nci";
|
||||
reg = <0x28>;
|
||||
qcom,sn-irq = <&tlmm 75 0x00>;
|
||||
qcom,sn-ven = <&tlmm 34 0x00>;
|
||||
qcom,sn-clkreq = <&tlmm 35 0x00>;
|
||||
qcom,sn-szone = "enable";
|
||||
interrupt-parent = <&tlmm>;
|
||||
interrupts = <75 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>;
|
||||
};
|
||||
};
|
19
qcom/opensource/nfc-devicetree/nxp/sun-nfc-mtp.dts
Normal file
19
qcom/opensource/nfc-devicetree/nxp/sun-nfc-mtp.dts
Normal file
@@ -0,0 +1,19 @@
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
/*
|
||||
* Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
#include "sun-nfc-common.dtsi"
|
||||
|
||||
/ {
|
||||
model = "Qualcomm Technologies, Inc. Sun MTP";
|
||||
compatible = "qcom,sun-mtp", "qcom,sun", "qcom,sunp-mtp", "qcom,sunp", "qcom,mtp";
|
||||
qcom,msm-id = <618 0x10000>, <618 0x20000>, <639 0x10000>, <639 0x20000>,
|
||||
<0x100026a 0x10000>, <0x100026a 0x20000>,
|
||||
<0x100027f 0x10000>, <0x100027f 0x20000>;
|
||||
qcom,board-id = <0x30008 0>;
|
||||
};
|
66
qcom/opensource/nfc-devicetree/nxp/sun-nfc-pinctrl.dtsi
Normal file
66
qcom/opensource/nfc-devicetree/nxp/sun-nfc-pinctrl.dtsi
Normal file
@@ -0,0 +1,66 @@
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
/*
|
||||
* Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
&tlmm {
|
||||
nfc {
|
||||
nfc_int_active: nfc_int_active {
|
||||
/* active state */
|
||||
mux {
|
||||
/* NFC Read Interrupt */
|
||||
pins = "gpio75";
|
||||
function = "gpio";
|
||||
};
|
||||
|
||||
config {
|
||||
pins = "gpio75";
|
||||
drive-strength = <2>; /* 2 MA */
|
||||
bias-pull-down;
|
||||
};
|
||||
};
|
||||
|
||||
nfc_int_suspend: nfc_int_suspend {
|
||||
/* sleep state */
|
||||
mux {
|
||||
/* NFC Read Interrupt */
|
||||
pins = "gpio75";
|
||||
function = "gpio";
|
||||
};
|
||||
|
||||
config {
|
||||
pins = "gpio75";
|
||||
drive-strength = <2>; /* 2 MA */
|
||||
bias-pull-down;
|
||||
};
|
||||
};
|
||||
|
||||
nfc_enable_active: nfc_enable_active {
|
||||
mux {
|
||||
/* Enable, and Clock request gpios */
|
||||
pins = "gpio34", "gpio35";
|
||||
function = "gpio";
|
||||
};
|
||||
|
||||
config {
|
||||
pins = "gpio34", "gpio35";
|
||||
drive-strength = <2>; /* 2 MA */
|
||||
bias-disable;
|
||||
};
|
||||
};
|
||||
|
||||
nfc_enable_suspend: nfc_enable_suspend {
|
||||
mux {
|
||||
pins = "gpio34", "gpio35";
|
||||
function = "gpio";
|
||||
};
|
||||
|
||||
config {
|
||||
pins = "gpio34", "gpio35";
|
||||
drive-strength = <2>; /* 2 MA */
|
||||
bias-disable;
|
||||
};
|
||||
};
|
||||
}; //nfc
|
||||
}; //tlmm
|
16
qcom/opensource/nfc-devicetree/nxp/sun-nfc.dts
Normal file
16
qcom/opensource/nfc-devicetree/nxp/sun-nfc.dts
Normal file
@@ -0,0 +1,16 @@
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
/*
|
||||
* Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
#include "sun-nfc-pinctrl.dtsi"
|
||||
/ {
|
||||
model = "Qualcomm Technologies, Inc. Sun SoC";
|
||||
compatible = "qcom,sun";
|
||||
qcom,msm-id = <618 0x10000>, <618 0x20000>, <639 0x10000>, <639 0x20000>;
|
||||
qcom,board-id = <0 0>;
|
||||
};
|
18
qcom/opensource/nfc-devicetree/st/sun-mtp-kiwi-v8.dts
Normal file
18
qcom/opensource/nfc-devicetree/st/sun-mtp-kiwi-v8.dts
Normal file
@@ -0,0 +1,18 @@
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
/*
|
||||
* Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
#include "sun-nfc-common.dtsi"
|
||||
|
||||
/ {
|
||||
model = "Qualcomm Technologies, Inc. Sun MTP Kiwi WLAN V8 Power Grid";
|
||||
compatible = "qcom,sun-mtp", "qcom,sun", "qcom,sunp-mtp", "qcom,sunp",
|
||||
"qcom,mtp";
|
||||
qcom,msm-id = <618 0x10000>, <618 0x20000>, <639 0x10000>, <639 0x20000>;
|
||||
qcom,board-id = <0x50008 0>;
|
||||
};
|
||||
|
18
qcom/opensource/nfc-devicetree/st/sun-nfc-atp.dts
Normal file
18
qcom/opensource/nfc-devicetree/st/sun-nfc-atp.dts
Normal file
@@ -0,0 +1,18 @@
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
/*
|
||||
* Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
#include "sun-nfc-common.dtsi"
|
||||
/ {
|
||||
model = "Qualcomm Technologies, Inc. Sun ATP";
|
||||
compatible = "qcom,sun-atp", "qcom,sun", "qcom,sunp-atp", "qcom,sunp",
|
||||
"qcom,atp";
|
||||
qcom,msm-id = <618 0x10000>, <618 0x20000>,
|
||||
<0x100026a 0x10000>, <0x100026a 0x20000>;
|
||||
qcom,board-id = <0x10021 0>;
|
||||
};
|
18
qcom/opensource/nfc-devicetree/st/sun-nfc-cdp.dts
Normal file
18
qcom/opensource/nfc-devicetree/st/sun-nfc-cdp.dts
Normal file
@@ -0,0 +1,18 @@
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
/*
|
||||
* Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
#include "sun-nfc-common.dtsi"
|
||||
/ {
|
||||
model = "Qualcomm Technologies, Inc. Sun CDP";
|
||||
compatible = "qcom, sun-cdp", "qcom,sun", "qcom,cdp";
|
||||
qcom,msm-id = <618 0x10000>, <618 0x20000>, <639 0x10000>, <639 0x20000>,
|
||||
<0x100026a 0x10000>, <0x100026a 0x20000>,
|
||||
<0x100027f 0x10000>, <0x100027f 0x20000>;
|
||||
qcom,board-id = <0x1 0>, <0x20001 0>, <0x50001 0>;
|
||||
};
|
27
qcom/opensource/nfc-devicetree/st/sun-nfc-common.dtsi
Normal file
27
qcom/opensource/nfc-devicetree/st/sun-nfc-common.dtsi
Normal file
@@ -0,0 +1,27 @@
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
/*
|
||||
* Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
|
||||
&qupv3_se0_i2c {
|
||||
/*status = "ok";*/
|
||||
/*qcom,clk-freq-out = <1000000>;*/
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
st21nfc: st21nfc@08 {
|
||||
status = "disabled";
|
||||
compatible = "st,st21nfc";
|
||||
reg = <0x08>;
|
||||
irq-gpios = <&tlmm 75 0x00>;
|
||||
reset-gpios = <&tlmm 34 0x00>;
|
||||
clkreq-gpios = <&tlmm 35 0x00>;
|
||||
interrupt-parent = <&tlmm>;
|
||||
interrupts = <75 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>;
|
||||
};
|
||||
};
|
18
qcom/opensource/nfc-devicetree/st/sun-nfc-mtp.dts
Normal file
18
qcom/opensource/nfc-devicetree/st/sun-nfc-mtp.dts
Normal file
@@ -0,0 +1,18 @@
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
/*
|
||||
* Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
#include "sun-nfc-common.dtsi"
|
||||
/ {
|
||||
model = "Qualcomm Technologies, Inc. Sun MTP";
|
||||
compatible = "qcom, sun-mtp", "qcom,sun", "qcom,mtp";
|
||||
qcom,msm-id = <618 0x10000>, <618 0x20000>, <639 0x10000>, <639 0x20000>,
|
||||
<0x100026a 0x10000>, <0x100026a 0x20000>,
|
||||
<0x100027f 0x10000>, <0x100027f 0x20000>;
|
||||
qcom,board-id = <0x8 0>, <0x20008 0>, <0x40008 0>, <0x50008 0>;
|
||||
};
|
66
qcom/opensource/nfc-devicetree/st/sun-nfc-pinctrl.dtsi
Normal file
66
qcom/opensource/nfc-devicetree/st/sun-nfc-pinctrl.dtsi
Normal file
@@ -0,0 +1,66 @@
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
/*
|
||||
* Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
&tlmm {
|
||||
nfc {
|
||||
nfc_int_active: nfc_int_active {
|
||||
/* active state */
|
||||
mux {
|
||||
/* NFC Read Interrupt */
|
||||
pins = "gpio75";
|
||||
function = "gpio";
|
||||
};
|
||||
|
||||
config {
|
||||
pins = "gpio75";
|
||||
drive-strength = <2>; /* 2 MA */
|
||||
bias-pull-down;
|
||||
};
|
||||
};
|
||||
|
||||
nfc_int_suspend: nfc_int_suspend {
|
||||
/* sleep state */
|
||||
mux {
|
||||
/* NFC Read Interrupt */
|
||||
pins = "gpio75";
|
||||
function = "gpio";
|
||||
};
|
||||
|
||||
config {
|
||||
pins = "gpio75";
|
||||
drive-strength = <2>; /* 2 MA */
|
||||
bias-pull-down;
|
||||
};
|
||||
};
|
||||
|
||||
nfc_enable_active: nfc_enable_active {
|
||||
mux {
|
||||
/* Enable and Clock request gpios */
|
||||
pins = "gpio34", "gpio35";
|
||||
function = "gpio";
|
||||
};
|
||||
|
||||
config {
|
||||
pins = "gpio34", "gpio35";
|
||||
drive-strength = <2>; /* 2 MA */
|
||||
bias-disable;
|
||||
};
|
||||
};
|
||||
|
||||
nfc_enable_suspend: nfc_enable_suspend {
|
||||
mux {
|
||||
pins = "gpio34", "gpio35";
|
||||
function = "gpio";
|
||||
};
|
||||
|
||||
config {
|
||||
pins = "gpio34", "gpio35";
|
||||
drive-strength = <2>; /* 2 MA */
|
||||
bias-disable;
|
||||
};
|
||||
};
|
||||
}; //nfc
|
||||
}; //tlmm
|
17
qcom/opensource/nfc-devicetree/st/sun-nfc-qrd-sku1-v8.dts
Normal file
17
qcom/opensource/nfc-devicetree/st/sun-nfc-qrd-sku1-v8.dts
Normal file
@@ -0,0 +1,17 @@
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
/*
|
||||
* Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
#include "sun-nfc-common.dtsi"
|
||||
/ {
|
||||
model = "Qualcomm Technologies, Inc. Sun QRD SKU1 V8 Power Grid";
|
||||
compatible = "qcom,sun-qrd", "qcom,sun", "qcom,sunp-qrd", "qcom,sunp","qcom,qrd";
|
||||
qcom,msm-id = <618 0x10000>, <618 0x20000>, <639 0x10000>, <639 0x20000>,
|
||||
<0x100026a 0x10000>, <0x100026a 0x20000>;
|
||||
qcom,board-id = <0x3000B 0>;
|
||||
};
|
17
qcom/opensource/nfc-devicetree/st/sun-nfc-qrd-sku1.dts
Normal file
17
qcom/opensource/nfc-devicetree/st/sun-nfc-qrd-sku1.dts
Normal file
@@ -0,0 +1,17 @@
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
/*
|
||||
* Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
#include "sun-nfc-common.dtsi"
|
||||
/ {
|
||||
model = "Qualcomm Technologies, Inc. Sun QRD SKU1";
|
||||
compatible = "qcom,sun-qrd", "qcom,sun", "qcom,sunp-qrd", "qcom,sunp", "qcom,qrd";
|
||||
qcom,msm-id = <618 0x10000>, <618 0x20000>, <639 0x10000>, <639 0x20000>,
|
||||
<0x100026a 0x10000>, <0x100026a 0x20000>;
|
||||
qcom,board-id = <0x1000B 0>;
|
||||
};
|
18
qcom/opensource/nfc-devicetree/st/sun-nfc-qrd-sku2-v8.dts
Normal file
18
qcom/opensource/nfc-devicetree/st/sun-nfc-qrd-sku2-v8.dts
Normal file
@@ -0,0 +1,18 @@
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
/*
|
||||
* Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
#include "sun-nfc-common.dtsi"
|
||||
/ {
|
||||
model = "Qualcomm Technologies, Inc. Sun QRD SKU2 V8 Power Grid";
|
||||
compatible = "qcom,sun-qrd", "qcom,sun", "qcom,sunp-qrd", "qcom,sunp","qcom,qrd";
|
||||
qcom,msm-id = <618 0x10000>, <618 0x20000>, <639 0x10000>, <639 0x20000>,
|
||||
<0x100026a 0x10000>, <0x100026a 0x20000>,
|
||||
<0x100027f 0x10000>, <0x100027f 0x20000>;
|
||||
qcom,board-id = <0x2000B 0>;
|
||||
};
|
17
qcom/opensource/nfc-devicetree/st/sun-nfc-rcm.dts
Normal file
17
qcom/opensource/nfc-devicetree/st/sun-nfc-rcm.dts
Normal file
@@ -0,0 +1,17 @@
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
/*
|
||||
* Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
#include "sun-nfc-common.dtsi"
|
||||
/ {
|
||||
model = "Qualcomm Technologies, Inc. Sun RCM";
|
||||
compatible = "qcom,sun-rcm", "qcom,sun", "qcom,sunp", "qcom,rcm";
|
||||
qcom,msm-id = <618 0x10000>, <618 0x20000>,
|
||||
<0x100026a 0x10000>, <0x100026a 0x20000>;
|
||||
qcom,board-id = <0x15 0>;
|
||||
};
|
18
qcom/opensource/nfc-devicetree/st/sun-nfc.dts
Normal file
18
qcom/opensource/nfc-devicetree/st/sun-nfc.dts
Normal file
@@ -0,0 +1,18 @@
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
/*
|
||||
* Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
#include "sun-nfc-pinctrl.dtsi"
|
||||
/ {
|
||||
model = "Qualcomm Technologies, Inc. Sun";
|
||||
compatible = "qcom,sun";
|
||||
qcom,msm-id = <618 0x10000>, <618 0x20000>, <639 0x10000>, <639 0x20000>,
|
||||
<0x100026a 0x10000>, <0x100026a 0x20000>,
|
||||
<0x100027f 0x10000>, <0x100027f 0x20000>;
|
||||
qcom,board-id = <0 0>;
|
||||
};
|
Reference in New Issue
Block a user