Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1593118pxb; Fri, 20 Aug 2021 09:06:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwtX8JuwDhbcZ4xFL8YucsDQ2KCMppQy+NJ18PSqX4dbobnvmJxI8bXZIWZA7BTTSmEvk8s X-Received: by 2002:adf:e845:: with SMTP id d5mr11442465wrn.228.1629475608509; Fri, 20 Aug 2021 09:06:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629475608; cv=none; d=google.com; s=arc-20160816; b=VyxiA3caLo8+qtWKwSI5KPNWCBMS+FXApzWNHexcgesUdOFaKR6x+sattSYc1oeC7M PS5FJ4PYOjvxc+677PJlRt0Pln+SsTrL0j8Mvt1UrwWhvBIxUWKQ3qwf2gdPZDANbKFe RqLiOBH4ivMHWexFprcn36rMCsmfm8ldrMBwHqwH7FqJewD14+VRPPshFvWKo9hKTUbZ gSR2Dj7/Jr8ujzcM4grHls4KQkb9tsGCSyST+ygnMytVY6cIm5v1pXE7k8GPXL3k6hEj iY70ZfAbioTGxva1DdMS5jIjGyHzGIZJZ5r+LQvzMparVRAQtlMlCq0PzCLggTbpRciF wz+Q== 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=Dw63xW3f0lI1JBQL0L9dTQx2SQwHZ8ZXVFgx5g+wbdk=; b=E12P+jAtqvLYY3XSTeJz351o/U1e9Pzo5Dgn5h3Zyh0fa+oYJYVbK8Sjqrwnz8pQbl J7Bo0PhiEUnvmCVXtXcOX3cvszAvVnANOXTEh6dSTQFZQ2G/kpL6eyMxOgbVY2BTprBM ymfVPifW9H3ZLT9BvFJjvyAZR3ERleHkbXD9r/FOakNc2rFrRAw0PcPZjwR09mqyJuy6 jLMREBqTGnuqjf1OyK/vOlWdXX/c5CyClD5GWMf6tCMbTnn1nE19kCQc8uZqBPRXgvM6 y4voc3D+P6VraXe/mHfQRdSbk8jp/rAB429sF7pFaAHmAW9hnbtikQVJS6cdSAI4dF5z /71g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=f2vbrT3j; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i18si8723054edc.250.2021.08.20.09.06.20; Fri, 20 Aug 2021 09:06:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=f2vbrT3j; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233455AbhHTQEk (ORCPT + 99 others); Fri, 20 Aug 2021 12:04:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:43964 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234754AbhHTQC3 (ORCPT ); Fri, 20 Aug 2021 12:02:29 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5EA7061279; Fri, 20 Aug 2021 16:01:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1629475311; bh=Yz4EIOxD0zxgcfNz/zM6CTVGtACZ7WoqmNizOWQhqmo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=f2vbrT3jkKY17nmu1ZEqsEwl+1Ef2ir5VNEID6wyODHcHbzaaC+Wrarse1UbKD6d4 T7mZJG4yuJbsSx23h295fh9QfLslzywaIvf9F6YWWcfROUzybb04Hl6yxPXR4bPjVq h7qgddTEQ7h5CKzWqeXi7JU+88LPdLztIiyC1Hnhupv+iQNzFfK0G3BiLNscaVIkJx mOK0e+XtVZ5DUnIn1LfBBrpTY0qT61iN5oOMGo6XQijbxavtkGE0Pn1TqLcQcvffWW 1J4f8GKvKXN11WQTcv23uKmtQxF0sZXxweWtRQ3haYOBnfVNs3tJjTvwXvXby+zV5u VS/HiZlDXZyyw== Received: by pali.im (Postfix) id 80CBFB8A; Fri, 20 Aug 2021 18:01:49 +0200 (CEST) From: =?UTF-8?q?Pali=20Roh=C3=A1r?= To: Rob Herring , Lorenzo Pieralisi Cc: Bjorn Helgaas , =?UTF-8?q?Marek=20Beh=C3=BAn?= , linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RFC PATCH 1/3] dt-bindings: Add 'slot-power-limit' PCIe port property Date: Fri, 20 Aug 2021 18:00:21 +0200 Message-Id: <20210820160023.3243-2-pali@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210820160023.3243-1-pali@kernel.org> References: <20210820160023.3243-1-pali@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This property specifies slot power limit in mW unit. It is form-factor and board specific value and must be initialized by hardware. Some PCIe controllers delegates this work to software to allow hardware flexibility and therefore this property basically specifies what should host bridge programs into PCIe Slot Capabilities registers. Property needs to be specified in mW unit, and not in special format defined by Slot Capabilities (which encodes scaling factor or different unit). Host drivers should convert value from mW unit to their format. Signed-off-by: Pali Rohár --- Documentation/devicetree/bindings/pci/pci.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/pci/pci.txt b/Documentation/devicetree/bindings/pci/pci.txt index 6a8f2874a24d..e67d5db21514 100644 --- a/Documentation/devicetree/bindings/pci/pci.txt +++ b/Documentation/devicetree/bindings/pci/pci.txt @@ -32,6 +32,12 @@ driver implementation may support the following properties: root port to downstream device and host bridge drivers can do programming which depends on CLKREQ signal existence. For example, programming root port not to advertise ASPM L1 Sub-States support if there is no CLKREQ signal. +- slot-power-limit: + If present this property specifies slot power limit in mW unit. Host drivers + can parse this slot power limit and use it for programming Root Port or host + bridge, or for composing and sending PCIe Set_Slot_Power_Limit message + through the Root Port or host bridge when transitioning PCIe link from a + non-DL_Up Status to a DL_Up Status. PCI-PCI Bridge properties ------------------------- -- 2.20.1