Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3745274rdh; Tue, 28 Nov 2023 02:43:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IG/gGPA2Fv0MGhGTkTsLI+1tHGSeMGjbj0/IR+npedAhmwlHvQKiGg3gKoS0zpN9C9OevJK X-Received: by 2002:a17:903:2585:b0:1cf:68c8:7a18 with SMTP id jb5-20020a170903258500b001cf68c87a18mr17613197plb.14.1701168228561; Tue, 28 Nov 2023 02:43:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701168228; cv=none; d=google.com; s=arc-20160816; b=pUT+QQ+4sHDtARM18VIoqF7oldk3UvqO/c8RKohseHz3kFQD6bVgUwpwwRF3Ogat+W gL5iebWZgNRw2fDo+YKeHyXwUCY+FvJit9qnvazyHoqDA0OAE4U0/hDnx2YcDE+MQzML Ll3sL+P9opcqwzhRRHFxH+/xHqGmgelshvIe8mSYrKxl9jWB3t1SJWTcHs+U4k47jDYu jeWSlOP7zqpNxyPSItjKCdewYy/2v9UngX3d8nV9QsjkLtZ4+rIs6GhuK7fCDtbkxTMH KhRjLBY7B9uA7QYmT0Ry7jibHc0UBy37Qx+HYuRMjgB/vDejR/w0Epxv92O0jmbyfp54 /oMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ASgq/kj+ZU+w4T33avpfJXMxw6DrbSMm9dhrv9X9qbY=; fh=fiGVN9wTCmH9ZMVJt4bbPqQXeyh/bXB6/pson7wP++0=; b=gu+8Q+7aqehagyge0swCFt9ssn1uY7jnYomOAdehJD/k8dNLzIzynXIWxaRtfsiC9F EmdJl9dTrnS0EotZdD1/5v/9UdLZ0t7rdgr33X+CiiP2ETbU6XkvvE34o7gWcQTYdll5 ghuSMPtz+Pnw/+La64iXb4x3y8RbRVXVw1GEKiNZ3wRyvn9eFI2YuN+lThetcpTTS/Cx 7WfJT5zvMwYcU095uoJ1IXJ/qlLCp1SoKSPkm59C8BQTATg6nA1gq73Q/FLh4k3MPsRt vq70wNlVa1k7JICiYF46opY8nOzYpAwi2nn4ipGLjfId+bEm5m2wIKWr/QzDAe9zD2K1 U8sQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@atomide.com header.s=25mailst header.b=SfHUHZD8; 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 i3-20020a170902c94300b001cfa126e7d7si10742739pla.451.2023.11.28.02.43.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 02:43:48 -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; dkim=fail header.i=@atomide.com header.s=25mailst header.b=SfHUHZD8; 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 367C1805D3B6; Tue, 28 Nov 2023 02:43:46 -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 S1343865AbjK1Knb (ORCPT + 99 others); Tue, 28 Nov 2023 05:43:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234847AbjK1Kna (ORCPT ); Tue, 28 Nov 2023 05:43:30 -0500 Received: from mail5.25mail.st (mail5.25mail.st [74.50.62.9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C7D41A5; Tue, 28 Nov 2023 02:43:37 -0800 (PST) Received: from localhost (91-158-86-216.elisa-laajakaista.fi [91.158.86.216]) by mail5.25mail.st (Postfix) with ESMTPSA id A89946086E; Tue, 28 Nov 2023 10:43:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=atomide.com; s=25mailst; t=1701168216; bh=o617uNhOvw3Vu+eRSs1W8/UqKPoU/B9IfoVIbQuRnCs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=SfHUHZD8Ii8XGRTnm9DAGobgeC1l8WZoBabIgGA4wyWEeDVkCp6jaK4/3tqggtzbs ffDZ2ja1ef6OXetd1WjT3kMh1eZQN8Rc7u//EG4n5Zo3v12/zRGt1nXPzQaZgZ5rNA 0erJaEOVziSGN/z4c0Yk4gtDioSzqY7AZU12PwuTRdny4zCD6mJFxhU0ff2ewqupxz uXSFVS5+zn8BTnWhr3Gyj9L7iK4LShq52qf4UBlMCynbEOROexYPW2pmbhZBqGFQuL xk4oTauzv+/3IdzgXFytannM0KGZKwH+0HUdJMJE7j7zv2OAHdrJbQaCxkJUzjUeY9 ehRM5MW3LndoA== Date: Tue, 28 Nov 2023 12:43:10 +0200 From: Tony Lindgren To: Krzysztof Kozlowski Cc: Andreas Kemnade , 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: <20231128104310.GS5169@atomide.com> References: <20231127202359.145778-1-andreas@kemnade.info> <7a62ed8a-b0e3-4881-90d7-b8f5d38e482e@linaro.org> <20231128093241.707a4fa0@aktux> <7361082a-f271-4ef4-9dad-06ee7445c749@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7361082a-f271-4ef4-9dad-06ee7445c749@linaro.org> X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, 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 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]); Tue, 28 Nov 2023 02:43:46 -0800 (PST) * Krzysztof Kozlowski [231128 08:41]: > On 28/11/2023 09:32, Andreas Kemnade wrote: > > 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 > > Who designed clock-controller binding with a device node per each clock? > This is ridiculous (although of course not your fault here)! Looking at > omap3xxx-clocks.dtsi - all its children should be just defined by the > driver, not by DTSI. Earlier all the clocks were separate nodes, the ti,clksel binding made things a bit better by grouping the seprate clock nodes so we don't have multiple nodes with the same reg.. But yeah clksel instance clocks should be clock@6 with reg = <6> if the clock bits are at bit 6. That would be fairly easy to do if that helps, but in general I doubt anybody's going to spend much effort to fix the omap3 legacy clocks atthis point. For omap4 and later, things are a bit better as they use the clkctrl clocks: Documentation/devicetree/bindings/clock/ti-clkctrl.txt I don't think omap3 has any clkctrl clocks but if it does then that could be used. Regards, Tony