Received: by 2002:a05:6a10:ffa2:0:0:0:0 with SMTP id hs34csp638105pxb; Wed, 2 Mar 2022 08:38:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJw3/NO4K+zPX0NfdUf4Hr+ZTzo9f0zVobyo/TpReDeu2nYcYQWbj/7L9kNaVv9XIaJbyLKY X-Received: by 2002:a17:906:40c9:b0:6ba:6f72:dd3d with SMTP id a9-20020a17090640c900b006ba6f72dd3dmr23827209ejk.373.1646239123041; Wed, 02 Mar 2022 08:38:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646239123; cv=none; d=google.com; s=arc-20160816; b=xpXBsFq+M6xpXEX0gxPTx3Yum7PsHJbJ0cH1EX9TR07QfyqIESlBlRLsslWt4DOw9h DtBy1448yEO/eiEEfWLRUdIwhoxPJVi4TZCZqzKVtcO1IOLGznGjaN105B+oROjooOaH 8YfGQ2w8y+Zeva9+tXanLFfVnHlbvNifkl208BeR1zZZ54NO6DFeUyCDSMwJ+vWxe7er NEWojff5N4JqPbDfexlIgiFNoQkCZ/38ihkNWeSk1xT3x4Uvm3Rb6vL25O3jUoAQgEKb ogTBS1+bYEA/CbLDl81m3k2FSBVVqtmlVdJQfZu6S0+f4xEj/GuCpO+h1z6kXKIDOAMQ +LOA== 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=wezPSZBQoEkZq2HsDZML6kDVdlpXp6C1/ORU3Iz3nPg=; b=G9hum2OOHWg8KWFmSqc/08k+cA/mhR2u7YEGxhBfnEPFg1DVRSQZm0O1BETaQ1TGDJ ch4RB7dMaqyLkTyz15Ll2lBVLUC/BI05thMipB5J8YXiXg2fvy/G1E744peBoKRxo5ae x+dnkr/TW20na0xZRw6A/p+MqrqHlkM9Afe3k/0xo/hUQyKncblDF7Dlz8PF0VHX5qhR 0YCyqLezCP6dsp0aom8jV4caxTFl5DvvdZBn0CVwdt6+Bh/Ai3rK5wizfS3Xmycpo1r1 zOcKIINF7i2z4Ut7wiM3dQ4AkQN5nDh9Ua+F0Y7PgF0I8eZNn0Uvm3t6z0x7SRoZl8hn w4Kg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="ldwt/Tks"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r1-20020a1709061ba100b006d07f388e25si10262928ejg.908.2022.03.02.08.37.56; Wed, 02 Mar 2022 08:38:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="ldwt/Tks"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S243319AbiCBO6q (ORCPT + 99 others); Wed, 2 Mar 2022 09:58:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243310AbiCBO6h (ORCPT ); Wed, 2 Mar 2022 09:58:37 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2826B10FEB; Wed, 2 Mar 2022 06:57:54 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id E00FEB81FF0; Wed, 2 Mar 2022 14:57:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 89B47C340F4; Wed, 2 Mar 2022 14:57:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1646233071; bh=dtnf8XsUhj4Osmhrrm08Dt6iD1UNUzpBusiWKcRHhvA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ldwt/TksRz4dInWWf6YNvCYjgPxXauYYGqNLgMzHlmMOdmXz+OVjr/DRgixc+00IZ FT6bqqPZpwJF9zsVodfR4RFG6a934P48LilYEDAA95qpqZQjPySZ5OflvY1cBMSMKR hGcW0+eGeqILdsu4XHkcVlj7HdfVdOsKGl8UCUFV2zQZ93ESGqyVk3PnpSlYRKrmrh 2KKtHyV8/rFvZ7aExuQfNaIQK/0fKao4/quHVqT5xHdUBoVkMk2olowzB0d2s/9kKe wty+8vb4l8HdfMKWdGD3LAu8zN2IxJlQsnsmWHi3Dj6Rg5fSIsFUajNC/e/gMJhn5Q vcn3gn1hkmZbA== Received: by pali.im (Postfix) id 1359396D; Wed, 2 Mar 2022 15:57:49 +0100 (CET) From: =?UTF-8?q?Pali=20Roh=C3=A1r?= To: Lorenzo Pieralisi , Bjorn Helgaas , Rob Herring , Andrew Lunn , Thomas Petazzoni , =?UTF-8?q?Krzysztof=20Wilczy=C5=84ski?= , =?UTF-8?q?Marek=20Beh=C3=BAn?= , Russell King Cc: linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/4] dt-bindings: Add 'slot-power-limit-milliwatt' PCIe port property Date: Wed, 2 Mar 2022 15:57:31 +0100 Message-Id: <20220302145733.12606-3-pali@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220302145733.12606-1-pali@kernel.org> References: <20220302145733.12606-1-pali@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 This property specifies slot power limit in mW unit. It is a form-factor and board specific value and must be initialized by hardware. Some PCIe controllers delegate this work to software to allow hardware flexibility and therefore this property basically specifies what should host bridge program into PCIe Slot Capabilities registers. The property needs to be specified in mW unit instead of the special format defined by Slot Capabilities (which encodes scaling factor or different unit). Host drivers should convert the value from mW to needed format. Signed-off-by: Pali Rohár Signed-off-by: Marek Behún --- This change was already accepted into dt-schema repo by Rob Herring: https://github.com/devicetree-org/dt-schema/pull/66 --- 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..b0cc133ed00d 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-milliwatt: + If present, this property specifies slot power limit in milliwatts. Host + drivers can parse this property and use it for programming Root Port or host + bridge, or for composing and sending PCIe Set_Slot_Power_Limit messages + 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