From mboxrd@z Thu Jan 1 00:00:00 1970 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=-0.7 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no 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 3F25DC47089 for ; Thu, 27 May 2021 13:55:52 +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 01442613BF for ; Thu, 27 May 2021 13:55:51 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 01442613BF 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:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=qCxzkr8qDYgbyOlpf+VYHqsEGjXufmAqHLP//NkqjLA=; b=A5NrY8zkzeQ5Ox fAj3s8g5HF0yjAe54RK6X2DYSVBve6AulDEORfrSEOoMa0J3BO2tHQkpsoKqJrsYEzQL+8wboOLLq 99F9eEsyj4kBP0+fD5nVX4j3TWUzT6WCFxFZ4XK3xE51Vs/1zEvmmEDn8076RFi7I/efZZsnzuLdC 95nGQsookq4UzIpHxSWajVIhQpyrSax5INkdz0W452YguOmWi2e7t+S07JEurGMpBdjrvm3DLUy+G Tm7nswtbx8rnducmfcVeNfEj4bLyfD1s0ep2uqElqMPCi/PTF8QZgLpEQGQ21MneZ2LJ1WPwKgmvm TJnyeFQyH0bEkIUho/aA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lmGS5-006SZ4-SL; Thu, 27 May 2021 13:53:35 +0000 Received: from mail-ed1-x52f.google.com ([2a00:1450:4864:20::52f]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lmGKY-006OpL-Pj; Thu, 27 May 2021 13:45:48 +0000 Received: by mail-ed1-x52f.google.com with SMTP id r23so947553edw.1; Thu, 27 May 2021 06:45:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=Uz4JiPh2mkktY6ONKOwk6wNsblTCy+bn5Eg1MPFuJRQ=; b=tii8EUBiYfnHQlXnEiyPGmcAemLKeSVonfxJJlE8kmpWYW4H8QWzdpIEH9p6tv495U pU28A2qZroVl8qu305uOoJWln5qbh/zqYc7w+60/1ytjtsEDQHXRLu2NCTuoaWjNq+vq QkZ5EWFwH59yeKTZI1OEGO3758YEfIaxzx4rFKAXejZPM5H9SxlwUdU1zzF44CQoYlfx FRWGVIfsUYB4a0Rjg6jUvPoDfN/L6WhqB+qDpht5oAPTsPqg9/fRgO+kQ8Re3hEACIdC HuYY1P+Rv8vX8xQEOdPDwwzkj90Ph1I3ZkJr3RX7Y1nUZAr8coFiE86AWJ6Y1rmhlADp Whdg== 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; bh=Uz4JiPh2mkktY6ONKOwk6wNsblTCy+bn5Eg1MPFuJRQ=; b=FpKwB5hEiUQRtP48YsGyZ2CmsgaFHIdCItPWR8qdtpMS5EG2awO7VsiEF1nd9e6tNG U7QRGoxdydy9jbkvrykcDDiRdhLXAg+b8daM3DTuBW1+KMXPOWq9nGgh0pG6cLBYidlQ Wn6i2isJuy4PwnH2vvY45zY78qzvS3NOBHzJ1JC669GpdKJRMxm9OPQDGP6xhdp0bP5v mdlqic5qq94J7y00e26RUDdJnrwXS/s4Ku1Lgn7Xb4/VaLvBnFTisb4iEBck5FoESriy dOWy/lgsU2drDuZ47cZ+TVDyu4O02kFYUjOlDSfDer9uxAUHTNaHmzIXFZAoSpCUe6Ew 31eg== X-Gm-Message-State: AOAM530P8JbiMo6dHmcqh9BbWmG2JHINI3U8LV1bwvAmPe/hdNd+kkEJ mXj+GL5ozjTm9WQRvycgHLao8sKlnnE= X-Google-Smtp-Source: ABdhPJxvfo409sxjk47TCXCwzT2oD8Z/0787fzvIb3u1rUtHxcqRi+NpmleKyh/Jh3UrG5cDLiItAg== X-Received: by 2002:aa7:c24d:: with SMTP id y13mr4170373edo.155.1622123145454; Thu, 27 May 2021 06:45:45 -0700 (PDT) Received: from BV030612LT ([188.24.140.160]) by smtp.gmail.com with ESMTPSA id l22sm1015204ejk.67.2021.05.27.06.45.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 May 2021 06:45:44 -0700 (PDT) Date: Thu, 27 May 2021 16:45:42 +0300 From: Cristian Ciocaltea To: Manivannan Sadhasivam 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: <20210527134542.GC1300160@BV030612LT> References: <58225ced4893018792d581c0476a0f1c70e08907.1615221459.git.cristian.ciocaltea@gmail.com> <20210316054547.GD1798@thinkpad> <20210316185014.GD1111731@BV030612LT> <20210526101230.GD10723@work> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20210526101230.GD10723@work> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210527_064546_903816_21EBD8A9 X-CRM114-Status: GOOD ( 26.69 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, May 26, 2021 at 03:42:30PM +0530, Manivannan Sadhasivam wrote: > 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. I got an updated datasheet (v1.9) and I confirm dividing by 1 is valid. > > 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. I reverted the changes (please see v2) and did not encounter any issues so far, so let's ignore the vendor driver implementation. Thanks for the review, Cristi > Thanks, > Mani > > > Thanks, > > Cristi > > > > > Rest looks good to me. > > > > > > Thanks, > > > Mani > > > > > [...] _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel