Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp4130787rdh; Tue, 28 Nov 2023 12:41:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IFjHmq0asU7Uf4wSxUORxT7hjR6ihONu5lxHMoWpcUoc05UpGhNQPnHQvEzBYU6szoW9BPw X-Received: by 2002:a17:90b:38c1:b0:285:adb2:a016 with SMTP id nn1-20020a17090b38c100b00285adb2a016mr10110291pjb.18.1701204100595; Tue, 28 Nov 2023 12:41:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701204100; cv=none; d=google.com; s=arc-20160816; b=X40Hr0IXo3YeJJ2+UIk+qMXFfZB7gXdHivvS9Rg8iMxcjDhYtFcLmN//Gk4nYq5/yD h/PNaJyibyLpdO9PRKmnFnVC08z/Di48xNEPGGZLIdqin3s+S8XGbfDurGOE1TVQCiUc b9GlO5wIgKq4d56wpEM6pf1MQABJCj6Ajl2rq/4wlfy0CUfKRs/gIFq0wTyzXbXM9//k BlwG2tnwBZsgNCJAVd4tcbyuH9VO4IyR0pNH9Ru90EIMPAMk40nyM+5xayzFxOIyZJ1t oOXizB2mUAYgM8XZq7MLJLXK4oFQFm5ywaTfuNmp9z+Tn2j62SC2qdQvM1CPNDKvqPW6 pT4A== 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=VcXaZW7FSCEYL3EonzBYNEdLGvVmDeOVcGajqs5dQWA=; fh=Ihvbg0aSRw7Ixnx0AjekGbCVhCLfbJbq9JiQz3FYDkE=; b=Hof+NGkyx1gKjx0PFOfnaXURyNUpeLBgBZq9IlJAiFnTl9wCzZuJgKGtRA4jzsoqs7 CJEHaYeMGX11FKOEp2l7/mfrZyQ1VSEldIrDUlAfUqZRcGtPkN8WOLo/hxlFT4jOf4rK syKNcMjwYXeG0DFYqF9J6Y6S6CedTuOfbeKDjEB3WloIT7X1sL3sg14eRMZYMlR9+/Tt zjPyweNCrhmU+m7ucTHqPeAw7hH66GRJoEysnMje555qB0A8WinGjaXhLvWP30AfzYVO iXYK6wOQZ8M20r1vxC3CDiRndtS6SU77w0wGqbTdQJOlchV4sSguz6QMg9GoekXNiR3D Kh4Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id pi7-20020a17090b1e4700b00285b3a7912csi7904778pjb.100.2023.11.28.12.41.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 12:41:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (Postfix) with ESMTP id C84408061147; Tue, 28 Nov 2023 12:41:37 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229602AbjK1UlW (ORCPT + 99 others); Tue, 28 Nov 2023 15:41:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43538 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229543AbjK1UlU (ORCPT ); Tue, 28 Nov 2023 15:41:20 -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 3F0B9170B; Tue, 28 Nov 2023 12:41:25 -0800 (PST) Received: from p200301077700a9001093e13752edbf74.dip0.t-ipconnect.de ([2003:107:7700:a900:1093:e137:52ed:bf74] 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 1r84tU-006otY-HU; Tue, 28 Nov 2023 21:41:20 +0100 Date: Tue, 28 Nov 2023 21:41:16 +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: <20231128214116.22dfff1e@akair> In-Reply-To: <7361082a-f271-4ef4-9dad-06ee7445c749@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> 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=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.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 (morse.vger.email [0.0.0.0]); Tue, 28 Nov 2023 12:41:37 -0800 (PST) Am Tue, 28 Nov 2023 09:41:23 +0100 schrieb Krzysztof Kozlowski : [...] > > We have two usecases here (status quo in dts usage and code): > > If these interface clocks are below a ti,clksel then we are > > describing multiple bits in the same register and therefore every > > child of ti,clksel would have the same reg. > > Regs can have bits, so that could still work. > Yes, it could. Things could be designed in another way. But for now I want to get rid of dtbs_check warnings and finally have some fun with that and not always tempted to skip it and just copy over $bad_example. So I am not in the mood of redesigning everything. > > 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? Regards, Andreas