-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add "WITH Linux-syscall-note" to SPDX tag of uapi headers #94
Open
steelman
wants to merge
95
commits into
starfive-tech:JH7110_VisionFive2_upstream
Choose a base branch
from
steelman:starfive-spdx
base: JH7110_VisionFive2_upstream
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
add "WITH Linux-syscall-note" to SPDX tag of uapi headers #94
steelman
wants to merge
95
commits into
starfive-tech:JH7110_VisionFive2_upstream
from
steelman:starfive-spdx
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Using ARCH_FOO symbol is preferred than SOC_FOO. Set obj-y for starfive/ in Makefile, so the StarFive drivers can be compiled with COMPILE_TEST=y but ARCH_STARFIVE=n. Reviewed-by: Conor Dooley <[email protected]> Signed-off-by: Hal Feng <[email protected]>
The clock control registers on the StarFive JH7100 and JH7110 work identically, so factor out the code then drivers for the two SoCs can share it without depending on each other. No functional change. Tested-by: Tommaso Merciai <[email protected]> Reviewed-by: Conor Dooley <[email protected]> Signed-off-by: Emil Renner Berthing <[email protected]> Signed-off-by: Hal Feng <[email protected]>
Rename clk-starfive-jh7100.h to clk-starfive-jh71x0.h for making the code to be common. Tested-by: Tommaso Merciai <[email protected]> Reviewed-by: Conor Dooley <[email protected]> Signed-off-by: Emil Renner Berthing <[email protected]> Signed-off-by: Hal Feng <[email protected]>
Rename some variables from "jh7100" or "JH7100" to "jh71x0" or "JH71X0". Tested-by: Tommaso Merciai <[email protected]> Reviewed-by: Conor Dooley <[email protected]> Signed-off-by: Emil Renner Berthing <[email protected]> Signed-off-by: Hal Feng <[email protected]>
Using ARCH_FOO symbol is preferred than SOC_FOO. Reviewed-by: Philipp Zabel <[email protected]> Reviewed-by: Conor Dooley <[email protected]> Signed-off-by: Hal Feng <[email protected]>
This moves the StarFive JH7100 reset driver to a new subdirectory in preparation for adding more StarFive reset drivers. Reviewed-by: Philipp Zabel <[email protected]> Tested-by: Tommaso Merciai <[email protected]> Reviewed-by: Conor Dooley <[email protected]> Signed-off-by: Emil Renner Berthing <[email protected]> Signed-off-by: Hal Feng <[email protected]>
The StarFive JH7100 SoC has additional reset controllers for audio and video, but the registers follow the same structure. On the JH7110 the reset registers don't get their own memory range, but instead follow the clock control registers. The registers still follow the same structure though, so let's factor out the common code to handle all these cases. Tested-by: Tommaso Merciai <[email protected]> Reviewed-by: Conor Dooley <[email protected]> Signed-off-by: Emil Renner Berthing <[email protected]> Signed-off-by: Hal Feng <[email protected]>
Extract the common JH71X0 reset code for reusing them to support JH7110 SoC. Tested-by: Tommaso Merciai <[email protected]> Reviewed-by: Conor Dooley <[email protected]> Signed-off-by: Emil Renner Berthing <[email protected]> Signed-off-by: Hal Feng <[email protected]>
For the common code will be shared with the StarFive JH7110 SoC. Tested-by: Tommaso Merciai <[email protected]> Reviewed-by: Conor Dooley <[email protected]> Signed-off-by: Emil Renner Berthing <[email protected]> Signed-off-by: Hal Feng <[email protected]>
We currently use 64bit I/O on the 32bit registers. This works because there are an even number of assert and status registers, so they're only ever accessed in pairs on 64bit boundaries. There are however other reset controllers for audio and video on the JH7100 SoC with only one status register that isn't 64bit aligned so 64bit I/O results in an unaligned access exception. Switch to 32bit I/O in preparation for supporting these resets too. Tested-by: Tommaso Merciai <[email protected]> Reviewed-by: Conor Dooley <[email protected]> Signed-off-by: Emil Renner Berthing <[email protected]> Signed-off-by: Hal Feng <[email protected]>
Add bindings for the system clock and reset generator (SYSCRG) on the JH7110 RISC-V SoC by StarFive Ltd. Reviewed-by: Conor Dooley <[email protected]> Reviewed-by: Rob Herring <[email protected]> Signed-off-by: Emil Renner Berthing <[email protected]> Signed-off-by: Hal Feng <[email protected]>
…erator Add bindings for the always-on clock and reset generator (AONCRG) on the JH7110 RISC-V SoC by StarFive Ltd. Reviewed-by: Conor Dooley <[email protected]> Reviewed-by: Rob Herring <[email protected]> Signed-off-by: Emil Renner Berthing <[email protected]> Signed-off-by: Hal Feng <[email protected]>
Add driver for the StarFive JH7110 system clock controller and register an auxiliary device for system reset controller which is named as "reset-sys". Tested-by: Tommaso Merciai <[email protected]> Signed-off-by: Emil Renner Berthing <[email protected]> Co-developed-by: Hal Feng <[email protected]> Signed-off-by: Hal Feng <[email protected]>
Add driver for the StarFive JH7110 always-on clock controller and register an auxiliary device for always-on reset controller which is named as "reset-aon". Tested-by: Tommaso Merciai <[email protected]> Signed-off-by: Emil Renner Berthing <[email protected]> Co-developed-by: Hal Feng <[email protected]> Signed-off-by: Hal Feng <[email protected]>
Add auxiliary driver to support StarFive JH7110 system and always-on resets. Tested-by: Tommaso Merciai <[email protected]> Signed-off-by: Hal Feng <[email protected]>
Add compatible string for the StarFive JH7110 clint. Reviewed-by: Conor Dooley <[email protected]> Acked-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Emil Renner Berthing <[email protected]> Signed-off-by: Hal Feng <[email protected]>
Add compatible string for StarFive JH7110 plic. Reviewed-by: Conor Dooley <[email protected]> Acked-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Emil Renner Berthing <[email protected]> Signed-off-by: Hal Feng <[email protected]>
Add a new compatible string in cpu.yaml for SiFive S7 CPU core which is used on SiFive U74-MC core complex etc. Reviewed-by: Conor Dooley <[email protected]> Acked-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Hal Feng <[email protected]>
Add initial device tree for the JH7110 RISC-V SoC by StarFive Technology Ltd. Tested-by: Tommaso Merciai <[email protected]> Reviewed-by: Conor Dooley <[email protected]> Signed-off-by: Emil Renner Berthing <[email protected]> Co-developed-by: Jianlong Huang <[email protected]> Signed-off-by: Jianlong Huang <[email protected]> Co-developed-by: Hal Feng <[email protected]> Signed-off-by: Hal Feng <[email protected]>
Add pin function definitions for StarFive JH7110 SoC. Tested-by: Tommaso Merciai <[email protected]> Co-developed-by: Emil Renner Berthing <[email protected]> Signed-off-by: Emil Renner Berthing <[email protected]> Signed-off-by: Jianlong Huang <[email protected]> Signed-off-by: Hal Feng <[email protected]>
Add a minimal device tree for StarFive JH7110 VisionFive 2 board which has version A and version B. Support booting and basic clock/reset/pinctrl/uart drivers. Tested-by: Tommaso Merciai <[email protected]> Reviewed-by: Conor Dooley <[email protected]> Acked-by: Conor Dooley <[email protected]> Signed-off-by: Emil Renner Berthing <[email protected]> Co-developed-by: Jianlong Huang <[email protected]> Signed-off-by: Jianlong Huang <[email protected]> Co-developed-by: Hal Feng <[email protected]> Signed-off-by: Hal Feng <[email protected]>
Add the pmu controller node for the Starfive JH7110 SoC. The PMU needs to be used by other modules such as VPU, ISP, etc. Signed-off-by: Walker Chen <[email protected]>
Add documentation to describe StarFive System Controller Registers. Signed-off-by: William Qiu <[email protected]> Reviewed-by: Conor Dooley <[email protected]>
Add stg_syscon/sys_syscon/aon_syscon node for JH7110 Soc. Signed-off-by: William Qiu <[email protected]> Reviewed-by: Conor Dooley <[email protected]> Reviewed-by: Emil Renner Berthing <[email protected]>
…set generator Add bindings for the System-Top-Group clock and reset generator (STGCRG) on the JH7110 RISC-V SoC by StarFive Ltd. Signed-off-by: Xingyu Wu <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]>
Add auxiliary_device_id to support StarFive JH7110 System-Top-Group resets of which the auxiliary device name is "clk_starfive_jh71x0.reset-stg". Signed-off-by: Xingyu Wu <[email protected]>
Add driver for the StarFive JH7110 System-Top-Group clock controller. Signed-off-by: Emil Renner Berthing <[email protected]> Co-developed-by: Xingyu Wu <[email protected]> Signed-off-by: Xingyu Wu <[email protected]>
…d reset generator Add bindings for the Image-Signal-Process clock and reset generator (ISPCRG) on the JH7110 RISC-V SoC by StarFive Ltd. Signed-off-by: Xingyu Wu <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]>
Add auxiliary_device_id to support StarFive JH7110 Image-Signal-Process resets of which the auxiliary device name is "clk_starfive_jh71x0.reset-isp". Signed-off-by: Xingyu Wu <[email protected]>
Add driver for the StarFive JH7110 Image-Signal-Process clock controller. Signed-off-by: Xingyu Wu <[email protected]>
Low level Arch functions were created to support hibernation. swsusp_arch_suspend() relies code from __cpu_suspend_enter() to write cpu state onto the stack, then calling swsusp_save() to save the memory image. Arch specific hibernation header is implemented and is utilized by the arch_hibernation_header_restore() and arch_hibernation_header_save() functions. The arch specific hibernation header consists of satp, hartid, and the cpu_resume address. The kernel built version is also need to be saved into the hibernation image header to making sure only the same kernel is restore when resume. swsusp_arch_resume() creates a temporary page table that covering only the linear map. It copies the restore code to a 'safe' page, then start to restore the memory image. Once completed, it restores the original kernel's page table. It then calls into __hibernate_cpu_resume() to restore the CPU context. Finally, it follows the normal hibernation path back to the hibernation core. To enable hibernation/suspend to disk into RISCV, the below config need to be enabled: - CONFIG_ARCH_HIBERNATION_HEADER - CONFIG_ARCH_HIBERNATION_POSSIBLE Signed-off-by: Sia Jee Heng <[email protected]> Reviewed-by: Ley Foon Tan <[email protected]> Reviewed-by: Mason Huo <[email protected]> Reviewed-by: Conor Dooley <[email protected]>
…aders UAPI headers licensed under GPL are supposed to have exception "WITH Linux-syscall-note" so that they can be included into non-GPL user space application code. Signed-off-by: Łukasz Stelmach <[email protected]>
hal-feng
force-pushed
the
JH7110_VisionFive2_upstream
branch
from
April 11, 2023 09:16
cea31b2
to
2a6909f
Compare
hal-feng
force-pushed
the
JH7110_VisionFive2_upstream
branch
3 times, most recently
from
April 27, 2023 01:47
d768c65
to
a57bdb1
Compare
hal-feng
force-pushed
the
JH7110_VisionFive2_upstream
branch
2 times, most recently
from
May 16, 2023 03:05
5067e82
to
a09ac19
Compare
hal-feng
force-pushed
the
JH7110_VisionFive2_upstream
branch
4 times, most recently
from
May 30, 2023 10:05
3531f33
to
d0bfa67
Compare
hal-feng
force-pushed
the
JH7110_VisionFive2_upstream
branch
from
June 13, 2023 07:15
d0bfa67
to
0f114a7
Compare
hal-feng
force-pushed
the
JH7110_VisionFive2_upstream
branch
from
June 29, 2023 09:13
0f114a7
to
e5a381c
Compare
hal-feng
force-pushed
the
JH7110_VisionFive2_upstream
branch
from
July 24, 2023 08:16
e5a381c
to
64a6c57
Compare
hal-feng
force-pushed
the
JH7110_VisionFive2_upstream
branch
from
August 15, 2023 07:43
64a6c57
to
67e8df0
Compare
hal-feng
force-pushed
the
JH7110_VisionFive2_upstream
branch
2 times, most recently
from
September 6, 2023 09:28
b3ee820
to
0dfeb6a
Compare
hal-feng
force-pushed
the
JH7110_VisionFive2_upstream
branch
2 times, most recently
from
September 18, 2023 08:16
702fd5a
to
4e3f341
Compare
hal-feng
force-pushed
the
JH7110_VisionFive2_upstream
branch
2 times, most recently
from
November 14, 2023 13:17
73a14d3
to
7ccbe46
Compare
hal-feng
force-pushed
the
JH7110_VisionFive2_upstream
branch
from
November 21, 2023 02:59
7ccbe46
to
9fe004e
Compare
hal-feng
force-pushed
the
JH7110_VisionFive2_upstream
branch
5 times, most recently
from
January 18, 2024 10:50
2b4dfa3
to
13eb70d
Compare
hal-feng
force-pushed
the
JH7110_VisionFive2_upstream
branch
from
January 30, 2024 08:39
13eb70d
to
076ede0
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
UAPI headers licensed under GPL are supposed to have exception "WITH Linux-syscall-note" so that they can be included into non-GPL user space application code.