diff mbox series

[v3,1/7] dt-bindings: usb: Add qcom,pmic-usb-typec dt-binding header

Message ID 20211105033558.1573552-2-bryan.odonoghue@linaro.org (mailing list archive)
State Not Applicable
Headers show
Series Add pm8150b TPCM driver | expand

Commit Message

Bryan O'Donoghue Nov. 5, 2021, 3:35 a.m. UTC
Adds a series of defines which are used in the DTS and type-c driver for
identifying interrupts.

Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
---
 .../usb/typec/tcpm/qcom,pmic-usb-typec.h       | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 include/dt-bindings/usb/typec/tcpm/qcom,pmic-usb-typec.h

Comments

Rob Herring (Arm) Nov. 12, 2021, 10:28 p.m. UTC | #1
On Fri, Nov 05, 2021 at 03:35:52AM +0000, Bryan O'Donoghue wrote:
> Adds a series of defines which are used in the DTS and type-c driver for
> identifying interrupts.
> 
> Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
> ---
>  .../usb/typec/tcpm/qcom,pmic-usb-typec.h       | 18 ++++++++++++++++++
>  1 file changed, 18 insertions(+)
>  create mode 100644 include/dt-bindings/usb/typec/tcpm/qcom,pmic-usb-typec.h
> 
> diff --git a/include/dt-bindings/usb/typec/tcpm/qcom,pmic-usb-typec.h b/include/dt-bindings/usb/typec/tcpm/qcom,pmic-usb-typec.h
> new file mode 100644
> index 0000000000000..263c999b59b8d
> --- /dev/null
> +++ b/include/dt-bindings/usb/typec/tcpm/qcom,pmic-usb-typec.h
> @@ -0,0 +1,18 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */

Did you check with QCom on this license choice for DT files?

> +/*
> + * Copyright (c) 2021, The Linux Foundation. All rights reserved.
> + */
> +
> +#ifndef _DT_BINDINGS_TCPM_QCOM_PMIC_USB_TYPEC_H
> +#define _DT_BINDINGS_TCPM_QCOM_PMIC_USB_TYPEC_H
> +
> +#define PMIC_TYPEC_OR_RID_IRQ		0x0
> +#define PMIC_TYPEC_VPD_IRQ		0x1
> +#define PMIC_TYPEC_CC_STATE_IRQ		0x2
> +#define PMIC_TYPEC_VCONN_OC_IRQ		0x3
> +#define PMIC_TYPEC_VBUS_IRQ		0x4
> +#define PMIC_TYPEC_ATTACH_DETACH_IRQ	0x5
> +#define PMIC_TYPEC_LEGACY_CABLE_IRQ	0x6
> +#define PMIC_TYPEC_TRY_SNK_SRC_IRQ	0x7
> +
> +#endif
> -- 
> 2.33.0
> 
>
Bryan O'Donoghue Nov. 12, 2021, 11:03 p.m. UTC | #2
On 12/11/2021 22:28, Rob Herring wrote:
>> @@
>> +/* SPDX-License-Identifier: GPL-2.0-only */
> Did you check with QCom on this license choice for DT files?
> 

Hmm to be fair I'm not sure this matches the original header downstream, 
I will check again.

---
bod
diff mbox series

Patch

diff --git a/include/dt-bindings/usb/typec/tcpm/qcom,pmic-usb-typec.h b/include/dt-bindings/usb/typec/tcpm/qcom,pmic-usb-typec.h
new file mode 100644
index 0000000000000..263c999b59b8d
--- /dev/null
+++ b/include/dt-bindings/usb/typec/tcpm/qcom,pmic-usb-typec.h
@@ -0,0 +1,18 @@ 
+/* SPDX-License-Identifier: GPL-2.0-only */
+/*
+ * Copyright (c) 2021, The Linux Foundation. All rights reserved.
+ */
+
+#ifndef _DT_BINDINGS_TCPM_QCOM_PMIC_USB_TYPEC_H
+#define _DT_BINDINGS_TCPM_QCOM_PMIC_USB_TYPEC_H
+
+#define PMIC_TYPEC_OR_RID_IRQ		0x0
+#define PMIC_TYPEC_VPD_IRQ		0x1
+#define PMIC_TYPEC_CC_STATE_IRQ		0x2
+#define PMIC_TYPEC_VCONN_OC_IRQ		0x3
+#define PMIC_TYPEC_VBUS_IRQ		0x4
+#define PMIC_TYPEC_ATTACH_DETACH_IRQ	0x5
+#define PMIC_TYPEC_LEGACY_CABLE_IRQ	0x6
+#define PMIC_TYPEC_TRY_SNK_SRC_IRQ	0x7
+
+#endif