new file mode 100644
@@ -0,0 +1,65 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/usb/sprd,pmic-typec.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Unisoc SC27xx Type-C port controller
+
+maintainers:
+ - Xinhu Wu <xinhu.wu@unisoc.com>
+
+description:
+ Supports the typec found on these PMICs.
+
+properties:
+ compatible:
+ enum:
+ - sprd,sc2730-typec
+
+ reg:
+ maxItems: 1
+
+ interrupts:
+ maxItems: 1
+
+ sprd,mode:
+ maxItems: 1
+ description: the number indicates src, snk or drp.
+ enum: [0, 1, 2]
+
+ nvmem-cells:
+ maxItems: 2
+ description:
+ A phandle to the 'cc resistance' trim data provided by
+ a nvmem device.
+
+ nvmem-cell-names:
+ items:
+ - const: typec_cc1_cal
+ - const: typec_cc2_cal
+
+required:
+ - compatible
+ - reg
+ - interrupts
+ - sprd,mode
+ - nvmem-cells
+ - nvmem-cell-names
+
+examples:
+ - |
+ #include <dt-bindings/interrupt-controller/irq.h>
+ pmic {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ pmic_typec: typec@380 {
+ compatible = "sprd,sc2730-typec";
+ reg = <0x380>;
+ interrupt-parent = <&sc2730_pmic>;
+ interrupts = <8>;
+ sprd,mode = <2>;
+ nvmem-cells = <&typec_cc1_cal>, <&typec_ccc2_cal>;
+ nvmem-cell-names = "typec_cc1_cal","typec_cc2_cal";
+ };
+ };
Add device tree binding Documentation details for Spreadtrum pmic typec driver Signed-off-by: Xinhu Wu <xinhu.wu@unisoc.com> --- .../bindings/usb/sprd,pmic_typec.yaml | 65 +++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/sprd,pmic_typec.yaml