Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3687762rdh; Tue, 28 Nov 2023 00:34:54 -0800 (PST) X-Google-Smtp-Source: AGHT+IGN3/yt6IUfFaR/WyZYWoQXKQcTC+Wabal6Y604Y4RZ9W41QwdgzxHJB65unpvlRmivmjl9 X-Received: by 2002:aca:1309:0:b0:3a3:95f9:c99b with SMTP id e9-20020aca1309000000b003a395f9c99bmr15533540oii.35.1701160493773; Tue, 28 Nov 2023 00:34:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701160493; cv=none; d=google.com; s=arc-20160816; b=XQt6QC4t4uMFADcdaFcY/GkfiVZLtD3qGsV5bytSsNYgH5MW040PYidIElLPrEIxKd iWjI3c72lcyrx2+9JebjZgdTUk0gwhd5BZOgVFAIhflw89YOPuXAMsg8E/RwTnp6o04a uzUEB1GVBSwXUGzOvV38Yz0rCVcLlE/Dc4IGQIFWg6HZVw7g+wboRxdku+QmtMefJmBw hNTU3xnpL4X4MNW4z6gaBaCrT9aAAc5eT5dFhF6LqcBj+vNObvaNMCPoBVgid7ErUQ/S dtKGCVbGZEp64p6YCiKYNd2iNru9OFrCdoTIB/V0jkLaZ40sRVy/F4DWwQzZVy5NQ8TX i4OQ== 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=czx8GGr4luF57zBi7UeYAc9t9DANSDTJoEzWjbVCyRM=; fh=Ihvbg0aSRw7Ixnx0AjekGbCVhCLfbJbq9JiQz3FYDkE=; b=TlLkoYc5kTQsuhSqg6D30WNfzYFixSahmHFqY4ZdryGF7boIPuhxAAjFxbi/tu2Y8K DLnuAe1ww/Q/K8HSEkWxH+YzwabsZROXD1JLgyg/G+v4CQdxae11dxit6AYtiCn1yf78 UUBz+UqPvoj4oi4QctvS//dUycUd8+Nu3jYn3xHzio0iVYrUqdWSmZ+3oeT4+cJ9sXTk Ok5pBeg6ERf5Pmd7BIgVuvbYo0JHAC526OwnOIy2ZWFkaA0JIotJxxyNGBeWbyQmpYZB X40cbxYi9YbPDJ5THFXDMy3BfLNBTQsPKgR87bzIQ5HiUx9HT2SzvUlaljnfoCfcuewP Ba0A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id h2-20020a056a00230200b006cd8f0ed07csi4068245pfh.191.2023.11.28.00.34.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 00:34:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (Postfix) with ESMTP id 8B56B80A7762; Tue, 28 Nov 2023 00:34:51 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344182AbjK1Ie3 (ORCPT + 99 others); Tue, 28 Nov 2023 03:34:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344202AbjK1IeU (ORCPT ); Tue, 28 Nov 2023 03:34: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 B3FC62693; Tue, 28 Nov 2023 00:32:48 -0800 (PST) Received: from p200301077700a9001a3da2fffebfd33a.dip0.t-ipconnect.de ([2003:107:7700:a900:1a3d:a2ff:febf:d33a] helo=aktux) 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 1r7tWN-006nqK-HF; Tue, 28 Nov 2023 09:32:43 +0100 Date: Tue, 28 Nov 2023 09:32:41 +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: <20231128093241.707a4fa0@aktux> In-Reply-To: <7a62ed8a-b0e3-4881-90d7-b8f5d38e482e@linaro.org> References: <20231127202359.145778-1-andreas@kemnade.info> <7a62ed8a-b0e3-4881-90d7-b8f5d38e482e@linaro.org> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; 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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Tue, 28 Nov 2023 00:34:51 -0800 (PST) On Tue, 28 Nov 2023 09:00:16 +0100 Krzysztof Kozlowski wrote: > > +required: > > + - compatible > > + - clocks > > + - '#clock-cells' > > reg is required. Device cannot take "reg" from parent, DTS does not work > like this. Well, apparently they do... and I am just dealing with status quo and not how it should be. Look at commit 31fc1c63c2ae4a542e3c7ac572a10a59ece45c24 for the reasoning of not having reg. well, look at drivers/clk/ti/clk.c ti_clk_get_reg_addr(); ... if (of_property_read_u32_index(node, "reg", index, &val)) { if (of_property_read_u32_index(node->parent, "reg", index, &val)) { pr_err("%pOFn or parent must have reg[%d]!\n", node, index); return -EINVAL; } } 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. If the interface clock is not below a ti,clksel then we have reg. Regards, Andreas