Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp240700iob; Mon, 2 May 2022 18:13:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzdiBu3JMK7+G+nDxb3mTJGszRfRB1IDDegrGlkRCYFRtUDMmAvmvTuIOgUlG5tI3CBXpwA X-Received: by 2002:a17:902:c9d2:b0:15b:e021:8bcc with SMTP id q18-20020a170902c9d200b0015be0218bccmr14189400pld.40.1651540399719; Mon, 02 May 2022 18:13:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651540399; cv=none; d=google.com; s=arc-20160816; b=dr+OgwJPwmrtmBbgETWHRYgj/oOEgI7rytFLupq92GzVcBmQPWtZcJu1avHZypfykz vhzZ4h6GF6rFT30AnLXu/nKMx33pTlEFbpa5CaZKm+NHnmhOf217IIPZEK8FBncW5l6a snrRUMME/3wsx2r8neabKR1OVCxUSvpEe6K3F0YFsvLEE7Jx6QAMgjXuuSUJx5qBG8TF vd9xE63O6+5UNjnupW5OZcBww0cm7MkUeYKcx1E1utQcXFSpVAtegf3v9wwu7kMTGOsb v8AWuJZUDIt8IPqnuwLTp91QIGd7jF1IE10MMmFiW8sBKyxyXhWC2opIaRf+BTECrmqd jERA== 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:subject:cc:to:from:date:message-id:dkim-signature; bh=94vn6QxCatU8SdwHnwlVFIAEM6kk0iWhQcT6gEzd07o=; b=s4+N0czlu6o6BdMTbiJ74rHQqyevmMU6VEnrmPNgWdYtolv8SeJanq4+XgNHcNXUGt FWlp/zjWQ7wRsbPIEOncL3npuP0TOrfpt1IGWF8yFY+Ewxu4ESjobdBmU9+uuarBePDk BZxRk9cHnqs1NHvjG2G8RyAfka/i9Bti/gzN9d/MXpfr4+EMhKRN5mYVBjTc7Z7fxTo6 bKVv5G1HmjM3ejqiNMVaAj/pY4rbziJ+Iy1qXuwCpQbDe85P8yHSbTPDWxxBZBGcPIYV /4O2ZZG0v4s9R0BWSEgbKHS0LZ5gJmpJzP92MvCmw7g59hL9BENklqMxMm7roiPRWIbf ZgqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=gIBigXRW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id j73-20020a638b4c000000b003ab616774basi11972337pge.799.2022.05.02.18.13.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 May 2022 18:13:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=gIBigXRW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2B3845DE49; Mon, 2 May 2022 17:54:08 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229812AbiEBLCa (ORCPT + 99 others); Mon, 2 May 2022 07:02:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58386 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229596AbiEBLC2 (ORCPT ); Mon, 2 May 2022 07:02:28 -0400 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C62F5B39; Mon, 2 May 2022 03:58:59 -0700 (PDT) Received: by mail-ej1-x636.google.com with SMTP id k23so27083873ejd.3; Mon, 02 May 2022 03:58:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:from:to:cc:subject:references:mime-version :content-disposition:in-reply-to; bh=94vn6QxCatU8SdwHnwlVFIAEM6kk0iWhQcT6gEzd07o=; b=gIBigXRWRP2bwFWuVaRSpDB2XK5tmhst9NbbZAKxjzpxZ57dRDRuhB46XoS4fChnGH AfmhiEWPWkHnIsdl2+uETGhLw+jDKVnZne+9aEhxND5jB3Uf2VEMfhVSxTUb8URewf+R 9yak+DM1mxKZ/azkdttalqJS8mezrEiIUsC3XPQZmuUF6rYTAanG/tv3Yf867xzx0f38 xZUNaFAqUe2knvK48Xl2Mudjw48BV/xtFyjb19c74borxpX3yoql620dC7rPBgImci9p F9vYZ50KABB5DMsailubtBdEds6kOlwUi1cCSRP9CY3R3e420YM3whMl1xlOfblsCw9m Xacg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:from:to:cc:subject:references :mime-version:content-disposition:in-reply-to; bh=94vn6QxCatU8SdwHnwlVFIAEM6kk0iWhQcT6gEzd07o=; b=GBpnpnyvcxvQrz9hwd5XtGq7dUkpyn621tUI50pKyeYfwcfDCMM1u1WtLCIHPjgDp3 6giUiZslQNPnaGgcFB8dT+xnWFR0XKPzGI4hh9bcJwnVsbcaRnZ9QYnrwiGpPr2bjfHx mNx2aDsRysNvKUPdj+WIrCdXDpThaHyvQ7vhYbvC/pR06jjntinMMQsxHArP8eOWB9Fi 787FaqCdelmBGI0BXriTqrQGlK9z4TAXIvJcIwrVXMlHbtTTbr4teTGES6ksM/H7igOO EM4ENVD+hp0y5ltjFJ+o119+iMiJ/gVku1k8a56VJoXeoIlnaux/j527e8LqjZQePv9F R3gw== X-Gm-Message-State: AOAM530nPcp+kTRMJ07pwPORDPfjcP4hpqcrilGbf3GwZzAoq/W6Phcu 1wOH2tsy2VlZUkUH3mtkQgI= X-Received: by 2002:a17:907:d28:b0:6f4:6375:5245 with SMTP id gn40-20020a1709070d2800b006f463755245mr2281563ejc.12.1651489138048; Mon, 02 May 2022 03:58:58 -0700 (PDT) Received: from Ansuel-xps. (93-42-70-190.ip85.fastwebnet.it. [93.42.70.190]) by smtp.gmail.com with ESMTPSA id n6-20020a056402514600b0042617ba63bcsm6596291edd.70.2022.05.02.03.58.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 May 2022 03:58:57 -0700 (PDT) Message-ID: <626fb971.1c69fb81.fcab0.5f71@mx.google.com> X-Google-Original-Message-ID: Date: Mon, 2 May 2022 12:40:04 +0200 From: Ansuel Smith To: Krzysztof Kozlowski Cc: Rob Herring , Krzysztof Kozlowski , Andy Gross , Bjorn Andersson , Michael Turquette , Stephen Boyd , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org Subject: Re: [PATCH v2 3/3] dt-bindings: arm: msm: Convert kpss-gcc driver Documentation to yaml References: <20220430060125.9124-1-ansuelsmth@gmail.com> <20220430060125.9124-4-ansuelsmth@gmail.com> <626d4cbf.1c69fb81.e6965.76b4@mx.google.com> <0711b822-506b-7b90-6b63-50c5c0ce4f6e@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0711b822-506b-7b90-6b63-50c5c0ce4f6e@linaro.org> X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Sun, May 01, 2022 at 10:26:47AM +0200, Krzysztof Kozlowski wrote: > On 30/04/2022 09:42, Ansuel Smith wrote: > > On Sat, Apr 30, 2022 at 04:40:54PM +0200, Krzysztof Kozlowski wrote: > >> On 30/04/2022 08:01, Ansuel Smith wrote: > >>> Convert kpss-gcc driver Documentation to yaml. > >>> Add #clock-cells additional binding to required bindings and example > >>> as it's a required binding for clock-output-names. > >>> > >>> Signed-off-by: Ansuel Smith > >> > >> > >> (...) > >> > >>> +properties: > >>> + compatible: > >>> + items: > >>> + - enum: > >>> + - qcom,kpss-gcc-ipq8064 > >>> + - qcom,kpss-gcc-apq8064 > >>> + - qcom,kpss-gcc-msm8974 > >>> + - qcom,kpss-gcc-msm8960 > >>> + - const: qcom,kpss-gcc > >>> + > >>> + reg: > >>> + maxItems: 1 > >>> + > >>> + clocks: > >>> + items: > >>> + - description: phandle to pll8_vote > >>> + - description: phandle to pxo_board > >>> + > >>> + clock-names: > >>> + items: > >>> + - const: pll8_vote > >>> + - const: pxo > >>> + > >>> + clock-output-names: > >>> + const: acpu_l2_aux > >> > >> It does not make sense having a constant output name. What is the > >> meaning this property in such case? The original binding did not enforce it. > >> > >> > >> > >> Best regards, > >> Krzysztof > > > > Mh. Should I just drop the const and put a description referring to an > > advised name? The driver with the kpss-gcc hardcode the name to > > acpu_l2_aux that's why I thought it was a correct conversion using a > > const but I assume this is another problem of not making a correct 1:1 > > conversion and adding fixes on pure conversion. > > Hard-coding a name by implementation is not a reason to put that name in > DTS. DTS is not a place for values stored in the driver. > > > Think I should drop it and put a description to it. (and then later fix > > it when I will push the other series with all the tweaks) > > The driver kpss-gcc does not use this property at all, so I am not sure > if there is a point to even keep it. Any other user of bindings makes > use of the property? > > > Best regards, > Krzysztof The idea is that you put the clk name in 'clock-output-names' and the driver needs to have support for it (and set the clk name based on the name defined in the dts) This driver doesn't have support for it and is actually hardcoded. So you are right and I should just drop it. But now another question... Since #clock-cells was added as a requirement for clock-output-names, should I drop also that? In theory #clock-cells should always be declared for clock providers, is it right to add it in the conversion commit or I should put this change in another commit? (since it's now an addition and now something required to fix a bot warning) -- Ansuel