From patchwork Sun Jan 2 16:57:21 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Perier X-Patchwork-Id: 12702312 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id CE252C433F5 for ; Sun, 2 Jan 2022 16:59:25 +0000 (UTC) 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:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=d+1fd05IYBt+twGePAA7YGbTgPadSLJpj9B+5xOXwas=; b=3UmkrArqYyeW4+ llPaj9rlc5stxQq6HEn1HM8/iH+MEOlHXIpigh0M5ihRNlfd7Hx4FwkLhwE2OeN/pKSuGO8UV4Ou5 kW7r3NIinrG15MMzSs9bJqoOFLivRDn7vpoX63S6eRNJd4au5JUx50dfO0brz0C6idFdEM4rUwHtL EUr4TTfsUYshsfNk7YQnlcLOzhqlbb8f/0kKd7DCMe5FMqeZTZyxoo6wvBVnCzzcFdBO+Ofrm3Rw2 gSTKmGHKXhgH9t0nEdM9E1/7KqbwqyPF7PyVmvDCLjYMuhq2Gjo3YM+hYjsxdbjldfEFxbiBGgZ54 u1r0fYhmVC7zyq1GC35g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n44Au-007ynj-5C; Sun, 02 Jan 2022 16:57:40 +0000 Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n44Ar-007ymb-08 for linux-arm-kernel@lists.infradead.org; Sun, 02 Jan 2022 16:57:38 +0000 Received: by mail-wr1-x432.google.com with SMTP id v7so65574014wrv.12 for ; Sun, 02 Jan 2022 08:57:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=25JkROX6gojJhcdHgWizUk7fewqW48hRlaaUSldwQSI=; b=jL2f9pfGvgy8SroBc5A0PM/XjnmhAXbMbFpGuHnoiSG1dguRez9b5xHOX3RXzKbrI2 Ml0pcNy41928o/e7IAQAosJPIgFOhwSjtXHv6FlyEuHRGigyCZmQnHVnQISvRcfV0Fv5 r9oJBW9YjaWDKlyiE6K4JkA6byL/KcFN3OK35LsRgAZ1IL+xMArCe6+I3IBAi7wdZNld nnIiVAidP+X5Obu8eqazXBNK8i1vakwD8tgjyEaL2Z2RlZsvy0q69CQ3KyDvIp+CPGFG 5S7OntyQ+RjCch9RgOYb9KxoTpwafUdRr5vH9I28NhyuBBkZuYMs52CyQk40xdoIIlWl Htqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=25JkROX6gojJhcdHgWizUk7fewqW48hRlaaUSldwQSI=; b=j7YYjJfh6BOXEX0Yi6qzaWtcZkvQtmGHOQYhJ15RHcmBbnv+z4X+A9g02xuhUM3DdB qCsDNFEoQ0bR+3xQSdAj7850fvPEa50H5EEV4NA5c67gHFTLCIzi6TGG6jZJPvMfxPU5 0lWqGVtGHAe17xsvpZDNvxBQNR0GNvzGzvqZddnMY3Uw1hNco5HXaGa1wQ1fftZToEbX SCM3LbVLpFUfPeA3MUluyFSolXyAofhQNkaZ6f+T5kgbf9fYQ2oWmC9zMJCNV9GQwAbt h+VP6ioaLsl46krNUKASp/A9CyLey5cS1+V3QqWpq21p1ipOfcfBVrKXxRQ8Iy/lWNCJ ziXg== X-Gm-Message-State: AOAM533JBTT5S/mUoU0N5dJB6Q7aEx7dz+qFTNwtHRbCEjzV+AEGQ0h/ RLsbTXpiH1tuxgG9O4mwi2Y= X-Google-Smtp-Source: ABdhPJxGwq1Y7VN8FC0d/3vmrGWOxmgJl9QgbHs6TBo9OgfpAG06Jxsn3mPHPcS9QIPjtyACqA08IA== X-Received: by 2002:adf:eb12:: with SMTP id s18mr5174441wrn.717.1641142654717; Sun, 02 Jan 2022 08:57:34 -0800 (PST) Received: from debby ([2a01:e0a:a6d:a8d0:7ff4:8f61:5574:9f95]) by smtp.gmail.com with ESMTPSA id m5sm31153335wml.48.2022.01.02.08.57.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Jan 2022 08:57:34 -0800 (PST) From: Romain Perier To: Michael Turquette , Stephen Boyd , linux-clk@vger.kernel.org, Arnd Bergmann , Daniel Palmer , Romain Perier , Rob Herring Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/9] ARM: mstar: cpupll Date: Sun, 2 Jan 2022 17:57:21 +0100 Message-Id: <20220102165730.50190-1-romain.perier@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220102_085737_062674_D43B162D X-CRM114-Status: GOOD ( 15.40 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This series adds a basic driver for the PLL that generates the cpu clock on MStar/SigmaStar ARMv7 SoCs. Unfortunately there isn't much documentation for this thing so there are few magic values and guesses. This needs to come after the MPLL DT changes. Changes since v2: - Re-worked the series and ensure that 'make dt_binding_check' passes. The required commit is merged now, so it is okay. - Fixed coding style issues in the driver and makes check_patch.pl happy - Added one more commit for extending the opp_table for infinity2m. Daniel Palmer (8): dt-bindings: clk: mstar msc313 cpupll binding description clk: mstar: msc313 cpupll clk driver ARM: mstar: Add cpupll to base dtsi ARM: mstar: Link cpupll to cpu ARM: mstar: Link cpupll to second core ARM: mstar: Add OPP table for infinity ARM: mstar: Add OPP table for infinity3 ARM: mstar: Add OPP table for mercury5 Romain Perier (1): ARM: mstar: Extend opp_table for infinity2m .../bindings/clock/mstar,msc313-cpupll.yaml | 45 ++++ arch/arm/boot/dts/mstar-infinity.dtsi | 34 +++ arch/arm/boot/dts/mstar-infinity2m.dtsi | 17 ++ arch/arm/boot/dts/mstar-infinity3.dtsi | 58 +++++ arch/arm/boot/dts/mstar-mercury5.dtsi | 36 +++ arch/arm/boot/dts/mstar-v7.dtsi | 9 + drivers/clk/mstar/Kconfig | 7 + drivers/clk/mstar/Makefile | 1 + drivers/clk/mstar/clk-msc313-cpupll.c | 227 ++++++++++++++++++ 9 files changed, 434 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/mstar,msc313-cpupll.yaml create mode 100644 drivers/clk/mstar/clk-msc313-cpupll.c