From patchwork Thu Jun 10 20:05:20 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cristian Ciocaltea X-Patchwork-Id: 12313869 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.7 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E1DD4C48BDF for ; Thu, 10 Jun 2021 20:07:48 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A2DEE6139A for ; Thu, 10 Jun 2021 20:07:48 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A2DEE6139A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=3pwsmDGRRI6nVziWh2u9K9Pw+XSTRVJgk5eZGtHQAww=; b=jIUUPmK2tJucSH exxguHIS+xm4mhYR1FgKxCrZSXI139M3G2IqBofdxqAA4hZm9PqeqD7EyBwg3tek4pwwU5SmFfesK yHe2PWTZMAMxW1zk1EFCtD8I0h4f/KEU9z7VzUqeuonC3Cn73HbxLTGCvBxb7HjFag26o3fdLh6qh D/lZFU5LvAVjmQ1hPufwCBEqObzhEGpUBCDqzgkJmQ6XaMX6YVC5l0wMYPrNgHob+Hj0zDnw9qsVk f+AZCkXzMmHkU9QH9JUk4cDKvVtkl5LFgQRiacGQEe9f1u5Jt5TATaTkqvUbRPD9oNA+7gcoKdtor x3o7I9XbzXUwhUsag5UQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lrQvo-002Kd8-Mc; Thu, 10 Jun 2021 20:05:36 +0000 Received: from mail-ej1-x632.google.com ([2a00:1450:4864:20::632]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lrQvk-002KbB-I9; Thu, 10 Jun 2021 20:05:33 +0000 Received: by mail-ej1-x632.google.com with SMTP id ce15so1042567ejb.4; Thu, 10 Jun 2021 13:05:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=vKbNHhsAoamlFszCkXqhYM1B8ImnEWiEi2eaiXGc2bk=; b=d92lr/DjUvI3R66OIgy6FRfS8cKnLvu9JUb9Xa7M/oRg0XsIE5RCVHIBe2maBs4RvL w+/QXcJp4pPa2i0PWDza9CtZiRUp0Zpb6vgIEdPuTjxfMV5nPZKcl3/UYurGK5ZpbqJc iBk9QkAZq8Qa1R/HD/Vaw36MriYZQwqk8a/sYsI/KUKu1RowzchNvNcFpZxeyksFJojV G5vcnHgOzUhFK9ZwaZ6qCwPJytWvy4Q42hfnAsiWVa5ahnmkfYvx2ptq1OfsVCCozBrT E4iejmkeYBe9jyCh3J6UPGlPq4dywNhNdYQn9rE4zMtnC6oWuXmlbg18S8aYizz+/Bcd RMBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=vKbNHhsAoamlFszCkXqhYM1B8ImnEWiEi2eaiXGc2bk=; b=XHo0WAAH1QEZZYizgN9EsIvchhVVy73bn9fDaiSucFYE3xNd0rEGFDOTg/ifmQTjMj 8ctBKuOJ7EHC6rsJIgjHeawiztUPHJPet8Nr3hlj1UfTiJxu60UdAZm3cMuq47LiMSNR jzg8MebnBGaPdjRetPAEc88vzWQf8XXaqcY3L0kzR6SeY4eSw1XRtC0+REQEFGi5cM8b mR+hFy0ptbL2dMwj89KkB70Q9GoqFlavD17+Ep7xjcoifAqyw6JDridOgCctnq1tQ92T 7Q3yzoTVq6E3ZLt6cjASPsafBsJHot2ywepBlRnIFHvP5UXatZ6rbAYyb3njcAiw+tG1 5tuA== X-Gm-Message-State: AOAM530s9WV7ngXzAPeDHyEs3A2omnrOd0KqsZpZAUvqHAlzDKG5bYi0 42GE42fmhy8aZzjes9s+nlg= X-Google-Smtp-Source: ABdhPJx00vJz2as8HSHYn/jhTPzO/+DPBWEDYVa6xVv8VYKZ47olPVql9JMiSfTBQTFyCdItTLF4JQ== X-Received: by 2002:a17:907:20f7:: with SMTP id rh23mr301499ejb.414.1623355529261; Thu, 10 Jun 2021 13:05:29 -0700 (PDT) Received: from localhost.localdomain ([188.24.178.25]) by smtp.gmail.com with ESMTPSA id du7sm1800978edb.1.2021.06.10.13.05.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Jun 2021 13:05:28 -0700 (PDT) From: Cristian Ciocaltea To: Stephen Boyd , Rob Herring , Manivannan Sadhasivam , =?utf-8?q?Andreas?= =?utf-8?q?_F=C3=A4rber?= , Michael Turquette , Edgar Bernardi Righi Cc: linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-actions@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v3 0/6] Improve clock support for Actions S500 SoC Date: Thu, 10 Jun 2021 23:05:20 +0300 Message-Id: X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210610_130532_641753_54317ED0 X-CRM114-Status: GOOD ( 11.96 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org While working on a driver to support the Actions Semi Owl Ethernet MAC, I found and fixed some issues on the existing implementation of the S500 SoC clock subsystem and, additionally, I added two missing clocks. Thanks, Cristi Changes in v3: - Fixed swapped flags between "ahbprediv_clk" and "ahb_clk" in patch 4/6 - Added Reviewed-by tags from Mani - Rebased patch series on v5.13-rc5 Changes in v2 (according to Mani's review): - Re-added entry "{ 24, 1, 25 }" to sd_factor_table, according to the datasheet (V1.8+), this is a valid divider - Re-added OWL_GATE_HW to SENSOR[0-1], according to the datasheet they are gated, even though the vendor implementation states the opposite - Reverted the addition of the clock div table for H clock to support the '1' divider (according to the datasheet), even though the vendor implementation marks it as reserved - Reordered "nic_clk_mux_p" after "ahbprediv_clk_mux_p" to follow the reg field ordering - Rebased patch series on v5.13-rc3 Cristian Ciocaltea (6): clk: actions: Fix UART clock dividers on Owl S500 SoC clk: actions: Fix SD clocks factor table on Owl S500 SoC clk: actions: Fix bisp_factor_table based clocks on Owl S500 SoC clk: actions: Fix AHPPREDIV-H-AHB clock chain on Owl S500 SoC dt-bindings: clock: Add NIC and ETHERNET bindings for Actions S500 SoC clk: actions: Add NIC and ETHERNET clock support for Actions S500 SoC drivers/clk/actions/owl-s500.c | 92 +++++++++++++------- include/dt-bindings/clock/actions,s500-cmu.h | 6 +- 2 files changed, 65 insertions(+), 33 deletions(-)