Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1917261pxb; Mon, 8 Mar 2021 09:20:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJyvNkiP7yLjZZAQYSk7wuQZZJCQyosq6jviPEbHedcMI3vhw6+JFw9jo/c/eDdsaVmu5S1Q X-Received: by 2002:aa7:cb8e:: with SMTP id r14mr23315630edt.331.1615224030157; Mon, 08 Mar 2021 09:20:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615224030; cv=none; d=google.com; s=arc-20160816; b=NwmGD+UUe3S8bLBrRLF6MSoD6gNBTyd1psXfTtEZILjGFzBQfGcL1OBo53TmZBEiL6 6aKbT0MAUA1qdD7wMugXWeVPN/n915ZZVivDMX5VC9+u9Z5SngtWW9ZwZU2rCD4XxB62 e42wPtLQ5FWP+Fzr4NflYHXtoYCw9xTgOXPpaMJLrdAGrE5HPeSuI8Hrn30+07azFCJu dZ77yG0KzLepQRgOlM1kGqE/oRATVa9uFLqxBvvQnjMw7VkdYy3YLyqR3T+qKMfoSSrH a25RZxQvc3absNnFTn33abCp8kWQW39UFT4oHV6irPknOH1FbS7FMNbe0203G/jgyC95 FWWA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=r9qTSZ8pXkbJjsf87TrGpRoyj07qm0gGBH/J86fk7+Y=; b=LHi5kYXRYIn6h+z6kZTelCm94mn4SGjahISRByUeq6pXUk7u/6E6sgahaceQUR8mAg 0m9fxYnGylHXphomCgWRiWZQ2tSgThwBkWsntOvuSldEIfWQrng9xxfWIlUaQYkJ0heM 8jMemhn3A7xoVuHTqU4QrSjky/ojWDKdzummSpOvE2ALL+00Ydb7N8zFEMlyM0bUv7UI yomJWQ0wdyhSylMzK9qdDOSTHmCyYIP9sJG7hIcJIHZJq6b/vMf9get992++EmBJkC12 z55wgkA8UMu9BgdrMR58dbaU4wqvq3gE4/cXqba7TajFMCLPPPEIiCP4ft3zhZsZ3bIi 9/9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BLmR99du; 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 r18si8493577edi.229.2021.03.08.09.20.06; Mon, 08 Mar 2021 09:20:30 -0800 (PST) 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=BLmR99du; 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 S231215AbhCHRTK (ORCPT + 99 others); Mon, 8 Mar 2021 12:19:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37182 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230299AbhCHRSh (ORCPT ); Mon, 8 Mar 2021 12:18:37 -0500 Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E265EC06174A; Mon, 8 Mar 2021 09:18:36 -0800 (PST) Received: by mail-ed1-x536.google.com with SMTP id b7so15860709edz.8; Mon, 08 Mar 2021 09:18:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=r9qTSZ8pXkbJjsf87TrGpRoyj07qm0gGBH/J86fk7+Y=; b=BLmR99duGmJJ0gfn5ATU+9mnhp/peA1yLufD1JIV/qJYRIsqXjxNUjdEs81EsZLBuk aGJQjYXR6ZEnqaF65TJ91SQMlzSyPpWvK4rRiwENkcC+VsHEMjGuXLAy3yvKPsF2iGhW YKH0Z/6V5B5qMevFVMSlHo8uYRvqyTudIV/ezT2fblT7MLRO7ZuCY+ueXsSQoAJeFGhB mICHtwiDGgvgYjrJNxiuIkmP+UF+dQ0LQfDClrC/tGV507WQ9Pm20Kd6o/M1trFikBWW +zfvQ7IWOMFmJgPaWmSnXBGb7I6k+fyXIubNqVgN9dOKkbwuwyG497pK/y3WGx9CCGvV 16ww== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=r9qTSZ8pXkbJjsf87TrGpRoyj07qm0gGBH/J86fk7+Y=; b=eFnHy9U13rxLA8qYTaZka3y/Sfs/CTFpuKDlWo8ps0adwLCSYocJA9NPuQ+aMVRet1 iB+lwSk0M3pMzFlP/NtvlSYgOzQC1onYqHD69ohYJwKyDMgTrv3WIZGITlPSmgb3rBXi N7XDOQPKG3olVkd+eqDZhFCa6RMbWsXslHixS/2YoLgdSGb/Ve4XtXNXeqdsA+tr6t/D bEAAG5TSz2lTPQW/Gwz4JDq4531J1+3ex/4ZEDPdxJvV5bihIcU/Rw9hy1Aq+65uuLM1 AgqJ0bYoxNKMNzNVsELsy68E3lZHsC9tUnNfk6HwHqVPjss0F3qucN+GKUhO2Bh1igGS 6ldA== X-Gm-Message-State: AOAM533LXy35xr15KuKqYYDXWNOUaH8sSEYr2yeuKCUPT2j/uTVNwYk8 6PFQKwqDu8NoEAK08hPzgaM= X-Received: by 2002:a05:6402:1d39:: with SMTP id dh25mr23701758edb.282.1615223914890; Mon, 08 Mar 2021 09:18:34 -0800 (PST) Received: from localhost.localdomain ([81.18.95.223]) by smtp.gmail.com with ESMTPSA id r5sm7457714eds.49.2021.03.08.09.18.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Mar 2021 09:18:34 -0800 (PST) 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 1/6] clk: actions: Fix UART clock dividers on Owl S500 SoC Date: Mon, 8 Mar 2021 19:18:26 +0200 Message-Id: <3d3118fc3e0973cc1cbbdbb98b643f0c82dd74fc.1615221459.git.cristian.ciocaltea@gmail.com> X-Mailer: git-send-email 2.30.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use correct divider registers for the Actions Semi Owl S500 SoC's UART clocks. Fixes: ed6b4795ece4 ("clk: actions: Add clock driver for S500 SoC") Signed-off-by: Cristian Ciocaltea --- drivers/clk/actions/owl-s500.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/clk/actions/owl-s500.c b/drivers/clk/actions/owl-s500.c index 61bb224f6330..75b7186185b0 100644 --- a/drivers/clk/actions/owl-s500.c +++ b/drivers/clk/actions/owl-s500.c @@ -305,7 +305,7 @@ static OWL_COMP_FIXED_FACTOR(i2c3_clk, "i2c3_clk", "ethernet_pll_clk", static OWL_COMP_DIV(uart0_clk, "uart0_clk", uart_clk_mux_p, OWL_MUX_HW(CMU_UART0CLK, 16, 1), OWL_GATE_HW(CMU_DEVCLKEN1, 6, 0), - OWL_DIVIDER_HW(CMU_UART1CLK, 0, 8, CLK_DIVIDER_ROUND_CLOSEST, NULL), + OWL_DIVIDER_HW(CMU_UART0CLK, 0, 8, CLK_DIVIDER_ROUND_CLOSEST, NULL), CLK_IGNORE_UNUSED); static OWL_COMP_DIV(uart1_clk, "uart1_clk", uart_clk_mux_p, @@ -317,31 +317,31 @@ static OWL_COMP_DIV(uart1_clk, "uart1_clk", uart_clk_mux_p, static OWL_COMP_DIV(uart2_clk, "uart2_clk", uart_clk_mux_p, OWL_MUX_HW(CMU_UART2CLK, 16, 1), OWL_GATE_HW(CMU_DEVCLKEN1, 8, 0), - OWL_DIVIDER_HW(CMU_UART1CLK, 0, 8, CLK_DIVIDER_ROUND_CLOSEST, NULL), + OWL_DIVIDER_HW(CMU_UART2CLK, 0, 8, CLK_DIVIDER_ROUND_CLOSEST, NULL), CLK_IGNORE_UNUSED); static OWL_COMP_DIV(uart3_clk, "uart3_clk", uart_clk_mux_p, OWL_MUX_HW(CMU_UART3CLK, 16, 1), OWL_GATE_HW(CMU_DEVCLKEN1, 19, 0), - OWL_DIVIDER_HW(CMU_UART1CLK, 0, 8, CLK_DIVIDER_ROUND_CLOSEST, NULL), + OWL_DIVIDER_HW(CMU_UART3CLK, 0, 8, CLK_DIVIDER_ROUND_CLOSEST, NULL), CLK_IGNORE_UNUSED); static OWL_COMP_DIV(uart4_clk, "uart4_clk", uart_clk_mux_p, OWL_MUX_HW(CMU_UART4CLK, 16, 1), OWL_GATE_HW(CMU_DEVCLKEN1, 20, 0), - OWL_DIVIDER_HW(CMU_UART1CLK, 0, 8, CLK_DIVIDER_ROUND_CLOSEST, NULL), + OWL_DIVIDER_HW(CMU_UART4CLK, 0, 8, CLK_DIVIDER_ROUND_CLOSEST, NULL), CLK_IGNORE_UNUSED); static OWL_COMP_DIV(uart5_clk, "uart5_clk", uart_clk_mux_p, OWL_MUX_HW(CMU_UART5CLK, 16, 1), OWL_GATE_HW(CMU_DEVCLKEN1, 21, 0), - OWL_DIVIDER_HW(CMU_UART1CLK, 0, 8, CLK_DIVIDER_ROUND_CLOSEST, NULL), + OWL_DIVIDER_HW(CMU_UART5CLK, 0, 8, CLK_DIVIDER_ROUND_CLOSEST, NULL), CLK_IGNORE_UNUSED); static OWL_COMP_DIV(uart6_clk, "uart6_clk", uart_clk_mux_p, OWL_MUX_HW(CMU_UART6CLK, 16, 1), OWL_GATE_HW(CMU_DEVCLKEN1, 18, 0), - OWL_DIVIDER_HW(CMU_UART1CLK, 0, 8, CLK_DIVIDER_ROUND_CLOSEST, NULL), + OWL_DIVIDER_HW(CMU_UART6CLK, 0, 8, CLK_DIVIDER_ROUND_CLOSEST, NULL), CLK_IGNORE_UNUSED); static OWL_COMP_DIV(i2srx_clk, "i2srx_clk", i2s_clk_mux_p, -- 2.30.1