Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5211332pxj; Wed, 26 May 2021 05:36:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzATavckjAAzeZHcWkV51LaB3HpALOQwYLNgs2nfpGe8JqD0rppFyukAjd4HBagpN7SGL1Y X-Received: by 2002:a17:906:26ce:: with SMTP id u14mr33148860ejc.187.1622032597620; Wed, 26 May 2021 05:36:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622032597; cv=none; d=google.com; s=arc-20160816; b=laiZZsT7lYlQQhEdE8qrt6GcdZY7HrBOHxl65SI1+QAGQPm4E4jWmuQgajwtZ4+ZVL CnIkhML8J0To1bYKXhwxi+rqvOCyWpLega8ISojKm3pbzK5W/fAzuarjXNUQzRdAnOGF /APpvJ+B4DLZpRZQ4YTBTxIuTUJod7eI9zmh+1p7ZaGR1ed2nU3KG3CKieGKGqto6sAq f6CLT5fXfwQ0yjVyJd2GEKXd1tVaE5C3EcjqB2xR3qKMupyZpbd8O3I2iGfzjY7zYq3P Jn/qqlFrUWZE9Io/38XLR++rJwv+wfH+U/cS25gmoz7nkLojoRYsBgKq7JJss9IdpHOC Jcpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=aHVNQXjGDzYmugExqLyS8QgS8HOqQNAY67dCdTL11Tk=; b=HJqq3zHr5Y/zgwnfmQaMCtVqPrLk74LoQAASWIIq14zQM+2VjLzb8FyjSml16L1zhp SQQwTq7ChdCqWE6rsCHD/MYeEjGRuC4Xc1fFo/R2saY7uUjzXgWm2EpvEYho2apqQaG/ azvHNkQnLllcuLnzSNpLtfJdzFsyS8TNZUdL7ByBYtcW4P+7OitiNen5LkHABMXlcJA4 c7pAa2sea6yPEhgQGIh+NK8ZvpK+fnU/k4ocfqddlLdGQh/jJHG0XUkERaigaHhJ0WXJ ftJ4D82Idx9Sx7lFP1fE8TXnuFD5t9xt3Hh41KssDBFRBI0p8CTE6XMD9x+alJd7Yq9G uIKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rLHPLAwB; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a5si5112353edy.309.2021.05.26.05.36.10; Wed, 26 May 2021 05:36:37 -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=@linaro.org header.s=google header.b=rLHPLAwB; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233868AbhEZKOI (ORCPT + 99 others); Wed, 26 May 2021 06:14:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233803AbhEZKOH (ORCPT ); Wed, 26 May 2021 06:14:07 -0400 Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B3D8C06175F for ; Wed, 26 May 2021 03:12:36 -0700 (PDT) Received: by mail-pj1-x1033.google.com with SMTP id v13-20020a17090abb8db029015f9f7d7290so3376720pjr.0 for ; Wed, 26 May 2021 03:12:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=aHVNQXjGDzYmugExqLyS8QgS8HOqQNAY67dCdTL11Tk=; b=rLHPLAwB+SG9oHy7Jyj56zS3SJ69OLTPsaFqkBYX74C5976mGMe460E/bN8apJCOIi Cnv6pbre43lJCmvIasCmkn6pZkKm0bmpoRGYXCp6audilP0g2JdGKZ1CMsy25lRcPCiB UzEZ65RdEK//1A3aXrhm7HL643Fq8y8t+SiRv+TKfcpiOtI5wLLlTtGNgtkygpXCch0q LMVRScl7tSOF0BTPYqv8m0HsKHLfOmib/hnY61z/DHsVzVuAIek9KHRjpYTuq0iVTLjz ROl+LlLgC543671tluDhEjdDM2oEVV7NtLwadH0Xn1qmQK3hG+aYt2lWZcrbQotoECAn wQrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=aHVNQXjGDzYmugExqLyS8QgS8HOqQNAY67dCdTL11Tk=; b=g8kP9ShHpkmMeyMuoAy0cOfLG1bTkOKenWad6ICZ1AbWaGoNj7FeWJRJk8Thxjy2E4 k+SCnisJWRwchQkAb2pO5+lCPVSaEkIOC6lInAWNAlUlaPabwCndMAmA8oqk0W+G/ZA6 fJOpXrWwMu0H0AqbRRNNAc8J3IU5vU2o+8sknxgGs+FL4XEWE/T6Xep2doHB1INj/rm+ U/UHJ8kT8TUyzfaM+lrlon8kxno3EeaquI0JCxSFyc3vfPTbyXiujfA+j/cgT04U/f7y YAw9qmSuT8gvE+sJ/oTsYeBv4kAS3jhOB/YNm5zjNJQI57J735slRVGqkmyyglXV+3HM gRew== X-Gm-Message-State: AOAM5329jhgzO9+kl9szNMUGc+z/dJptDcCHo1pVNNnq4gY1qxfOZY2W WKHI74nKzfvfYXdHm6UOpGNJ X-Received: by 2002:a17:902:61:b029:f8:c1e2:d84e with SMTP id 88-20020a1709020061b02900f8c1e2d84emr19843520pla.29.1622023955102; Wed, 26 May 2021 03:12:35 -0700 (PDT) Received: from work ([120.138.12.4]) by smtp.gmail.com with ESMTPSA id m84sm15533106pfd.41.2021.05.26.03.12.31 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 26 May 2021 03:12:34 -0700 (PDT) Date: Wed, 26 May 2021 15:42:30 +0530 From: Manivannan Sadhasivam To: Cristian Ciocaltea Cc: Stephen Boyd , Rob Herring , Andreas =?iso-8859-1?Q?F=E4rber?= , Michael Turquette , Edgar Bernardi Righi , 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: Re: [PATCH 4/6] clk: actions: Fix AHPPREDIV-H-AHB clock chain on Owl S500 SoC Message-ID: <20210526101230.GD10723@work> References: <58225ced4893018792d581c0476a0f1c70e08907.1615221459.git.cristian.ciocaltea@gmail.com> <20210316054547.GD1798@thinkpad> <20210316185014.GD1111731@BV030612LT> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210316185014.GD1111731@BV030612LT> User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 16, 2021 at 08:50:14PM +0200, Cristian Ciocaltea wrote: > On Tue, Mar 16, 2021 at 11:15:47AM +0530, Manivannan Sadhasivam wrote: > > On Mon, Mar 08, 2021 at 07:18:29PM +0200, Cristian Ciocaltea wrote: > > > There are a few issues with the setup of the Actions Semi Owl S500 SoC's > > > clock chain involving AHPPREDIV, H and AHB clocks: > > > > > > * AHBPREDIV clock is defined as a muxer only, although it also acts as > > > a divider. > > > * H clock is defined as a standard divider, although the raw value zero > > > is not supported. > > > > What do you mean by not supported? The datasheet lists "0" as the valid divisor > > value for divide by 1. > > Unfortunately CMU_BUSCLK1 is not documented in my S500 Datasheet > (Version: 1.6, 2016-03-07). Do you have a newer (or a more official) > one? > Yes I do have a newer version of the datasheet (v1.8) and there I can see the divisor 0. > The reference xapp-le code snipped is: > > static struct owl_div divider_H_CLK = { > .type = DIV_T_NATURE, > .range_from = 1, /* reserve H_CLK divsor 1 */ > .range_to = 3, > .reg = &divbit_H_CLK, > }; > > Not sure why divisor 1 has been reserved.. > It is not as per the datasheet. Did you run into any issues with this? Else I'd suggest to keep it as it is. Thanks, Mani > Thanks, > Cristi > > > Rest looks good to me. > > > > Thanks, > > Mani > > > [...]