e1a7566d | 26-Jul-2023 |
Rob Herring <robh@kernel.org> |
MIPS: More explicit DT include clean-ups
A couple more clean-ups in the MIPS code.
The DT of_device.h and of_platform.h date back to the separate of_platform_bus_type before it was merged into the
MIPS: More explicit DT include clean-ups
A couple more clean-ups in the MIPS code.
The DT of_device.h and of_platform.h date back to the separate of_platform_bus_type before it was merged into the regular platform bus. As part of that merge prepping Arm DT support 13 years ago, they "temporarily" include each other. They also include platform_device.h and of.h. As a result, there's a pretty much random mix of those include files used throughout the tree. In order to detangle these headers and replace the implicit includes with struct declarations, users need to explicitly include the correct includes.
Signed-off-by: Rob Herring <robh@kernel.org> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
show more ...
|
670f77f7 | 22-Jun-2023 |
Shiji Yang <yangshiji66@outlook.com> |
mips: ralink: match all supported system controller compatible strings
Recently, A new clock and reset controller driver has been introduced to the ralink mips target[1]. It provides proper system c
mips: ralink: match all supported system controller compatible strings
Recently, A new clock and reset controller driver has been introduced to the ralink mips target[1]. It provides proper system control and adds more SoC specific compatible strings. In order to better initialize CPUs, this patch removes the outdated "ralink,mt7620a-sysc" and add all dt-binding documented compatible strings to the system controller match table.
[1] https://lore.kernel.org/all/20230619040941.1340372-1-sergio.paracuellos@gmail.com/
Signed-off-by: Shiji Yang <yangshiji66@outlook.com> Reviewed-by: Sergio Paracuellos <sergio.paracuellos@gmail.com> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
show more ...
|
fd99ac50 | 20-Jun-2023 |
Shiji Yang <yangshiji66@outlook.com> |
mips: ralink: introduce commonly used remap node function
The ralink_of_remap() function is repeated several times on SoC specific source files. They have the same structure, but just differ in comp
mips: ralink: introduce commonly used remap node function
The ralink_of_remap() function is repeated several times on SoC specific source files. They have the same structure, but just differ in compatible strings. In order to make commonly use of these codes, this patch introduces a newly designed mtmips_of_remap_node() function to match and remap all supported system controller and memory controller nodes.
Build and run tested on MT7620 and MT7628.
Signed-off-by: Shiji Yang <yangshiji66@outlook.com> Reviewed-by: Sergio Paracuellos <sergio.paracuellos@gmail.com> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
show more ...
|
ad38c17b | 18-Jun-2023 |
Sergio Paracuellos <sergio.paracuellos@gmail.com> |
mips: ralink: get cpu rate from new driver code
At very early stage on boot, there is a need to set 'mips_hpt_frequency'. This timer frequency is a half of the CPU frequency. To get clocks properly
mips: ralink: get cpu rate from new driver code
At very early stage on boot, there is a need to set 'mips_hpt_frequency'. This timer frequency is a half of the CPU frequency. To get clocks properly set we need to call to 'of_clk_init()' and properly get cpu clock frequency afterwards. Depending on the SoC, CPU clock index and compatible differs, so use them to get the proper clock frm the clock provider. Hence, adapt code to be aligned with new clock driver.
Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
show more ...
|
201ddc05 | 18-Jun-2023 |
Sergio Paracuellos <sergio.paracuellos@gmail.com> |
mips: ralink: remove reset related code
A proper clock driver for ralink SoCs has been added. This driver is also a reset provider for the SoC. Hence there is no need to have reset related code in '
mips: ralink: remove reset related code
A proper clock driver for ralink SoCs has been added. This driver is also a reset provider for the SoC. Hence there is no need to have reset related code in 'arch/mips/ralink' folder anymore. The only code that remains is the one related with mips_reboot_setup where a PCI reset is performed. We maintain this because I cannot test old ralink board with PCI to be sure all works if we remove also this code.
Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
show more ...
|
04b153ab | 18-Jun-2023 |
Sergio Paracuellos <sergio.paracuellos@gmail.com> |
mips: ralink: mt7620: remove clock related code
A proper clock driver for ralink SoCs has been added. Hence there is no need to have clock related code in 'arch/mips/ralink' folder anymore. Since th
mips: ralink: mt7620: remove clock related code
A proper clock driver for ralink SoCs has been added. Hence there is no need to have clock related code in 'arch/mips/ralink' folder anymore. Since this is the last clock related code removal, remove also remaining prototypes in 'common.h' header file.
Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
show more ...
|
7cd1bb48 | 18-Jun-2023 |
Sergio Paracuellos <sergio.paracuellos@gmail.com> |
mips: ralink: rt3883: remove clock related code
A properly clock driver for ralink SoCs has been added. Hence there is no need to have clock related code in 'arch/mips/ralink' folder anymore.
Signe
mips: ralink: rt3883: remove clock related code
A properly clock driver for ralink SoCs has been added. Hence there is no need to have clock related code in 'arch/mips/ralink' folder anymore.
Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
show more ...
|
daf73c70 | 18-Jun-2023 |
Sergio Paracuellos <sergio.paracuellos@gmail.com> |
mips: ralink: rt305x: remove clock related code
A properly clock driver for ralink SoCs has been added. Hence there is no need to have clock related code in 'arch/mips/ralink' folder anymore.
Signe
mips: ralink: rt305x: remove clock related code
A properly clock driver for ralink SoCs has been added. Hence there is no need to have clock related code in 'arch/mips/ralink' folder anymore.
Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
show more ...
|
83552892 | 27-Feb-2023 |
Sergio Paracuellos <sergio.paracuellos@gmail.com> |
mips: ralink: mt7620: introduce 'soc_device' initialization
MT7620 SoCs have their own 'ralink_soc_info' structure with some information about the soc itself. In order to be able to retrieve this in
mips: ralink: mt7620: introduce 'soc_device' initialization
MT7620 SoCs have their own 'ralink_soc_info' structure with some information about the soc itself. In order to be able to retrieve this information from driver code and avoid architecture dependencies for retrieving these details introduce this 'soc_device'. Set 'data' pointer points to the struct 'ralink_soc_info' to be able to export also current soc information using this mechanism. We need to select 'SOC_BUS' in Kconfig configuration for these SoCs.
Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
show more ...
|
727ea3c7 | 27-Feb-2023 |
Sergio Paracuellos <sergio.paracuellos@gmail.com> |
mips: ralink: mt7620: soc queries and tests as functions
Move the SoC register value queries and tests to specific functions, to remove repetition of logic. No functional changes intended
Signed-of
mips: ralink: mt7620: soc queries and tests as functions
Move the SoC register value queries and tests to specific functions, to remove repetition of logic. No functional changes intended
Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
show more ...
|
217cf927 | 27-Feb-2023 |
Sergio Paracuellos <sergio.paracuellos@gmail.com> |
mips: ralink: mt7620: define MT7620_SYSC_BASE with __iomem
So that MT7620_SYSC_BASE can be used later in multiple functions without needing to repeat this __iomem declaration each time
Signed-off-b
mips: ralink: mt7620: define MT7620_SYSC_BASE with __iomem
So that MT7620_SYSC_BASE can be used later in multiple functions without needing to repeat this __iomem declaration each time
Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
show more ...
|
7a26b384 | 27-Feb-2023 |
Sergio Paracuellos <sergio.paracuellos@gmail.com> |
mips: ralink: rt288x: introduce 'soc_device' initialization
RT288X SoCs have their own 'ralink_soc_info' structure with some information about the soc itself. In order to be able to retrieve this in
mips: ralink: rt288x: introduce 'soc_device' initialization
RT288X SoCs have their own 'ralink_soc_info' structure with some information about the soc itself. In order to be able to retrieve this information from driver code and avoid architecture dependencies for retrieving these details introduce this 'soc_device'. Set 'data' pointer points to the struct 'ralink_soc_info' to be able to export also current soc information using this mechanism. We need to select 'SOC_BUS' in Kconfig configuration for these SoCs.
Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
show more ...
|
5a5aa151 | 27-Feb-2023 |
Sergio Paracuellos <sergio.paracuellos@gmail.com> |
mips: ralink: rt288x: soc queries and tests as functions
Move the SoC register value queries and tests to specific functions, to remove repetition of logic. No functional changes intended
Signed-
mips: ralink: rt288x: soc queries and tests as functions
Move the SoC register value queries and tests to specific functions, to remove repetition of logic. No functional changes intended
Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
show more ...
|
1e688601 | 27-Feb-2023 |
Sergio Paracuellos <sergio.paracuellos@gmail.com> |
mips: ralink: rt288x: define RT2880_SYSC_BASE with __iomem
So that RT2880_SYSC_BASE can be used later in multiple functions without needing to repeat this __iomem declaration each time
Signed-off
mips: ralink: rt288x: define RT2880_SYSC_BASE with __iomem
So that RT2880_SYSC_BASE can be used later in multiple functions without needing to repeat this __iomem declaration each time
Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
show more ...
|
2165248f | 27-Feb-2023 |
Sergio Paracuellos <sergio.paracuellos@gmail.com> |
mips: ralink: rt3883: introduce 'soc_device' initialization
RT3883 SoC have its own 'ralink_soc_info' structure with some information about the soc itself. In order to be able to retrieve this infor
mips: ralink: rt3883: introduce 'soc_device' initialization
RT3883 SoC have its own 'ralink_soc_info' structure with some information about the soc itself. In order to be able to retrieve this information from driver code and avoid architecture dependencies for retrieving these details introduce this 'soc_device'. Set 'data' pointer points to the struct 'ralink_soc_info' to be able to export also current soc information using this mechanism. We need to select 'SOC_BUS' in Kconfig configuration for these SoCs.
Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
show more ...
|
89f9b304 | 27-Feb-2023 |
Sergio Paracuellos <sergio.paracuellos@gmail.com> |
mips: ralink: rt3883: soc queries and tests as functions
Move the SoC register value queries and tests to specific functions, to remove repetition of logic. No functional changes intended
Signed-
mips: ralink: rt3883: soc queries and tests as functions
Move the SoC register value queries and tests to specific functions, to remove repetition of logic. No functional changes intended
Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
show more ...
|
7edb1775 | 27-Feb-2023 |
Sergio Paracuellos <sergio.paracuellos@gmail.com> |
mips: ralink: rt3883: define RT3883_SYSC_BASE with __iomem
So that RT3883_SYSC_BASE can be used later in multiple functions without needing to repeat this __iomem declaration each time
Signed-off-b
mips: ralink: rt3883: define RT3883_SYSC_BASE with __iomem
So that RT3883_SYSC_BASE can be used later in multiple functions without needing to repeat this __iomem declaration each time
Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
show more ...
|
bf27860f | 27-Feb-2023 |
Sergio Paracuellos <sergio.paracuellos@gmail.com> |
mips: ralink: rt305x: introduce 'soc_device' initialization
RT305x SoCs have their own 'ralink_soc_info' structure with some information about the soc itself. In order to be able to retrieve this in
mips: ralink: rt305x: introduce 'soc_device' initialization
RT305x SoCs have their own 'ralink_soc_info' structure with some information about the soc itself. In order to be able to retrieve this information from driver code and avoid architecture dependencies for retrieving these details introduce this 'soc_device'. Set 'data' pointer points to the struct 'ralink_soc_info' to be able to export also current soc information using this mechanism. We need to select 'SOC_BUS' in Kconfig configuration for these SoCs.
Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
show more ...
|
0def2164 | 27-Feb-2023 |
Sergio Paracuellos <sergio.paracuellos@gmail.com> |
mips: ralink: rt305x: soc queries and tests as functions
Move the SoC register value queries and tests to specific functions, to remove repetition of logic. No functional changes intended
Signed-of
mips: ralink: rt305x: soc queries and tests as functions
Move the SoC register value queries and tests to specific functions, to remove repetition of logic. No functional changes intended
Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
show more ...
|
159c610a | 07-Feb-2023 |
Ye Xingchen <ye.xingchen@zte.com.cn> |
MIPS: ralink: Use devm_platform_get_and_ioremap_resource()
Convert platform_get_resource(), devm_ioremap_resource() to a single call to devm_platform_get_and_ioremap_resource(), as this is exactly w
MIPS: ralink: Use devm_platform_get_and_ioremap_resource()
Convert platform_get_resource(), devm_ioremap_resource() to a single call to devm_platform_get_and_ioremap_resource(), as this is exactly what this function does.
Signed-off-by: Ye Xingchen <ye.xingchen@zte.com.cn> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
show more ...
|