Received: by 10.223.185.116 with SMTP id b49csp3097556wrg; Mon, 5 Mar 2018 14:09:11 -0800 (PST) X-Google-Smtp-Source: AG47ELtDtcO+gLgQjQGNnM6GLX0GqFPmcOCGqor1SBiatoFq9CESUCmm021TUq4ooNXb5Pm6i7hB X-Received: by 10.98.214.10 with SMTP id r10mr16757991pfg.8.1520287751056; Mon, 05 Mar 2018 14:09:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520287751; cv=none; d=google.com; s=arc-20160816; b=Lsaml8okx/h+ak6NdymkzbcWvut1jD3IeA2s3K+ePPA7iXscTlnWZF0+M6eg0QPkmp Z40NL8Qv20FmsSZbc1UvmdWpzlnbTa+awpJFMCMlTMdk119IVRUjDVZ9u5TQ4g/oy/8l LF6Quei1pAsODMzshVuc35qLiHEcSZXmgcnsMzEY2DytVq+zRtFZ4v2V1DmDpIQ6xpfk Mnr/DcRFKXTrTZWUOFZj+jFNKsbMGzWanHY/bikLiNPcuj8/gHQETBNlsdQ2XuqcOKvT cRPpNCsg5dQ8CWXz0Hrlycug7YhUNy/Px+A4IXdd6cL8ydiRp+m/gVVXoj+9abiPz8Nq 5g1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:arc-authentication-results; bh=gTtKyDuJcr24upDHTjXqHHX+1TkXJ0l7nks5oqZBoio=; b=NGQof6efpbMEcKe+TkeKTJ+PAw44p0Ll5ZvQuOVvK0Ngd1JjuY/ZlX6Gl5FF2q1+Sm 5k23ks4k6QWHG+HXVQxKUf+2Cke0AnN54rWLmfgCkc8NLXabOedlC96kn0mCRrx+LyHc EwEzUqvnVZrU0RWOhL53AV8sD4VQI/VWSSpQvxRxyhR8mbN/ofjlubWqrPbNKbYkVmsX VI+v09OlBsl6FkmfzbWUMT9hDX6TZXinebgxr7WkivnhppQz/8i1+hmGruG44oXHc+Xv JQ4u62l1IlYGIDsUTUA/5UAnxfoC+PEad+t2BM5Z8NBpGZxuIq2USF9JC/wh+hXIVQz+ QYIQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z19si10788913pfd.397.2018.03.05.14.08.56; Mon, 05 Mar 2018 14:09:11 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753316AbeCEWHf (ORCPT + 99 others); Mon, 5 Mar 2018 17:07:35 -0500 Received: from mx0a-00010702.pphosted.com ([148.163.156.75]:44384 "EHLO mx0b-00010702.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753117AbeCEWHd (ORCPT ); Mon, 5 Mar 2018 17:07:33 -0500 Received: from pps.filterd (m0098781.ppops.net [127.0.0.1]) by mx0a-00010702.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w25M6hBS009643; Mon, 5 Mar 2018 16:07:02 -0600 Received: from ni.com (skprod2.natinst.com [130.164.80.23]) by mx0a-00010702.pphosted.com with ESMTP id 2gh8xwh6d8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 05 Mar 2018 16:07:02 -0600 Received: from us-aus-exch2.ni.corp.natinst.com (us-aus-exch2.ni.corp.natinst.com [130.164.68.12]) by us-aus-skprod2.natinst.com (8.16.0.22/8.16.0.22) with ESMTPS id w25M71W6005440 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Mon, 5 Mar 2018 16:07:01 -0600 Received: from us-aus-exch7.ni.corp.natinst.com (130.164.68.17) by us-aus-exch2.ni.corp.natinst.com (130.164.68.12) with Microsoft SMTP Server (TLS) id 15.0.1156.6; Mon, 5 Mar 2018 16:07:01 -0600 Received: from us-aus-exhub2.ni.corp.natinst.com (130.164.68.32) by us-aus-exch7.ni.corp.natinst.com (130.164.68.17) with Microsoft SMTP Server (TLS) id 15.0.1156.6; Mon, 5 Mar 2018 16:07:01 -0600 Received: from garkbit.amer.corp.natinst.com (130.164.49.7) by us-aus-exhub2.ni.corp.natinst.com (130.164.68.32) with Microsoft SMTP Server id 15.0.1156.6 via Frontend Transport; Mon, 5 Mar 2018 16:07:01 -0600 From: Brandon Streiff To: Andrew Lunn , Vivien Didelot CC: Rob Herring , Mark Rutland , , , , Brandon Streiff Subject: [PATCH net-next] dt-bindings: net: dsa: marvell: describe compatibility string Date: Mon, 5 Mar 2018 16:05:22 -0600 Message-ID: <1520287522-308-1-git-send-email-brandon.streiff@ni.com> X-Mailer: git-send-email 2.1.4 MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-03-05_09:,, signatures=0 X-Proofpoint-Spam-Reason: safe Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There are two compatibility strings for mv88e6xxx, but it isn't clear from the documentation why only those two exist when the mv88e6xxx driver supports more than the 6085 and 6190. Briefly describe how the compatible property is used, and provide guidance on which to use. The model list comes from looking at port_base_addr values (0x0 vs 0x10) in drivers/net/dsa/mv88e6xxx/chip.c. Signed-off-by: Brandon Streiff --- Documentation/devicetree/bindings/net/dsa/marvell.txt | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/net/dsa/marvell.txt b/Documentation/devicetree/bindings/net/dsa/marvell.txt index 1d4d0f4..caf71e2 100644 --- a/Documentation/devicetree/bindings/net/dsa/marvell.txt +++ b/Documentation/devicetree/bindings/net/dsa/marvell.txt @@ -13,9 +13,18 @@ placed as a child node of an mdio device. The properties described here are those specific to Marvell devices. Additional required and optional properties can be found in dsa.txt. +The compatibility string is used only to find an identification register, +which is at a different MDIO base address in different switch families. +- "marvell,mv88e6085" : Switch has base address 0x10. Use with models: + 6085, 6095, 6097, 6123, 6131, 6141, 6161, 6165, + 6171, 6172, 6175, 6176, 6185, 6240, 6320, 6321, + 6341, 6350, 6351, 6352 +- "marvell,mv88e6190" : Switch has base address 0x00. Use with models: + 6190, 6190X, 6191, 6290, 6390, 6390X + Required properties: - compatible : Should be one of "marvell,mv88e6085" or - "marvell,mv88e6190" + "marvell,mv88e6190" as indicated above - reg : Address on the MII bus for the switch. Optional properties: -- 2.1.4