From patchwork Mon May 8 14:22:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 13234596 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 E9D18C7EE37 for ; Mon, 8 May 2023 14:23:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234575AbjEHOXa (ORCPT ); Mon, 8 May 2023 10:23:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59406 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234560AbjEHOX3 (ORCPT ); Mon, 8 May 2023 10:23:29 -0400 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E60AA468B for ; Mon, 8 May 2023 07:23:24 -0700 (PDT) Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-3f415a90215so26703795e9.0 for ; Mon, 08 May 2023 07:23:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683555803; x=1686147803; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=6omFeCMKQQj09/ceCLTqpP2YWnzqMpAujAZuytfA25g=; b=WK+4x1du+EC0kKmIMlbzuqct0pE/0Cko9zQNslmdC1PkWznBLsyekEUc59uHehlgT7 TV7EME148ZTglVq1oDdbQOsugEBWIPJ9TDf9IOLB9cT6BrEtjL/Wk6+QmMQaO4rbOsHE hIm6UycPld+H7fLDQ1RgcWDWYPoZBQ8pqrd0AZJw8/NXltyreAcFM0VWqEpvHmhKR+3H clPSEVs8OSv5UAyQQ0Nwgrzrkublz5a69VA2cOPpmTJpS2qKxQhpUjYlsypfdPuRX7/o 59qKLWpPCa6Y8yzrK+L4h+soyig9/bHhKSnQMvKgm1dwPVOFe/xCTAMJ1TfbhyyhV8GF ZhGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683555803; x=1686147803; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=6omFeCMKQQj09/ceCLTqpP2YWnzqMpAujAZuytfA25g=; b=h5nznDEHv7lf+9algLzfGMnzWSbCvHJtBBtlKutzOgaa+CyDNG+yMg3Y8HjYBqqL0g SOSfYmspG2lCyfn0LJ2Qen4FNg9j42PQcUFO+d32uG/qecM5Ed7lIYguF7GP5Nwe/wK+ PRZtfSvLwXlAG15qzQXyTy2hBVIjzK5s4nTkEBBmzNRAhV6TRjZMDXvPwHNqKojBXwkL xA0cILiWAkDmmzyccAcu34mfCRylC9ZA9YttAuEoaTmL1Ax5EvOzveU1OmSVevwRNVT3 +NU7dQ+DgTAsCKsdu7mGyYDrhRcu4xL4q9G2ZPH9e+bzatoz5vEn+YYSE+r7dxvGxkhK qNtA== X-Gm-Message-State: AC+VfDw80JOTMt0HVZPjl0IVfoB3BT8u5GM0GtNT8tioS3xQFkUILlkQ XXPMpvHJrmZvOx6HtSQsAlloKg== X-Google-Smtp-Source: ACHHUZ669I3J8BxvCD34EU7zYHtD35zO6U6nKxZAB1HtQo0VhKGbXrcH05zACMG5zDRvfdgD1hDGLg== X-Received: by 2002:a7b:cd93:0:b0:3f1:6ec5:bc6f with SMTP id y19-20020a7bcd93000000b003f16ec5bc6fmr6799958wmj.24.1683555803164; Mon, 08 May 2023 07:23:23 -0700 (PDT) Received: from sagittarius-a.chello.ie (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id y25-20020a05600c365900b003f42456c490sm4081544wmq.33.2023.05.08.07.23.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 May 2023 07:23:22 -0700 (PDT) From: Bryan O'Donoghue To: linux@roeck-us.net, heikki.krogerus@linux.intel.com, gregkh@linuxfoundation.org, andersson@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, luca.weiss@fairphone.com, lujianhua000@gmail.com, linux-usb@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Cc: konrad.dybcio@linaro.org, caleb.connolly@linaro.org, bryan.odonoghue@linaro.org, subbaram@quicinc.com, jackp@quicinc.com, robertom@qti.qualcomm.com, Krzysztof Kozlowski Subject: [PATCH v7 04/13] dt-bindings: phy: qcom,sc7180-qmp-usb3-dp-phy: Add input and output ports Date: Mon, 8 May 2023 15:22:59 +0100 Message-Id: <20230508142308.1656410-5-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230508142308.1656410-1-bryan.odonoghue@linaro.org> References: <20230508142308.1656410-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Add a ports declaration which is optional containing two port@ declarations. port@0 to receive an orientation-switch message from the Type-C port or redriver port@1 to subsequently transmit the orientation-switch on once the PHY has finished doing its orientation turn-around. If ports is declared the input port port@0 is mandatory but the output port@1 is optional. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Bryan O'Donoghue --- .../phy/qcom,sc7180-qmp-usb3-dp-phy.yaml | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/Documentation/devicetree/bindings/phy/qcom,sc7180-qmp-usb3-dp-phy.yaml b/Documentation/devicetree/bindings/phy/qcom,sc7180-qmp-usb3-dp-phy.yaml index d307343388888..c370b9cd58c2e 100644 --- a/Documentation/devicetree/bindings/phy/qcom,sc7180-qmp-usb3-dp-phy.yaml +++ b/Documentation/devicetree/bindings/phy/qcom,sc7180-qmp-usb3-dp-phy.yaml @@ -65,6 +65,25 @@ properties: description: Flag the port as possible handler of orientation switching type: boolean + ports: + $ref: /schemas/graph.yaml#/properties/ports + description: OF graph bindings that model incoming orientation-switch and + outgoing orientation-switch messages. An example of an incoming + orientation-switch message might come form a Type-C connector or a USB + redriver. An example of an output would be a DisplayPort controller. + + properties: + port@0: + $ref: /schemas/graph.yaml#/properties/port + description: Type-C mux orientation-switch input. + + port@1: + $ref: /schemas/graph.yaml#/properties/port + description: PHY orientation-switch output. + + required: + - port@0 + resets: items: - description: reset of phy block. @@ -279,4 +298,23 @@ examples: #clock-cells = <1>; #phy-cells = <0>; }; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + qmpphy_typec_mux_in: endpoint { + remote-endpoint = <&pmic_typec_mux_out>; + }; + }; + + port@1 { + reg = <1>; + qmpphy_typec_mux_out: endpoint { + remote-endpoint = <&dp_typec_mux_in>; + }; + }; + }; };