Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1344036rwd; Wed, 31 May 2023 12:31:54 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7YeckB3sXrkSlojgTimYQZi39YXkCdnWOonKJGsgzJRrk4pen0+tXKz4o1VOMg1xptxW9j X-Received: by 2002:a05:6808:2a63:b0:398:4870:d2ed with SMTP id fu3-20020a0568082a6300b003984870d2edmr4950634oib.13.1685561514580; Wed, 31 May 2023 12:31:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685561514; cv=none; d=google.com; s=arc-20160816; b=fdXcDcPGuUDxaRJbtoqHrUavhJYRhcXt6xmXBYjgrKWe1+MirmrgcmC1/nV6POOevw B8ACvhNpoyQB6id82l4jr8pvqW/X/x1mRJ+E08tWK2d/Q/nhqXGLDLdHgkbsCkogK0Uj ypkQT4/V4SNrmuo3GnihWCD4yLyiLmntOZFKEppougox3u8GxMxDUZzcCYtsqu4F0LyO If2hW8uJYl6wqGvN2LOq5OCD34Ed8DwgS4psQdEjgXvn4qBKgIAnshiMXexXfwr6lihD W/FkR5QsJLq8sq5lLHDN7MrZiXLB4Ja1CQeo1/WmFAtJLSjldG5Zl1pHfzaP0lG55nXh CZMw== 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=lrftfarF8lrxLQHV/dhPCAOO9/QVWmUkVudnThFh7ps=; b=z1Bivln1hZViF1aVN1pWeS5wfTwzu1qjW3sqPOPhuRHZu8I6x86/t9XRn19io9Sxr1 Gcgyhbj+TO/GaW5LzeeqRR3NiPXndzUQlIapa2wzizkyhXiu598qUCQespJOEL87mDy2 Vd5Ycgeo8u+Bl9nMJgv7jcdhWpqXAs9v13xb4ZuHgQ9PD5N7eSgyWAXZzTR0XYdA1/al Y9eHMg0U2Vcm7+S06LU39+X1+ptSpRka2yA9FaBYRTWtY5chJuPOKf2JW+3drhRgMIz7 bmM8DtPhfAHdWBwi1SfOI8Bn0C6TDz/5313oXJmxIY609oKnla+dw63gHKuRfM2Jcwxb p3Zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yYAMQ4i3; 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 u191-20020a6385c8000000b005348f910e60si1538734pgd.114.2023.05.31.12.31.41; Wed, 31 May 2023 12:31:54 -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=yYAMQ4i3; 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 S229880AbjEaT1J (ORCPT + 99 others); Wed, 31 May 2023 15:27:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229611AbjEaT1I (ORCPT ); Wed, 31 May 2023 15:27:08 -0400 Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6EDA128 for ; Wed, 31 May 2023 12:27:06 -0700 (PDT) Received: by mail-ej1-x62f.google.com with SMTP id a640c23a62f3a-9741a0fd134so452652866b.0 for ; Wed, 31 May 2023 12:27:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685561225; x=1688153225; 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=lrftfarF8lrxLQHV/dhPCAOO9/QVWmUkVudnThFh7ps=; b=yYAMQ4i3zjwAlalP6o00lfhTK/eIpq+zAsEdl5GseT4+AwSsa6A2O1FUO1xlhREnyY 1bJHpStFR0yeP6moTYGYqQQ+ogQ/OQ7tKzStRXuDer0EXw/w2We4jLBmvOrj1RWlMg5/ VrWpvmG/NxJKKZLYlf3Vl2BbNwgv9P3xxj7CmXU0QouZf5KNkPXUzZc2OukUmpcdMCPE u/gAaat/Os4NDr103mc+DHGP4LBfk3sylPwpbzX6nRzrkLzI1tH9fEGUJBK6bczBY4HL Uz87Vi93lo1opRnPXMvEywyWZ6VSeyuVkZHlvR1pjEJ5sahuYVro3/LvBWb3bU3jkuLn yEwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685561225; x=1688153225; 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=lrftfarF8lrxLQHV/dhPCAOO9/QVWmUkVudnThFh7ps=; b=Wvx4+7HcRSAAjhyF4MMJ/LPAzlxeRIKvgnPD5HxvrSgrHqfFCLhZUZd4PH/+iQcMBP s1k9oiOBK/tUd9fpXOAO65Q42wd41N+kI08Sw+je61QDnksuIoZSSHe3tAZrUiZr56mH 5ZIMEAXeJDLR0OmRAIeChGUsc8jsrC/k87Ool/rdEe+75Jh/R9FpBvVI8aY/hHwdlCOa mB7QdSj1IlY8MtP8KqrC8phbilLex2fc4gXdlTEF2ufTgiB06WmRVi5ATjFtQ4ydiyCN epb8sBe9N1vJBg17KBa66m17a4Odz49pHBpYnK1iGiDQ+vEPbDNmFdBtBUvghyZfQ7Od eZvg== X-Gm-Message-State: AC+VfDwTZUrNQ6bsEuWpujCFfoBIhfRH9yx93/4ph5FepHuQ582jkA2Y CoSCV9R6s/kQCpXFFPSR6UbvtxiOvFZldWTGIbc= X-Received: by 2002:a17:907:a414:b0:96f:5f44:ea02 with SMTP id sg20-20020a170907a41400b0096f5f44ea02mr6329304ejc.8.1685561225150; Wed, 31 May 2023 12:27:05 -0700 (PDT) Received: from [192.168.1.20] ([178.197.199.204]) by smtp.gmail.com with ESMTPSA id w5-20020aa7dcc5000000b0050d83a39e6fsm6201203edu.4.2023.05.31.12.27.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 31 May 2023 12:27:04 -0700 (PDT) Message-ID: Date: Wed, 31 May 2023 21:27:02 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH v2 1/2] dt-bindings: clock: Add nvmem-clock Content-Language: en-US To: Mike Looijmans , devicetree@vger.kernel.org, linux-clk@vger.kernel.org Cc: Conor Dooley , Krzysztof Kozlowski , Michael Turquette , Rob Herring , Stephen Boyd , linux-kernel@vger.kernel.org References: <1b153bce-a66a-45ee-a5c6-963ea6fb1c82.949ef384-8293-46b8-903f-40a477c056ae.2167d5ad-7e99-4eb9-a313-030fc7a7d546@emailsignatures365.codetwo.com> <20230526143807.10164-1-mike.looijmans@topic.nl> From: Krzysztof Kozlowski In-Reply-To: <20230526143807.10164-1-mike.looijmans@topic.nl> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 26/05/2023 16:38, Mike Looijmans wrote: > Add bindings for a fixed-rate clock that retrieves its rate from an > NVMEM provider. This allows to store clock settings in EEPROM or EFUSE > or similar device. > > Component shortages lead to boards being shipped with different clock > crystals, based on what was available at the time. The clock frequency > was written to EEPROM at production time. Systems can adapt to a wide > range of input frequencies using the clock framework, but this required > us to patch the devicetree at runtime or use some custom driver. This > provides a more generic solution. This does not look like real hardware. I mean, the clock does not fetch its rate from nvmem, right? It's the Linux which does it, so basically you described here driver, not hardware. Extend existing fixed-clock bindings to allow reading frequency via nvmem cells. Best regards, Krzysztof