Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp800733rwb; Thu, 19 Jan 2023 02:56:27 -0800 (PST) X-Google-Smtp-Source: AMrXdXsJqzhb2U9ma1iIrMLh0UJohFp2qAD79DiRnsy0XEpEQc2R78v/Ab447aTgGGAJBYKAwfoH X-Received: by 2002:a17:902:e80e:b0:192:f281:b933 with SMTP id u14-20020a170902e80e00b00192f281b933mr14294916plg.9.1674125787197; Thu, 19 Jan 2023 02:56:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674125787; cv=none; d=google.com; s=arc-20160816; b=LxA9jmcc+6EXTUDr/9yZIKV3vVhedlnPkJ8j6W0r6YT67e20FzAf5oKe7HpS0iHrs1 jSa5DsEcwzHOixs+37eTSWmw0BSHzx72p57sNNBYwK6N3K1oVqxcBYUUjH5ht8/iex1r TOB/mDvCirpzexZ8J1t3z9sACI74d1/i1fDP8c8SZzpxzmqfGYGtLjiYtkT+S0gHyg6Q 5O6wWpZ+mswn+Bm3s+gUYUjQ79rURWbBibf8VyjK+lcAwk0bdrTfGvWSJw6UtPHqYqEn x4McvbA3Vxk1EMHIZbpPGtEKpr30HAX+hPQi+uTbgvxVHnfHEN0bJy75ktVLfA3p1GXE yQlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=Trw0QMPRm4qpmrvD2s2iN8nLUire9vmJrUw7CuZ9X6E=; b=rE8aQ1V8uSqTNqaTd6ox39jpdRt5cU8rp289KwA9GqlTSbxmKaife+fYsmjdh4fik7 DiLGQznqhGD6RjZiQyY/WwVTmsISobR4aO9Ph/RYVous8mxspVgwsuduWVOVvKH938vD grP3cd7r4Ni6ViVMfEvSmtBjxA1Otpfups3jdbqj2Fc5w5923GB2hKJb0uC3ui1tZP+G 7VYTloM5URq14wrBOFjp5EwU8Rd+i6zpP6ba+FaqpVcRuwDIgwY5GxdyAOXXEdd1qCWv tugrTqnywO9Ul59K/GX9g2cbDCnhMetuBIlV8a0GwuRg+eYij15n60b759Bualdh5Rm3 aFeA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t33-20020a634621000000b0046f57b189e9si38763972pga.398.2023.01.19.02.56.21; Thu, 19 Jan 2023 02:56:27 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230177AbjASJpU (ORCPT + 44 others); Thu, 19 Jan 2023 04:45:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230179AbjASJpO (ORCPT ); Thu, 19 Jan 2023 04:45:14 -0500 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B96606B98E; Thu, 19 Jan 2023 01:45:06 -0800 (PST) Received: from EXMBX166.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX166", Issuer "EXMBX166" (not verified)) by ex01.ufhost.com (Postfix) with ESMTP id EBA0F24DFCE; Thu, 19 Jan 2023 17:44:59 +0800 (CST) Received: from EXMBX168.cuchost.com (172.16.6.78) by EXMBX166.cuchost.com (172.16.6.76) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Thu, 19 Jan 2023 17:45:00 +0800 Received: from localhost.localdomain (113.72.144.40) by EXMBX168.cuchost.com (172.16.6.78) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Thu, 19 Jan 2023 17:44:59 +0800 From: Walker Chen To: , , CC: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Emil Renner Berthing , =?UTF-8?q?Heiko=20St=C3=BCbner?= , "Rafael J . Wysocki" , Walker Chen , Subject: [PATCH v4 1/2] dt-bindings: power: Add starfive,jh7110-pmu Date: Thu, 19 Jan 2023 17:44:46 +0800 Message-ID: <20230119094447.21939-2-walker.chen@starfivetech.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230119094447.21939-1-walker.chen@starfivetech.com> References: <20230119094447.21939-1-walker.chen@starfivetech.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [113.72.144.40] X-ClientProxiedBy: EXCAS066.cuchost.com (172.16.6.26) To EXMBX168.cuchost.com (172.16.6.78) X-YovoleRuleAgent: yovoleflag X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS 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 Add bindings for the Power Management Unit on the StarFive JH7110 SoC. Signed-off-by: Walker Chen Reviewed-by: Krzysztof Kozlowski --- .../bindings/power/starfive,jh7110-pmu.yaml | 45 +++++++++++++++++++ .../dt-bindings/power/starfive,jh7110-pmu.h | 17 +++++++ 2 files changed, 62 insertions(+) create mode 100644 Documentation/devicetree/bindings/power/starfive,jh7110-pmu.yaml create mode 100644 include/dt-bindings/power/starfive,jh7110-pmu.h diff --git a/Documentation/devicetree/bindings/power/starfive,jh7110-pmu.yaml b/Documentation/devicetree/bindings/power/starfive,jh7110-pmu.yaml new file mode 100644 index 000000000000..98eb8b4110e7 --- /dev/null +++ b/Documentation/devicetree/bindings/power/starfive,jh7110-pmu.yaml @@ -0,0 +1,45 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/power/starfive,jh7110-pmu.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: StarFive JH7110 Power Management Unit + +maintainers: + - Walker Chen + +description: | + StarFive JH7110 SoC includes support for multiple power domains which can be + powered on/off by software based on different application scenes to save power. + +properties: + compatible: + enum: + - starfive,jh7110-pmu + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + "#power-domain-cells": + const: 1 + +required: + - compatible + - reg + - interrupts + - "#power-domain-cells" + +additionalProperties: false + +examples: + - | + pwrc: power-controller@17030000 { + compatible = "starfive,jh7110-pmu"; + reg = <0x17030000 0x10000>; + interrupts = <111>; + #power-domain-cells = <1>; + }; diff --git a/include/dt-bindings/power/starfive,jh7110-pmu.h b/include/dt-bindings/power/starfive,jh7110-pmu.h new file mode 100644 index 000000000000..132bfe401fc8 --- /dev/null +++ b/include/dt-bindings/power/starfive,jh7110-pmu.h @@ -0,0 +1,17 @@ +/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ +/* + * Copyright (C) 2022 StarFive Technology Co., Ltd. + * Author: Walker Chen + */ +#ifndef __DT_BINDINGS_POWER_JH7110_POWER_H__ +#define __DT_BINDINGS_POWER_JH7110_POWER_H__ + +#define JH7110_PD_SYSTOP 0 +#define JH7110_PD_CPU 1 +#define JH7110_PD_GPUA 2 +#define JH7110_PD_VDEC 3 +#define JH7110_PD_VOUT 4 +#define JH7110_PD_ISP 5 +#define JH7110_PD_VENC 6 + +#endif -- 2.17.1