Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1348792rwd; Thu, 8 Jun 2023 16:58:06 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7374LU3ioBw0XnAdjEBtm0ZZbXraAAAoxOqk81Ojte13IPfOAq/hjOmKQWXTyOHPymw/qo X-Received: by 2002:a17:902:e742:b0:1b0:e0a:b7ab with SMTP id p2-20020a170902e74200b001b00e0ab7abmr8763644plf.31.1686268686149; Thu, 08 Jun 2023 16:58:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686268686; cv=none; d=google.com; s=arc-20160816; b=nGbfSskrqKI4aNd1F9WyNjmouB6uvIakBpJT5KS85h2gJlMf+d6xpCw3M2BEVCyyQw RFALe4X0IP+6sb0E/LfFnlGHqplGH6sZHaQ0Bc2HCARnaLePUMkc6IP5HTOgTp+kf8pn LU1c1DNiwC9GH8//Xdt9UzGUGMdepxBZ7lLYrV/mJitU96NzyrUmN7g5+b6MKaPV/F1e uG+flpTxD3S9kpe0fgf1fEEjsai4RWEm1QbocIlpdo1yeXLKpO9bvVpqsSXajpfpzQO4 3AcXUd77XbfKcTdFVdJNzOuhCgYZRLwc6dmNstj/AWKjhDELsEzCSK2hk0GhV4Qer93v FC/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:date:to:cc:from:subject:references :in-reply-to:content-transfer-encoding:mime-version:message-id :dkim-signature; bh=LX1Om9HKiNtLlAD5jXY94Vw2uO7FiVs3bA+fHotujTU=; b=Fu07I0IHM6cAoTagU+reCkpoglWbnYRMsiZYRtYGLO+4IFlJKjrj9NonOra/zG1Mne qcsJ1fr+qgbS/uLs7vDppNYxqP6UgHeNiA9x8o5OC7lQTJCWu7u4Hr+hjTvSj5tUYctb Delzb1H+Ul7ewQmo5AAi1Usg3q/5+laUn93WafAcZaHmqa3CEA6H4E/hax/mWMiEQO+n Gaao+wt0MCbF6x1G3ETqygLlZcH/aL5+jxCam4OxluVkAAGc/M+sjZqRUmKdlhfHBuyC eQ1xfpm1jYiFF81qlx5djko93ShIsUDMum/ZP7T33DNKDm0XesPE3PdUAwaynJCxkwJk 5v8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CA4pzCm+; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i3-20020a17090332c300b001b2565271d0si1813155plr.463.2023.06.08.16.57.54; Thu, 08 Jun 2023 16:58:06 -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=@kernel.org header.s=k20201202 header.b=CA4pzCm+; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236946AbjFHXUF (ORCPT + 99 others); Thu, 8 Jun 2023 19:20:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42658 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236744AbjFHXUC (ORCPT ); Thu, 8 Jun 2023 19:20:02 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA97B30D0; Thu, 8 Jun 2023 16:20:00 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 63A5C60B9C; Thu, 8 Jun 2023 23:20:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B9452C433EF; Thu, 8 Jun 2023 23:19:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686266399; bh=gNWzo0d9k285yqJ8343FYMMw+n7NS2BmOugvX2V0Ji4=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=CA4pzCm+6mlNQVfNfEDag0XzljC6cfKu+PqT5l6t8GKJ6NGlZeiHGUJr+CnONQDlA Cxj2Zobn+zQbQQO27nvBbTBMNKzC8ytYlap3oYrEOTmLQi7KWIj8Tw97hZW8jSseLB u+Y2Ze8goJdUkgMec9T+K3L8O+hZ6/9KzJupowAaBHXhRuHNYxp7+HkQJ0+RsS0SeK 0AiPMeQK1FAFe1GZXfFMhW+tx9L+nM4htHuYSuEMQcP/b+tBzecABFuAHR2LzR+Mxi Q2onTKpdzdjG3vJa2OFjL9C2FKAr4shGeW45NcYgFUg1MOTDCmJHOtsNZrHoRBKldq A2dG2IxKIrfpw== Message-ID: <0447c70d63e13d239bdda839e966bd89.sboyd@kernel.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <96004048-0ba5-4cd6-406f-e1235c819c97@topic.nl> References: <1b153bce-a66a-45ee-a5c6-963ea6fb1c82.949ef384-8293-46b8-903f-40a477c056ae.1d0217a8-661f-4359-b77b-02222c761b01@emailsignatures365.codetwo.com> <20230605133410.15076-1-mike.looijmans@topic.nl> <5d1f08f1-792b-255b-89f0-dd5fa2f0baa4@linaro.org> <96004048-0ba5-4cd6-406f-e1235c819c97@topic.nl> Subject: Re: [PATCH v3 1/2] dt-bindings: clock: fixed-clock: Add nvmem support From: Stephen Boyd Cc: Conor Dooley , Krzysztof Kozlowski , Michael Turquette , Rob Herring , linux-kernel@vger.kernel.org To: Krzysztof Kozlowski , Mike Looijmans , devicetree@vger.kernel.org, linux-clk@vger.kernel.org Date: Thu, 08 Jun 2023 16:19:57 -0700 User-Agent: alot/0.10 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Quoting Mike Looijmans (2023-06-05 07:00:16) > On 05-06-2023 15:38, Krzysztof Kozlowski wrote: > > On 05/06/2023 15:34, Mike Looijmans wrote: > >> diff --git a/Documentation/devicetree/bindings/clock/fixed-clock.yaml = b/Documentation/devicetree/bindings/clock/fixed-clock.yaml > >> index b0a4fb8256e2..23e4df96d3b0 100644 > >> --- a/Documentation/devicetree/bindings/clock/fixed-clock.yaml > >> +++ b/Documentation/devicetree/bindings/clock/fixed-clock.yaml > >> @@ -12,7 +12,9 @@ maintainers: > >> =20 > >> properties: > >> compatible: > >> - const: fixed-clock > >> + enum: > >> + - fixed-clock > >> + - fixed-clock-nvmem > > Do you even need new compatible? Isn't this the same clock from the > > hardware point of view? >=20 > I need a new compatible because a "fixed-clock" only loads at init time. = > It registers using CLK_OF_DECLARE, which requires the clock to register=20 > early. NVMEM providers are typical devices like I2C EEPROMs that won't=20 > be available at that point, hence I needed to create a clock that=20 > registers as a regular clock driver and can handle deferral and similar. What is builtin_platform_driver(of_fixed_clk_driver)?