From patchwork Fri May 19 06:01:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Changhuang Liang X-Patchwork-Id: 9552 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1017286vqo; Thu, 18 May 2023 23:13:00 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4J2A2itWsKsuyK94643dzgfSmaXmQ78DXK8rqMupA3y+F9CnlMC7CEBitl71jGEyMYbhg6 X-Received: by 2002:a05:6a20:43a5:b0:f4:24e6:1065 with SMTP id i37-20020a056a2043a500b000f424e61065mr965541pzl.39.1684476780747; Thu, 18 May 2023 23:13:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684476780; cv=none; d=google.com; s=arc-20160816; b=APq6kpAIjY53gTkDLyNQAiCKT9rsWgyltE/VFdmGtQzQtamv/yr8LxoVYYgTbro9m/ A7KsJG/Tv+s4PYO9hdaudeUo9wq5xY1KSpEHentSyryNHd8Nai9dM9u5hB2WFLNADfX7 o0Q9Knx6xVSmtaNn7aivpuMrDJWVBRROxYRSB4BYhABIUbCSyelgf9yW2Rq+kJrSnC1N luBoYOq7l7AEnF46UsyzMFy0NaOf9TH6Q2tHtyHOQ3bmKPx5gx+QeHBHf7VBa1XJ6Ajk d1X+b2OIjU/+kolLKr58idMuk0oN+gpk7EMbGKhmTPUFtaF5Lq3UTzw2Y0vXZjfZ+AzT XI9g== 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=OD33GPXzS+XG5SeVlKukOLOBFYm2ekn2qWrsZYaR4Wk=; b=PLdajinm+ZShdj8+w2o/tqLkJljzTBCR33tFfLiPNVbctge9rDLA4uafDmT3iOvBS0 26Bt3XnV0yRRTQemBS5Kr7PT6/r8G8wZGnxGdcB7UG4LEzSeC/p2yQLgRTTpFdNum9fT LvdktjAEdPsKAswdjORjxI0Vb48S6odZgwKUx8FbnwJjzrC5JPpfY9hZXa/S2VXdHX2m yPZC/6zBwq8QE3yz6lUZgGtO3MJVq+avQaqKyvVMVBeiDdswFGbPU9J3NvZdmrtteVlP CpZ3zwgtReqvemNsXoRTwyawaR9rluVbkAR2GzTh6nH6Jjpc7Oe5yCVr4IUwIYz0tHnw 1oVg== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 19-20020a630113000000b005343c3f77efsi3111035pgb.440.2023.05.18.23.12.46; Thu, 18 May 2023 23:13:00 -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 S230083AbjESGC1 convert rfc822-to-8bit (ORCPT + 99 others); Fri, 19 May 2023 02:02:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229572AbjESGCM (ORCPT ); Fri, 19 May 2023 02:02:12 -0400 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 90D0910E6; Thu, 18 May 2023 23:02:11 -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 CA7EB809C; Fri, 19 May 2023 14:02:04 +0800 (CST) Received: from EXMBX062.cuchost.com (172.16.6.62) by EXMBX166.cuchost.com (172.16.6.76) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Fri, 19 May 2023 14:02:04 +0800 Received: from ubuntu.localdomain (113.72.146.100) by EXMBX062.cuchost.com (172.16.6.62) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Fri, 19 May 2023 14:02:04 +0800 From: Changhuang Liang To: Rob Herring , Krzysztof Kozlowski , Conor Dooley CC: Walker Chen , Changhuang Liang , Hal Feng , , Subject: [PATCH v4 0/4] Add JH7110 AON PMU support Date: Thu, 18 May 2023 23:01:58 -0700 Message-ID: <20230519060202.15296-1-changhuang.liang@starfivetech.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Originating-IP: [113.72.146.100] X-ClientProxiedBy: EXCAS062.cuchost.com (172.16.6.22) To EXMBX062.cuchost.com (172.16.6.62) X-YovoleRuleAgent: yovoleflag X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766301924857939238?= X-GMAIL-MSGID: =?utf-8?q?1766301924857939238?= This patchset adds aon power domain driver for the StarFive JH7110 SoC. It is used to turn on/off dphy rx/tx power switch. It also can use syscon operation. 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/20230512022036.97987-1-xingyu.wu@starfivetech.com/ changes since v3: - Rebased on tag v6.4-rc1. - Dropped the contents changed by the yaml in patch 1. - Dropped patch 5: Add AON PMU node. v3: https://lore.kernel.org/all/20230510015311.27505-1-changhuang.liang@starfivetech.com/ changes since v2: - Updated commit message. - Changed "starfive,jh7110-aon-pmu" to "starfive,jh7110-aon-syscon". - Dropped patch 3: Modify ioremap to regmap. - Changed "pmu_parse_dt" to "pmu_parse_irq". - Dropped "pmu_parse_dt" function in aon pmu. - Changed copyright to "2022-2023" in "starfive,jh7110-pmu.h". - Replaced regread/regwrite operation with io_read/io_write operation. v2: https://lore.kernel.org/all/20230419035646.43702-1-changhuang.liang@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 (4): dt-bindings: power: Add power-domain header for JH7110 soc: starfive: Replace SOC_STARFIVE with ARCH_STARFIVE soc: starfive: Extract JH7110 pmu private operations soc: starfive: Add JH7110 AON PMU support MAINTAINERS | 1 + drivers/soc/starfive/Kconfig | 4 +- drivers/soc/starfive/jh71xx_pmu.c | 138 ++++++++++++++---- .../dt-bindings/power/starfive,jh7110-pmu.h | 5 +- 4 files changed, 117 insertions(+), 31 deletions(-) base-commit: ac9a78681b921877518763ba0e89202254349d1b --- 2.25.1