Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5093118rwl; Mon, 10 Apr 2023 23:50:12 -0700 (PDT) X-Google-Smtp-Source: AKy350bKBp+Be8Knv/usvgKHaq2z8msyfdOkhTVpHIOTGd4BYj6ymRFVxDjlfRqK44pUwN/EgCLc X-Received: by 2002:a17:907:969e:b0:94d:20d2:47ce with SMTP id hd30-20020a170907969e00b0094d20d247cemr3391069ejc.14.1681195812110; Mon, 10 Apr 2023 23:50:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681195812; cv=none; d=google.com; s=arc-20160816; b=O/r5Y4dmztVobK1ZSt9Cdx9IvVhd24FJuEIagP61CXyqvA23WEKAS7CUgc54xIYt6u PqgisNPbClptVlyI4dYpbBpqhx3e7M9NPf/es4pi/csUQRA/M4kCAqJUp6W5U0BBl28T xCcMyzVDUTGsktJh51QdqmmdjeWTtURVr6HxMZa3S+FzbgQhcgoeOqn8NeuQ3DbUBc0S jR9Jqy+kXL9OMrq6526/bhtVZIbCA0T1cLH+k1zEm94n5+xqqgRUQ74ukI8r/uqQFGS8 HH06VJw5eOdekylGkBctlS+uUSeGqQk99ifzSI+KoJhPeI/gWt/x2Cp+/9K5KhZonbZN 0OkA== 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=i50uyxEjSrAfncLKioCUJM+Rz6NRlKUQo0K7WnMxHg4=; b=iWsC4PTbgVR/bkNr67Su3VYnaToebNt22o/mqtyLe6rOaBy+1lsbvWsztQ6D7XEgH/ AZNQqY/s4wBs3hKKuaNuueqLl165WMU4Lmt4YIf32YKoxEpA4R55B3J8CYrH22gVybRj r98EQ7Ik1G0tr6kE3IzFJZ8w6NS/8E86rxS41Evvc0apgv9TI6AFsWa0BrPHOFHK0kwI CfXFr8sDYU+bvZ1+yUU8FTJp1/eSWvNX3YDD/OUXpF4tcoq72EvP64l2YmFX0DpMhnk5 pJe8Nfqr7FUBh5gxNjXH174malb7k0IMyUXgj7MSTLvEutpkP0SelqabG9TR5wTAQt8f 2CMw== 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 tx27-20020a1709078e9b00b0094a6cf63d3dsi1748070ejc.517.2023.04.10.23.49.47; Mon, 10 Apr 2023 23:50:12 -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 S230271AbjDKGsH convert rfc822-to-8bit (ORCPT + 99 others); Tue, 11 Apr 2023 02:48:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58664 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230222AbjDKGry (ORCPT ); Tue, 11 Apr 2023 02:47:54 -0400 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C26F72D70; Mon, 10 Apr 2023 23:47:47 -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 BF0FC24DB89; Tue, 11 Apr 2023 14:47:45 +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; Tue, 11 Apr 2023 14:47:45 +0800 Received: from ubuntu.localdomain (113.72.145.176) by EXMBX162.cuchost.com (172.16.6.72) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Tue, 11 Apr 2023 14:47:44 +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 , , , Subject: [PATCH v1 1/7] dt-bindings: power: Constrain properties for JH7110 PMU Date: Mon, 10 Apr 2023 23:47:37 -0700 Message-ID: <20230411064743.273388-2-changhuang.liang@starfivetech.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230411064743.273388-1-changhuang.liang@starfivetech.com> References: <20230411064743.273388-1-changhuang.liang@starfivetech.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [113.72.145.176] 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=-0.0 required=5.0 tests=RCVD_IN_MSPIKE_H2, SPF_HELO_PASS,SPF_PASS autolearn=unavailable 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 When use "starfive,jh7110-pmu-dphy" compatible, do not need the reg and interrupts properties. Signed-off-by: Changhuang Liang --- .../bindings/power/starfive,jh7110-pmu.yaml | 14 ++++++++++++-- include/dt-bindings/power/starfive,jh7110-pmu.h | 3 +++ 2 files changed, 15 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..ffb4406c2e56 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-pmu-dphy reg: maxItems: 1 @@ -29,10 +31,18 @@ properties: required: - compatible - - reg - - interrupts - "#power-domain-cells" +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