From patchwork Thu Jul 18 07:11:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "lihuisong (C)" X-Patchwork-Id: 13736114 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C71CEC3DA49 for ; Thu, 18 Jul 2024 07:22:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type: Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID:Date :Subject:CC:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=aWS2pmbIJpji+jlQTjTUwxtv44+nN6MHBHCx51yiXuY=; b=nbb4ZKDPsoIq92R0eAgmLkj9zs z0wF84LX3F3ffMrN2BkUtwqapkjFF0Qr1tiU39rktTsvQUzNEDMzykMb1dA1gG8ZLgs+RRCtU9ASe POroYI3JpKD3YFYpG2L96Hu2DVKVbT8CHONFDqbPOsYS5F/V7OzjEzBpiflBe3OphKKA/Ef8zaN4D rkShPrqq4BmrnrH2g2sHlZUoMGyiAEDc1WrM2udpMV8+WHaXxWFAewrLJ3wc16Fbg/lvv+mls/b5J qa3Apcegv+f6zqgND+Q54ZmCUQbszFb9MvP8JXvJTKHDa/xwjbp0415HQfEEET4TjbIYgX1DNTwos JGESAcPA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sULTK-0000000GACh-1heL; Thu, 18 Jul 2024 07:22:38 +0000 Received: from szxga05-in.huawei.com ([45.249.212.191]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sULRe-0000000G9Pw-1TJF for linux-arm-kernel@lists.infradead.org; Thu, 18 Jul 2024 07:20:56 +0000 Received: from mail.maildlp.com (unknown [172.19.88.234]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4WPkcs0pFTz28fXS; Thu, 18 Jul 2024 15:16:29 +0800 (CST) Received: from kwepemm600004.china.huawei.com (unknown [7.193.23.242]) by mail.maildlp.com (Postfix) with ESMTPS id 51C221402D0; Thu, 18 Jul 2024 15:20:48 +0800 (CST) Received: from localhost.localdomain (10.28.79.22) by kwepemm600004.china.huawei.com (7.193.23.242) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Thu, 18 Jul 2024 15:20:47 +0800 From: Huisong Li To: CC: , , , , , Subject: [PATCH 5/5] doc: soc: hisilicon: kunpeng_hccs: add low power interface description for HCCS Date: Thu, 18 Jul 2024 15:11:34 +0800 Message-ID: <20240718071134.31155-6-lihuisong@huawei.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20240718071134.31155-1-lihuisong@huawei.com> References: <20240718071134.31155-1-lihuisong@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.28.79.22] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To kwepemm600004.china.huawei.com (7.193.23.242) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240718_002054_736272_00CE078F X-CRM114-Status: UNSURE ( 8.63 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This patch add low power interface description for HCCS. Signed-off-by: Huisong Li --- .../sysfs-devices-platform-kunpeng_hccs | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/Documentation/ABI/testing/sysfs-devices-platform-kunpeng_hccs b/Documentation/ABI/testing/sysfs-devices-platform-kunpeng_hccs index 1666340820f7..28bffb79e742 100644 --- a/Documentation/ABI/testing/sysfs-devices-platform-kunpeng_hccs +++ b/Documentation/ABI/testing/sysfs-devices-platform-kunpeng_hccs @@ -79,3 +79,29 @@ Description: indicates a lane. crc_err_cnt: (RO) CRC err count on this port. ============= ==== ============================================= + +What: /sys/devices/platform/HISI04Bx:00/used_typs +Date: July 2024 +KernelVersion: 6.11 +Contact: Huisong Li +Description: + This interface is used to show all HCCS type used on current + platform, like, HCCS-v1, HCCS-v2 and so on. + +What: /sys/devices/platform/HISI04Bx:00/support_pm_types +What: /sys/devices/platform/HISI04Bx:00/dec_lane +What: /sys/devices/platform/HISI04Bx:00/inc_lane +Date: July 2024 +KernelVersion: 6.11 +Contact: Huisong Li +Description: + This series interface under /sys/devices/platform/HISI04Bx/ + directory is used to support low power of some HCCS type + by operating their lane number. The 'inc_lane' and 'dec_lane' + are just exposed with root privilege and write-onely attributes + when there is the HCCS type supported low power operation. + The 'support_pm_types' with read-only attributes is used to + expose the HCCS type supported PM. The available input of + 'inc_lane' and 'dec_lane' is from 'support_pm_types'. + Note: allow to decrease lane only when all specified HCCS ports + are not busy.