From patchwork Mon Jul 22 09:54:17 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 11052047 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4A30C912 for ; Mon, 22 Jul 2019 09:54:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3966B28421 for ; Mon, 22 Jul 2019 09:54:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2D592284FC; Mon, 22 Jul 2019 09:54:31 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C6E1828421 for ; Mon, 22 Jul 2019 09:54:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728233AbfGVJya (ORCPT ); Mon, 22 Jul 2019 05:54:30 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:44575 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728129AbfGVJya (ORCPT ); Mon, 22 Jul 2019 05:54:30 -0400 Received: by mail-wr1-f66.google.com with SMTP id p17so38676324wrf.11 for ; Mon, 22 Jul 2019 02:54:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=bgvq9lq6LGXpxNw9zfixyWK44sZokPcHvbjpJArgXSg=; b=WhbT/meS6VWf8enxjpNxCA+h2RhhAz5ChlSWG8CfFeZ9UePIK1a9Hnre9k7keWJM8Y DrDNvwIPg2/h04urY4AtGYyJyi3AhzYwd/7KazMsJ6jhURHR1HsdMFbrTYQcaSvL3iCV XVGOpayXdvjcReahnENQc3/cdf4gFxlQG6MSh5W0RBdY6vEyUct1BsNbtMvtd4ANyHJr H1rFGOCnTJWT38cQ6tdDJvUVh3fCTtYhkgSixeZxjgaA2cArzNYQ2fDW19S8VN6RPS15 XNE2faizVhRdn+kDo3hOQAyiPIS7XfN+s8jABPAjKmPpWXkhiq1sfzmSF4BWDIpkMa+F MdKQ== 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; bh=bgvq9lq6LGXpxNw9zfixyWK44sZokPcHvbjpJArgXSg=; b=spl2v/ZPbjA2t2kd8gS/Kr3HeH3ryH6qWtKH4spP3vtADC4DR11jWHyXvFbGbuY1RL ijxi3cVZl1n0GNSwEFX9pfg926wRwiZVoLYIlMsDTNGZK1zIOrOIJfhV1IlCcF56QuUc LZ7z1Al5gLt+4lL1QbQL6lb//23mH0RKRhFLbns3LIvOP1JU5pJ/pcjS3EvKR1bntzNQ +yDoy5Rg0CSIrFzBEic06o6H1Ms3jQRfeEDhrvUJV2n9UnxTTcZYCDlm5nZOL7EcQPML 9xB255Dpi/TQxHfnTbIQXR18pjo88jnD3kAjmbZay5INyMoyqraI3NrOV/alfPtVZPuu 2Sog== X-Gm-Message-State: APjAAAURL3w8GObTCUHb77FAnkk+zSbD9ZduIhBiRY9Q7K99tdpGFN/D 70X756PSHI7GFIhF4KHn4s8MCg== X-Google-Smtp-Source: APXvYqwivBi379wi/Mp2lCw90zmNjgCUUdXb5W548a5fqL/+oTVTmKPQ1IHQg1T8EqZWsocnX8BxLA== X-Received: by 2002:a5d:6a90:: with SMTP id s16mr19076152wru.288.1563789268373; Mon, 22 Jul 2019 02:54:28 -0700 (PDT) Received: from pop-os.baylibre.local (lmontsouris-657-1-212-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.googlemail.com with ESMTPSA id 91sm83158469wrp.3.2019.07.22.02.54.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 Jul 2019 02:54:27 -0700 (PDT) From: Alexandre Mergnat To: jbrunet@baylibre.com Cc: khilman@baylibre.com, sboyd@kernel.org, narmstrong@baylibre.com, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, baylibre-upstreaming@groups.io, Alexandre Mergnat Subject: [PATCH 0/8] clk: meson: ee: use the new parent description method Date: Mon, 22 Jul 2019 11:54:17 +0200 Message-Id: <20190722095425.14193-1-amergnat@baylibre.com> X-Mailer: git-send-email 2.17.1 Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Meson SoCs clock controllers use the string comparison method to describe parent relation between the clocks, which is not optimized. Its also use bypass clock made from device-tree clock to provide an input clock which can be access through global name, but it still not optimal. A recent patch [0] allows parents to be directly specified with device-tree clock name or without string names from localy declared clocks. This patchset replaces clock string names by clock pointers (as possible), removes bypass clocks and uses directly device-tree clock names in parent assignment. Tested on GXL, GXBB, Meson8b, AXG SoCs by comparing the clock summary (orphan too) before and after migration. [0] commit fc0c209c147f ("clk: Allow parents to be specified without string names") Alexandre Mergnat (8): clk: meson: g12a: move clock declaration to dependency order clk: meson: g12a: migrate to the new parent description method clk: meson: gxbb: migrate to the new parent description method clk: meson: axg: migrate to the new parent description method clk: meson: meson8b: migrate to the new parent description method clk: meson: clk-regmap: migrate to new parent description method clk: meson: remove ee input bypass clocks clk: meson: remove clk input helper drivers/clk/meson/Kconfig | 4 - drivers/clk/meson/Makefile | 1 - drivers/clk/meson/axg.c | 207 ++++-- drivers/clk/meson/clk-input.c | 49 -- drivers/clk/meson/clk-input.h | 19 - drivers/clk/meson/clk-regmap.h | 12 +- drivers/clk/meson/g12a.c | 1086 ++++++++++++++++++++----------- drivers/clk/meson/gxbb.c | 646 ++++++++++++------ drivers/clk/meson/meson-eeclk.c | 10 - drivers/clk/meson/meson-eeclk.h | 2 - drivers/clk/meson/meson8b.c | 696 ++++++++++++++------ 11 files changed, 1773 insertions(+), 959 deletions(-) delete mode 100644 drivers/clk/meson/clk-input.c delete mode 100644 drivers/clk/meson/clk-input.h