Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp607705pxy; Thu, 22 Apr 2021 09:14:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyprrsCTsgh+U8SonKeN1ozIe4AYkWau3dXv/U7InksuscUAfitlsQu+2zXdQtRR7QA9Q10 X-Received: by 2002:aa7:d543:: with SMTP id u3mr4899678edr.26.1619108087503; Thu, 22 Apr 2021 09:14:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619108087; cv=none; d=google.com; s=arc-20160816; b=Mj0hkmeNSwTXkcfM1uVFk2CGwoTBqTGOcDH3fGvJgsfHp2KRaYFsnS/aStOFQ/ypy+ WYsSxmpYgbOgOW9Op5XJ0LaZPKB8TMiA95bDdOwJI+KUbcN1LTv36BOaTf2tNf7seuWR Ym5pF1rbWzoZzVQ/43de9Tmb7XKYoWYvmIMzCLBQYDpjyIGUjEAn4A/MpbDD1OU7uSrE un72P8h+Ik7WnyfEiI8J8OKsSEkkbr4NDnapFZGoFX1XgZJQD6DLcbnF/PrKqqlZ/DI/ sw2STzWhFgVtP9YGvCiXspTCf6baD4HPmTBALKc+A/znwfvNm6hmTDI4cVxgS0obmQwL 66+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=eweOaics7Vcd6tjsevmK81KD/nL0QdB8M86Jgz1ev4U=; b=vP71fsl7GTaofM+z05lTv5AzGFoDOIFQzUscdsMAV5qurU2skdjQagPZ3NR1zv6KVR b6YYROZmuKz79K+FXrQsGW1HYL8YqM2naaD5uKa4pUAr0iqp36Czj0DBpclex8X1nAeL adJavKBIAQ1zFJBiEYi61TYgDMemJvJbSpI1QPLxOz2nYyB8e2tt8SnzJXBWVU+X25BF v23x/h8Ut9U0li+65/I6tajMceLIGoDRmpf2q461mau6cNi1W3QEcKMkm10t+YyvQURn i4wFs0l3z9gSlaG3fqJAJOApnwD/cKYXeOgyiW0h3vwNLDsRKIrDdlBkOY1BgivhbR1q bScA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dBRkBR5K; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a3si2610047ejj.228.2021.04.22.09.14.23; Thu, 22 Apr 2021 09:14:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dBRkBR5K; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237450AbhDVQNo (ORCPT + 99 others); Thu, 22 Apr 2021 12:13:44 -0400 Received: from mail.kernel.org ([198.145.29.99]:55492 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236637AbhDVQNn (ORCPT ); Thu, 22 Apr 2021 12:13:43 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8432361424; Thu, 22 Apr 2021 16:13:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1619107988; bh=CTXfhvk5l5o8y23WTouJh4NFstFgPZaYNx707CJkgRY=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=dBRkBR5K7ew9Cs+0GBpGOHJJx8Ls2JKc/rXQpLnR3XZcSp4GP6b8Ex/cOtjoY2AOx HjMZgzJoXMTiKWmvVDj/8WYE+xjhSofM/nysylbt2bNIWIgDZdP0Ul3GjMlBcA1XUG iit82Ls5XREtj2E996yXb6flkxmbdd5URMIrnjJatNSkfbauvveg1CnnnjW6nsrjNl 4wwKSu2UNgX5AIDJjQbSCMQyVdh/dwSZYJIkaIL2Vt/GNN1M9e/eBfOa1OUYvVe1+O 9Xx/9TVdfoqTe9nSiLlWc06axYR8WH7fsmOQr6bCj/Y2SMkXLrQ6Z6L1D5PHXeAsHm eV5eUC3oAkpZA== Received: by mail-ed1-f44.google.com with SMTP id s15so54179442edd.4; Thu, 22 Apr 2021 09:13:08 -0700 (PDT) X-Gm-Message-State: AOAM533OJVB9TixTfr/k9S4RpYtII1wojzMEf9CZeTKljVrewP4blPyk tKuvhc/jGB4FvN2lnH0WX5dayRmP3VyIkm60vw== X-Received: by 2002:a05:6402:212:: with SMTP id t18mr4841703edv.165.1619107986950; Thu, 22 Apr 2021 09:13:06 -0700 (PDT) MIME-Version: 1.0 References: <20210416063721.20538-1-nm@ti.com> <20210416063721.20538-5-nm@ti.com> <20210421224041.GA1740292@robh.at.kernel.org> <20210422141744.2imrochbzzt26wx4@slush> In-Reply-To: <20210422141744.2imrochbzzt26wx4@slush> From: Rob Herring Date: Thu, 22 Apr 2021 11:12:54 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 4/4] dt-bindings: arm: keystone: Convert ti,sci to json schema To: Nishanth Menon Cc: Philipp Zabel , Stephen Boyd , Michael Turquette , Santosh Shilimkar , Tero Kristo , linux-clk , "linux-kernel@vger.kernel.org" , devicetree@vger.kernel.org, linux-arm-kernel Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 22, 2021 at 9:17 AM Nishanth Menon wrote: > > On 17:40-20210421, Rob Herring wrote: > > [..] > > > > +allOf: > > > + - $ref: /schemas/mbox/mbox-consumer.yaml# > > > > Drop. > > > > OK. > > > > + reg-names: > > > + description: | > > > + Specifies the debug messages memory mapped region that is optionally > > > + made available from TI-SCI controller. > > > + - const: debug_messages > > > > Drop the '-' and fix the indent so it's an actual schema. > > OK. > > [..] > > > +patternProperties: > > > + # All other properties should be a power, clock or reset controller > > > + "^(power-controller|clock-controller|reset-controller)$": > > > + type: object > > > + oneOf: > > > + - $ref: /schemas/soc/ti/sci-pm-domain.yaml# > > > + - $ref: /schemas/clock/ti,sci-clk.yaml# > > > + - $ref: /schemas/reset/ti,sci-reset.yaml# > > > > I'd prefer you separate these with a property for each node. > > Hmm... I am not sure I completely understand your comment here. > I assume we dont want to duplicate each of those node yamls, so, > did you mean something like: > > ti,sci-clk as a bool property in the tisci node and if present, then > expect the node ti,sci-clk node? > > Can you give me a hint of similar yaml usage elsewhere that I can refer > to? Just do: properties: power-controller: type: object $ref: /schemas/soc/ti/sci-pm-domain.yaml# And so on for clock-controller and reset-controller. Rob