Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp213441rwe; Tue, 18 Apr 2023 20:55:24 -0700 (PDT) X-Google-Smtp-Source: AKy350aBAh0pjmmMRviROx39yNyeF+GirGj34pX2vtwFTgHmW3Dc3Kd9bmUiA53WXPUcKEiNk7Tf X-Received: by 2002:a05:6a20:72a3:b0:f0:78cc:f5dc with SMTP id o35-20020a056a2072a300b000f078ccf5dcmr2115004pzk.5.1681876524752; Tue, 18 Apr 2023 20:55:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681876524; cv=none; d=google.com; s=arc-20160816; b=j5rYxODMZCiCDzNwlKWopg81Hm4h1WxdbOzvbRxd3qtFDY2icQDdYqnTa/sq9RJGZX YGnpHPYPex3lzHFoiBJHUQ7kfuL4RpUF/aghhJLKpIMPa0bqEsS46k5ABvP+FgQIsQLA sEWy16tbJ4w4cTVFFv4tDymtdEo/f0nPXb5QtMljMiKHuRVUGqu1czVl06OBFzbsMhko XyqOYw25feu6o8UORtQWpTQ3drWk/FdEupn7J8V8pveQ8AQrNgXjF0GPFXlQ4ftKffN0 uUMiZPB39eGJ9LNwsQKopPmu3LNdfn2sv1zjSg/yDr02VnTFwGQ10D+KGNz/K5WCy0oB 8nWg== 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 :message-id:date:subject:cc:to:from; bh=Viw4d7h5C3MbUkKLbtHUe7jGBVoQwmPfeAU0yR0c8wE=; b=mUIiipZqNK7oOb4/HqXF8BhmSFEVsl7GTvt6D35TRODN62uVeJNkhKHy+GJKigTrrY JB0aAIAqALDLoE/aTNOHhRdWnGuPSm7XKhSIZC7TJocyrqUU5Ni7JE5XRQjhfpashwqH oDFMQYRkOCeugxZ4HaJXQoLh+d1H5mUE4iD4JEYjitv3ltH5She5SI9BFY9u+qDisfgd VMyjEEyt3EEbSDpUTV5duYAgsA86USRvOgLjzPgO7JdSWL1aL0OyZ6xOXLja0Hfh3Nxl UqYjQOrM9u7oKWsboSTM/eVyAc8Z97+BP+IbFWM367gUR3IekYiRC0gFO7xXrwF/TEpv 721A== 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 c3-20020a656183000000b0050beec2c6cdsi14732342pgv.238.2023.04.18.20.55.13; Tue, 18 Apr 2023 20:55:24 -0700 (PDT) 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 S232036AbjDSDs4 convert rfc822-to-8bit (ORCPT + 99 others); Tue, 18 Apr 2023 23:48:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229879AbjDSDsm (ORCPT ); Tue, 18 Apr 2023 23:48:42 -0400 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07462D8; Tue, 18 Apr 2023 20:48:38 -0700 (PDT) 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 fd01.gateway.ufhost.com (Postfix) with ESMTP id 5159824E01C; Wed, 19 Apr 2023 11:48:35 +0800 (CST) Received: from EXMBX162.cuchost.com (172.16.6.72) by EXMBX166.cuchost.com (172.16.6.76) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Wed, 19 Apr 2023 11:48:35 +0800 Received: from ubuntu.localdomain (113.72.144.253) by EXMBX162.cuchost.com (172.16.6.72) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Wed, 19 Apr 2023 11:48:34 +0800 From: Changhuang Liang To: Rob Herring , Krzysztof Kozlowski , Emil Renner Berthing , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou CC: Walker Chen , Changhuang Liang , Hal Feng , , , Subject: [PATCH v2 0/6] Add JH7110 AON PMU support Date: Tue, 18 Apr 2023 20:48:26 -0700 Message-ID: <20230419034833.43243-1-changhuang.liang@starfivetech.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [113.72.144.253] X-ClientProxiedBy: EXCAS064.cuchost.com (172.16.6.24) To EXMBX162.cuchost.com (172.16.6.72) X-YovoleRuleAgent: yovoleflag Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_MSPIKE_H2, SPF_HELO_PASS,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 patchset adds aon power domain driver for the StarFive JH7110 SoC. It is used to turn on/off dphy rx/tx power switch. The series has been tested on the VisionFive 2 board. This patchset should be applied after the patchset [1]: [1] https://lore.kernel.org/all/20230414024157.53203-1-xingyu.wu@starfivetech.com/ changes since v1: - Updated commit message. - Changed "starfive,jh7110-pmu-dphy" to "starfive,jh7110-aon-pmu". - Put if condition under allOf in .yaml file. - Updated spelling error. - Dropped patch 4: Add pmu type operation. - Changed "jh71xx_pmu_general_set_state" to "jh7110_pmu_set_state" and moved it in call back. - Changed "jh7110_pmu_general_parse_dt" to "jh7110_pmu_parse_dt" and moved it in call back. - Used pmu_status save the pmu status offset. - Changed "JH71XX_PMU_DPHY_SWITCH" to "JH71XX_AON_PMU_SWITCH" - Changed copyright to "2022-2023" v1: https://lore.kernel.org/all/20230411064743.273388-1-changhuang.liang@starfivetech.com/ Changhuang Liang (6): dt-bindings: power: Add JH7110 AON PMU support soc: starfive: Replace SOC_STARFIVE with ARCH_STARFIVE soc: starfive: Modify ioremap to regmap soc: starfive: Extract JH7110 pmu private operations soc: starfive: Add JH7110 AON PMU support riscv: dts: starfive: jh7110: Add AON PMU node .../bindings/power/starfive,jh7110-pmu.yaml | 15 +- MAINTAINERS | 1 + arch/riscv/boot/dts/starfive/jh7110.dtsi | 5 + drivers/soc/starfive/Kconfig | 4 +- drivers/soc/starfive/jh71xx_pmu.c | 200 +++++++++++++----- .../dt-bindings/power/starfive,jh7110-pmu.h | 3 + 6 files changed, 174 insertions(+), 54 deletions(-) base-commit: 197b6b60ae7bc51dd0814953c562833143b292aa prerequisite-patch-id: 388b8adbb0fe2daf4d07a21eafd4f1bd50ce2403 prerequisite-patch-id: 1117ecaa40a353c667b71802ab34ecf9568d8bb2 prerequisite-patch-id: b00c6b21fbd0353d88b7c9b09093ba30b765f45b prerequisite-patch-id: 08ec9027e8a5c6fdf201726833168c7464a9b94d prerequisite-patch-id: fb5120248e48fe1faf053ae0b490c92507ec2b44 prerequisite-patch-id: 4b93d8d590b0a2abe7b4be5287232c494c35be4a prerequisite-patch-id: 89f049f951e5acf75aab92541992f816fd0acc0d prerequisite-patch-id: c09c4c68af017b8e5c97b515cb50b70c18a2e705 prerequisite-patch-id: 0df8ccb0e848c2df4c2da95026494bebecede92d prerequisite-patch-id: 315303931e4b6499de7127a88113763f86e97e16 prerequisite-patch-id: 40cb8212ddb024c20593f73d8b87d9894877e172 prerequisite-patch-id: a1673a9e9f19d6fab5a51abb721e54e36636f067 prerequisite-patch-id: d57cc467fb036241b9276320ff076c4a30d376d6 prerequisite-patch-id: 6e563d68bc5dbf951d4ced17897f9cc4d56169fe prerequisite-patch-id: 61ec2caa21fd0fc60e57977f7d16d3f72b135745 prerequisite-patch-id: 1387a7e87b446329dfc21f3e575ceae7ebcf954c prerequisite-patch-id: 258ea5f9b8bf41b6981345dcc81795f25865d38f prerequisite-patch-id: 8b6f2c9660c0ac0ee4e73e4c21aca8e6b75e81b9 prerequisite-patch-id: dbb0c0151b8bdf093e6ce79fd2fe3f60791a6e0b prerequisite-patch-id: 9007c8610fdcd387592475949864edde874c20a2 prerequisite-patch-id: d57e95d31686772abc4c4d5aa1cadc344dc293cd prerequisite-patch-id: 0a0ac5a8a90655b415f6b62e324f3db083cdaaee prerequisite-patch-id: c9bb2bf387954769731a627a195a2e957506d7c0 prerequisite-patch-id: 3b13e6bd0cb1fede74841bada2a50d30c8049198 prerequisite-patch-id: 3dc2fe994cb83e5bd1faac17b9e40e4d9adf9863 prerequisite-patch-id: 4c4d536c34d6cb607d4d00d4c982175d217832be prerequisite-patch-id: dd12678b9cdcd6dccdb900c45fe1f6ce11d67fd5 prerequisite-patch-id: 284b5d1b95c6d68bca08db1e82ed14930c98b777 prerequisite-patch-id: 2c2daec388f036ebc8decfaeaa216d979d792c58 -- 2.25.1