From patchwork Sun May 3 20:18:23 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 1282089 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=sartura.hr Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=sartura-hr.20150623.gappssmtp.com header.i=@sartura-hr.20150623.gappssmtp.com header.a=rsa-sha256 header.s=20150623 header.b=vZXEB2ep; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by ozlabs.org (Postfix) with ESMTP id 49Fcl513qLz9sSg for ; Mon, 4 May 2020 06:18:57 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729120AbgECUSs (ORCPT ); Sun, 3 May 2020 16:18:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729117AbgECUSq (ORCPT ); Sun, 3 May 2020 16:18:46 -0400 Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7951EC061A10 for ; Sun, 3 May 2020 13:18:46 -0700 (PDT) Received: by mail-wm1-x330.google.com with SMTP id k12so6011186wmj.3 for ; Sun, 03 May 2020 13:18:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sartura-hr.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=bfHcjYUyv6MlZjyzplfB3ZgEKhqt/zyKo76QSHG3/MM=; b=vZXEB2epbIpVoA+BJfCm5fftLKSMUAJoOEtMs+B3adMDm9Pk9iaLOXSP4BpUSRDhgY b0+J+0VKPdfzIYDLCjf8fJL+CyoDkP1Dr2+y4aILDjIX4MxBBwixSWipfWBwfh5bl9ND VDu6Ntrp+NbDoDH688XyXKM8wOoKpk81Z1IqX4+fDzrGTfujw+LhSHsyR2mWQFMl/ckZ QOTyvOZuSpCXYbffGEpy14W9z+4dE21oV00zBErgFfvwvr0A9gQ+XEYucs3BXHePYsAx PxU+aQ3eqJHblN0nyJJBatw3tbnlgMXW28m0zeK//j4IwG8uLhL7S7rc6IwnG2yOxfO0 gtiQ== 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=bfHcjYUyv6MlZjyzplfB3ZgEKhqt/zyKo76QSHG3/MM=; b=mO+unInJ4GK7ATIwxF4pibJ1VurWAQr7lc/sGz/wWSuoHbeKt4r8EWtgEvvm1hqLEN aOlHWfU4mx0niIELuck57AKJ1V3ss/lwmkAxH2CNMBcWuM+P5pe8fptTpssbX5X5QOSi SR6P5X0O36r6Wuh1ThCol6KgMmdmcsEPbCnAZ0v5mOuW83O2fY3EGOaLMIVwBTqIwFgc FWli4F+KNT1wmNMqMJ6U/CDHMwxXclh9TQCYfULbXRSnopAO61i5SBHMr7zXSM4W5MHh UZD2WaoUWGucP5nVnATVUa/4+NAXAUHNtDHU7/qECVV2l7HGX5L9xC62uwPkilhzS9RN tSZQ== X-Gm-Message-State: AGi0PuYiyKPZhZOf26K+aesJWtEEtwgdwpeIBZcroQ0q74d4cfqFrIWd wA4wPFTulvlRQ2jTCAYov1CZ0qdaya3UMQ== X-Google-Smtp-Source: APiQypKPS6+yrTNC5H6IvaJjOVpmEIfDVxxBojWQFu13ZzdiP+seVuc9KUSfKstPbNbzdF0774wd3g== X-Received: by 2002:a1c:e087:: with SMTP id x129mr11207769wmg.127.1588537125147; Sun, 03 May 2020 13:18:45 -0700 (PDT) Received: from localhost.localdomain ([2a0e:b107:830:0:47e5:c676:4796:5818]) by smtp.googlemail.com with ESMTPSA id 19sm9891624wmo.3.2020.05.03.13.18.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 May 2020 13:18:44 -0700 (PDT) From: Robert Marko To: agross@kernel.org, bjorn.andersson@linaro.org, kishon@ti.com, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, devicetree@vger.kernel.org, vkoul@kernel.org Cc: Robert Marko , John Crispin , Rob Herring , Luka Perkov Subject: [PATCH v7 2/3] dt-bindings: phy-qcom-ipq4019-usb: add binding document Date: Sun, 3 May 2020 22:18:23 +0200 Message-Id: <20200503201823.531757-2-robert.marko@sartura.hr> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200503201823.531757-1-robert.marko@sartura.hr> References: <20200503201823.531757-1-robert.marko@sartura.hr> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This patch adds the binding documentation for the HS/SS USB PHY found inside Qualcom Dakota SoCs. Signed-off-by: John Crispin Signed-off-by: Robert Marko Reviewed-by: Rob Herring Cc: Luka Perkov --- Changes from v5 to v6: * Add missing include for reset defines in example * Fix warning for missing # in #phy-cells Changes from v4 to v5: * Replace tabs with whitespaces * Add maintainer property .../bindings/phy/qcom-usb-ipq4019-phy.yaml | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/qcom-usb-ipq4019-phy.yaml diff --git a/Documentation/devicetree/bindings/phy/qcom-usb-ipq4019-phy.yaml b/Documentation/devicetree/bindings/phy/qcom-usb-ipq4019-phy.yaml new file mode 100644 index 000000000000..1118fe69b611 --- /dev/null +++ b/Documentation/devicetree/bindings/phy/qcom-usb-ipq4019-phy.yaml @@ -0,0 +1,50 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/phy/qcom-usb-ipq4019-phy.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: Qualcom IPQ40xx Dakota HS/SS USB PHY + +maintainers: + - Robert Marko + +properties: + compatible: + enum: + - qcom,usb-ss-ipq4019-phy + - qcom,usb-hs-ipq4019-phy + + reg: + maxItems: 1 + + resets: + maxItems: 2 + + reset-names: + items: + - const: por_rst + - const: srif_rst + + "#phy-cells": + const: 0 + +required: + - compatible + - reg + - resets + - reset-names + - "#phy-cells" + +examples: + - | + #include + + hsphy@a8000 { + #phy-cells = <0>; + compatible = "qcom,usb-hs-ipq4019-phy"; + reg = <0xa8000 0x40>; + resets = <&gcc USB2_HSPHY_POR_ARES>, + <&gcc USB2_HSPHY_S_ARES>; + reset-names = "por_rst", "srif_rst"; + };