Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp834066pxb; Tue, 12 Apr 2022 14:46:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxmp1w4SkF0gZqu3EqDu1Knlc0UWKcYM2keJSk2IbEJmkpSWszPG3KJEGljcNE/a2b1yzKu X-Received: by 2002:a17:90a:af86:b0:1c7:db8e:8589 with SMTP id w6-20020a17090aaf8600b001c7db8e8589mr7231063pjq.94.1649800001655; Tue, 12 Apr 2022 14:46:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649800001; cv=none; d=google.com; s=arc-20160816; b=fm3C4JXsMVXHyd5nyMdAQh4X2E1/dpftmpf8Zek5wNpBebJrqlTwUUKPqS+LwGrj67 3OveoBML18693FtbmQCwVkxJQSFBlkX8EpLS9wbsgZv1j8UJarnyMrYKSUsU4O5n+5x/ gAYE60ah2sOdvwd+WVL0k36mAuDATuSEiwPwHbyt8JvtPXW/8JEPwqCyNWliHlb7VT0s d52CT9/FkzKFkW8e+WcPHXxnEaJ4hqQ/QlwZt3cXjKzMOM9gTALLD+z+G6uRvZhagkVw gLlM4rigjvFM6+SSUvkrnETnXCwLt6JBViW7lXKohCgNSR9axWM8vzccTosgxETVMx2V XoMA== 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=kb6MlZKsbRkpYEyOS5vnpM0qajE7MqSK+jpRmf8GjzdLrXknZ0W+OrdBHEeQos+yxw +SfJ3gO8Jsrh0jWQUCHURxYBog+v7OrT6FAAtftKWVqHyECBut0a5d6VBlEQNjxlVoF8 8uGq0uv9aCmjptSmMyywm7rpdwvvgzjGwD9XBeEfj2SWSOcvfYbSxPjN9aq2CyskgJGN r4XQFnLI4x/QLMN4KbFOPFVCMaNqW9Mfj5ckRuqiO75wx6Gm+HDUcIV8XvqBbNdcHqnD IZP69dlTzVLo6B2+LNrJiOCTKE6rdNe1vdy+jCLngQeBPIB5LAUPJNFxj/6s+GHbaJVb 47eQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="sgjz/h69"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id 84-20020a630757000000b0039da2c7eaf9si1892893pgh.452.2022.04.12.14.46.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Apr 2022 14:46:41 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="sgjz/h69"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 718EB139CF2; Tue, 12 Apr 2022 13:46:12 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234160AbiDLK7w (ORCPT + 99 others); Tue, 12 Apr 2022 06:59:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377356AbiDLK4h (ORCPT ); Tue, 12 Apr 2022 06:56:37 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9767A652E3; Tue, 12 Apr 2022 02:50:33 -0700 (PDT) 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 16E21B81BB6; Tue, 12 Apr 2022 09:50:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A89F2C385AC; Tue, 12 Apr 2022 09:50:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1649757030; bh=dtnf8XsUhj4Osmhrrm08Dt6iD1UNUzpBusiWKcRHhvA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sgjz/h69Zzm0IbBc4hN20acNhDIQ01/cZcuXUONWZL+DHD66VXgkoGOSRTymU+XcH 2LefS2l+jCeD1nkXXaRa0DokpNc4BbTeXW3IaBGNha8QG2wXmEqmxSPViXeRdZsHGp +0DnZ28COqc9mV7B3x2/A3utLWokfnxZoMTxQK7Lgffo72ukL4tZrxg8llezKL6snR B9uf9RVd93AptBUT2LGOeJwDPAOB3IGtOFUP1CKNSg0FxqAGgJ+rf6aOTbF/MfPI0e ME3AWRJPJp5V0Fr311sN24BT7hBUrPDtzZWpn2dMosyauzKGjWj/mTeFkL7TIvbsn8 rj15zmdxoHo5w== Received: by pali.im (Postfix) id 4A1632AB3; Tue, 12 Apr 2022 11:50:28 +0200 (CEST) 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 v5 2/4] dt-bindings: Add 'slot-power-limit-milliwatt' PCIe port property Date: Tue, 12 Apr 2022 11:49:44 +0200 Message-Id: <20220412094946.27069-3-pali@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220412094946.27069-1-pali@kernel.org> References: <20220412094946.27069-1-pali@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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