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: 680006 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 807B6C7EE32 for ; Mon, 8 May 2023 14:23:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234563AbjEHOXa (ORCPT ); Mon, 8 May 2023 10:23:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59402 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234548AbjEHOX3 (ORCPT ); Mon, 8 May 2023 10:23:29 -0400 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CAAA919B9 for ; Mon, 8 May 2023 07:23:24 -0700 (PDT) Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-3f37a36b713so46842375e9.1 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=SWAG3yUsdGzB9vpyaz8iVbo4AsateY2EwIzgg0o0zE7/IlRBYsDpRZOugt18HKgXub U9Ir/rjJZSLAqceChp6tM/eZFI+WyNkExZODtyEvU3EXOkHOV1tlmXZQQDRzNKHLDrct mk+tdsNZjWBXfzVcQ9B/uiCpE9iR0qXn1Q2tS9mWnpsLHkj6cZutAkqWhNjbSkfVyIkg voGaYzTr6URQ++ifWtaRWLk5typqrc+W0Eu2R66TKEDtZrCn+FpOXTXEUhuNqW6S5XMI NWCQVQuQigiDCGvQMMZbv5Oa4t5jEqT3NOibdIuaX2hSnO3FlsuwbCy/F54Y3EGASYQO MM7g== X-Gm-Message-State: AC+VfDxaZTvwtiSRk0E1KdCa4r7fcyZfvEX+Y/SBmM24m+Kkl7sixAie fL9IlrKux0IO+1nmG/7qFGYc/Q== 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: devicetree@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>; + }; + }; + }; };