Qualcomm PMIC GLINK firmware interface for battery management, USB Type-C and other things.

Schema identifier ($id): "http://devicetree.org/schemas/soc/qcom/qcom,pmic-glink.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Bjorn Andersson <andersson@kernel.org>"

The PMIC GLINK service, running on a coprocessor on some modern Qualcomm platforms and implement USB Type-C handling and battery management. This binding describes the component in the OS used to communicate with the firmware and connect it's resources to those described in the Devicetree, particularly the USB Type-C controllers relationship with USB and DisplayPort components.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Allowed values (enum): "qcom,qcm6490-pmic-glink", "qcom,sc8180x-pmic-glink", "qcom,sc8280xp-pmic-glink", "qcom,sm8350-pmic-glink", "qcom,sm8450-pmic-glink", "qcom,sm8550-pmic-glink"

Item 2

Exact value (const): "qcom,pmic-glink"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "qcom,sm7325-pmic-glink"

Item 2

Exact value (const): "qcom,qcm6490-pmic-glink"

Item 3

Exact value (const): "qcom,pmic-glink"

Rule 3

Array item rules (items)

Item 1

Allowed values (enum): "qcom,milos-pmic-glink", "qcom,sm8650-pmic-glink", "qcom,sm8750-pmic-glink", "qcom,x1e80100-pmic-glink"

Item 2

Exact value (const): "qcom,sm8550-pmic-glink"

Item 3

Exact value (const): "qcom,pmic-glink"

#address-cells — not listed as required here #

Exact value (const): 1

#size-cells — not listed as required here #

Exact value (const): 0

orientation-gpios — not listed as required here #

Array of input gpios for the Type-C connector orientation indication. The GPIO indication is used to detect the orientation of the Type-C connector. The array should contain a gpio entry for each PMIC Glink connector, in reg order. It is defined that GPIO active level means "CC2" or Reversed/Flipped orientation.

nvmem-cells — not listed as required here #

Minimum number of items (minItems): 3

Maximum number of items (maxItems): 3

The nvmem cells contain the charge control settings, including the charge control enable status, the battery state of charge (SoC) threshold for stopping charging, and the battery SoC delta required to restart charging.

nvmem-cell-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "charge_limit_en"

Item 2

Exact value (const): "charge_limit_end"

Item 3

Exact value (const): "charge_limit_delta"

Properties matching a name pattern (patternProperties) #

^connector@\d$ — name matches this regular expression #

Shared schema rule ($ref): /schemas/connector/usb-connector.yaml#

Required in this object (required): "reg"

Required in this object (required): "compatible"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

pmic-glink {
    compatible = "qcom,sc8280xp-pmic-glink", "qcom,pmic-glink";

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

    connector@0 {
        compatible = "usb-c-connector";
        reg = <0>;
        power-role = "dual";
        data-role = "dual";

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

            port@0 {
                reg = <0>;
                endpoint {
                    remote-endpoint = <&usb_role>;
                };
            };

            port@1 {
                reg = <1>;
                endpoint {
                    remote-endpoint = <&ss_phy_out>;
                };
            };

            port@2 {
                reg = <2>;
                endpoint {
                    remote-endpoint = <&sbu_mux>;
                };
            };
        };
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Edit this page