Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3110722ybb; Mon, 30 Mar 2020 21:16:45 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsQi7vwjoaIWL/At+2NoUAGMIKOiiMMg8twRjgmoMgBSFwRfHv2wNboLuN5/iNZGKwHOmjA X-Received: by 2002:a9d:4506:: with SMTP id w6mr553842ote.94.1585628205775; Mon, 30 Mar 2020 21:16:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585628205; cv=none; d=google.com; s=arc-20160816; b=KROi07YOQMVX9V94vCbDcwhaOB8He1LnAxRA6Crgz5SRJOpbUj+KS8GJyxXplwHYmv mnnwbiKf6f1hUUouBG++nwyiK5Q0J27x8s7zHCE0Twv97nXgnstIR10ydKiYGiXUJOZO L7Xj35Vjp8bHaCDXy+EgJaypjBPv5s63EpHPcuamg4AaFdgR059KH7UBNdzyGqLOYKLz ZkcvGuUmAAEWHXGBSOxtlZNWD6fj/dRfNcbsET+i4oE3Ld3UCYQa2buFV3XjEIEgDu45 Iij5GfZzOirNtza1JmAq8Drn9RomocR9QY7v2mAhSrgOc/QY1/CWkM2Pu2a02z59l46q b51A== 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; bh=WFRjAY+jLny5UAZGWq7m7DYJAmTmQpotPOir4nyQxaA=; b=KNf8k5CoYi/G6hhL584Y1VisW8lqvhwI5TJzt2SbqrSSiC5gNjznrxW3WS6P/DpLsc ju5C2I8iiBX+bJwhzjLm0I2oy6SV6iv8iU/uYUgjDFBIE64nvHctc7mJwvEuFmfFzfiz uVbmS31LGZ9CsKjrj6YZLYiVjbS6k8451Zxg9fK9B0L3fnnV2k6gERFT2PgGBUKa6WkC /FbFs2x6dS98InKfVpTBRCp5VZ0Uict4oU2+sYFJpvtMrnC6REgwialZze8kNdMCMP7o kecmsJqmZcGfo5au1LTKRtf6Ra6LWjW0vO1loCzQ/Ri4JDdljf/zloK4//byGhaNe3RD 8eNw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v61si6317965otb.20.2020.03.30.21.16.33; Mon, 30 Mar 2020 21:16:45 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726681AbgCaEPJ (ORCPT + 99 others); Tue, 31 Mar 2020 00:15:09 -0400 Received: from inva020.nxp.com ([92.121.34.13]:39262 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726426AbgCaEPH (ORCPT ); Tue, 31 Mar 2020 00:15:07 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 4D1DA1A07D3; Tue, 31 Mar 2020 06:15:06 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 1A28D1A07DB; Tue, 31 Mar 2020 06:15:00 +0200 (CEST) Received: from localhost.localdomain (mega.ap.freescale.net [10.192.208.232]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 409D5402B1; Tue, 31 Mar 2020 12:14:52 +0800 (SGT) From: Yangbo Lu To: linux-kernel@vger.kernel.org, netdev@vger.kernel.org Cc: Yangbo Lu , "David S . Miller" , Richard Cochran , Vladimir Oltean , Claudiu Manoil , Andrew Lunn , Vivien Didelot , Florian Fainelli , Alexandre Belloni , Microchip Linux Driver Support Subject: [v2, 3/7] net: mscc: ocelot: redefine PTP pins Date: Tue, 31 Mar 2020 12:11:09 +0800 Message-Id: <20200331041113.15873-4-yangbo.lu@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200331041113.15873-1-yangbo.lu@nxp.com> References: <20200331041113.15873-1-yangbo.lu@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There are 5 PTP_PINS register groups on Ocelot switch. Except the one used for TOD operations, there are still 4 register groups for programmable pins. So redefine the 4 programmable pins. Signed-off-by: Yangbo Lu --- Changes for v2: - None. --- include/soc/mscc/ocelot.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/include/soc/mscc/ocelot.h b/include/soc/mscc/ocelot.h index fe301794..a588b6372 100644 --- a/include/soc/mscc/ocelot.h +++ b/include/soc/mscc/ocelot.h @@ -440,10 +440,11 @@ enum ocelot_regfield { REGFIELD_MAX }; -enum ocelot_clk_pins { - ALT_PPS_PIN = 1, - EXT_CLK_PIN, - ALT_LDST_PIN, +enum ocelot_ptp_pins { + PTP_PIN_0, + PTP_PIN_1, + PTP_PIN_2, + PTP_PIN_3, TOD_ACC_PIN }; -- 2.7.4