From patchwork Sun Mar 13 11:57:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 12779226 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 39481C433EF for ; Sun, 13 Mar 2022 11:57:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232758AbiCML6b (ORCPT ); Sun, 13 Mar 2022 07:58:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230181AbiCML6a (ORCPT ); Sun, 13 Mar 2022 07:58:30 -0400 Received: from mail-io1-xd34.google.com (mail-io1-xd34.google.com [IPv6:2607:f8b0:4864:20::d34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8479BE3398; Sun, 13 Mar 2022 04:57:23 -0700 (PDT) Received: by mail-io1-xd34.google.com with SMTP id l18so7881967ioj.2; Sun, 13 Mar 2022 04:57:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=BwtHbOYBAHvTkXWaEDlnEeOYsI2vNh0rAunNRD0QW2w=; b=URVBnu/V/NzOS0pCi1fOrZLkvVZYO0O8I1ooqwRtbnYesnTxDcztbz3uF3jeq3u+Bp zUbX/U49xJxe/GgLtq0l7uhNMKD6vVB2HIQp7uPGUykwYWTPYTcfKzQXsu/hP6SCslSr 2x+5bH/iSTIUJprlfje1yAOdShsAbt+iJ27lYRH1cadhhOoJTERnlrtBRhf3vJHNBZU6 ifqJEvS2xl5nNnlhpGs6PUpUsuN42Wv13r0S2+KOJu/ByY/J0zbR4lpu0bNWlUnerxvF y4Q6MPDHujkAWTMOmuOksDgv6ivHwlr9hqLuwJ7Y1Or611x5oK/A7L2RxU7ATt9ZXv+e 5kKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=BwtHbOYBAHvTkXWaEDlnEeOYsI2vNh0rAunNRD0QW2w=; b=1MRXkmR6IF6z0XyEVr2PFs5qgfm4A6/saw7iEx1apqZDO1OY7Y+Raj8Q/9/ybqQcor On2T4CMO9aVhfxyXLW8nuZ9Ffb1EE39I8Cb/YYmibTP7xrC3zhInOn2arkCjAMakkxvi 3LBPFrd7FBGgsgo6nR92uf7oQjW6r8+iD9Xmd5En62bOofe/ewjGfRZCsOBZ/A7KIDgc reNmjMIxg5CZFk6z2TLlnzR1KNxVdojvkycQiYhMlAbby9CqohKBNT1H8VioISsUdS+g HLeiD+MnXw4E+plWwoq5xDaOL3CMeRsOYc4cAc7gwYMPvw5IKf9U+tkF3q/4wArVbP0I Gmhw== X-Gm-Message-State: AOAM533AeOXyq//0iLYu8paCu6F5E0gGOh+50DEqRC/0lMf8Tf0exzYF zvWWlW/JcvkqdqXYw09ChhIAwXcfwDo= X-Google-Smtp-Source: ABdhPJzzp9rEKtYXk8Nk6/WUlkorAPHLcfAwIzy02wK/SuZGL/dfkKCXYCwqIReq8puHNjyqm+807A== X-Received: by 2002:a02:b0d5:0:b0:317:c62c:cbcb with SMTP id w21-20020a02b0d5000000b00317c62ccbcbmr16245029jah.78.1647172642076; Sun, 13 Mar 2022 04:57:22 -0700 (PDT) Received: from aford-IdeaCentre-A730.lan ([2601:448:8400:9e8:e254:36c5:6684:5681]) by smtp.gmail.com with ESMTPSA id u15-20020a056e021a4f00b002c665afb993sm7797918ilv.11.2022.03.13.04.57.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Mar 2022 04:57:21 -0700 (PDT) From: Adam Ford To: linux-clk@vger.kernel.org Cc: aford@beaconembedded.com, cstevens@beaconembedded.com, Adam Ford , Claude Fillion , Luca Ceresoli , Michael Turquette , Stephen Boyd , linux-kernel@vger.kernel.org Subject: [PATCH] clk: vc5: Enable VC5_HAS_PFD_FREQ_DBL on 5p49v6965 Date: Sun, 13 Mar 2022 06:57:04 -0500 Message-Id: <20220313115704.301718-1-aford173@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org The 5p49v6965 has a reference clock frequency doubler. Enabling it adds versaclock_som.dbl to the clock tree, but the output frequency remains correct. Suggested-by: Claude Fillion Signed-off-by: Adam Ford diff --git a/drivers/clk/clk-versaclock5.c b/drivers/clk/clk-versaclock5.c index e7be3e54b9be..4d190579e874 100644 --- a/drivers/clk/clk-versaclock5.c +++ b/drivers/clk/clk-versaclock5.c @@ -1211,7 +1211,7 @@ static const struct vc5_chip_info idt_5p49v6965_info = { .model = IDT_VC6_5P49V6965, .clk_fod_cnt = 4, .clk_out_cnt = 5, - .flags = VC5_HAS_BYPASS_SYNC_BIT, + .flags = VC5_HAS_BYPASS_SYNC_BIT | VC5_HAS_PFD_FREQ_DBL, }; static const struct i2c_device_id vc5_id[] = {