From patchwork Wed Apr 19 03:48:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Changhuang Liang X-Patchwork-Id: 85174 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp88289vqo; Tue, 18 Apr 2023 21:18:29 -0700 (PDT) X-Google-Smtp-Source: AKy350a9YeWQqQ557LPEcs/zOyGR89I4S/Nki0NVcLRKyEj6u6s2E+yHP/SD7QYfmsLD8gRGKHx1 X-Received: by 2002:a17:90b:3847:b0:23f:7d05:8762 with SMTP id nl7-20020a17090b384700b0023f7d058762mr1509113pjb.23.1681877908993; Tue, 18 Apr 2023 21:18:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681877908; cv=none; d=google.com; s=arc-20160816; b=voan70dIFPlyUcGrhNoHwTYc6xw6SdaWdezmtxvIVU6GD50JaM/NbJeywpl2fKB2sD ewve0eKOr3yH7FdJ6jsaN6ZTWu0dKO89Drdn2IeVLK/qnQLyYenqfb8OYs2iCTtebOB6 +xsikPcNykiNZ6WwZaJVGaDuiEA5RthEPletUTrrNwjlANmfR9F790BBSIkcV7++24iz 32NqpRcSTZ2ekNJCohD9qvt018x94ZaDPaRQrpTcwoIMjYQ4RBLVuv4kjwev3PvmV3W2 lEW7qyttWkzxhc18yqOhbosp6EDYGE0iMTdLJ0PjZrvTYDwrMvh4nbQwVxoJ0Z/cJewp JNOg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=m9Flctn0+e6it5urFPvxtd6VGQDrPUllruLEy/rO1pc=; b=VF23VpVOdfv7lGGygBqzDt7w1LL0b9b3zh8nwTmNUOcsPNNnXFA/7VDlWFOjwBK+C4 WBdgl6mukeLOvoh/YRJXgfwM+vVxA8qUz3dkMhjby6rYJqX5txDpcegMqtkP3jXSPjDO pGpJxMfONmKia3EekjoeXneHzLGGHbPvuEPRefuKruktKzwnZGWFxqwD7nB7a3GsWM2M KcTCTFj4G8gnjY/WKLsK4do4Co/3w27xG8Ua2CxZ50LkYUlwiBp3+HTHXudPoiOEA2Y5 nON+xqZDZJ119XkSLUYfGKXrfa5pCLj/QEGCxubyREgcL4HUJI9o1xI4+MmIz/plSv8f Of6A== 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 d9-20020a631d09000000b005138c1f1fd1si11915005pgd.857.2023.04.18.21.18.13; Tue, 18 Apr 2023 21:18:28 -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 S232125AbjDSDtL convert rfc822-to-8bit (ORCPT + 99 others); Tue, 18 Apr 2023 23:49:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231980AbjDSDsq (ORCPT ); Tue, 18 Apr 2023 23:48:46 -0400 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D7A208E; Tue, 18 Apr 2023 20:48:43 -0700 (PDT) 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 ex01.ufhost.com (Postfix) with ESMTP id 7D40724E24B; Wed, 19 Apr 2023 11:48:42 +0800 (CST) Received: from EXMBX162.cuchost.com (172.16.6.72) by EXMBX165.cuchost.com (172.16.6.75) 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:35 +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 1/6] dt-bindings: power: Add JH7110 AON PMU support Date: Tue, 18 Apr 2023 20:48:27 -0700 Message-ID: <20230419034833.43243-2-changhuang.liang@starfivetech.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230419034833.43243-1-changhuang.liang@starfivetech.com> References: <20230419034833.43243-1-changhuang.liang@starfivetech.com> MIME-Version: 1.0 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 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, 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?1763576810000958635?= X-GMAIL-MSGID: =?utf-8?q?1763576810000958635?= Add AON PMU for StarFive JH7110 SoC, it can be used to turn on/off DPHY rx/tx power switch, and it don't need the properties of reg and interrupts. Signed-off-by: Changhuang Liang Reviewed-by: Krzysztof Kozlowski --- .../bindings/power/starfive,jh7110-pmu.yaml | 15 +++++++++++++-- include/dt-bindings/power/starfive,jh7110-pmu.h | 3 +++ 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/power/starfive,jh7110-pmu.yaml b/Documentation/devicetree/bindings/power/starfive,jh7110-pmu.yaml index 98eb8b4110e7..c50507c38e14 100644 --- a/Documentation/devicetree/bindings/power/starfive,jh7110-pmu.yaml +++ b/Documentation/devicetree/bindings/power/starfive,jh7110-pmu.yaml @@ -8,6 +8,7 @@ title: StarFive JH7110 Power Management Unit maintainers: - Walker Chen + - Changhuang Liang description: | StarFive JH7110 SoC includes support for multiple power domains which can be @@ -17,6 +18,7 @@ properties: compatible: enum: - starfive,jh7110-pmu + - starfive,jh7110-aon-pmu reg: maxItems: 1 @@ -29,10 +31,19 @@ properties: required: - compatible - - reg - - interrupts - "#power-domain-cells" +allOf: + - if: + properties: + compatible: + contains: + const: starfive,jh7110-pmu + then: + required: + - reg + - interrupts + additionalProperties: false examples: diff --git a/include/dt-bindings/power/starfive,jh7110-pmu.h b/include/dt-bindings/power/starfive,jh7110-pmu.h index 132bfe401fc8..0bfd6700c144 100644 --- a/include/dt-bindings/power/starfive,jh7110-pmu.h +++ b/include/dt-bindings/power/starfive,jh7110-pmu.h @@ -14,4 +14,7 @@ #define JH7110_PD_ISP 5 #define JH7110_PD_VENC 6 +#define JH7110_PD_DPHY_TX 0 +#define JH7110_PD_DPHY_RX 1 + #endif