Received: by 2002:a05:7412:f584:b0:e2:908c:2ebd with SMTP id eh4csp1087172rdb; Mon, 4 Sep 2023 02:35:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGn+QSE/jLmsJylFmrlGrmHp+HAbfwylbA0c7xl5wBrbxKaueHT2blp/r+JGBtduHMDpSaI X-Received: by 2002:a17:906:3018:b0:9a5:ac56:3b63 with SMTP id 24-20020a170906301800b009a5ac563b63mr6595569ejz.63.1693820145485; Mon, 04 Sep 2023 02:35:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693820145; cv=none; d=google.com; s=arc-20160816; b=pVVOkNggdsI7Fa3xPNe7OyLcyNmG32BA+mFk2mSRHNk/nDEyaQY+HDXg4rMcMhgT5Q 4v0gLjFi4JPkZdilsJQUV6KOarXNYqaRykbEj/wKBpm+I+K9gNwWFaZlObsSDxN9Toyt i7eY/PkxnaRySJNNXMpG4l6lptGzTdwZZsY7GfpQ5J7ZEVQz5ddwRln+h2KJ6qQGWH/E jFwwYZEfFCf3swfaTCg0BStzWLsH16LoRUKtJUI64hsYEQamejsTXO1qYIK0cecMLz8B d/pszCBMfAFDcecdKBr3DzGWM3XJWhymuaunn15VeThz4qjz3774yn9BeMJE9aKZ1eSt ym5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=IzO9gCUfcK7k5IuvVe3uhn05iEMO5z76y81oJIjvpxQ=; fh=5K9U/pRebh1J9I1BGPqMd9m8UhYsKJRlFlgtxW61Zj0=; b=JtUXV+tFJmOQtAfdRPbA2fqiLtRpMn9Cxht/gTgI1GVaOd+0RZ+o/CTlmX7Jy3KH+I WN/tlc/y0EXduDrfRpekwYNP4u2s0GsVgjaH9epQrFvKhgSmAFI8CCezPJCfIU6Tg5St bZFL7qM3L6Tl+h5UU1CD7kLfAlg33L19ksVAywUgDGAXrszyXRjNAyQKsxFnAwJXtfuQ ulDr89Gq7m7rvQE2eV1eqSN03H5CC9EeQbT1N70yUd2fY4kWq1GMmdzmENa0Azmw8D5S u+0Nv+ECOshbKw5219toqH4PPl2R2RklFKXhPaqIwif9wskgvlNxCjM9c8ZF4a3w8WCh NEMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JuUFwkXB; 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 ty21-20020a170907c71500b0099dfe434f9csi6305647ejc.917.2023.09.04.02.35.19; Mon, 04 Sep 2023 02:35:45 -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=JuUFwkXB; 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 S1348581AbjIAIE6 (ORCPT + 99 others); Fri, 1 Sep 2023 04:04:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33600 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232644AbjIAIE5 (ORCPT ); Fri, 1 Sep 2023 04:04:57 -0400 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BAC1210D7 for ; Fri, 1 Sep 2023 01:04:54 -0700 (PDT) Received: by mail-lf1-x131.google.com with SMTP id 2adb3069b0e04-500c63c9625so3108492e87.2 for ; Fri, 01 Sep 2023 01:04:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1693555493; x=1694160293; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=IzO9gCUfcK7k5IuvVe3uhn05iEMO5z76y81oJIjvpxQ=; b=JuUFwkXBhiBtLXWZzDSjP7DZkTsIF8yG2b1+ioWGL+ObGniRvouuKapBpBzqL24mCR 2s5f+ewDtenABFY5Cmjtu5bYLyMDTH87nnccvC2SmLNA/m+rVOLObtr3ZGe+TwIYur0f 5Ol+W7uFsWW+O8H+KZB+AYLE8zrFByn067Dq6U3g44ECrLrZiL2kQM8wuvYP9A3pFVr+ h42XGZQHJHH9oBAlQxVDJTkh/qF3VGKPaSzBmvu+z4dyqKb1TY6HDX8QK7T+6FnaNtQX bxqywon9+LDa8T7weLOzaJtXy6HoajqctcL47t0jfykPjLSFLkrWFHgfVypjpbFiOUi5 n37A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693555493; x=1694160293; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=IzO9gCUfcK7k5IuvVe3uhn05iEMO5z76y81oJIjvpxQ=; b=QO2QaZkkXUtdKJuVzRh/6CHfDYuA8TRcaax63BD717TxMe2OqMOZKydVlxSiFSZOYJ gsAm+sW8byiCRfP6Ks15d+EM/pUQQqeeFnPG/a0mRLxgdicouwzIXnf0Yhuz1vxxvlV4 iJh0Zt4iF8pJJuqv9HjzAnEhbE7goGZ8FRBk1U74OOuNke3L3naVj9Plgs1dw4NCxe1F 7FMq5CSnkc8do+LRIl1c5bbq/+vbdV39sADbiJh8IvqnXB0d+RtsT9r/APJupP4jQw6T EYoujEtdAN9vDz2ADHLPX8SONhxUFgW9qobpKQPB+dXq8OsKok0xfZNN09OqwQJJoNjc 6GCA== X-Gm-Message-State: AOJu0YxppVKfLxUsbMeS0iBbU1QHRGJnLnccZFEGCr4gsfc7OzM10m0p Niv3VEplctv+adBkaF490Xaf8A== X-Received: by 2002:a19:2d17:0:b0:500:9a45:636 with SMTP id k23-20020a192d17000000b005009a450636mr951676lfj.13.1693555492923; Fri, 01 Sep 2023 01:04:52 -0700 (PDT) Received: from [192.168.0.22] (77-252-46-238.static.ip.netia.com.pl. [77.252.46.238]) by smtp.gmail.com with ESMTPSA id bm26-20020a0564020b1a00b005288f0e547esm1777261edb.55.2023.09.01.01.04.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 01 Sep 2023 01:04:52 -0700 (PDT) Message-ID: <99045d3e-53b4-dd75-fe57-9a3465d49b6c@linaro.org> Date: Fri, 1 Sep 2023 10:04:50 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 Subject: Re: [PATCH 2/5] arm64: dts: qcom: apq8096-db820c: drop simple-bus from clocks Content-Language: en-US To: Dmitry Baryshkov 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 References: <20230324202244.744271-1-krzysztof.kozlowski@linaro.org> <20230324202244.744271-2-krzysztof.kozlowski@linaro.org> From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 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. Best regards, Krzysztof