Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp1059128rdb; Fri, 1 Dec 2023 06:10:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IGCi9FzVsh1a+cp6PePx6ZThIKApcI5w53KoamGc+CwNbuDUaHBKydlfKrM8rRBTNxlXotU X-Received: by 2002:a17:903:1c9:b0:1d0:4c09:7d31 with SMTP id e9-20020a17090301c900b001d04c097d31mr2996388plh.65.1701439808060; Fri, 01 Dec 2023 06:10:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701439808; cv=none; d=google.com; s=arc-20160816; b=gnu1YWvm0kgDt9GeavMLr1Va1JyrPuRIk3qIgU1/ell+FDfBZYntZjHYQ8T6HaG9Ze 5s5h3MSg22kABAoGKrO2RNWWjXdIcn6ICpHNrca/GvdgWSv92TvfsOGrJTv1HIlLes+u NZAHi1tmiPZ9syh+cjn2XW4y5pxfaCbZAYgOAEE/4cuUKCARrHd+2skA5abT/oTi1ked jxytWtAQVR6T7gO9zZgtzXiQfD1mn6+DblW4ZvCcIl8gc6933/dz1zEL5RH+QLnkCeeX iraBWdUiCFWkPKzdLYm6V3HNPJfLmHmnBCmSIS+ugcYIZJQ6dEJYfGUaaAiwWu2igPSS bdjg== 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:subject:cc:to:from:date; bh=/PXVYoDdeT2EUyYVgrw/oQl6qPgJU2DBn4+CVVPKUk4=; fh=Ihvbg0aSRw7Ixnx0AjekGbCVhCLfbJbq9JiQz3FYDkE=; b=Tl2KXbmQ2imn312vkH+uuAqdEV5/WIIomrLB95P81vOcLlNeZl2QOxziJgiE4LrT7d YVMM/A6jp1HSV1bqxheGybzI7MGu5+R+HIzA5sokOef8PvxfSGNyoIJBHYuxPj7rO6NJ CJEAujuV0eEKldAE4t7+lSvxmicL2CUgqVYQqCq9VXC9qVjiPFLtBpbUpzc/zOhVBaqQ FL0rEVakKma6E5K0R/bA7VtRvJ93lQQ06bmT7dd+rhwvoR+DTfyYK6rDu/oM9e514wDm NAFE84ymChBxWxReA1b/13qqdLGpk5EmHTKhRAzkrQEonK3/FkPqiyQ5PpMB0PHgdd7w FJZg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id v8-20020a170902b7c800b001ca93040adbsi3008852plz.653.2023.12.01.06.09.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 06:10:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id D608782665BB; Fri, 1 Dec 2023 06:09:56 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379112AbjLAOJi (ORCPT + 99 others); Fri, 1 Dec 2023 09:09:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40722 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379094AbjLAOJh (ORCPT ); Fri, 1 Dec 2023 09:09:37 -0500 Received: from mail.andi.de1.cc (mail.andi.de1.cc [IPv6:2a02:c205:3004:2154::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 668781B2; Fri, 1 Dec 2023 06:09:43 -0800 (PST) Received: from [185.238.219.102] (helo=akair) by mail.andi.de1.cc with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r94D6-006uXL-CN; Fri, 01 Dec 2023 15:09:40 +0100 Date: Fri, 1 Dec 2023 15:09:37 +0100 From: Andreas Kemnade To: Krzysztof Kozlowski Cc: mturquette@baylibre.com, sboyd@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, kristo@kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org Subject: Re: [PATCH] dt-bindings: clock: ti: Convert interface.txt to json-schema Message-ID: <20231201150937.3631ee99@akair> In-Reply-To: <221ba6a3-c4c2-40cd-b1d8-8170af78c784@linaro.org> References: <20231127202359.145778-1-andreas@kemnade.info> <7a62ed8a-b0e3-4881-90d7-b8f5d38e482e@linaro.org> <20231128093241.707a4fa0@aktux> <7361082a-f271-4ef4-9dad-06ee7445c749@linaro.org> <20231128214116.22dfff1e@akair> <221ba6a3-c4c2-40cd-b1d8-8170af78c784@linaro.org> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.37; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=4.3 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,RCVD_IN_SORBS_WEB,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: **** X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Fri, 01 Dec 2023 06:09:57 -0800 (PST) Am Wed, 29 Nov 2023 09:15:57 +0100 schrieb Krzysztof Kozlowski : > On 28/11/2023 21:41, Andreas Kemnade wrote: > > Am Tue, 28 Nov 2023 09:41:23 +0100 > > schrieb Krzysztof Kozlowski : > >>> If the interface clock is not below a ti,clksel then we have reg. > >>> > >> > >> This should be expressed in the bindings. It's fine to make the reg > >> optional (skip the description, it's confusing), but the ti,clksel > >> should reference this schema and enforce it on the children. > >> > > Well there are other compatibles below ti,clksel, too, so should we > > rather add them when the other .txt files are converted? > > This binding should already be referenced by ti,clksel. When the other > are ready, you will change additionalProperties from object to false. > I played around with it: --- a/Documentation/devicetree/bindings/clock/ti/ti,clksel.yaml +++ b/Documentation/devicetree/bindings/clock/ti/ti,clksel.yaml @@ -33,6 +33,11 @@ properties: const: 2 description: The CLKSEL register and bit offset +patternProperties: + "-ick$": + $ref: /schemas/clock/ti/ti,interface-clock.yaml# + type: object + required: - compatible - reg That generates warnings, which look more serious than just a non-converted compatible, so lowering the overall "signal-noise-ratio". e.g. from schema $id: http://devicetree.org/schemas/clock/ti/ti,clksel.yaml# /home/andi/linux-dtbs/arch/arm/boot/dts/ti/omap/omap3-overo-tobiduo.dtb: clock@c40: clock-rm-ick: 'ti,index-starts-at-one', 'ti,max-div' do not match any of the regexes: 'pinctrl-[0-9]+' I think we should rather postpone such referencing. Regards, Andreas