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: 9776401 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 6A5A960393 for ; Thu, 8 Jun 2017 20:06:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5A96527F98 for ; Thu, 8 Jun 2017 20:06:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4EF752846F; Thu, 8 Jun 2017 20:06:02 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 2641D27F98 for ; Thu, 8 Jun 2017 20:06:01 +0000 (UTC) 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-Dw; 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-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: 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+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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>; };