Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp674361rwl; Wed, 12 Apr 2023 02:23:12 -0700 (PDT) X-Google-Smtp-Source: AKy350YGPF/5FFB776smg3M7VSghLjJVqlcfDwean9DIwYLl3g0wkeAH2Q04FEKtGNSDjFPfi+JW X-Received: by 2002:a17:90a:b10a:b0:23f:7464:ae55 with SMTP id z10-20020a17090ab10a00b0023f7464ae55mr1945707pjq.0.1681291391848; Wed, 12 Apr 2023 02:23:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681291391; cv=none; d=google.com; s=arc-20160816; b=HdgXItIK6RSK0XgayaYt9tmvXxdqQvbK/Xy3/LgrnqSHbKFF4JNe8x5Lh7X++Smvnk EIl4wEStq33jz5WYOROrWnO7L2fUn+KFgLSqzykxli2+EOjPQ9SCDE/ktnzLOyHB0jXA GxViGfzfddskacHzrUFJYat8vG1MZjSzq2EUhsLrlBZLglSAzZz8lEfQiXH81NkuQHTt FhtqO/2zkPNjb7sGyJD+K9ExKwNFqiowa/xklxvzuWWKGMmvztBq37KvI2gncudqoKkV Cp1XoNERxm2yGKGjviR6trKTaa5prJWeKzUTnM4nfQdxx1lnJjiGIr4WufrpAWC20D4M 9aaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=woAIjEc6XFQRj+5HkgxMw72jrQpy0qcMATdo4nnwRzI=; b=pDfAaynZABCOiPh7sYDMAfZsrmWRpMD0vdNCU4GrzkYvbxt96E6dhba7YuGYC24YuW 7beGlEZlRA+nrG6xXhn/aQu+ayg21ULBvgosWEUQbhsYXuvCoz9uWOsyYRMMn6DteYCn K18o3k5qtPbZil8IvZ3dCMG9UfYNDZRWUrdqTrx2J9ovaIxQ4R4MWxERFKlBRSGLe3on soWzbEgfOzmIiN7t1da5S7WpThO0qUoqj5ihKDDBDhHwYehYTz6pOs8sfIjFkPI9YJoy zDbyALnI3SwNufiuLy7HSRV1Yr1ONYFq+p7d3DXgye8UjU94rbzGMaaVS0B8GhdzFUf5 ihCw== 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 q4-20020a17090a2dc400b0023d2e945af7si1482237pjm.95.2023.04.12.02.23.00; Wed, 12 Apr 2023 02:23:11 -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 S231426AbjDLI6J (ORCPT + 99 others); Wed, 12 Apr 2023 04:58:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230367AbjDLI6H (ORCPT ); Wed, 12 Apr 2023 04:58:07 -0400 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 33E8EA5D2; Wed, 12 Apr 2023 01:57:49 -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 2A92624E287; Wed, 12 Apr 2023 16:51:19 +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, 12 Apr 2023 16:51:19 +0800 Received: from [192.168.125.82] (113.72.145.176) by EXMBX162.cuchost.com (172.16.6.72) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Wed, 12 Apr 2023 16:51:18 +0800 Message-ID: Date: Wed, 12 Apr 2023 16:51:16 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH v1 1/7] dt-bindings: power: Constrain properties for JH7110 PMU Content-Language: en-US To: Krzysztof Kozlowski , Rob Herring , Krzysztof Kozlowski , Emil Renner Berthing , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou CC: Walker Chen , , , References: <20230411064743.273388-1-changhuang.liang@starfivetech.com> <20230411064743.273388-2-changhuang.liang@starfivetech.com> From: Changhuang Liang In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [113.72.145.176] X-ClientProxiedBy: EXCAS066.cuchost.com (172.16.6.26) To EXMBX162.cuchost.com (172.16.6.72) X-YovoleRuleAgent: yovoleflag X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS 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 On 2023/4/12 16:35, Krzysztof Kozlowski wrote: > On 11/04/2023 08:47, Changhuang Liang wrote: >> When use "starfive,jh7110-pmu-dphy" compatible, do not need the reg and >> interrupts properties. [...] >> >> 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 > > You do here much more than commit msg says. > > Isn'y DPHY a phy? Why is it in power? > OK, I will add more description. This is a power framework used to turn on/off DPHY. So it in power, not a phy. >> >> reg: >> maxItems: 1 >> @@ -29,10 +31,18 @@ properties: >> >> required: >> - compatible >> - - reg >> - - interrupts >> - "#power-domain-cells" >> >> +if: > > Put it under allOf (in this place). Will save you one re-indentation later. > OK, will fix it. >> + 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 > > Best regards, > Krzysztof >