From patchwork Thu Jun 8 20:04:27 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= X-Patchwork-Id: 773477 Return-Path: X-Original-To: incoming-imx@patchwork.ozlabs.org Delivered-To: patchwork-incoming-imx@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3wkGdP4k5Zz9s76 for ; Fri, 9 Jun 2017 06:06:01 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Lr0Io9WY"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="nYX9gNNc"; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ocDasWFv8Aq2TVgcXOa5aw08fM6YCr9AVTFyoTBylNo=; b=Lr0Io9WYNeixG2 sf/sfNE3BoLrAUJLaUgk7hOe0uyxsHeHOO7fGmpdGYMvly/kARrgaeQcSdHbTKLRL82a1ESGTzZ6W +qC12STLw9V4wg4TuHxGn+Y8pqb+F1BdQCD772RyX9d4Egjr+5Vx6/H9a8L+6e3yP+d8iH9QEm4RP f8C8AIkLTlhcjmbEs4kBM68BEZh0hmuIiJ/lxKmdC52Hbg+cV0mAfHUk0j1BoifJbNM0uha9Xay47 LQqsSR4rpa1IHcS/1GYRLkzMcBnkyfS8870oTEj3NDbTL0drajTspsCnykZGYyDjhvq1i9v/dTO6Z QF/GnbSmYiaHGooBDs5w==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dJ3gs-0003fh-Hi; Thu, 08 Jun 2017 20:05:58 +0000 Received: from mail-lf0-x243.google.com ([2a00:1450:4010:c07::243]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dJ3g5-0001Og-BS for linux-arm-kernel@lists.infradead.org; Thu, 08 Jun 2017 20:05:13 +0000 Received: by mail-lf0-x243.google.com with SMTP id u62so3823301lfg.0 for ; Thu, 08 Jun 2017 13:04:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=prMIl/EXvhYBMGbZbRIkj1MHz9HsZ4+SFQbPfLZOaXE=; b=nYX9gNNcRbWOiPJ/2/AuUVCXXfK4xl+cMvlxciwi2eJry7MVJA73jKbQztZk8B3Heo JKwPUcmSB5tOU8ctgU7zleHXMiqSlPLSPsQH8ptpxwBg7N1Z8PqgQMrmUFV2QVDPV382 dD2lt06hzL5z7J+2cbm7U2wbehkXJOt3d/aR+r1lU8irpAjJYfylx7/W1dI6fLBwavZZ AUmrOOOWBn8bPCboSnKgiUNr/vHGFFVh+GFfYJsA23D1wivhRStK1VcogGABtyzdaQx3 PahTqYx0fVsVbydmMxfGgnXHArKcbxvThtdhFq2nFQTy3+QESXZcEXBsMEUdJLuEafRa VvcA== 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=prMIl/EXvhYBMGbZbRIkj1MHz9HsZ4+SFQbPfLZOaXE=; b=Gh37v1NS6tNde1UUZShnpE4DiBm66DXlhl4mC9srB2R4yoI0rmNk797iA6Ysbdos0H pFeIfbrJ7LA+SKw/jTI4UxoObrhKdDBRu0SUjGqacfuek6oA/khtDv47QkxdSscAsiLg WuefONLhYTo/7BxQY6EZ1Shs4XHrF8XnQ6ECW8XdIscYFkpL0eNFo02gClDKJIqP59lW p/S0qGGjeASCH+CB1NVGnsk6napln8NjHJn8G7E9lFXPXK4Xsn4PZRmzSRiDJ6kwbxzl 3ZoGF3bmJ9LKkh8FMjzyh+FE3xi4ESzwUlcjWH/6z7HtKO+pgSHQyLTQrOKttZLqSobD 6vcg== X-Gm-Message-State: AODbwcCKg7tpcRXxv82qJypn9J9JuA0poqe+vbmoyiJOduMoptFRtxOL R6TDwGpcNKjESQ== X-Received: by 10.25.56.73 with SMTP id d9mr1244913lfj.164.1496952287443; Thu, 08 Jun 2017 13:04:47 -0700 (PDT) Received: from linux-samsung.lan (ip-194-187-74-233.konfederacka.maverick.com.pl. [194.187.74.233]) by smtp.gmail.com with ESMTPSA id s14sm37477ljd.3.2017.06.08.13.04.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Jun 2017 13:04:46 -0700 (PDT) From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= To: Kishon Vijay Abraham I Subject: [PATCH V2 4/5] dt-bindings: phy: Modify Broadcom NS USB 3.0 PHY binding to use MDIO Date: Thu, 8 Jun 2017 22:04:27 +0200 Message-Id: <20170608200428.9187-5-zajec5@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170608200428.9187-1-zajec5@gmail.com> References: <20170511132925.14564-1-zajec5@gmail.com> <20170608200428.9187-1-zajec5@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170608_130509_992709_AFFBAD98 X-CRM114-Status: GOOD ( 11.31 ) X-Spam-Score: -1.8 (-) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-1.8 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (zajec5[at]gmail.com) 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit (zajec5[at]gmail.com) -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Florian Fainelli , Jon Mason , linux-kernel@vger.kernel.org, Yendapally Reddy Dhananjaya Reddy , bcm-kernel-feedback-list@broadcom.com, =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org List-Id: linux-imx-kernel.lists.patchwork.ozlabs.org From: Rafał Miłecki Thanks to work done by Broadcom explaining their USB 3.0 PHY details we know it's attached to the MDIO bus. Use this knowledge to update the binding: make it a subnode to the MDIO bus and rework way of specifying required registers. This will describe hardware more precisely and will allow to support (describe) more devices attached to the MDIO. While compatibility strings remain the same there isn't a direct conflict (compatibility breakage) for the binding. Originally it wasn't supposed to be used for MDIO subnode so this change should be safe unless some operating system was probing MDIO subnodes as standalone devices. Signed-off-by: Rafał Miłecki Acked-by: Rob Herring --- V2: Extend commit message to better describe reason and includ info on (non-)breakage. --- .../devicetree/bindings/phy/bcm-ns-usb3-phy.txt | 27 +++++++++++++++------- 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/Documentation/devicetree/bindings/phy/bcm-ns-usb3-phy.txt b/Documentation/devicetree/bindings/phy/bcm-ns-usb3-phy.txt index 09aeba94538d..32f057260351 100644 --- a/Documentation/devicetree/bindings/phy/bcm-ns-usb3-phy.txt +++ b/Documentation/devicetree/bindings/phy/bcm-ns-usb3-phy.txt @@ -3,9 +3,10 @@ Driver for Broadcom Northstar USB 3.0 PHY Required properties: - compatible: one of: "brcm,ns-ax-usb3-phy", "brcm,ns-bx-usb3-phy". -- reg: register mappings for DMP (Device Management Plugin) and ChipCommon B - MMI. -- reg-names: "dmp" and "ccb-mii" +- reg: address of MDIO bus device +- usb3-dmp-syscon: phandle to syscon with DMP (Device Management Plugin) + registers +- #phy-cells: must be 0 Initialization of USB 3.0 PHY depends on Northstar version. There are currently three known series: Ax, Bx and Cx. @@ -15,9 +16,19 @@ Known B1: BCM4707 rev 6 Known C0: BCM47094 rev 0 Example: - usb3-phy { - compatible = "brcm,ns-ax-usb3-phy"; - reg = <0x18105000 0x1000>, <0x18003000 0x1000>; - reg-names = "dmp", "ccb-mii"; - #phy-cells = <0>; + mdio: mdio@0 { + reg = <0x0>; + #size-cells = <1>; + #address-cells = <0>; + + usb3-phy@10 { + compatible = "brcm,ns-ax-usb3-phy"; + reg = <0x10>; + usb3-dmp-syscon = <&usb3_dmp>; + #phy-cells = <0>; + }; + }; + + usb3_dmp: syscon@18105000 { + reg = <0x18105000 0x1000>; };