From patchwork Thu May 21 00:50:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 189067 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 52763C433E2 for ; Thu, 21 May 2020 00:50:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 24FA9207C4 for ; Thu, 21 May 2020 00:50:08 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="SeQfB26S" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727794AbgEUAuB (ORCPT ); Wed, 20 May 2020 20:50:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40546 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726933AbgEUAt6 (ORCPT ); Wed, 20 May 2020 20:49:58 -0400 Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C80D0C061A0E for ; Wed, 20 May 2020 17:49:56 -0700 (PDT) Received: by mail-wr1-x442.google.com with SMTP id k13so5019991wrx.3 for ; Wed, 20 May 2020 17:49:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=T6KiBFrklNFDtd7Hjtt5HuZ2kC5pUp1U1wrXq0Utuf4=; b=SeQfB26SC7fEFLPZyf1wTJC3WJ/vo9u9XJ/iu+jXyEWp73AYgiCa/9bx0/fttc7k6J jY7ijhqlpFkMZykbho83INFv2az4dPTBipvWbqLaUrEN2ums3lCMsO+0wJv8h3+/Nb1g 1ydpBVRq4jxoM0AkU1/bkPsoqxOelsvu8zIZKvJHjcBjLX3YlTfrUcnOmUaB7JmFUF9I nozbyaiQZ/37+JV37VkMjTrc1LyPWr3+jqXOKHcycbS80QsZsBjEfRWQLtvEv9b9Xvbe Z/PTSW7Ft2WNIjX15ehsVNYAFx1fdn09eEAzgd82fpRnTOQA+/SH2pmCXf3/078Nrv8g ZZHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=T6KiBFrklNFDtd7Hjtt5HuZ2kC5pUp1U1wrXq0Utuf4=; b=KwmGKDL1lvPH4JqTMEtWhm0FWuJDpyyigAageZ7kkSl+qKZgGYuoHja5OvFxYjLesO 75rPF+KNuUa5OeXP/xUZmx4ne4Dy7Svyoor1MKv4HuiW1MlYAOIN5Fmz1ZtPiaoG5lWX PTHJkmNS9p9QPhqho0YIv/NvXJ2hYmviK8nuA9ZhVPpROCdgISmRH4tIt6ljKp4i962l z8RGOOE8K1Z1+OxZtMj3sBV8Ec+qSmpuf4SxKGg2QtxBcCchOe12O+VYWrCV7oiMbHLC +kgySsi3JWG/lbBMvMROA9MlBzsFX6F+jW96nMXwmGB+NsE4IBkLbhMwsoGJogZIjwlN riAA== X-Gm-Message-State: AOAM533/+ywEBpMi1ytxtqHI83aOnPZ/3aHhAa/Wuca/fZGxIKIIaEBS WDnmFpHs9wb3TLHuQzwUsWtDwQ== X-Google-Smtp-Source: ABdhPJw9f6aqi3+o81frESGZXUeNPWrqgx/DU+W1LN1KdORszG8GYl97k5eJzrk2BLMcfDAb9Z6How== X-Received: by 2002:adf:e4c2:: with SMTP id v2mr6045967wrm.72.1590022195552; Wed, 20 May 2020 17:49:55 -0700 (PDT) Received: from localhost.localdomain ([176.61.57.127]) by smtp.gmail.com with ESMTPSA id s15sm4536798wro.80.2020.05.20.17.49.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 May 2020 17:49:55 -0700 (PDT) From: Bryan O'Donoghue To: agross@kernel.org, bjorn.andersson@linaro.org, kishon@ti.com, vkoul@kernel.org, robh+dt@kernel.org Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, bryan.odonoghue@linaro.org, Stephen Boyd Subject: [PATCH 1/2] dt-bindings: phy-qcom-usb-hs-phy: Add qcom, enable-vbus-pullup Date: Thu, 21 May 2020 01:50:30 +0100 Message-Id: <20200521005031.747162-2-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200521005031.747162-1-bryan.odonoghue@linaro.org> References: <20200521005031.747162-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org This patch adds a dt-binding for qcom,enable-vbus-pullup. The binding qcom,enable-vbus-pullup tells the HS USB PHY driver whether it should set and unset the internal VBUS pullup bits when starting/stopping the USB PHY. Setting the pullup bits is something you want to do if you have not routed VBUS to a GPIO on the SoC and thus cannot use extcon with the current switching logic in the PHY. Cc: Andy Gross Cc: Bjorn Andersson Cc: Kishon Vijay Abraham I Cc: Vinod Koul Cc: Stephen Boyd Cc: Rob Herring Cc: linux-arm-msm@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: devicetree@vger.kernel.org Signed-off-by: Bryan O'Donoghue Acked-by: Rob Herring --- Documentation/devicetree/bindings/phy/qcom,usb-hs-phy.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/phy/qcom,usb-hs-phy.txt b/Documentation/devicetree/bindings/phy/qcom,usb-hs-phy.txt index b3b75c1e6285..77e9bf1f8ba2 100644 --- a/Documentation/devicetree/bindings/phy/qcom,usb-hs-phy.txt +++ b/Documentation/devicetree/bindings/phy/qcom,usb-hs-phy.txt @@ -64,6 +64,12 @@ PROPERTIES from the ULPI_EXT_VENDOR_SPECIFIC address, for example, <0x1 0x53> would mean "write the value 0x53 to address 0x81". +- qcom,enable-vbus-pullup: + Usage: optional + Value type: + Definition: Flag to indicate if the USB PHY driver should toggle internal + VBUS line pullup bits when powering the PHY on or off. + EXAMPLE otg: usb-controller {