Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp215266rwe; Tue, 18 Apr 2023 20:57:49 -0700 (PDT) X-Google-Smtp-Source: AKy350YJchq9NE+gUvJz1dXiSSDONssuJmNpFGSpLRuVGma7lDzghjAj4CVLr2qLv8KH9C6kGB9l X-Received: by 2002:a17:903:2309:b0:1a6:4a25:c7f7 with SMTP id d9-20020a170903230900b001a64a25c7f7mr4813277plh.6.1681876668992; Tue, 18 Apr 2023 20:57:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681876668; cv=none; d=google.com; s=arc-20160816; b=XczjzFGIDnCAKNY2BbYUK6ikxMlrVk2VCTPp6beFlgPW6/tsitzLGg9WveklNXrxas VJnKL9ee+z3kkK/gcxSsLLQkFN6Ga7oocC6UBvz3y/HBbl71fk9ubllC+ct5BWj8D7Gv RiBG7tze4YNdbZ1GGcpU1etzOAnxoGXbHxffMmMfYCuSDhFp1nNZ1Kz0i+K1NgFEkwSN di1xKGhKQ69foAzuGButQzXYrmspKhdi4vXrCPQD2NNFyr647+CB+n57ULGmPJhIt+4o w+WiRzud51PcQniiGS5WdibZWShgUCl21Bl8jrvAed3NjMhIFWxPKw5suAIJiELijzX/ gcdA== 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=flisJczTZ1t7/nBXT0hG5dALub0L23Yn1+YuRbtzfgtelbupDV172EpALiefuCwg3e N02ohF6VMBaxlH3dr+vhKwYoKCEKqSs8YJzm1el2AuIoPP+MLe3yGSl7avmtmR9dgAWR L9c79laPgqxM3dfboPpjwwz6u6qmr9L9qv7BGqRZ3fx3AR+VCaGRMvtPWkcIjvR7Ie/Z XlDq97Y8dUsUco7SdwM1gKSrx27xFOH1SVwfl0VUXpnTPmaJfmCrxCjwjYkJy0yjCuT1 nag+GOz7w2Rcfpq5sU43X7D09ktudNbk5m4KdotmTG9U77jqkHdQyjzy0JIIwtVNoops 4QPg== 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 x24-20020a63db58000000b005193a2c7b1esi1983107pgi.447.2023.04.18.20.57.38; Tue, 18 Apr 2023 20:57:48 -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 S232007AbjDSD45 convert rfc822-to-8bit (ORCPT + 99 others); Tue, 18 Apr 2023 23:56:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231667AbjDSD4x (ORCPT ); Tue, 18 Apr 2023 23:56:53 -0400 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC7075FFE; Tue, 18 Apr 2023 20:56:51 -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 ex01.ufhost.com (Postfix) with ESMTP id 6B8F724E1B5; Wed, 19 Apr 2023 11:56:50 +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:56:50 +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:56:49 +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: [RESEND v2 1/6] dt-bindings: power: Add JH7110 AON PMU support Date: Tue, 18 Apr 2023 20:56:41 -0700 Message-ID: <20230419035646.43702-2-changhuang.liang@starfivetech.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230419035646.43702-1-changhuang.liang@starfivetech.com> References: <20230419035646.43702-1-changhuang.liang@starfivetech.com> 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,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 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 --- .../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 -- 2.25.1