License cleanup: add SPDX GPL-2.0 license identifier to files with no license
Many source files in the tree are missing licensing information, which
makes it harder for compliance tools to determine the correct license.
By default all files without license information are under the default
license of the kernel, which is GPL version 2.
Update the files which contain no license information with the 'GPL-2.0'
SPDX license identifier. The SPDX identifier is a legally binding
shorthand, which can be used instead of the full boiler plate text.
This patch is based on work done by Thomas Gleixner and Kate Stewart and
Philippe Ombredanne.
How this work was done:
Patches were generated and checked against linux-4.14-rc6 for a subset of
the use cases:
- file had no licensing information it it.
- file was a */uapi/* one with no licensing information in it,
- file was a */uapi/* one with existing licensing information,
Further patches will be generated in subsequent months to fix up cases
where non-standard license headers were used, and references to license
had to be inferred by heuristics based on keywords.
The analysis to determine which SPDX License Identifier to be applied to
a file was done in a spreadsheet of side by side results from of the
output of two independent scanners (ScanCode & Windriver) producing SPDX
tag:value files created by Philippe Ombredanne. Philippe prepared the
base worksheet, and did an initial spot review of a few 1000 files.
The 4.13 kernel was the starting point of the analysis with 60,537 files
assessed. Kate Stewart did a file by file comparison of the scanner
results in the spreadsheet to determine which SPDX license identifier(s)
to be applied to the file. She confirmed any determination that was not
immediately clear with lawyers working with the Linux Foundation.
Criteria used to select files for SPDX license identifier tagging was:
- Files considered eligible had to be source code files.
- Make and config files were included as candidates if they contained >5
lines of source
- File already had some variant of a license header in it (even if <5
lines).
All documentation files were explicitly excluded.
The following heuristics were used to determine which SPDX license
identifiers to apply.
- when both scanners couldn't find any license traces, file was
considered to have no license information in it, and the top level
COPYING file license applied.
For non */uapi/* files that summary was:
SPDX license identifier # files
---------------------------------------------------|-------
GPL-2.0 11139
and resulted in the first patch in this series.
If that file was a */uapi/* path one, it was "GPL-2.0 WITH
Linux-syscall-note" otherwise it was "GPL-2.0". Results of that was:
SPDX license identifier # files
---------------------------------------------------|-------
GPL-2.0 WITH Linux-syscall-note 930
and resulted in the second patch in this series.
- if a file had some form of licensing information in it, and was one
of the */uapi/* ones, it was denoted with the Linux-syscall-note if
any GPL family license was found in the file or had no licensing in
it (per prior point). Results summary:
SPDX license identifier # files
---------------------------------------------------|------
GPL-2.0 WITH Linux-syscall-note 270
GPL-2.0+ WITH Linux-syscall-note 169
((GPL-2.0 WITH Linux-syscall-note) OR BSD-2-Clause) 21
((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 17
LGPL-2.1+ WITH Linux-syscall-note 15
GPL-1.0+ WITH Linux-syscall-note 14
((GPL-2.0+ WITH Linux-syscall-note) OR BSD-3-Clause) 5
LGPL-2.0+ WITH Linux-syscall-note 4
LGPL-2.1 WITH Linux-syscall-note 3
((GPL-2.0 WITH Linux-syscall-note) OR MIT) 3
((GPL-2.0 WITH Linux-syscall-note) AND MIT) 1
and that resulted in the third patch in this series.
- when the two scanners agreed on the detected license(s), that became
the concluded license(s).
- when there was disagreement between the two scanners (one detected a
license but the other didn't, or they both detected different
licenses) a manual inspection of the file occurred.
- In most cases a manual inspection of the information in the file
resulted in a clear resolution of the license that should apply (and
which scanner probably needed to revisit its heuristics).
- When it was not immediately clear, the license identifier was
confirmed with lawyers working with the Linux Foundation.
- If there was any question as to the appropriate license identifier,
the file was flagged for further research and to be revisited later
in time.
In total, over 70 hours of logged manual review was done on the
spreadsheet to determine the SPDX license identifiers to apply to the
source files by Kate, Philippe, Thomas and, in some cases, confirmation
by lawyers working with the Linux Foundation.
Kate also obtained a third independent scan of the 4.13 code base from
FOSSology, and compared selected files where the other two scanners
disagreed against that SPDX file, to see if there was new insights. The
Windriver scanner is based on an older version of FOSSology in part, so
they are related.
Thomas did random spot checks in about 500 files from the spreadsheets
for the uapi headers and agreed with SPDX license identifier in the
files he inspected. For the non-uapi files Thomas did random spot checks
in about 15000 files.
In initial set of patches against 4.14-rc6, 3 files were found to have
copy/paste license identifier errors, and have been fixed to reflect the
correct identifier.
Additionally Philippe spent 10 hours this week doing a detailed manual
inspection and review of the 12,461 patched files from the initial patch
version early this week with:
- a full scancode scan run, collecting the matched texts, detected
license ids and scores
- reviewing anything where there was a license detected (about 500+
files) to ensure that the applied SPDX license was correct
- reviewing anything where there was no detection but the patch license
was not GPL-2.0 WITH Linux-syscall-note to ensure that the applied
SPDX license was correct
This produced a worksheet with 20 files needing minor correction. This
worksheet was then exported into 3 different .csv files for the
different types of files to be modified.
These .csv files were then reviewed by Greg. Thomas wrote a script to
parse the csv files and add the proper SPDX tag to the file, in the
format that the file expected. This script was further refined by Greg
based on the output to detect more types of files automatically and to
distinguish between header and source .c files (which need different
comment types.) Finally Greg ran the script using the .csv files to
generate the patches.
Reviewed-by: Kate Stewart <kstewart@linuxfoundation.org>
Reviewed-by: Philippe Ombredanne <pombredanne@nexb.com>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-11-01 15:07:57 +01:00
|
|
|
|
2012-06-19 23:44:25 +02:00
|
|
|
|
2021-05-31 11:48:49 +02:00
|
|
|
|
2013-01-18 13:00:05 -08:00
|
|
|
|
2024-07-18 14:05:07 -07:00
|
|
|
|
|
|
|
|
|
2024-08-21 17:24:30 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
clk: Add KUnit tests for assigned-clock-sscs
Add KUnit test coverage for the assigned-clock-sscs DT property that
configures spread spectrum on clocks before they are used.
Extend the existing test infrastructure to support spread spectrum:
- Add struct clk_spread_spectrum field to clk_dummy_context and a
clk_dummy_set_spread_spectrum callback
- Wire set_spread_spectrum into all dummy clock ops
- Extend clk_assigned_rates_register_clk and test parameter struct
to propagate initial SSCS values
Add a new separate test suite clk_assigned_sscs with three categories:
1. clk_assigned_sscs_assigns_one — verifies that a single
assigned-clock-sscs entry correctly configures spread spectrum
on one clock, testing both provider and consumer paths
2. clk_assigned_sscs_assigns_multiple — verifies that multiple
assigned-clock-sscs entries configure spread spectrum on two
clocks, testing both provider and consumer paths
3. clk_assigned_sscs_skips — verifies that malformed DT properties
are correctly skipped without error: missing assigned-clocks,
zero-valued SSCS, and null phandles, tested for both provider
and consumer scenarios
New DT overlays are added for all test scenarios:
- kunit_clk_assigned_sscs_one{,consumer} — single valid entry
- kunit_clk_assigned_sscs_multiple{,consumer} — two valid entries
- kunit_clk_assigned_sscs_without{,consumer} — missing assigned-clocks
- kunit_clk_assigned_sscs_zero{,consumer} — all-zero SSCS values
- kunit_clk_assigned_sscs_null{,consumer} — null phandle
Co-developed-by: Brian Masney <bmasney@redhat.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Brian Masney <bmasney@redhat.com>
2026-06-12 16:46:26 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-04-17 15:44:23 +02:00
|
|
|
|
2024-07-18 14:05:07 -07:00
|
|
|
|
2013-01-18 13:00:05 -08:00
|
|
|
|
clk: divider: Add KUnit tests for clk_divider_bestdiv() ULONG_MAX handling
Add KUnit tests to verify the behaviour of clk_divider_bestdiv() when
clk_round_rate() is called with ULONG_MAX, which is the canonical way
to probe the maximum rate a clock can produce.
Two test cases are introduced:
- clk_divider_bestdiv_ulong_max_returns_max_rate: registers a 1 GHz
fixed-rate parent driving a table-based divider whose smallest entry
is div=2 (entries: 2, 4, 8). Calls clk_hw_round_rate(div_hw, ULONG_MAX)
and checks the result.
- clk_divider_bestdiv_mux_ulong_max_returns_max_rate: places a two-input
mux (4 GHz and 2 GHz fixed-rate parents, CLK_SET_RATE_PARENT) ahead of
the same table-based divider to verify correct parent selection under
ULONG_MAX.
Both tests use an explicit clk_div_table with a minimum divider of 2 so
that the pre-loop maxdiv clamping in clk_divider_bestdiv():
maxdiv = min(ULONG_MAX / rate, maxdiv);
clamps maxdiv to 1, causing _next_div() to return 2 on the first
iteration and skip the loop body entirely. This makes bestdiv fall back
to the maximum divider, returning the minimum rate rather than the
maximum.
The expected values intentionally reflect the buggy output:
- test 1: PARENT_RATE_1GHZ / 8 (minimum rate, not maximum)
- test 2: 0 (invalid, loop never populated bestdiv)
These will be corrected to PARENT_RATE_1GHZ / 2 and PARENT_RATE_4GHZ / 2
respectively once the fix to clk_divider_bestdiv() is applied.
Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: Brian Masney <bmasney@redhat.com>
Signed-off-by: Brian Masney <bmasney@redhat.com>
2026-06-02 21:02:42 +01:00
|
|
|
|
2013-01-18 13:00:05 -08:00
|
|
|
|
|
|
|
|
|
2024-07-18 14:05:06 -07:00
|
|
|
|
|
|
|
|
|
2013-01-18 13:00:05 -08:00
|
|
|
|
2022-01-20 09:59:02 -08:00
|
|
|
|
2015-05-19 22:19:33 +02:00
|
|
|
|
2013-01-18 13:00:05 -08:00
|
|
|
|
2013-03-20 17:30:34 +05:30
|
|
|
|
2014-05-15 16:40:25 +03:00
|
|
|
|
2023-06-17 15:10:41 +02:00
|
|
|
|
2015-06-28 16:24:56 +02:00
|
|
|
|
2014-06-18 17:29:32 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-01-18 13:00:05 -08:00
|
|
|
|
2024-07-18 14:05:05 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-01-27 13:04:49 -08:00
|
|
|
|
2016-06-15 17:09:25 -07:00
|
|
|
|
2022-02-08 19:34:10 +01:00
|
|
|
|
2015-01-20 10:23:02 +01:00
|
|
|
|
2014-01-27 13:04:49 -08:00
|
|
|
|
2014-05-15 15:42:25 +02:00
|
|
|
|
2018-12-07 12:01:44 +02:00
|
|
|
|
2019-11-15 21:59:00 +05:30
|
|
|
|
2015-01-12 10:20:46 +03:00
|
|
|
|
2016-06-15 17:09:25 -07:00
|
|
|
|
2014-07-13 08:37:52 +04:00
|
|
|
|
2016-06-15 17:09:25 -07:00
|
|
|
|
2024-09-09 11:10:28 +03:00
|
|
|
|
2020-07-27 10:42:09 +02:00
|
|
|
|
2022-03-14 09:44:04 +01:00
|
|
|
|
2024-10-23 12:58:40 +02:00
|
|
|
|
2018-12-13 12:49:29 +00:00
|
|
|
|
2020-11-08 19:51:11 +01:00
|
|
|
|
2020-01-03 00:11:01 +01:00
|
|
|
|
2017-06-21 09:59:52 +02:00
|
|
|
|
2014-01-27 13:04:49 -08:00
|
|
|
|
2017-08-25 20:39:14 +03:00
|
|
|
|
2021-02-10 14:02:14 +09:00
|
|
|
|
2026-04-25 17:29:32 +08:00
|
|
|
|
2021-04-22 20:40:55 -04:00
|
|
|
|
2021-11-03 11:49:35 +05:30
|
|
|
|
2019-03-19 13:37:00 +00:00
|
|
|
|
2023-03-21 19:18:16 +08:00
|
|
|
|
2023-03-23 10:52:29 +08:00
|
|
|
|
2014-01-27 13:04:49 -08:00
|
|
|
|
2018-07-06 20:53:03 +02:00
|
|
|
|
2019-04-25 19:41:01 +09:00
|
|
|
|
2014-01-28 12:09:11 +01:00
|
|
|
|
2014-01-27 13:04:49 -08:00
|
|
|
|
2018-03-26 13:16:26 +03:00
|
|
|
|
2024-09-12 22:10:38 +03:00
|
|
|
|
2014-01-27 13:04:49 -08:00
|
|
|
|
2014-06-27 09:01:11 +03:00
|
|
|
|
2019-12-13 16:34:02 +08:00
|
|
|
|
2016-06-15 17:09:25 -07:00
|
|
|
|
2015-01-15 14:03:41 +08:00
|
|
|
|
2014-10-13 15:52:44 -07:00
|
|
|
|
2025-05-29 15:50:41 +02:00
|
|
|
|
2025-08-18 09:39:06 +05:30
|
|
|
|
2017-04-17 19:19:25 +02:00
|
|
|
|
2014-01-27 13:04:49 -08:00
|
|
|
|
clk: various improvements and fixes
Here's various improvements and fixes for the clk subsystem that was posted prior
to the opening of the last merge window.
- Add spread spectrum clock (SSC) support to the clk framework, including a new
assigned-clock-sscs devicetree property and clk_hw_set_spread_spectrum()
API with KUnit tests (Peng Fan)
- Add SCMI clock OEM extensions for the i.MX95 clock driver and introduce a
common SCMI clock header (Peng Fan)
- Add clock, reset, and devicetree bindings for the ESWIN EIC7700 HSP clock and
reset generator (Xuyang Dong)
- Add clk_determine_rate_noop() helper for clock drivers that can do any rate,
and convert existing open-coded implementations across hisilicon, imx, qcom,
renesas, rp1, samsung, scpi, sprd, mediatek phy, and mediatek pmdomain
drivers (Brian Masney)
- Add kernel-doc documentation for struct clk_core and the core clock flags,
and wire up clk identifiers into the documentation build (Brian Masney)
- Fix clk_divider_bestdiv() returning the minimum rate instead of the maximum
rate for large rate requests, with KUnit tests (Lad Prabhakar)
- Fix Nuvoton MA35D1 PLL frequency calculation including ignored div_u64
return values, incorrect PLL_CTL1_FRAC bit field width, and broken
determine_rate logic (Joey Lu)
- Support unique clock names for multi-socket Tegra platforms (Jon Hunter)
- Allow COMPILE_TEST builds for HiSilicon clock drivers (Rosen Penev)
- Various fixes and cleanups from Akari Tsuyukusa, Alexander A. Klimov,
Brian Masney, David Carlier, David Laight, Min zhang, Myeonghun Pak,
Pavel Löbl, Randy Dunlap, Rob Herring, Rosen Penev, Uwe Kleine-König,
William Theesfeld, Xuyang Dong, and Yu-Chun Lin
Signed-off-by: Brian Masney <bmasney@redhat.com>
-----BEGIN PGP SIGNATURE-----
iIwEABYKADQWIQSkbTJwWGWqPd7cKQS30t0nXX7AhwUCakLuwRYcbWFzbmV5YkBv
bnN0YXRpb24ub3JnAAoJELfS3SddfsCH1qIA/3OYdBm1fIrd/PumuFj/6xnito0J
nwY64dzlOm4kPVynAQDGDUxQMevRq8AFXh33kOh+cCFg7H9CXjF55ajB2TXaBg==
=1BFM
-----END PGP SIGNATURE-----
gpgsig -----BEGIN PGP SIGNATURE-----
iQJIBAABCAAyFiEE9L57QeeUxqYDyoaDrQKIl8bklSUFAmqDNnUUHHN3Ym95ZEBj
aHJvbWl1bS5vcmcACgkQrQKIl8bklSU1oxAAiKegvy9n27Avul9t7GX9SYpyM93E
XXvr3kdI6ySTkAk/CXqSUKLS0FnqMepQE6b1FSiRQGOyPl0iYxXFKZ3iwd5ZHHIN
AWWwXYhzAuwOXNnNzlz3SFJ40lt8zTLY4Y20sG3/+iuIiqotywONWqr1JlUwlgVI
ahmGqWPj2qtuKCnxnOQnBNcaA/xd3NqdjHt0W1UgXP9Hn9j0l+EhL7f4TJVp4Wq5
LU+jlA7g6Btxy5JrJOpzdgd84bPNw4xxYOhzn3ek8ULB5H0QRj36cu2ZahNudZJF
ObIr23OOgRJLZtKQ/WlM5fHXONuhnE9CSTiBEeXSr2yon0JKcJ8bjKUvTilJhZ34
TV5DSBxB70E0Vs4omJJ0NtKsJWW+zoa53yU2mT88VWQNTDLfTe4VHVbBCBN9cBnV
aS8ssQF9uipsOKEGQ1aQG9neV2ML0OXd3nMx9f8VgMcfV5K8Wbtt5oRFtQtl5fS/
uCkTbII+IL29MMVJ6+X3sRilFY8SsKxaG1gDmk50LwcMUVx4hzNGOhQC/1TPRNG2
ZuSEeRX10syBwI5txupnxD1mJClw2ZxE9QmSTmKmWI1Y3aSdcSdtKnEobhLXJmmS
7PFtOe9Rf8lRbYKxZGaW63R/9fOmrf3wyG9kzepLKJl8loV7SRJ8by6psNBfBgVO
kyANlk/27dpi1Zo=
=QbCr
-----END PGP SIGNATURE-----
Merge tag 'clk-misc-for-v7.3' of ssh://github.com/masneyb/linux into clk-pile
Pull clk patches picked up by Brian Masney:
Here's various improvements and fixes for the clk subsystem that was posted prior
to the opening of the last merge window.
- Add spread spectrum clock (SSC) support to the clk framework, including a new
assigned-clock-sscs devicetree property and clk_hw_set_spread_spectrum()
API with KUnit tests (Peng Fan)
- Add SCMI clock OEM extensions for the i.MX95 clock driver and introduce a
common SCMI clock header (Peng Fan)
- Add clock, reset, and devicetree bindings for the ESWIN EIC7700 HSP clock and
reset generator (Xuyang Dong)
- Add clk_determine_rate_noop() helper for clock drivers that can do any rate,
and convert existing open-coded implementations across hisilicon, imx, qcom,
renesas, rp1, samsung, scpi, sprd, mediatek phy, and mediatek pmdomain
drivers (Brian Masney)
- Add kernel-doc documentation for struct clk_core and the core clock flags,
and wire up clk identifiers into the documentation build (Brian Masney)
- Fix clk_divider_bestdiv() returning the minimum rate instead of the maximum
rate for large rate requests, with KUnit tests (Lad Prabhakar)
- Fix Nuvoton MA35D1 PLL frequency calculation including ignored div_u64
return values, incorrect PLL_CTL1_FRAC bit field width, and broken
determine_rate logic (Joey Lu)
- Support unique clock names for multi-socket Tegra platforms (Jon Hunter)
- Allow COMPILE_TEST builds for HiSilicon clock drivers (Rosen Penev)
- Various fixes and cleanups from Akari Tsuyukusa, Alexander A. Klimov,
Brian Masney, David Carlier, David Laight, Min zhang, Myeonghun Pak,
Pavel Löbl, Randy Dunlap, Rob Herring, Rosen Penev, Uwe Kleine-König,
William Theesfeld, Xuyang Dong, and Yu-Chun Lin
Signed-off-by: Brian Masney <bmasney@redhat.com>
[sboyd@kernel.org: Fix allmodconfig modpost failure in scmi]
* tag 'clk-misc-for-v7.3' of ssh://github.com/masneyb/linux: (53 commits)
pmdomain: mediatek: mtk-mfg: use clk_determine_rate_noop()
pmdomain: mediatek: airoha: use clk_determine_rate_noop()
phy: mediatek: phy-mtk-hdmi-mt2701: use clk_determine_rate_noop()
clk: sprd: use clk_determine_rate_noop()
clk: scpi: use clk_determine_rate_noop()
clk: samsung: acpm: use clk_determine_rate_noop()
clk: rp1: use clk_determine_rate_noop()
clk: renesas: rzg2l-cpg: use clk_determine_rate_noop()
clk: qcom: smd-rpm: use clk_determine_rate_noop()
clk: qcom: rpmh: use clk_determine_rate_noop()
clk: qcom: rpm: use clk_determine_rate_noop()
clk: imx: scu: use clk_determine_rate_noop()
clk: hisilicon: hi3660-stub: use clk_determine_rate_noop()
clk: add clk_determine_rate_noop()
clk: imx: scu: drop redundant init.ops variable assignment
clk: test: convert constants to use HZ_PER_MHZ
docs: clk: include some identifiers to keep documentation up to date
clk: add kernel docs for struct clk_core
clk: add kernel docs for the core flags
clk: hisilicon: allow COMPILE_TEST builds
...
2026-08-13 17:17:13 -07:00
|
|
|
|
|
|
|
|
|
2015-03-30 10:59:52 +01:00
|
|
|
|
2019-05-17 15:23:52 +02:00
|
|
|
|
2014-01-27 13:04:49 -08:00
|
|
|
|
2015-10-02 09:15:29 +02:00
|
|
|
|
2018-03-20 09:15:41 +01:00
|
|
|
|
2014-01-27 13:04:49 -08:00
|
|
|
|
2022-12-19 09:51:30 +08:00
|
|
|
|
2018-03-12 10:32:48 +01:00
|
|
|
|
|
|
|
|
|
2021-12-03 11:28:49 +01:00
|
|
|
|
2014-01-27 13:04:49 -08:00
|
|
|
|
2023-09-16 12:05:14 +02:00
|
|
|
|
2014-01-27 13:04:49 -08:00
|
|
|
|
2022-02-26 05:07:23 +01:00
|
|
|
|
2023-01-18 20:15:21 +01:00
|
|
|
|
2023-07-05 18:10:00 +01:00
|
|
|
|
2017-01-12 02:03:24 +01:00
|
|
|
|
2022-09-12 11:36:13 -07:00
|
|
|
|
2014-01-27 13:04:49 -08:00
|
|
|
|
|
|
|
|
|
2016-06-15 17:09:25 -07:00
|
|
|
|
|
|
|
|
|
2018-03-26 23:08:57 +05:30
|
|
|
|
2019-04-30 13:50:58 -07:00
|
|
|
|
2025-12-24 13:37:22 +08:00
|
|
|
|
2014-01-28 18:44:53 -08:00
|
|
|
|
2016-04-04 11:23:23 +02:00
|
|
|
|
2016-06-15 17:09:25 -07:00
|
|
|
|
2015-10-15 15:48:31 -04:00
|
|
|
|
2014-05-19 18:43:24 +02:00
|
|
|
|
2026-07-23 17:08:06 +08:00
|
|
|
|
2018-03-15 21:52:18 -05:00
|
|
|
|
2026-03-03 16:07:12 +08:00
|
|
|
|
2026-05-08 22:11:10 -07:00
|
|
|
|
2017-06-17 13:52:47 -07:00
|
|
|
|
2018-12-13 15:42:50 +00:00
|
|
|
|
2018-08-23 15:17:41 +02:00
|
|
|
|
2025-11-27 14:53:25 +01:00
|
|
|
|
2017-12-20 14:42:59 +08:00
|
|
|
|
2019-02-01 13:58:39 +01:00
|
|
|
|
2022-02-22 12:11:44 +00:00
|
|
|
|
2014-01-27 13:04:49 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-02-15 20:57:09 +09:00
|
|
|
|
2016-03-27 11:26:13 +02:00
|
|
|
|
2014-01-27 13:04:49 -08:00
|
|
|
|
clk: nuvoton: Add clock driver for ma35d1 clock controller
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 <ychuang3@nuvoton.com>
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2023-06-05 04:07:47 +00:00
|
|
|
|
2015-12-06 12:45:56 +02:00
|
|
|
|
2021-07-23 10:25:37 +08:00
|
|
|
|
2014-10-01 23:39:29 +02:00
|
|
|
|
2014-01-27 13:04:49 -08:00
|
|
|
|
2021-04-10 07:50:56 +02:00
|
|
|
|
clk: renesas: Rework Kconfig and Makefile logic
The goals are to:
- Allow precise control over and automatic selection of which
(sub)drivers are used for which SoC (which may change in the
future),
- Allow adding support for new SoCs easily,
- Allow compile-testing of all (sub)drivers,
- Keep driver selection logic in the subsystem-specific Kconfig,
independent from the architecture-specific Kconfig (i.e. no "select"
from arch/arm64/Kconfig.platforms), to avoid dependencies.
This is implemented by:
- Introducing Kconfig symbols for all drivers and sub-drivers,
- Introducing the Kconfig symbol CLK_RENESAS, which is enabled
automatically when building for a Renesas ARM platform, and which
enables all required drivers without interaction of the user, based
on SoC-specific ARCH_* symbols,
- Allowing the user to enable any Kconfig symbol manually if
COMPILE_TEST is enabled,
- Using the new Kconfig symbols instead of the ARCH_* symbols to
control compilation in the Makefile,
- Always entering drivers/clk/renesas/ during the build.
Note that currently not all (sub)drivers are enabled for
compile-testing, as they depend on independent fixes in other
subsystems.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Simon Horman <horms+renesas@verge.net.au>
Acked-by: Stephen Boyd <sboyd@codeaurora.org>
2017-04-24 16:54:14 +02:00
|
|
|
|
2026-05-08 17:36:02 -07:00
|
|
|
|
2014-05-08 13:07:11 +09:00
|
|
|
|
2019-04-30 13:51:00 -07:00
|
|
|
|
2021-03-11 16:27:07 +01:00
|
|
|
|
2024-03-09 17:02:52 +08:00
|
|
|
|
2025-04-16 13:54:03 +00:00
|
|
|
|
2014-01-27 13:04:49 -08:00
|
|
|
|
2020-04-07 16:21:46 +02:00
|
|
|
|
2014-02-27 16:24:14 +01:00
|
|
|
|
2026-07-19 14:50:40 -07:00
|
|
|
|
2023-04-01 19:19:15 +08:00
|
|
|
|
2014-01-27 13:04:49 -08:00
|
|
|
|
2021-11-18 21:33:37 -06:00
|
|
|
|
2014-01-27 13:04:49 -08:00
|
|
|
|
2026-03-06 11:12:19 -06:00
|
|
|
|
2026-07-06 17:56:19 -07:00
|
|
|
|
2016-02-26 09:45:03 -08:00
|
|
|
|
2026-07-20 08:38:06 +08:00
|
|
|
|
2016-09-16 16:40:03 +09:00
|
|
|
|
2014-01-27 13:04:49 -08:00
|
|
|
|
2020-04-29 15:58:13 -05:00
|
|
|
|
2021-10-25 12:10:37 +09:00
|
|
|
|
2017-01-23 12:07:41 -06:00
|
|
|
|
2014-01-27 13:04:49 -08:00
|
|
|
|
2017-01-23 12:07:41 -06:00
|
|
|
|
2021-01-21 08:16:59 +01:00
|
|
|
|
2014-01-27 13:04:49 -08:00
|
|
|
|
2018-10-08 11:21:46 -07:00
|
|
|
|