Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp595110rwb; Fri, 18 Nov 2022 05:55:55 -0800 (PST) X-Google-Smtp-Source: AA0mqf6rUJTtVA1LmnE6td3zduQVDCunLcGLQP2wzX4/z7JE4WekrxbmlBeGRkrTHirI5lbOqYVt X-Received: by 2002:a17:90b:4a48:b0:213:a9e6:dadf with SMTP id lb8-20020a17090b4a4800b00213a9e6dadfmr7914258pjb.108.1668779754815; Fri, 18 Nov 2022 05:55:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668779754; cv=none; d=google.com; s=arc-20160816; b=tgJsQycVYx0c5O5fHzwJYcWsknBUrWziQ4MSga4ln8COC/J3Kx8d2AJW/ooqtOeQfW lHbvXZ/NNDkvMII1YCtMQXOZMNsA29vmM65eWWA3NQEQN8IDlA3jxXBbyarm3EcZX6TR z8J7CQQ0GtnbVSGWKOgYlRABgEYaE0h149Hznx8Qs/Fimbo1MvFE/8UwQDF4DEa3osx6 ivqimydO7lPrRZPruw0ayKXoEkGE4L84zVEPYpVSfRbWtBtuZFqc/q1htTQlNC74QxlC YHIITDlcdDYaBEGI+zpUKcFTdWtsWoOZjsar5AyCGjo+wE/SiqM+fk7/ur1Z9y5v/uuO crVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=E4L+avNcDQAjlThTxBgyhe6303gNA1OQOc22PMYze5I=; b=LsrC6opZLuh/fSJsvHNgUDHWdQRDcGaGze8IFqF/5CylwMYoyxhv321x1rBQZSJvuf oOksFGbu3Eg2bEGGNQNJxpExpdGvryNp4hUK/COnPGAQTQhDCrJI6J3YhLmKkKP7Ramh dim7L0zpc0ciWtiW+iwkN/6BwempDZL4w7xJt9teJXZ8UOmmx+xVNCBpBr7hqD1hTBqh B9KxSvKq3tiC228lZHLyf9STN1Y9+dwKzKRYhL0Ftovbmsbo+wdW0GlLBk6Y/l0bftZI p4FOEuCp3xmYIDXonRqOYj8fXf6mTTs6DTA6C+qHQyoT45VAbpB3pMLeu+QDnIi6jQiB lpug== 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 i22-20020aa787d6000000b005726ac39d2esi3428651pfo.30.2022.11.18.05.55.41; Fri, 18 Nov 2022 05:55:54 -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 S242213AbiKRNgi (ORCPT + 92 others); Fri, 18 Nov 2022 08:36:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53706 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242244AbiKRNgQ (ORCPT ); Fri, 18 Nov 2022 08:36:16 -0500 X-Greylist: delayed 108 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Fri, 18 Nov 2022 05:34:18 PST Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EBB1F942DE; Fri, 18 Nov 2022 05:34:18 -0800 (PST) Received: from EXMBX165.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX165", Issuer "EXMBX165" (not verified)) by fd01.gateway.ufhost.com (Postfix) with ESMTP id B29BB24DECD; Fri, 18 Nov 2022 21:32:27 +0800 (CST) Received: from EXMBX068.cuchost.com (172.16.6.68) by EXMBX165.cuchost.com (172.16.6.75) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Fri, 18 Nov 2022 21:32:27 +0800 Received: from localhost.localdomain (183.27.96.116) by EXMBX068.cuchost.com (172.16.6.68) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Fri, 18 Nov 2022 21:32:26 +0800 From: Walker Chen To: , , CC: Rob Herring , Krzysztof Kozlowski , Conor Dooley , "Rafael J . Wysocki" , Walker Chen , Subject: [PATCH v1 0/4] JH7110 Power Domain Support Date: Fri, 18 Nov 2022 21:32:12 +0800 Message-ID: <20221118133216.17037-1-walker.chen@starfivetech.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [183.27.96.116] X-ClientProxiedBy: EXCAS066.cuchost.com (172.16.6.26) To EXMBX068.cuchost.com (172.16.6.68) X-YovoleRuleAgent: yovoleflag X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, 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 This patchset adds power domain controller driver for the StarFive JH7110 SoC. The series has been tested on the VisionFive 2 board. This patchset should be applied after the patchset [1], [2], [3]: [1] https://lore.kernel.org/all/20221118010627.70576-1-hal.feng@starfivetech.com/ [2] https://lore.kernel.org/all/20221118011108.70715-1-hal.feng@starfivetech.com/ [3] https://lore.kernel.org/all/20221118011714.70877-1-hal.feng@starfivetech.com/ Walker Chen (4): dt-bindings: power: Add StarFive JH7110 power domain definitions dt-bindings: power: Add starfive,jh71xx-power bindings soc: starfive: Add StarFive JH71XX pmu driver riscv: dts: starfive: add power controller node .../bindings/power/starfive,jh71xx-power.yaml | 46 +++ MAINTAINERS | 8 + arch/riscv/boot/dts/starfive/jh7110.dtsi | 7 + drivers/soc/Kconfig | 1 + drivers/soc/Makefile | 1 + drivers/soc/starfive/Kconfig | 9 + drivers/soc/starfive/Makefile | 3 + drivers/soc/starfive/jh71xx_pmu.c | 380 ++++++++++++++++++ include/dt-bindings/power/jh7110-power.h | 18 + include/soc/starfive/pm_domains.h | 15 + 10 files changed, 488 insertions(+) create mode 100644 Documentation/devicetree/bindings/power/starfive,jh71xx-power.yaml create mode 100644 drivers/soc/starfive/Kconfig create mode 100644 drivers/soc/starfive/Makefile create mode 100644 drivers/soc/starfive/jh71xx_pmu.c create mode 100644 include/dt-bindings/power/jh7110-power.h create mode 100644 include/soc/starfive/pm_domains.h base-commit: 094226ad94f471a9f19e8f8e7140a09c2625abaa prerequisite-patch-id: 8ebfffa09b478904bf7c516f76e2d824ddb60140 prerequisite-patch-id: e8dd8258a4c4062eee2cf07c4607d52baea71f3a prerequisite-patch-id: d050d884d7b091ff30508a70f5ce5164bb3b72e5 prerequisite-patch-id: 0e41f8cfd4861fcbf6f2e6a2559ce28f0450299e prerequisite-patch-id: 6e1652501859b85f101ff3b15ced585d43c71c1b prerequisite-patch-id: 587628a67adad5c655e5f998bf6c4a368ec07d3c prerequisite-patch-id: 596490c0e397df6c0249c1306fbb1d5bf00b5b83 prerequisite-patch-id: dc873317826b50364344b25ac5cd74e811403f3d prerequisite-patch-id: a50150f41d8e874553023187e22eb24dffae8d16 prerequisite-patch-id: 735e62255c75801bdc4c0b4107850bce821ff7f5 prerequisite-patch-id: 9d2e83a2dd43e193f534283fab73e90b4f435043 prerequisite-patch-id: 7a43e0849a9afa3c6f83547fd16d9271b07619e5 prerequisite-patch-id: e7aa6fb05314bad6d94c465f3f59969871bf3d2e prerequisite-patch-id: 6276b2a23818c65ff2ad3d65b562615690cffee9 prerequisite-patch-id: d834ece14ffb525b8c3e661e78736692f33fca9b prerequisite-patch-id: 4c17a3ce4dae9b788795d915bf775630f5c43c53 prerequisite-patch-id: dabb913fd478e97593e45c23fee4be9fd807f851 prerequisite-patch-id: ba61df106fbe2ada21e8f22c3d2cfaf7809c84b6 prerequisite-patch-id: 287572fb64f83f5d931034f7c75674907584a087 prerequisite-patch-id: 536114f0732646095ef5302a165672b3290d4c75 prerequisite-patch-id: 258ea5f9b8bf41b6981345dcc81795f25865d38f prerequisite-patch-id: 8b6f2c9660c0ac0ee4e73e4c21aca8e6b75e81b9 prerequisite-patch-id: e09e995700a814a763aa304ad3881a7222acf556 prerequisite-patch-id: 841cd71b556b480d6a5a5e332eeca70d6a76ec3f prerequisite-patch-id: d074c7ffa2917a9f754d5801e3f67bc980f9de4c prerequisite-patch-id: 5f59bc7cbbf1230e5ff4761fa7c1116d4e6e5d71 prerequisite-patch-id: d5da3475c6a3588e11a1678feb565bdd459b548e -- 2.17.1