Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp4050015iog; Tue, 21 Jun 2022 10:59:16 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vlB4I85GXkTKp1uL4w+aynZWzX89aXr3WI7suH46J9ukE0BzQkzGTvocJsVsEIRXZVZUB+ X-Received: by 2002:a63:3c03:0:b0:40c:f773:1e07 with SMTP id j3-20020a633c03000000b0040cf7731e07mr3898635pga.443.1655834355809; Tue, 21 Jun 2022 10:59:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655834355; cv=none; d=google.com; s=arc-20160816; b=LLPH0uuE1IFMa3aydJzoGJUtid6gjsDqxqsSSuSs5Njc7fxOOqX76298pjGXtso+m1 xswcgRjzejflPxCerdntNhTHLcwveSVW3XF6ha8Zw/GUHmnv1hGt5ojSDb0kxYNGlNnb 1SXiR5UC9nnhITPSFiR6D6Hy/8h2rAglY/1h41J56tMeRHrFlku9eNzgbLHWc7VFQ3KE jTYRU9yUihUfzYAKGEpghOjP3/JbGsUinV9Lsl9iWnN5YGjeh+Kywf2TkZ/tZj87Dc8o VGRthTeheDeaY0x3NK993f/sY1bcEgRZAvG6yDOIXDKGducxuagRFOVk1FaB/S+x8l0B ALyQ== 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=jDWLd8u/JyYSgS8BLWA6BB5+c2/1y05vpI/5e/F2mDE=; b=JJOrd3ka3Aabp4fkEJLxbwtoXM3wIaxDGZQXBME72BC9RBlu9vS8m1JaoN8Avvyh9Q hftyZJseP0iRXYw81xsPIHY/wqbjfd5STR3F/Ss8p2upD0Uy+LdRL9f8aGIdEIuqg+ys hQ63kQ8qTLdUO2Y6BRko2kHWVk4AH5+dK7hoWtonVV09DB1x5ih2Mtv2A1iT9y2EN6+E 2WZMqG+Y8IpdEN7KydYjWlyI/ZSkUJrw6PePqFUMAFYdbfqtpKOVjtM0efA2+n8tlLec JG9XfPwdjmIep6cticm7U0qNJ/B3X7DBBTzrDyfGqIdmFp2HsXc9+TuRk8uOiP5PJUs7 bYMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=P1dagRCa; 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 x12-20020a17090a46cc00b001dc672ec8e8si16075074pjg.29.2022.06.21.10.59.02; Tue, 21 Jun 2022 10:59:15 -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=P1dagRCa; 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 S234307AbiFURc4 (ORCPT + 99 others); Tue, 21 Jun 2022 13:32:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233306AbiFURcy (ORCPT ); Tue, 21 Jun 2022 13:32:54 -0400 Received: from mail-qk1-x732.google.com (mail-qk1-x732.google.com [IPv6:2607:f8b0:4864:20::732]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6FC9D5C for ; Tue, 21 Jun 2022 10:32:52 -0700 (PDT) Received: by mail-qk1-x732.google.com with SMTP id 68so10647904qkk.9 for ; Tue, 21 Jun 2022 10:32:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=jDWLd8u/JyYSgS8BLWA6BB5+c2/1y05vpI/5e/F2mDE=; b=P1dagRCaJZH8jhpZC5udWDf1siXWgC4t/oJeBFlsrALbnhNl3JfXg8bUY5w2WYMUNV fns4Sybzhaf0akPLERfffEnXMHGejmhQGaxMg3zRUlryIsxZRtP/MmJJz/wK16qxApdW v88ye42cesewiXa5FFLDttxOgm5arcV1OtUDpRGUyrHMnappvZma7HFL+pW2PRQnH7Jt d8YJkk7gKXkZ7j0dCIMsI7IA/qmjoU0IUMkGCdEPkl2kqWZMkrnYf9FHvSFIO/DQLeDg +PxZVEv5Q0XxhVQ4pVf7Fip8lhcW5yRjF1pqYXtCyRK3qNTpv38JRFiR1qEbulCMdved rC9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=jDWLd8u/JyYSgS8BLWA6BB5+c2/1y05vpI/5e/F2mDE=; b=UhkPCw2NRJo0SjEaeIXv7I6cJRZw5mr7unMUFdCrHpYseXvhRyLKfASGSWXETKVn2/ 6IG9bhF5b9p5gFXYpz/sdXzc/XKG+F3yr1n/29D9Y6vkg4JznNcKqv6fph6U1BY0fbO0 p0qJSl7Smop3PuFOb3SNCY7U4RU8S+oPuQ5Yunc45PrVwrTsdugHoa7iBuScml08y65S 5aXnWgK6PGsGminuaqMwUbadGoRiqHDNU4wdetL9z5lW7nFFJub1i1ll/KQ0ErKVtkL6 TX/3a/wb4W50/M8OhGUfb7SlTy+504cfM8hmf50ERYzN/hHj2j/whGIbNlaEyx6Ldg2+ c9EQ== X-Gm-Message-State: AJIora+AZkZzm43xBjwueCXieCsskfjGOd4T78LFvudh6sZpdw/IIxrM i/b7TwM4xlZg6BFXusyx7/wyHIZvnnjCUlabfz1bdw== X-Received: by 2002:a05:620a:4305:b0:6a9:3829:c03 with SMTP id u5-20020a05620a430500b006a938290c03mr20769832qko.363.1655832771711; Tue, 21 Jun 2022 10:32:51 -0700 (PDT) MIME-Version: 1.0 References: <20220621160621.24415-1-y.oudjana@protonmail.com> <20220621160621.24415-6-y.oudjana@protonmail.com> In-Reply-To: From: Dmitry Baryshkov Date: Tue, 21 Jun 2022 20:32:40 +0300 Message-ID: Subject: Re: [PATCH 5/6] dt-bindings: clock: qcom,msm8996-apcc: Fix clocks To: Yassine Oudjana Cc: Andy Gross , Bjorn Andersson , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Loic Poulain , Yassine Oudjana , Konrad Dybcio , AngeloGioacchino Del Regno , Martin Botka , Marijn Suijten , Jami Kettunen , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org 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_NONE, 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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 21 Jun 2022 at 20:29, Yassine Oudjana wrote: > > > On Tue, Jun 21 2022 at 20:07:50 +0300, Dmitry Baryshkov > wrote: > > On Tue, 21 Jun 2022 at 19:07, Yassine Oudjana > > wrote: > >> > >> From: Yassine Oudjana > >> > >> The clocks currently listed in clocks and clock-names are the ones > >> supplied by this clock controller, not the ones it consumes. Replace > >> them with the only clock it consumes - the on-board oscillator (XO), > >> and make the properties required. > >> > >> Signed-off-by: Yassine Oudjana > >> --- > >> .../bindings/clock/qcom,msm8996-apcc.yaml | 15 > >> +++++++-------- > >> 1 file changed, 7 insertions(+), 8 deletions(-) > >> > >> diff --git > >> a/Documentation/devicetree/bindings/clock/qcom,msm8996-apcc.yaml > >> b/Documentation/devicetree/bindings/clock/qcom,msm8996-apcc.yaml > >> index a20cb10636dd..c4971234fef8 100644 > >> --- a/Documentation/devicetree/bindings/clock/qcom,msm8996-apcc.yaml > >> +++ b/Documentation/devicetree/bindings/clock/qcom,msm8996-apcc.yaml > >> @@ -26,22 +26,18 @@ properties: > >> > >> clocks: > >> items: > >> - - description: Primary PLL clock for power cluster (little) > >> - - description: Primary PLL clock for perf cluster (big) > >> - - description: Alternate PLL clock for power cluster (little) > >> - - description: Alternate PLL clock for perf cluster (big) > >> + - description: XO source > >> > >> clock-names: > >> items: > >> - - const: pwrcl_pll > >> - - const: perfcl_pll > >> - - const: pwrcl_alt_pll > >> - - const: perfcl_alt_pll > >> + - const: xo > >> > >> required: > >> - compatible > >> - reg > >> - '#clock-cells' > >> + - clocks > >> + - clock-names > > > > I think we can not list them as required, as then older DT files won't > > pass schema validation. But I'll leave this into the hands of Rob and > > Krzyshtof. > > The old DT files that didn't have XO defined had a wrong > compatible string to begin with (fixed in [1]), so I don't > think it's a problem. Looks fine to me then. (Though Rob and Krzysztof have the deciding voice here). Reviewed-by: Dmitry Baryshkov > > >> additionalProperties: false > >> > >> @@ -51,4 +47,7 @@ examples: > >> compatible = "qcom,msm8996-apcc"; > >> reg = <0x6400000 0x90000>; > >> #clock-cells = <1>; > >> + > >> + clocks = <&xo_board>; > >> + clock-names = "xo"; > >> }; > >> -- > >> 2.36.1 > >> > > > > > > -- > > With best wishes > > Dmitry > > [1] > https://lore.kernel.org/linux-arm-msm/20210527192958.775434-1-konrad.dybcio@somainline.org/ > > -- With best wishes Dmitry