Received: by 2002:a05:7412:f584:b0:e2:908c:2ebd with SMTP id eh4csp2058290rdb; Tue, 5 Sep 2023 13:04:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGhjob7Jrcgufh99RDXsd4ql1rLeoYLu2+eejBIizZ1jRcEJR1D1ex+KD9jAk7s90/dOxpW X-Received: by 2002:a05:6a00:2c93:b0:68e:236a:93d5 with SMTP id ef19-20020a056a002c9300b0068e236a93d5mr1955089pfb.4.1693944270072; Tue, 05 Sep 2023 13:04:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693944270; cv=none; d=google.com; s=arc-20160816; b=MZ5yNs1wm8bJaEaNh0YkkMZO2Q7QU1scAty81xMLmBvXeIsSQmsP47kQNaRFZV6XcR BEFyfrDUcFbjO+RTrWDBi8ZlRKYUx7BGvhyPcAF5yJ/QQpGHi3lk7p8/bTbrEMIaLOm+ 0yJuGDh9II8BxgCtYKwcw7Mcdi3+d0wOSoLZb6NAf+pIDD5g0TpOrR0wpqC8MfVNWuO/ /v7f3SGmluH4uHKRUz+rWhVVi+lNcS4x0ElIb4riys4Rmthr97geU6IvMgf2pd3R2Wfl Yu5yYYSIEKJp5UUiey2cMF+Sd+HAYr6p3rfttg82cIpS+JZZM+NtVUPG9cHJ0XKYqDHJ g8hA== 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=4JTq3QyNvEDgshksBGAuADiMeaDa0EKwLIahQgHW96c=; fh=Z/eRDvuaEBK/BtrWHTcTx+KrQ7Sku/zo38ULou7qXx8=; b=xffFug9ayairkIhsGKyzhfeUAOSYPkqYbIJg1PivEulbjieL843wkFfx9k6R003rox m/dRexId/0ESMLWt8YQnvqP9XwP/R0/z600u8XyPEjTJUYT8fFeH2+cVXxjoxsuUVdv3 2QfZU7j4yKY/tVXBIsndqCcPAF2yGUKX8Y7qHEzjY3rHV8v8YwVauoVSAseaeA0KyyRy Tss8eGwCGBLazWFedZk55i8sRAzEc7YQGrK5FftwFiiRBsYCODqjSB7juyL0+D1iM5gi hM0u+KzV9A3qsjYKDzabLob1Pi5HhMp7XkKaDsCdPhGEqHr2hmD7v511kGc86Fa0n6hH yjPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=g8dj3tbr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z36-20020a056a001da400b0068e28792ef2si775353pfw.98.2023.09.05.13.04.29; Tue, 05 Sep 2023 13:04:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=g8dj3tbr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349965AbjIAOYf (ORCPT + 3 others); Fri, 1 Sep 2023 10:24:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349976AbjIAOYe (ORCPT ); Fri, 1 Sep 2023 10:24:34 -0400 Received: from mail-yb1-xb2e.google.com (mail-yb1-xb2e.google.com [IPv6:2607:f8b0:4864:20::b2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC85C10DF for ; Fri, 1 Sep 2023 07:24:30 -0700 (PDT) Received: by mail-yb1-xb2e.google.com with SMTP id 3f1490d57ef6-d7e6d9665bcso859377276.1 for ; Fri, 01 Sep 2023 07:24:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1693578270; x=1694183070; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=4JTq3QyNvEDgshksBGAuADiMeaDa0EKwLIahQgHW96c=; b=g8dj3tbrowzKoX3GNoQ0+h6daW1xO9Fyk6FnoUKFNpIFQmXax3E+XyIViPHEl5jfNo GHJUeDjUEG9g8KEMbCvWV2Ap4BIxaHhbblI83sk/20nboZs8xutjMiOyAfjthfQPbFSW r/Nv3YzwCBaJMOiyDKtn1YPIAs3E0uDnRrjeyzdYwKQFQhavzLp04cDAubWNPORLaelB 24HiHlovsCO09/Pemg4Wfxl3s00fpq/UGdSru92PmdpaxuKm110we9/+p1mHzpjs0jJE McE/Aa9g9NCNjNAqGw2D0o5axBdvMeCsJoToYQCmyJ+mzzANxDoCKnnfA9+gRI2Iy7zW 0iEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693578270; x=1694183070; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=4JTq3QyNvEDgshksBGAuADiMeaDa0EKwLIahQgHW96c=; b=lXp6sCgV6cste0gLnJo3gAFSgbrW2OES1/NoPXaE0tkvPoKkjRrfRnzpqPl5V2TVQ7 ecAxhw9V8UAwcmQp5xihOQtaJBtGKL1EOy3Cw4XTVI0BWFlZBgkFODbtcinW22ZT2ZG7 sWLbOPwzFBAbLok+YPnemJTtbaOcnRy1MsFxC7ggxar49VeVOaeSfHtHYNcmyIlBn6id 3XKxpNDAwr4DSmo5/GlwhKnLLvmND+UuIhd2Kq20xpCwYHqZ93O6fE/G6gKYVRFrEK8Z csw+cBQem4uRRtWDtxrb2NUIG6Vm9sYhJnUAcZOAYkW5aEp1swrG9g/cD1KYq8CoZ4Gd lZCA== X-Gm-Message-State: AOJu0YySAGc+lrOyw7yDcs1qGm8rSsqkl1sFNJWb+nU5AWkgcn+LAPMa UDkC0+7o7N95BYmiYcl7z0pd+YM31Imrq3hDoS5t+Q== X-Received: by 2002:a25:d14:0:b0:d7a:8e37:6d4d with SMTP id 20-20020a250d14000000b00d7a8e376d4dmr2820258ybn.43.1693578269933; Fri, 01 Sep 2023 07:24:29 -0700 (PDT) MIME-Version: 1.0 References: <20230324202244.744271-1-krzysztof.kozlowski@linaro.org> <20230324202244.744271-2-krzysztof.kozlowski@linaro.org> <99045d3e-53b4-dd75-fe57-9a3465d49b6c@linaro.org> In-Reply-To: <99045d3e-53b4-dd75-fe57-9a3465d49b6c@linaro.org> From: Dmitry Baryshkov Date: Fri, 1 Sep 2023 17:24:18 +0300 Message-ID: Subject: Re: [PATCH 2/5] arm64: dts: qcom: apq8096-db820c: drop simple-bus from clocks To: Krzysztof Kozlowski Cc: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Stephen Boyd Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 1 Sept 2023 at 11:04, Krzysztof Kozlowski wrote: > > On 31/08/2023 11:04, Dmitry Baryshkov wrote: > > On Fri, 24 Mar 2023 at 22:23, Krzysztof Kozlowski > > wrote: > >> > >> 'clocks' node is not a bus, but just a placeholder for clocks: > >> > >> apq8096-db820c.dtb: clocks: $nodename:0: 'clocks' does not match '^([a-z][a-z0-9\\-]+-bus|bus|localbus|soc|axi|ahb|apb)(@.+)?$' > >> From schema: dtschema/schemas/simple-bus.yaml > >> apq8096-db820c.dtb: clocks: xo-board: {'compatible': ['fixed-clock'], '#clock-cells': [[0]], ... > >> From schema: dtschema/schemas/simple-bus.yaml > >> > >> Signed-off-by: Krzysztof Kozlowski > > > > This patch broke audio support on DB820c. Now the divclk1 clock is not > > registered, as drivers/clk/clk-gpio.c doesn't have CLK_OF_DECLARE(). > > > > Stephen, What would be the best way to fix this? Add CLK_OF_DECLARE > > support to clk-gpio.c? Or simply move divclk1 from /clocks into a > > separate device? > > > > What is the rule, which clock drivers must support such device-less > > binding using /clocks/foo nodes? > > Uh, sorry for that, I think my patch is incomplete. I did not notice > that not all clocks have CLK_OF_DECLARE. How about moving all the clocks > out of "clocks" node to the root? Then they should be instantiated, > regardless of having CLK_OF_DECLARE. We can do this, but first I'd like to understand the rule with /clocks/. -- With best wishes Dmitry