From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3CE22C43334 for ; Thu, 14 Jul 2022 12:22:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230219AbiGNMWp (ORCPT ); Thu, 14 Jul 2022 08:22:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37896 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229952AbiGNMWo (ORCPT ); Thu, 14 Jul 2022 08:22:44 -0400 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B30D32BA1; Thu, 14 Jul 2022 05:22:38 -0700 (PDT) X-UUID: de906403d5f54b8d96c5cb8eae9dcb4c-20220714 X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.8,REQID:bb8aa357-990a-44d1-980f-e560e5eccd36,OB:0,LO B:0,IP:0,URL:0,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,RULE:Release_Ham,ACTI ON:release,TS:0 X-CID-META: VersionHash:0f94e32,CLOUDID:ba907fd7-5d6d-4eaf-a635-828a3ee48b7c,C OID:IGNORED,Recheck:0,SF:nil,TC:nil,Content:0,EDM:-3,IP:nil,URL:0,File:nil ,QS:nil,BEC:nil,COL:0 X-UUID: de906403d5f54b8d96c5cb8eae9dcb4c-20220714 Received: from mtkmbs11n2.mediatek.inc [(172.21.101.187)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 592939605; Thu, 14 Jul 2022 20:22:32 +0800 Received: from mtkmbs11n1.mediatek.inc (172.21.101.185) by mtkmbs11n2.mediatek.inc (172.21.101.187) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.3; Thu, 14 Jul 2022 20:22:30 +0800 Received: from mtksdccf07 (172.21.84.99) by mtkmbs11n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.792.3 via Frontend Transport; Thu, 14 Jul 2022 20:22:30 +0800 Message-ID: Subject: Re: [PATCH v1 03/16] dt-bindings: power: mediatek: Refine multiple level power domain nodes From: Tinghan Shen To: Rob Herring CC: Yong Wu , Joerg Roedel , "Will Deacon" , Krzysztof Kozlowski , Matthias Brugger , Chun-Jie Chen , AngeloGioacchino Del Regno , "Enric Balletbo i Serra" , Weiyi Lu , , , , , , Date: Thu, 14 Jul 2022 20:22:30 +0800 In-Reply-To: <20220712192119.GK1823936-robh@kernel.org> References: <20220704100028.19932-1-tinghan.shen@mediatek.com> <20220704100028.19932-4-tinghan.shen@mediatek.com> <20220705205739.GA2599256-robh@kernel.org> <20220712192119.GK1823936-robh@kernel.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-MTK: N Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Hi Rob, > > Okay, I think you need something more like this that doesn't recurse > infinitely: > > patternProperties: > "^power-domain@[0-9a-f]+$": > $ref: #/$defs/power-domain-node > > unevaluatedProperties: > $ref: #/$defs/power-domain-node > > If you need a 3rd level of nodes: > unevaluatedProperties: > $ref: #/$defs/power-domain-node > > > Rob After some test, your 1st suggestion works. The infinite error is introduced from my changes and affect the result of power/renesas,sysc- rmobile.yaml. The 'additionalProperties' being defined as a DT property is the root of this error. After fix the indentation, the error is gone. I'll update the yaml as your 1st suggestion in next version. Thanks, TingHan