Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1520098imm; Mon, 3 Sep 2018 02:36:11 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYGksAltdercW/2LrNZXq3vNWTHfoNHUhdT/uy6FR3fxOyXqm3hyrZw4+4dlYRPIMvytAvN X-Received: by 2002:a63:f849:: with SMTP id v9-v6mr25504086pgj.71.1535967371288; Mon, 03 Sep 2018 02:36:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535967371; cv=none; d=google.com; s=arc-20160816; b=ThAx1VnU1kO55sqVl1oOKq+Zz2E+WPdZFt2Q3szbX1m1+2n5ykyDv26t8FgyegHdw/ rBrsbCk/E/A2bdqg7IwlA47udvaI1SENYDrmYXIPX/aZbqi177x9PLbJAhKMqhmXjTta V8I2QwHXJ74Xyw0XJLFFQl/dNKPZpx0XLpYk4IXXjTpAf2oe4PKhpwMh9zRpxwIY6lKX aIi7ftVrn3Dd+S58d/NlC2KjRfHAGN8ia3tU/kvLrt8uzIUAPr1R7QVkb0n3q2sY9LRx lr3ZUmGVz9auwcrfq5f0fXSF1ska0A4pgJJV9dAgYDW9sh664CeUag/PSWN3C+VtFpgF 9QQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=dOY194dFaSPiMeADdu8sj5Wm9HxCFA/HOOywOL6Ba9E=; b=AOpssXGC7MwHB2meXY712/7z/iGMxkdYnCmrWKC2AWO8fSRfSYxD+24bxluMu4Tk0A faRjQazZcdWAvd3OPPbwYq0YP8SALgjhrId/VHJdybPJ6DuUYe6f5jtMPrFyEG7imD46 0cybXYXrvanaiBKPaOT4V+ZdJzgSdHAzM3Ewlp4o5CVF/rxNLcQ3XreVSkJhoBIZ5YT1 xk3OJOFNQTmiXGTrKfye9Qk7vQpWk8c4KyBJbdvxE3+o8Ay0fnzTqgFI9Jw85jrH/NOg /6rgFca2vPc/ykiAU8G/IYhU5bfbB2oR5FBxfG2t5mBMXKMqYTxfejr7joS0rML41hJV ygAA== 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 g93-v6si17802150plb.249.2018.09.03.02.35.56; Mon, 03 Sep 2018 02:36:11 -0700 (PDT) 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 S1727644AbeICNxN (ORCPT + 99 others); Mon, 3 Sep 2018 09:53:13 -0400 Received: from mail.bootlin.com ([62.4.15.54]:54613 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727608AbeICNxN (ORCPT ); Mon, 3 Sep 2018 09:53:13 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 7DED522A3E; Mon, 3 Sep 2018 11:33:54 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost.localdomain (AAubervilliers-681-1-92-107.w90-88.abo.wanadoo.fr [90.88.33.107]) by mail.bootlin.com (Postfix) with ESMTPSA id A4D3C22A46; Mon, 3 Sep 2018 11:33:26 +0200 (CEST) From: Quentin Schulz To: alexandre.belloni@bootlin.com, ralf@linux-mips.org, paul.burton@mips.com, jhogan@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, davem@davemloft.net, kishon@ti.com, andrew@lunn.ch, f.fainelli@gmail.com Cc: allan.nielsen@microchip.com, linux-mips@linux-mips.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, thomas.petazzoni@bootlin.com, Quentin Schulz Subject: [PATCH v2 09/11] dt-bindings: add constants for Microsemi Ocelot SerDes driver Date: Mon, 3 Sep 2018 11:33:06 +0200 Message-Id: <20180903093308.24366-10-quentin.schulz@bootlin.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180903093308.24366-1-quentin.schulz@bootlin.com> References: <20180903093308.24366-1-quentin.schulz@bootlin.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The Microsemi Ocelot has multiple SerDes and requires that the SerDes be muxed accordingly to the hardware representation. Let's add a constant for each SerDes available in the Microsemi Ocelot. Signed-off-by: Quentin Schulz --- include/dt-bindings/phy/phy-ocelot-serdes.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 include/dt-bindings/phy/phy-ocelot-serdes.h diff --git a/include/dt-bindings/phy/phy-ocelot-serdes.h b/include/dt-bindings/phy/phy-ocelot-serdes.h new file mode 100644 index 000000000000..cf111baa87c8 --- /dev/null +++ b/include/dt-bindings/phy/phy-ocelot-serdes.h @@ -0,0 +1,19 @@ +/* SPDX-License-Identifier: (GPL-2.0 OR MIT) */ +/* Copyright (c) 2018 Microsemi Corporation */ +#ifndef __PHY_OCELOT_SERDES_H__ +#define __PHY_OCELOT_SERDES_H__ + +#define SERDES1G_0 0 +#define SERDES1G_1 1 +#define SERDES1G_2 2 +#define SERDES1G_3 3 +#define SERDES1G_4 4 +#define SERDES1G_5 5 +#define SERDES1G_MAX 6 +#define SERDES6G_0 SERDES1G_MAX +#define SERDES6G_1 (SERDES1G_MAX + 1) +#define SERDES6G_2 (SERDES1G_MAX + 2) +#define SERDES6G_MAX (SERDES1G_MAX + 3) +#define SERDES_MAX (SERDES1G_MAX + SERDES6G_MAX) + +#endif -- 2.17.1