From patchwork Mon Apr 24 21:50:21 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Anholt X-Patchwork-Id: 9697301 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 581BC601E9 for ; Mon, 24 Apr 2017 21:51:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4A9FA28305 for ; Mon, 24 Apr 2017 21:51:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3EF3F28404; Mon, 24 Apr 2017 21:51:04 +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_SIGNED, DKIM_VALID autolearn=unavailable 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 DF7BC28305 for ; Mon, 24 Apr 2017 21:51:03 +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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: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=l7K7XMJbLa8mRtK5JRqIpUP/lv0FcFHOPC21iOsUlMI=; b=WcSuC0voqY5mD8oicpAJEsFQPf NonjfX+r3b/Nxk5eNDFUfegdK55gtEbiR8cDzlNTDdOb7d5wWuK+7aFJYdejT5nJvN2ZXGTlDW9Ly /qqrcKnGnSqQaXQCkEIRBDUTs/AgWssbaWxMVpDBo2aobGmhWDFPiA7IEQAMBns7g9DDeVblqDkvF dQWfMZCPeJB41CME//0/wHZDB4X8/9yZOdKqdO24YgeRXATOhHk6bL//a+VREQFBkx74yVeJlS0U1 216Mv17BPMD0IovB0xr3Ea/8PQY9rfty6dlIgw/NjU4kjTvXHf0AAh+4avKG7GXtlImMa9yB594+I GIlOX/SQ==; 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 1d2lst-0003UF-Fg; Mon, 24 Apr 2017 21:51:03 +0000 Received: from casper.infradead.org ([2001:770:15f::2]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1d2lsr-0003Th-Au for linux-arm-kernel@bombadil.infradead.org; Mon, 24 Apr 2017 21:51:01 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=4ecn/AfK8zu/r8kQXFz3PLe3RhdEwIyUf3VnAe1Le3s=; b=DxrqhYFCAcj94PPyN5lMDoLpg W1I7uhO7vleNmkt4sALcEdKh6URh5ziR74HQPi0SufviMS9ftSBqrzwV8IkkhM0nD8u2tpB12U9/a eNlq0Zqm35PsSlryW0Wl6w/0cpHum4gS+IC1nrcpBK+ELCVgKFfYOYQnH2GqTu3Q5VDYkUE3Qe73G iAtW0o1rzHhROjVh1nv6MAiVjmOzDfroJTGthjvUAd6q49SOZ0gqWJ3q/t/2RnMSFApurTDsKecdD UmAIOExwRm8MSXc3njhgmK1pKWtkhrzEVhL/ToJnNs6Wf1QqeWdjknlRSmPA6K0vdSuoJTVyfjQ9i 3lqVh9gWA==; Received: from anholt.net ([50.246.234.109]) by casper.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1d2lsn-0004im-TP for linux-arm-kernel@lists.infradead.org; Mon, 24 Apr 2017 21:50:59 +0000 Received: from localhost (localhost [127.0.0.1]) by anholt.net (Postfix) with ESMTP id 1C6AD10A0396; Mon, 24 Apr 2017 14:50:26 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at anholt.net Received: from anholt.net ([127.0.0.1]) by localhost (kingsolver.anholt.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 8cizEcwEHzIu; Mon, 24 Apr 2017 14:50:24 -0700 (PDT) Received: from eliezer.anholt.net (localhost [127.0.0.1]) by anholt.net (Postfix) with ESMTP id 12EDA10A1FA2; Mon, 24 Apr 2017 14:50:23 -0700 (PDT) Received: by eliezer.anholt.net (Postfix, from userid 1000) id 2C5142E2830; Mon, 24 Apr 2017 14:50:22 -0700 (PDT) From: Eric Anholt To: Florian Fainelli , Vivien Didelot , Andrew Lunn , netdev@vger.kernel.org, Rob Herring , Mark Rutland , devicetree@vger.kernel.org Subject: [PATCH 1/2] net: dsa: b53: Add compatible strings for the Cygnus-family BCM11360. Date: Mon, 24 Apr 2017 14:50:21 -0700 Message-Id: <20170424215022.30382-2-eric@anholt.net> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170424215022.30382-1-eric@anholt.net> References: <20170424215022.30382-1-eric@anholt.net> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170424_225058_112309_BF1A51EC X-CRM114-Status: GOOD ( 15.08 ) 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: Scott Branden , Jon Mason , Ray Jui , linux-kernel@vger.kernel.org, Eric Anholt , bcm-kernel-feedback-list@broadcom.com, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 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 Cygnus is a small family of SoCs, of which we currently have devicetree for BCM11360 and BCM58300. The 11360's B53 is mostly the same as 58xx, just requiring a tiny bit of setup that was previously missing. Signed-off-by: Eric Anholt Reviewed-by: Florian Fainelli --- Documentation/devicetree/bindings/net/dsa/b53.txt | 3 +++ drivers/net/dsa/b53/b53_srab.c | 2 ++ 2 files changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/net/dsa/b53.txt b/Documentation/devicetree/bindings/net/dsa/b53.txt index d6c6e41648d4..49c93d3c0839 100644 --- a/Documentation/devicetree/bindings/net/dsa/b53.txt +++ b/Documentation/devicetree/bindings/net/dsa/b53.txt @@ -29,6 +29,9 @@ Required properties: "brcm,bcm58625-srab" "brcm,bcm88312-srab" and the mandatory "brcm,nsp-srab string + For the BCM11360 SoC, must be: + "brcm,bcm11360-srab" and the mandatory "brcm,cygnus-srab string + For the BCM63xx/33xx SoCs with an integrated switch, must be one of: "brcm,bcm3384-switch" "brcm,bcm6328-switch" diff --git a/drivers/net/dsa/b53/b53_srab.c b/drivers/net/dsa/b53/b53_srab.c index 8a62b6a69703..c37ffd1b6833 100644 --- a/drivers/net/dsa/b53/b53_srab.c +++ b/drivers/net/dsa/b53/b53_srab.c @@ -364,6 +364,7 @@ static const struct of_device_id b53_srab_of_match[] = { { .compatible = "brcm,bcm53018-srab" }, { .compatible = "brcm,bcm53019-srab" }, { .compatible = "brcm,bcm5301x-srab" }, + { .compatible = "brcm,bcm11360-srab", .data = (void *)BCM58XX_DEVICE_ID }, { .compatible = "brcm,bcm58522-srab", .data = (void *)BCM58XX_DEVICE_ID }, { .compatible = "brcm,bcm58525-srab", .data = (void *)BCM58XX_DEVICE_ID }, { .compatible = "brcm,bcm58535-srab", .data = (void *)BCM58XX_DEVICE_ID }, @@ -371,6 +372,7 @@ static const struct of_device_id b53_srab_of_match[] = { { .compatible = "brcm,bcm58623-srab", .data = (void *)BCM58XX_DEVICE_ID }, { .compatible = "brcm,bcm58625-srab", .data = (void *)BCM58XX_DEVICE_ID }, { .compatible = "brcm,bcm88312-srab", .data = (void *)BCM58XX_DEVICE_ID }, + { .compatible = "brcm,cygnus-srab", .data = (void *)BCM58XX_DEVICE_ID }, { .compatible = "brcm,nsp-srab", .data = (void *)BCM58XX_DEVICE_ID }, { /* sentinel */ }, };