From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 28B8DC10F1D for ; Tue, 13 Dec 2022 14:06:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235837AbiLMOGV (ORCPT ); Tue, 13 Dec 2022 09:06:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235808AbiLMOF7 (ORCPT ); Tue, 13 Dec 2022 09:05:59 -0500 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A33C6205FA for ; Tue, 13 Dec 2022 06:05:56 -0800 (PST) Received: by mail-lf1-x133.google.com with SMTP id bp15so5017513lfb.13 for ; Tue, 13 Dec 2022 06:05:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=n7BqOo+kSVPojQOVkzbf9L5JFXaDuXdJjEL2ta9kBZk=; b=ipcLqkcCSJBmYMcjWYAK8N7S4kv1xzpURdexxEDp8GEA3roaRmw0q7SFBciihXd/l3 3r+BnPdP8QlkJDjP3glXn26OL3FDTB1Hs0pR6CpcfIAH8QR2dtkK4sJs0phs4zzqnHuc 8Vrv8esCATPjkZgdBLXr8Mo3hmY1E7jMYX5+dHqWlnADTHGIVmcPNfQPEZG3baQzqC/A tetYPXB1KJQNZqLuM/mRfdu7WkxVrQ/RxgddZdtUULtYt29aQd1SCueOJ1SiyQFyw39Q TTIhsu+dK/1j0QsXEf68bhgKSb1MnRnkCypiRuoJqf4hc5IMSzVwReeuaG66SUfZvNf2 cGsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=n7BqOo+kSVPojQOVkzbf9L5JFXaDuXdJjEL2ta9kBZk=; b=Sg5WZnXEo/m/i1zA8m2nFlDdC8WSJdwDD3wvNN6xPA3K6zE3LXC12dr9VjtzrVybtF 5Y+36nCZgCQf9GI1w5k8M7VjZew2LDDe8Qt+jEEpEtocVpMvnRQ/iDY3TGSzp5L9QnyV OSpizDNfvqd9m+JyagbihnhK0SUvW++QCVCksslXNI6lRzNBQeYwon7AYEEwfya+wklF 7N9FbSSv1vlFLNh9aInPyBbSQgmh4LVHNHE927PD+RbJhRIxct63mDcPfgHmZXaV2YCr OHQ8hltmrQI+dFHPdGgUVt/YmDgUQD0qUDnTd5C9NR9LkNXZmQWf2PflzPKhEKqlAiOT OERg== X-Gm-Message-State: ANoB5pnKXmo934XX3vh1rfOodXUSHCFQocI3iZs4rL8L+rn+aKyeVgbX 7C2xmWIx9dOBdt4gQ8MWbxaBqA== X-Google-Smtp-Source: AA0mqf7Xn1MU+m77o/IGeVd3CC1B0v4t8tqlCYVBFgxIcspAoPClDDqZKKcrYEERk/eC9teZbMP6ag== X-Received: by 2002:a05:6512:32b7:b0:4b5:82f1:7f3d with SMTP id q23-20020a05651232b700b004b582f17f3dmr7803471lfe.58.1670940354892; Tue, 13 Dec 2022 06:05:54 -0800 (PST) Received: from [192.168.1.101] (abxh44.neoplus.adsl.tpnet.pl. [83.9.1.44]) by smtp.gmail.com with ESMTPSA id d28-20020a194f1c000000b00498fbec3f8asm384059lfb.129.2022.12.13.06.05.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 13 Dec 2022 06:05:54 -0800 (PST) Message-ID: Date: Tue, 13 Dec 2022 15:05:52 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.1 Subject: Re: [PATCH v10 2/4] dt-bindings: usb: Add Qualcomm PMIC type C controller dt-binding Content-Language: en-US To: Wesley Cheng , sboyd@kernel.org, heikki.krogerus@linux.intel.com, agross@kernel.org, robh+dt@kernel.org, gregkh@linuxfoundation.org, bjorn.andersson@linaro.org Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, jackp@codeaurora.org, sergei.shtylyov@gmail.com References: <20201008235934.8931-1-wcheng@codeaurora.org> <20201008235934.8931-3-wcheng@codeaurora.org> From: Konrad Dybcio In-Reply-To: <20201008235934.8931-3-wcheng@codeaurora.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org On 9.10.2020 01:59, Wesley Cheng wrote: > Introduce the dt-binding for enabling USB type C orientation and role > detection using the PM8150B. The driver will be responsible for receiving > the interrupt at a state change on the CC lines, reading the > orientation/role, and communicating this information to the remote > clients, which can include a role switch node and a type C switch. > > Signed-off-by: Wesley Cheng > --- Hi all, sorry for playing archeology, but it looks like the driver was merged 2 years ago and this binding has been omitted.. Konrad > .../bindings/usb/qcom,pmic-typec.yaml | 115 ++++++++++++++++++ > 1 file changed, 115 insertions(+) > create mode 100644 Documentation/devicetree/bindings/usb/qcom,pmic-typec.yaml > > diff --git a/Documentation/devicetree/bindings/usb/qcom,pmic-typec.yaml b/Documentation/devicetree/bindings/usb/qcom,pmic-typec.yaml > new file mode 100644 > index 000000000000..40e0a296f922 > --- /dev/null > +++ b/Documentation/devicetree/bindings/usb/qcom,pmic-typec.yaml > @@ -0,0 +1,115 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: "http://devicetree.org/schemas/usb/qcom,pmic-typec.yaml#" > +$schema: "http://devicetree.org/meta-schemas/core.yaml#" > + > +title: Qualcomm PMIC based USB type C Detection Driver > + > +maintainers: > + - Wesley Cheng > + > +description: | > + Qualcomm PMIC Type C Detect > + > +properties: > + compatible: > + enum: > + - qcom,pm8150b-usb-typec > + > + reg: > + maxItems: 1 > + description: Type C base address > + > + interrupts: > + maxItems: 1 > + description: CC change interrupt from PMIC > + > + port: > + description: Remote endpoint connection to the DRD switch > + type: object > + > + properties: > + endpoint: > + description: Connection to the DRD switch being used > + type: object > + > + connector: > + $ref: /connector/usb-connector.yaml# > + description: Connector type for remote endpoints > + type: object > + > + properties: > + compatible: > + enum: > + - usb-c-connector > + > + power-role: true > + data-role: true > + > + ports: > + description: Remote endpoint connections for type C paths > + type: object > + > + properties: > + port@1: > + description: Remote endpoints for the Super Speed path > + type: object > + > + properties: > + endpoint: > + description: Connection to USB type C mux node > + type: object > + > + required: > + - compatible > + > +required: > + - compatible > + - reg > + - interrupts > + - connector > + - port > + > +additionalProperties: false > + > +examples: > + - | > + #include > + pm8150b { > + #address-cells = <1>; > + #size-cells = <0>; > + pm8150b_typec: usb-typec@1500 { > + compatible = "qcom,pm8150b-usb-typec"; > + reg = <0x1500>; > + interrupts = <0x2 0x15 0x5 IRQ_TYPE_EDGE_RISING>; > + > + port { > + usb3_role: endpoint { > + remote-endpoint = <&dwc3_drd_switch>; > + }; > + }; > + > + connector { > + compatible = "usb-c-connector"; > + power-role = "dual"; > + data-role = "dual"; > + ports { > + #address-cells = <1>; > + #size-cells = <0>; > + port@0 { > + reg = <0>; > + }; > + port@1 { > + reg = <1>; > + #address-cells = <1>; > + #size-cells = <0>; > + usb3_data_ss: endpoint { > + remote-endpoint = <&qmp_ss_mux>; > + }; > + }; > + }; > + }; > + }; > + }; > +...