Commit 7c5798ab authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Rob Herring
Browse files

dt-bindings: connector: Convert Samsung 11-pin USB bindings to dtschema



Add Samsung 11-pin USB-C connector into standard dtschema bindings file.

Signed-off-by: default avatarKrzysztof Kozlowski <krzk@kernel.org>
Link: https://lore.kernel.org/r/20200829142501.31478-5-krzk@kernel.org


Signed-off-by: default avatarRob Herring <robh@kernel.org>
parent d8db9dc3
Loading
Loading
Loading
Loading
+0 −49
Original line number Diff line number Diff line
Samsung micro-USB 11-pin connector
==================================

Samsung micro-USB 11-pin connector is an extension of micro-USB connector.
It is present in multiple Samsung mobile devices.
It has additional pins to route MHL traffic simultanously with USB.

The bindings are superset of usb-connector bindings for micro-USB connector[1].

Required properties:
- compatible: must be: "samsung,usb-connector-11pin", "usb-b-connector",
- type: must be "micro".

Required nodes:
- any data bus to the connector should be modeled using the OF graph bindings
  specified in bindings/graph.txt, unless the bus is between parent node and
  the connector. Since single connector can have multpile data buses every bus
  has assigned OF graph port number as follows:
    0: High Speed (HS),
    3: Mobile High-Definition Link (MHL), specific to 11-pin Samsung micro-USB.

[1]: bindings/connector/usb-connector.yaml

Example
-------

Micro-USB connector with HS lines routed via controller (MUIC) and MHL lines
connected to HDMI-MHL bridge (sii8620):

muic-max77843@66 {
	...
	usb_con: connector {
		compatible = "samsung,usb-connector-11pin", "usb-b-connector";
		label = "micro-USB";
		type = "micro";

		ports {
			#address-cells = <1>;
			#size-cells = <0>;

			port@3 {
				reg = <3>;
				usb_con_mhl: endpoint {
					remote-endpoint = <&sii8620_mhl>;
				};
			};
		};
	};
};
+44 −0
Original line number Diff line number Diff line
@@ -25,6 +25,10 @@ properties:
          - const: gpio-usb-b-connector
          - const: usb-b-connector

      - items:
          - const: samsung,usb-connector-11pin
          - const: usb-b-connector

  label:
    description: Symbolic name for the connector.

@@ -158,6 +162,16 @@ allOf:
        - required:
            - id-gpios

  - if:
      properties:
        compatible:
          contains:
            const: samsung,usb-connector-11pin
    then:
      properties:
        type:
          const: micro

examples:
  # Micro-USB connector with HS lines routed via controller (MUIC).
  - |
@@ -233,3 +247,33 @@ examples:
        vbus-supply = <&usb_p0_vbus>;
      };
    };

  # Micro-USB connector with HS lines routed via controller (MUIC) and MHL
  # lines connected to HDMI-MHL bridge (sii8620) on Samsung Exynos5433-based
  # mobile phone
  - |
    muic-max77843 {
      usb_con4: connector {
        compatible = "samsung,usb-connector-11pin", "usb-b-connector";
        label = "micro-USB";
        type = "micro";

        ports {
          #address-cells = <1>;
          #size-cells = <0>;

          port@0 {
            reg = <0>;
            muic_to_usb: endpoint {
              remote-endpoint = <&usb_to_muic>;
            };
          };
          port@3 {
            reg = <3>;
            usb_con_mhl: endpoint {
              remote-endpoint = <&sii8620_mhl>;
            };
          };
        };
      };
    };