From patchwork Thu May 11 13:29:24 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: 9721521 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 26FE560364 for ; Thu, 11 May 2017 13:31:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1BF3C28609 for ; Thu, 11 May 2017 13:31:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 10A2B2865D; Thu, 11 May 2017 13:31:10 +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 86BDC28609 for ; Thu, 11 May 2017 13:31:09 +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=elsffqD5VGc3NFx3m5ylBsDFt8pKUbZG5H9qQIXGJWU=; b=tmgeCYcotbKhBl kPvf5rg6bnmmmPC4XJOPSOWdM7hAp8HUEktz7PntWDEIDDbTYly5TvkMm+Uuxo8pWNdUFok0D5WnZ 40i4sa3QfejDhjnOhL0vIZ4nr6YWQAoczre65MNfzCGow/2c4r43DiqjEsEjmyf0ymIcfuh4ONxBC W108zJoRVKi+FRBQQQQlzXeHUVbwFAbXDFs6uRlvZkTE5y+rKoVBRfoOaQjMeD70aLGVvVJmmUpgt rAvwruYiQsXnSRQuezUlQk8Hwn5Ab02jwXtuzby/8sKAMTlNZYV+y7GZEu969u3MU9inPMtm1kp9r C5mnj7g6IY2wlYHAoLPQ==; 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 1d8oBQ-00060X-KN; Thu, 11 May 2017 13:31:08 +0000 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1d8oAU-0003PU-8y for linux-arm-kernel@lists.infradead.org; Thu, 11 May 2017 13:30:12 +0000 Received: by mail-wm0-x243.google.com with SMTP id d127so7033700wmf.1 for ; Thu, 11 May 2017 06:29:49 -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=+yA1v7gtJaZSNLsIKgDnN8k7tGSeKEh0OymuI4R0Y6Q=; b=ifx217dEFvu9JI/d6sY6L1BHdsX1IhLnBtpfkSpd0eGaZh3uvq5ZObszFNZBTR3/9T /nZXq2Aa3R+4iLvZs06fNXE/3aQGxIzMPic+23/OHFrGCQeNRp+gDtvFGP8hwe6XeZv7 cUHKn3SoqYN1tZIMLONQdClqy2InKu/ujOKG1ogR2BxQe1WjZ/bLjrW1+hpeUFoIqwBo NJD+0Z//TlHrsg515AoMTqJClotS1r171q9C4vkimKZlNy/mgH0B+JnYQcbbCTXR0DiM V8DPLYNxcXp82F9k/LCISDDg+u8GIE1Gb5Iv6nPNwKPCr4qTF7U1KaA7MNSUu3hGVIui 4flg== 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=+yA1v7gtJaZSNLsIKgDnN8k7tGSeKEh0OymuI4R0Y6Q=; b=Ay49g6prYVtJCnUPEM7YBch1rdhCnBozZkz56FNr/XFQ3onOSmIXxLUjwXkun5aTeE PyvvP6WmZde50qC84qxJ1XKqaez0shxKYEvbrC1vdTxdC/XS+5JxzOF0rCC/IhpMIGtt a07t/nrOkUJJxtVkkAUZT4jCjxxH3biMqcMzrgTJZu4T6/pbacnsb5yuytaJ7rVi54S+ hFiCmZIxINRyeAd4mpXOxU1ijVU3yuYTLPzAuNS6taO/jOVXvCSe5kPltUq9/s+Saw5M wSOq/8PR0w1ae9N23kkYRETYQu7IbEEWfaUk/h3VvkA2YDSB9X/0aDsjjT+jApowNzr6 HF9A== X-Gm-Message-State: AODbwcAWLu7cn47sNCDwnYpgQbwStZQMffwIbSc/jxsd1IiDQqA1F6yf LtbkE5y4NbsjBw== X-Received: by 10.25.125.3 with SMTP id y3mr112649lfc.141.1494509388480; Thu, 11 May 2017 06:29:48 -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 i18sm31725ljd.28.2017.05.11.06.29.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 May 2017 06:29:47 -0700 (PDT) From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= To: Kishon Vijay Abraham I Subject: [PATCH 4/5] dt-bindings: phy: Modify Broadcom NS USB 3.0 PHY binding to use MDIO Date: Thu, 11 May 2017 15:29:24 +0200 Message-Id: <20170511132925.14564-5-zajec5@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170511132925.14564-1-zajec5@gmail.com> References: <20170511132925.14564-1-zajec5@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170511_063010_572942_AB3430DF X-CRM114-Status: GOOD ( 10.16 ) 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. Signed-off-by: Rafał Miłecki --- .../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>; };