Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp539206pxj; Thu, 27 May 2021 06:18:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx0iYhrKAm6WPTlAZXRXQHq2pZ4ZjKOkk3MgBZ6mO9FIDPz+lektcyUcolMJrwTzyy/Bxtm X-Received: by 2002:aa7:d598:: with SMTP id r24mr4147639edq.250.1622121495886; Thu, 27 May 2021 06:18:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622121495; cv=none; d=google.com; s=arc-20160816; b=x5OXOSdZrmDwn1RIS1I0eWqkt3p8ZxvTV6WqJ3VXYAd9z6VeF3lsSUKbWB4nBLPd6q PlNVwgPmbX77/SayzcY7G97DLWmJHglmyVII1JF43fkhMPoFv1WlJ18XkV9Rd3g8oW1C xUXwOVBTZ9xGqkQkClT33qG8oMMXqC1RyXZn20EwHKA05iyOUyZci+fWy8n05qQjPS7U i/YQRkOzDceS0nK32v3UbzmzUCMhS+eMKxbq+qWu2wlbUQTtgs7idfDrApUnFInej4rm d6yYk69nESw5n9jskB1jTGYbwv/LFHQ3iNzvcQLj9dbNX/k3MnZtOwzac3dz3f2FoflP 0jNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=3TKX6UNfeQq3WZk8B3GWpeEI9lZ4hogpPt1mzI6b/B8=; b=pAh9br9/8JsSA8vdZeJ2lGlCiyF46cqCP5F41KY3GGQe40QoOPc5oTKRHjiRq08ayV NxQVGuz6Z4Ymi00OZNtprU5BHXMZtcnwHrcdIq3eQtJWjF2nGPCoX6dadsQWHPHFnwRI csoKrkhwPy2bW9QujbLXSo5W6754JkQ5ShVb+fxIGyH5nmnDinBWGJqTnqvH5VjetBqQ 22cnOopnr1CSdwEhQ9Jlzpd2HrQ2hgJJhyF15YRFSrJHf6EgBatO/VRkFczyIOCGYOo3 AT49yLsxBFKqeY4odLuuToBwqcKg/sFDuQ8hfGrhcHYXwACw+Vhm1dPckAQd1Dd+fdas RxRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="Y/dktLEg"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h15si2681656ejq.124.2021.05.27.06.17.51; Thu, 27 May 2021 06:18:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="Y/dktLEg"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.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: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236366AbhE0NSX (ORCPT + 99 others); Thu, 27 May 2021 09:18:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235996AbhE0NSW (ORCPT ); Thu, 27 May 2021 09:18:22 -0400 Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA805C061574; Thu, 27 May 2021 06:16:48 -0700 (PDT) Received: by mail-ej1-x62b.google.com with SMTP id gb17so7969071ejc.8; Thu, 27 May 2021 06:16:48 -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=3TKX6UNfeQq3WZk8B3GWpeEI9lZ4hogpPt1mzI6b/B8=; b=Y/dktLEgafQ1yisGN5JQY4g+/sBKCpKIsJ7Y6eIfX3esJO3osva49CIhhDqbCo5s59 WB5QLcPJe60vPsB+ex4yFoqZpg5YyZV7WsVLwBgyNly3llcLKRTHzK6cTrL4gSbGyHus fK7JDLdYGHh87Y10M9SYgeDleTmv+G3p26UPoOAowX4/ROg0AscWET3NzVr3Ol+d6+ef CJWN03f1xWNhPOiwCm2rvK/90Zxw3931w/aP3aFQtdiFunkJHQZsqoZPe5xS8qvY5Has o2CKtakT9b5uw56l2s/lLDutkc03KFDZL3+GBYKlPYQIRKtTfeU4HiEuspBVngFU7dow dpXw== 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=3TKX6UNfeQq3WZk8B3GWpeEI9lZ4hogpPt1mzI6b/B8=; b=XTb5rKrFIRXDnhBgnIm4Dhzzfj8cABlQgCrsidZ9FrcpUtmmYpbO1B1UZLqFWKkO5k lssRjGEh4X/YLDhfBiUhdHLp93uwlMxKhZVTe2+vd/Fr4oYyp6CPBvyaKna1Zn7B5VQi flfIox+g0+i2gHscnkaBjmot6trB8nxtt5F2GR40LUKl0+2X5dIWjbHH/Gj8SGeMwf9H gGfHMaISvFb/xj6q6T5KSFJtwiEoK8ejpOouiYlzAQJwBMqxHG+Ze6Mq1SIUaU9YvxKY Xf2wGJ7l0iNc0xzfMglBX+B0bXuWndZdbuQdsq9KRl5gmcT2iQg8/7gAMqtwt7apxLb8 bIjg== X-Gm-Message-State: AOAM532dJK6F6kQubZiB4KGDs4eD64+0oczUPqA45pcdhaPLnfOhxw0N gpwAeAQ8+MQ6IczqU02a0c4= X-Received: by 2002:a17:906:949a:: with SMTP id t26mr3752351ejx.475.1622121407365; Thu, 27 May 2021 06:16:47 -0700 (PDT) Received: from localhost.localdomain ([188.24.140.160]) by smtp.gmail.com with ESMTPSA id r23sm1104206edq.59.2021.05.27.06.16.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 May 2021 06:16:46 -0700 (PDT) From: Cristian Ciocaltea To: Stephen Boyd , Rob Herring , Manivannan Sadhasivam , =?UTF-8?q?Andreas=20F=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 v2 0/6] Improve clock support for Actions S500 SoC Date: Thu, 27 May 2021 16:16:38 +0300 Message-Id: X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 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(-) -- 2.31.1