Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp114561rwr; Wed, 3 May 2023 23:39:18 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6S2FMul1oRealbI80KeV2w34Xv5+i5Apx9zNDJkweFLAwhw53HoAAbdcW3eMP8mD/veY9H X-Received: by 2002:a05:6a20:4403:b0:ea:ef5f:70ce with SMTP id ce3-20020a056a20440300b000eaef5f70cemr1520174pzb.52.1683182358186; Wed, 03 May 2023 23:39:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683182358; cv=none; d=google.com; s=arc-20160816; b=iX84NQl3VJ2ky1r3g70Alu2H81dwDw1nb2x9sGS5W66moSAH3b5WwDSqxKtxmIJqhU QDU4Q0q+d6VGG1GIXmFReVVhsDoL85PZHAgAsjniXBgxr8YTsACCberHJs4UjrLK2QF9 J+/tLGV3DxUjBSfrNRHzrOFlRPkGmwiDmg88JTOwCmnimNJRTsoOCjbSvGyGtNa/zSTX mlKceaXTX5OrPqTlv/FFg3/sbiJmCybCZKag8oyn4xi0/jcoWpb2AmT+29PeNCe58g9I 5Sh3STYVR6Y2x3uNKdoOVnk+tvDeci7ALseEbvNZAs8xFJnvRb2N30K38gcvnqBfQKwP 3ozA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=4ebgEagdbLvw8JiIkyMu+Kvj49caVzL1eFfSb+2cj4c=; b=giQ4zHdlFcs//SWL16vwKcz/uajVu1LUMAvblV5+cre1ugTmjf1JY+RG6lJw/sNZw9 5ol/0sycKh1Y1JV2QeY/0Jkn8C35yYg4ptogES+lvelnuVtoCer25I6JbLVAV2b4HBX1 gWIBwtWoxD/uSf0gVyHD62/FJbk1cM2RQY71CvlGlQ3vfjFOPtrbtLpTJeF8L76/jkU2 gdl/PC3+F01W5lpeGxLkBYDhzUP+bdHlDKLY/JlElsISluCE/mRNEwz2hSJ3/5RL1BSB rhIRaIfBov4DXFc7i8DW/ke7remP1QvvaN3jXcaGtYR9kW+Ds0nahDADV0URLsBO7FIv xKiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ir0arSP2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i135-20020a639d8d000000b00502fdce9dcasi31977337pgd.114.2023.05.03.23.39.04; Wed, 03 May 2023 23:39:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ir0arSP2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S230007AbjEDGbM (ORCPT + 99 others); Thu, 4 May 2023 02:31:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49066 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229967AbjEDGbJ (ORCPT ); Thu, 4 May 2023 02:31:09 -0400 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 41AFA2712 for ; Wed, 3 May 2023 23:30:58 -0700 (PDT) Received: by mail-ed1-x536.google.com with SMTP id 4fb4d7f45d1cf-50bcb4a81ceso7820a12.2 for ; Wed, 03 May 2023 23:30:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683181857; x=1685773857; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=4ebgEagdbLvw8JiIkyMu+Kvj49caVzL1eFfSb+2cj4c=; b=ir0arSP2uyG4zmJbl4X4tOqRxmlX/VaxRZDv9b+ySUttvHL424BOlabkODqAzkspHq b4rA9CNO3fJbMpol07tQ0Oobfi1YEPH8DtvJOOLNIa38qbYuf2SvAfE/yQV3yuQ5JB+P MPNazFExIRQiRHiEhTPwgy8zUv6mw5E+MuSlfGJjswbd4JAQRKl/PIVITt70kX2cF5RT RXi5TEePUZvRSI++rHfaQhG29MbtNMnwjBzAv/RzVyjSTe40PgZFLJQRXAaWiBB2Wq2f 9knUy14zIoH0AlK/DAx/W3qXbkGYQFj9eE/8jhZvHGVK/D/J1hqLln7M0DW6tEYiw1yX spvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683181857; x=1685773857; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=4ebgEagdbLvw8JiIkyMu+Kvj49caVzL1eFfSb+2cj4c=; b=dhcBe0gpdSmCBmjPlKwtKAViw6Z3SIO3MXDrVwlZiR01Hmj/b3ZRgjkqnPVfRLes1+ GJrpzy3nwKmcrM269g124LHl8p9C73GhJ6VqoUbOqvosn9f6UkKP9s1alhxuHoPIdA9T 8tatWpdalHf0cMssFo2j3Do2usgGIP0oiBrjiXmuO8RBXsLjTnCGInINOG1xVoHBuhxK KIkTZAo12RTNmquWiLt6DE+DNW4rvwL9eBOxWVN2TRz1vXjzhHhbciKqH3kUo6dqit1G LeExmO39ph3Ena8phVJkoR31n24gBnNqp/gCwRHfCIYoztITArNS7GWQKkORwKAuUDAr Hwig== X-Gm-Message-State: AC+VfDxLCbc2dLdhDwvFVdxQbvS7G81fbbT5xh9mOIiejyGnfSqH+EtY 9CElzqPp2kLUhdvQM/W/FP41zA== X-Received: by 2002:a05:6402:138d:b0:504:94b9:f21 with SMTP id b13-20020a056402138d00b0050494b90f21mr604533edv.27.1683181856698; Wed, 03 May 2023 23:30:56 -0700 (PDT) Received: from ?IPV6:2a02:810d:15c0:828:cbf1:e7ef:fb81:e912? ([2a02:810d:15c0:828:cbf1:e7ef:fb81:e912]) by smtp.gmail.com with ESMTPSA id j2-20020aa7c402000000b00501c96564b5sm1491183edq.93.2023.05.03.23.30.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 03 May 2023 23:30:56 -0700 (PDT) Message-ID: <958cca71-b2f2-80af-541c-d1e84b151d3c@linaro.org> Date: Thu, 4 May 2023 08:30:54 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.1 Subject: Re: [PATCH v9 08/10] clk: nuvoton: Add clock driver for ma35d1 clock controller Content-Language: en-US To: Jacky Huang , robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, lee@kernel.org, mturquette@baylibre.com, sboyd@kernel.org, p.zabel@pengutronix.de, gregkh@linuxfoundation.org, jirislaby@kernel.org, tmaimon77@gmail.com, catalin.marinas@arm.com, will@kernel.org Cc: devicetree@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-serial@vger.kernel.org, arnd@arndb.de, schung@nuvoton.com, mjchen@nuvoton.com, Jacky Huang References: <20230504033726.93-1-ychuang570808@gmail.com> <20230504033726.93-9-ychuang570808@gmail.com> From: Krzysztof Kozlowski In-Reply-To: <20230504033726.93-9-ychuang570808@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/05/2023 05:37, Jacky Huang wrote: > From: Jacky Huang > > The clock controller generates clocks for the whole chip, including > system clocks and all peripheral clocks. This driver support ma35d1 > clock gating, divider, and individual PLL configuration. > > There are 6 PLLs in ma35d1 SoC: > - CA-PLL for the two Cortex-A35 CPU clock > - SYS-PLL for system bus, which comes from the companion MCU > and cannot be programmed by clock controller. > - DDR-PLL for DDR > - EPLL for GMAC and GFX, Display, and VDEC IPs. > - VPLL for video output pixel clock > - APLL for SDHC, I2S audio, and other IPs. > CA-PLL has only one operation mode. > DDR-PLL, EPLL, VPLL, and APLL are advanced PLLs which have 3 > operation modes: integer mode, fraction mode, and spread specturm mode. > > Signed-off-by: Jacky Huang > --- > drivers/clk/Makefile | 1 + > drivers/clk/nuvoton/Kconfig | 19 + > drivers/clk/nuvoton/Makefile | 4 + > drivers/clk/nuvoton/clk-ma35d1-divider.c | 140 ++++ > drivers/clk/nuvoton/clk-ma35d1-pll.c | 365 +++++++++ > drivers/clk/nuvoton/clk-ma35d1.c | 948 +++++++++++++++++++++++ Acked-by: Krzysztof Kozlowski Best regards, Krzysztof