From patchwork Wed Jan 26 14:13:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Stein X-Patchwork-Id: 12725082 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 73B27C3526D for ; Wed, 26 Jan 2022 14:15:30 +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=87GyjdK6h1Q/uitwFkWW4E4YNo16MO3Q8xZUxMyO1JQ=; b=V98r130wYCstZr S3vwKEo/cTFoZF2kLDAQcTUSzgE42tkBHk//HNYzF3ojy3Ms55hngtVSlEgJpEOidYck+UVQHAfjF xjqdBCNcAxVBL4I1nWNBLoifJ6zq3754IAdcvjLbvBrhFqxMRonqLJImvUcGWugjgrotpZL1k1Gv5 mlLYAXWFCyyJQ1nxQ8YMJ7JcefzvB92ODwqLN5GyTDoCiy2B7zBhPwUvkqB4n0haObdc/nGLdBZY6 yIdt/nXuqrumG1PGDMA7V7h4EA23ME3ceuzEvFosRIxtH+mGyrvU3HzWfvu49nslaSZzCYt5G6Vrk uQzAJuPWptDLkaxWVx3w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nCj3x-00Bxeq-41; Wed, 26 Jan 2022 14:14:17 +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 1nCj3d-00BxbP-Fe for linux-arm-kernel@lists.infradead.org; Wed, 26 Jan 2022 14:13:59 +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=1643206437; x=1674742437; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=l1nUXsM59Ui0doiVm12hhhwuohicemAjdr43H7R6YUg=; b=ALCuOhcCwJk73LQH2yhyfvzQno7Ne5HnVwZIuWOwhTjwlwpVTQ2JUWB9 hG06IEugMnyywSQpHzRbbO/8o6YOKAxlFcATJJiFWH+Qtj7DhYfpkWKeC pe7oaVlCk5ptlOc2Dw5btxq+olCxyNmuiucQlz3u0SePwxWVH116dhP0k dx727nGGb6Yuvis61AalyWIddODxkbvA3qXV3WqdmdoeIq190webZDaVt 3QuzP6LvQGV7hcPPVLuC7v1pOCq9C0o8rSeTallUmm8XVTD4ciinfwkSU q3326jGzCPyJjRw0upkZXNq3N33v7u9dIyaEJCJ7k+FUBE1GF/aEQdp0a A==; X-IronPort-AV: E=Sophos;i="5.88,318,1635199200"; d="scan'208";a="21725569" Received: from unknown (HELO tq-pgp-pr1.tq-net.de) ([192.168.6.15]) by mx1-pgp.tq-group.com with ESMTP; 26 Jan 2022 15:13:51 +0100 Received: from mx1.tq-group.com ([192.168.6.7]) by tq-pgp-pr1.tq-net.de (PGP Universal service); Wed, 26 Jan 2022 15:13:51 +0100 X-PGP-Universal: processed; by tq-pgp-pr1.tq-net.de on Wed, 26 Jan 2022 15:13:51 +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=1643206431; x=1674742431; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=l1nUXsM59Ui0doiVm12hhhwuohicemAjdr43H7R6YUg=; b=KKU+55Z4pD+fDkoFvrY6v7ry80/FFmV6RHiIttpB1AVSMNp/3V/3mLKS DbVAjh3U6+RRHOipFr0meGWDB0p52DIrBeKwQMR+v+cRsz/U+sa52Zz8D FQiVueRKEfJlgwNlYrdC0tmwlxRkaUTaBglMnhw8D0TeQ2NvsE6qDyR5t nDdWmQNBCBkSPPWeiwofdCTGHQ/ZKf0G6Aj5psVlzfohzwBrYswPyDxgf 6ysYnfnWxEsPLiqeUdB5ZTSXqlKBazmSnoahbOyfHTOZA8/YqzLF2nOaJ cvQUCF99bo9RX39HV5wDL0IUddds/tLeGfc8Z/MgAiDzIDAjAuEkZmAj/ A==; X-IronPort-AV: E=Sophos;i="5.88,318,1635199200"; d="scan'208";a="21725565" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 26 Jan 2022 15:13:51 +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 3299F280078; Wed, 26 Jan 2022 15:13:51 +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 v4 2/4] dt-bindings: usb: dwc3-imx8mp: Add imx8mp specific flags Date: Wed, 26 Jan 2022 15:13:38 +0100 Message-Id: <20220126141340.234125-3-alexander.stein@ew.tq-group.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220126141340.234125-1-alexander.stein@ew.tq-group.com> References: <20220126141340.234125-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-20220126_061357_861059_0B9CDD00 X-CRM114-Status: GOOD ( 15.03 ) 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 Reviewed-by: Rob Herring --- .../bindings/usb/fsl,imx8mp-dwc3.yaml | 31 ++++++++++++++++--- 1 file changed, 27 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/usb/fsl,imx8mp-dwc3.yaml b/Documentation/devicetree/bindings/usb/fsl,imx8mp-dwc3.yaml index 974032b1fda0..01ab0f922ae8 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 ] @@ -49,6 +49,28 @@ properties: - const: hsio - const: suspend + 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: patternProperties: @@ -74,7 +96,8 @@ 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";