Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp4422091ioa; Wed, 27 Apr 2022 03:36:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyLZR5oY4JV3+ujRIN/dCiOCmOmel0b9+5yS2Iol4+o8qg1r6By/s+GRrTt/O3LC1hn2qXe X-Received: by 2002:a17:90a:730c:b0:1da:4630:518e with SMTP id m12-20020a17090a730c00b001da4630518emr1395928pjk.239.1651055807443; Wed, 27 Apr 2022 03:36:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651055807; cv=none; d=google.com; s=arc-20160816; b=mEFXW3BadoULyFF0d926iLq1N46koohgekq0vosJDM8Tc4vIqI2hjZnB58uhbQm9EH qafZvXn/ksboqtk83wY5By39Vn7C/wQ9wjMnTVAznMFq2Pd+r/usggIIN8WOvGspvIFT JZD3ZmEdFxTTfwfsgDlrqKllbsMdmTPuXgJzcqtR1w0H0aNRZpdu8SoNH4epm6g/uRyX KhhrlDYuUT8HIW0Oe4AdxWnv9ii/gSXzIr5dpli6RAerQkmG2UIWizs4X2kivDSx6jDt 8JgB+wguRuJ49xs9pwS0lwxrYC5sitdGw1N333SzKUUH7g6XS2moTqV4pwIf4Z2ug79k 11aQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=VGWdXOAbKYFsWdQ08Ig6m7ORNvxHvLu8Lks5JJidff8=; b=eiG9aK4GpHamapeqFy0Dnsfx6aHt7IJGnEO99jvzOUoTXmb/BNWwv2C4tQ60INs7SU OA+qIZbrQjaKzgyuYiXlL5/nc4ctyL2S8Br0+r3cmoKyR44QcQz60vJMovXU3qv7zm7i 7h9LTU2Ek0djDUMczswO5bkx3ZCpzzYASTQyYzLtCO/5hEBvHHD+94DyVyHfO7yoeCzY 0jJT7cp5rrS29+u8LPgcNqudU3G2EYb3u6BVsJp4W1pWeMjnv+VuPmmgRKxECjkthJ2O /DbxAzAX013zoJ/2khH+eC6i7/bSDJEqHOAivKRbuNjYDn4DcPI2vX0CCzspPttgF61r Bi2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mailerdienst.de header.s=20200217 header.b=xVPVZVvS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id t191-20020a6381c8000000b003820d821f00si1124640pgd.473.2022.04.27.03.36.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Apr 2022 03:36:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@mailerdienst.de header.s=20200217 header.b=xVPVZVvS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 64E1A297188; Wed, 27 Apr 2022 02:50:33 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350913AbiDZNZT (ORCPT + 99 others); Tue, 26 Apr 2022 09:25:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350862AbiDZNZK (ORCPT ); Tue, 26 Apr 2022 09:25:10 -0400 Received: from mxout4.routing.net (mxout4.routing.net [IPv6:2a03:2900:1:a::9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9ADEA33A26; Tue, 26 Apr 2022 06:21:59 -0700 (PDT) Received: from mxbox1.masterlogin.de (unknown [192.168.10.88]) by mxout4.routing.net (Postfix) with ESMTP id CFDF4101299; Tue, 26 Apr 2022 13:21:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1650979317; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=VGWdXOAbKYFsWdQ08Ig6m7ORNvxHvLu8Lks5JJidff8=; b=xVPVZVvS74xKRcCQuThE/vqu2FFK5C2u8JUAvtrHNfv79ipesUm4A62gY5k7RfwhcLjC7a tapzdOkHEpT4hNE8OUGpGOTaTg52fx4GTSCaYKDHw298zTf0KCKuMTGoPeCYBanajnPW7U 70XtulkRSbzFo6d7nt6dLD1fdWyXD1w= Received: from localhost.localdomain (fttx-pool-80.245.77.37.bambit.de [80.245.77.37]) by mxbox1.masterlogin.de (Postfix) with ESMTPSA id BD203401C9; Tue, 26 Apr 2022 13:21:56 +0000 (UTC) From: Frank Wunderlich To: linux-rockchip@lists.infradead.org Cc: Frank Wunderlich , Bjorn Helgaas , Rob Herring , Krzysztof Kozlowski , Heiko Stuebner , Kishon Vijay Abraham I , Vinod Koul , Lorenzo Pieralisi , =?UTF-8?q?Krzysztof=20Wilczy=C5=84ski?= , Philipp Zabel , Johan Jonker , Peter Geis , Michael Riesch , linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org Subject: [RFC/RFT v2 03/11] dt-bindings: phy: rockchip: add PCIe v3 constants Date: Tue, 26 Apr 2022 15:21:31 +0200 Message-Id: <20220426132139.26761-4-linux@fw-web.de> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220426132139.26761-1-linux@fw-web.de> References: <20220426132139.26761-1-linux@fw-web.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mail-ID: 74afaeeb-5fdb-4ebf-b1d4-688c81efa547 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Frank Wunderlich Add constants that can be used in devicetree and driver for PCIe v3 phy. Signed-off-by: Frank Wunderlich --- v2: - new patch because splitting out this file - rename file from snps to rockchip --- include/dt-bindings/phy/phy-rockchip-pcie3.h | 21 ++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 include/dt-bindings/phy/phy-rockchip-pcie3.h diff --git a/include/dt-bindings/phy/phy-rockchip-pcie3.h b/include/dt-bindings/phy/phy-rockchip-pcie3.h new file mode 100644 index 000000000000..93e57edd337d --- /dev/null +++ b/include/dt-bindings/phy/phy-rockchip-pcie3.h @@ -0,0 +1,21 @@ +/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */ +/* + * Copyright (c) 2021 Rockchip Electronics Co., Ltd. + */ + +#ifndef _DT_BINDINGS_PHY_ROCKCHIP_PCIE3 +#define _DT_BINDINGS_PHY_ROCKCHIP_PCIE3 + +/* + * pcie30_phy_mode[2:0] + * bit2: aggregation + * bit1: bifurcation for port 1 + * bit0: bifurcation for port 0 + */ +#define PHY_MODE_PCIE_AGGREGATION 4 /* PCIe3x4 */ +#define PHY_MODE_PCIE_NANBNB 0 /* P1:PCIe3x2 + P0:PCIe3x2 */ +#define PHY_MODE_PCIE_NANBBI 1 /* P1:PCIe3x2 + P0:PCIe3x1*2 */ +#define PHY_MODE_PCIE_NABINB 2 /* P1:PCIe3x1*2 + P0:PCIe3x2 */ +#define PHY_MODE_PCIE_NABIBI 3 /* P1:PCIe3x1*2 + P0:PCIe3x1*2 */ + +#endif /* _DT_BINDINGS_PHY_ROCKCHIP_PCIE3 */ -- 2.25.1