From patchwork Tue Jan 18 13:16:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Stein X-Patchwork-Id: 12716341 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 52FA6C433EF for ; Tue, 18 Jan 2022 13:18:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=/5HF0EqBPOG988AdmiUYehsct6jPSv3IrLV7l4l3+fQ=; b=lyQ8QWk78kkpXD 6QXTh58p9osSkUwvMX1/mFS87KU2rp6NV80CV/MJkzMxuoig9uZvTmQji8vgPflTqbt/N8e595rBg 2D5sjhN0uIPH27ZuvA/bQQ3ilzNWfIMLbF2kqrqTXMATOzbXHhcL4+lisN3TX1pUoCPVAhuN4o6Q/ Y3NOtK8vaf4ZV6gfVtAwosilhoKVTkOjlh9iE3ygfz+vk/I6P/K75D0yNd+esV7ygLxsFH9VfdaJn v+jznGOYQ/ak5veYUvqLd+8mtKx03fHLfo8ivZyihh/ome3W094r+840Y2EHGA1JcGoYOv7DJbyeT lkbsKJ4mu36fcje6B9vw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n9oME-001cON-9b; Tue, 18 Jan 2022 13:17:06 +0000 Received: from mx1.tq-group.com ([93.104.207.81]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n9oLu-001cM7-UL for linux-arm-kernel@lists.infradead.org; Tue, 18 Jan 2022 13:16:51 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1642511807; x=1674047807; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=/o6MmTbpFIjUnuZdxv6xZk80oeBZ2Pk9GWe8PY2e5ls=; b=eeXWDSll3nwbh8aIJ7hXKvdTX0itT8WEWdmYWV+kZaq7rw2apiqfASO3 A8H5Oi4l7oZziMStHf2nvl5rqyFBGQ4Bp61SOqJGx40F5uEgHQiOY1Zr2 nQ1oQwvkpcYlM2bV5UEiKAeZyDSYoLPNmuXKPWL5axRC7ZlkJGznW48I3 AcdDKDGuSgeYtcHgJxRLwqX10zeVKqOHBuPEcaBEMKPUss46yEL9wpiGn 8bDswBEJFk81SU9aEkXCWznndg6E8EAtIWNkAxw4CLJiLureqZC8veIgF iLcvZoVu2lg/ZgC0yJ40wuZ9S3KSJ5RH464Eti2DgTkY20/YC0Iq37nOh g==; X-IronPort-AV: E=Sophos;i="5.88,297,1635199200"; d="scan'208";a="21564687" Received: from unknown (HELO tq-pgp-pr1.tq-net.de) ([192.168.6.15]) by mx1-pgp.tq-group.com with ESMTP; 18 Jan 2022 14:16:37 +0100 Received: from mx1.tq-group.com ([192.168.6.7]) by tq-pgp-pr1.tq-net.de (PGP Universal service); Tue, 18 Jan 2022 14:16:37 +0100 X-PGP-Universal: processed; by tq-pgp-pr1.tq-net.de on Tue, 18 Jan 2022 14:16:37 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1642511797; x=1674047797; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=/o6MmTbpFIjUnuZdxv6xZk80oeBZ2Pk9GWe8PY2e5ls=; b=cWFzLF2XzZDxLxFATwWJlqWm712mIgJ2WI8xv7q0pfuysi/JU30SbGEj alWCSruyoAjnZN7xKmdN5b4Ujp64ruZL6/SVD/8fIi8A8v1Z5J0O2biEW Lh6UrKlc9QT+P49gkm0a0avVVdZekLuEKtLWAyDihT5vawp22WrQTdVpB RnQRYg+s+MFgCi635twXyiDJE4vXDGegdBLDtux9ghmPX2JCHF9YH6zhp HKlH8DrDUQ929M5ONyFVT7Fg5O2Aasftxv2u74gQScQOqlg8AdBU2qQRV J0K5RHHIxh6kxxH0WvCWoNFDAqZ72FgqlPvFRkkJryzZG/CXDDxgpuZoe w==; X-IronPort-AV: E=Sophos;i="5.88,297,1635199200"; d="scan'208";a="21564686" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 18 Jan 2022 14:16:37 +0100 Received: from steina-w.tq-net.de (unknown [10.123.49.12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by vtuxmail01.tq-net.de (Postfix) with ESMTPSA id 8D8B9280065; Tue, 18 Jan 2022 14:16:36 +0100 (CET) From: Alexander Stein To: Greg Kroah-Hartman , Rob Herring , Shawn Guo , Sascha Hauer , Fabio Estevam Cc: Alexander Stein , NXP Linux Team , linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Li Jun Subject: [PATCH v3 2/4] dt-bindings: usb: dwc3-imx8mp: Add imx8mp specific flags Date: Tue, 18 Jan 2022 14:16:24 +0100 Message-Id: <20220118131626.926394-3-alexander.stein@ew.tq-group.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220118131626.926394-1-alexander.stein@ew.tq-group.com> References: <20220118131626.926394-1-alexander.stein@ew.tq-group.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220118_051647_319869_7687E269 X-CRM114-Status: GOOD ( 15.68 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This adds bindings for features in the USB glue block. They allow setting polarity of PWR and OC as well as disabling port power control. Also permanently attached can be annotated as well. Additional IO address and clock are needed. Signed-off-by: Alexander Stein --- .../bindings/usb/fsl,imx8mp-dwc3.yaml | 38 ++++++++++++++++--- 1 file changed, 32 insertions(+), 6 deletions(-) diff --git a/Documentation/devicetree/bindings/usb/fsl,imx8mp-dwc3.yaml b/Documentation/devicetree/bindings/usb/fsl,imx8mp-dwc3.yaml index 974032b1fda0..ff48b4e8427d 100644 --- a/Documentation/devicetree/bindings/usb/fsl,imx8mp-dwc3.yaml +++ b/Documentation/devicetree/bindings/usb/fsl,imx8mp-dwc3.yaml @@ -15,9 +15,9 @@ properties: const: fsl,imx8mp-dwc3 reg: - maxItems: 1 - description: Address and length of the register set for the wrapper of - dwc3 core on the SOC. + items: + - description: Address and length of the register set for HSIO Block Control + - description: Address and length of the register set for the wrapper of dwc3 core on the SOC. "#address-cells": enum: [ 1, 2 ] @@ -43,11 +43,35 @@ properties: items: - description: system hsio root clock. - description: suspend clock, used for usb wakeup logic. + - description: clock for the USB glue block clock-names: items: - const: hsio - const: suspend + - const: phy + + fsl,permanently-attached: + type: boolean + description: + Indicates if the device atached to a downstream port is + permanently attached. + + fsl,disable-port-power-control: + type: boolean + description: + Indicates whether the host controller implementation includes port + power control. Defines Bit 3 in capability register (HCCPARAMS). + + fsl,over-current-active-low: + type: boolean + description: + Over current signal polarity is active low. + + fsl,power-active-low: + type: boolean + description: + Power pad (PWR) polarity is active low. # Required child node: @@ -74,10 +98,12 @@ examples: #include usb3_0: usb@32f10100 { compatible = "fsl,imx8mp-dwc3"; - reg = <0x32f10100 0x8>; + reg = <0x32f10100 0x8>, + <0x381f0000 0x20>; clocks = <&clk IMX8MP_CLK_HSIO_ROOT>, - <&clk IMX8MP_CLK_USB_ROOT>; - clock-names = "hsio", "suspend"; + <&clk IMX8MP_CLK_USB_ROOT>, + <&clk IMX8MP_CLK_USB_PHY_ROOT>; + clock-names = "hsio", "suspend", "phy"; interrupts = ; #address-cells = <1>; #size-cells = <1>;