Skip to content

Commit

Permalink
Merge tag 'soc-arm-6.5' of git://git.kernel.org/pub/scm/linux/kernel/…
Browse files Browse the repository at this point in the history
…git/soc/soc

Pull ARM SoC updates from Arnd Bergmann:
 "These are mostly minor cleanups and bugfixes that address harmless
  problems.

  The largest branch is a conversion of the omap platform to use GPIO
  descriptors throughout the tree, for any devices that are not fully
  converted to devicetree.

  The Samsung Exynos platform gains back support for the Exynos4212 chip
  that was previously unused and removed but is now used for the Samsung
  Galaxy Tab3"

* tag 'soc-arm-6.5' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc: (24 commits)
  ARM: omap2: Fix copy/paste bug
  MAINTAINERS: Replace my email address
  Input: ads7846 - fix pointer cast warning
  Input: ads7846 - Fix usage of match data
  ARM: omap2: Fix checkpatch issues
  arm: omap1: replace printk() with pr_err macro
  ARM: omap: Fix checkpatch issues
  ARM: s3c: Switch i2c drivers back to use .probe()
  ARM: versatile: mark mmc_status() static
  ARM: spear: include "pl080.h" for pl080_get_signal() prototype
  ARM: sa1100: address missing prototype warnings
  ARM: pxa: fix missing-prototypes warnings
  ARM: orion5x: fix d2net gpio initialization
  ARM: omap2: fix missing tick_broadcast() prototype
  ARM: omap1: add missing include
  ARM: lpc32xx: add missing include
  ARM: imx: add missing include
  ARM: highbank: add missing include
  ARM: ep93xx: fix missing-prototype warnings
  ARM: davinci: fix davinci_cpufreq_init() declaration
  ...
  • Loading branch information
torvalds committed Jun 29, 2023
2 parents 0873694 + c1d57ee commit bf1fa6f
Show file tree
Hide file tree
Showing 50 changed files with 135 additions and 99 deletions.
42 changes: 21 additions & 21 deletions MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -3893,7 +3893,7 @@ S: Supported
F: drivers/net/ethernet/broadcom/b44.*

BROADCOM B53/SF2 ETHERNET SWITCH DRIVER
M: Florian Fainelli <f.fainelli@gmail.com>
M: Florian Fainelli <florian.fainelli@broadcom.com>
L: [email protected]
L: [email protected] (subscribers-only)
S: Supported
Expand All @@ -3904,7 +3904,7 @@ F: include/linux/dsa/brcm.h
F: include/linux/platform_data/b53.h

BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE
M: Florian Fainelli <f.fainelli@gmail.com>
M: Florian Fainelli <florian.fainelli@broadcom.com>
R: Broadcom internal kernel review list <[email protected]>
L: [email protected] (moderated for non-subscribers)
L: [email protected] (moderated for non-subscribers)
Expand All @@ -3918,7 +3918,7 @@ N: bcm283*
N: raspberrypi

BROADCOM BCM281XX/BCM11XXX/BCM216XX ARM ARCHITECTURE
M: Florian Fainelli <f.fainelli@gmail.com>
M: Florian Fainelli <florian.fainelli@broadcom.com>
M: Ray Jui <[email protected]>
M: Scott Branden <[email protected]>
R: Broadcom internal kernel review list <[email protected]>
Expand Down Expand Up @@ -3957,7 +3957,7 @@ F: Documentation/devicetree/bindings/pinctrl/brcm,bcm4908-pinctrl.yaml
F: drivers/pinctrl/bcm/pinctrl-bcm4908.c

BROADCOM BCM5301X ARM ARCHITECTURE
M: Florian Fainelli <f.fainelli@gmail.com>
M: Florian Fainelli <florian.fainelli@broadcom.com>
M: Hauke Mehrtens <[email protected]>
M: Rafał Miłecki <[email protected]>
R: Broadcom internal kernel review list <[email protected]>
Expand All @@ -3970,7 +3970,7 @@ F: arch/arm/boot/dts/broadcom/bcm953012*
F: arch/arm/mach-bcm/bcm_5301x.c

BROADCOM BCM53573 ARM ARCHITECTURE
M: Florian Fainelli <f.fainelli@gmail.com>
M: Florian Fainelli <florian.fainelli@broadcom.com>
M: Rafał Miłecki <[email protected]>
R: Broadcom internal kernel review list <[email protected]>
L: [email protected] (moderated for non-subscribers)
Expand All @@ -3985,7 +3985,7 @@ S: Maintained
F: drivers/usb/gadget/udc/bcm63xx_udc.*

BROADCOM BCM7XXX ARM ARCHITECTURE
M: Florian Fainelli <f.fainelli@gmail.com>
M: Florian Fainelli <florian.fainelli@broadcom.com>
R: Broadcom internal kernel review list <[email protected]>
L: [email protected] (moderated for non-subscribers)
S: Maintained
Expand All @@ -4005,7 +4005,7 @@ BROADCOM BCMBCA ARM ARCHITECTURE
M: William Zhang <[email protected]>
M: Anand Gore <[email protected]>
M: Kursad Oney <[email protected]>
M: Florian Fainelli <f.fainelli@gmail.com>
M: Florian Fainelli <florian.fainelli@broadcom.com>
M: Rafał Miłecki <[email protected]>
R: Broadcom internal kernel review list <[email protected]>
L: [email protected] (moderated for non-subscribers)
Expand All @@ -4030,7 +4030,7 @@ N: bcm[9]?6858
N: bcm[9]?6878

BROADCOM BDC DRIVER
M: Justin Chen <justinpopo6@gmail.com>
M: Justin Chen <justin.chen@broadcom.com>
M: Al Cooper <[email protected]>
R: Broadcom internal kernel review list <[email protected]>
L: [email protected]
Expand All @@ -4046,7 +4046,7 @@ S: Maintained
F: drivers/cpufreq/bmips-cpufreq.c

BROADCOM BMIPS MIPS ARCHITECTURE
M: Florian Fainelli <f.fainelli@gmail.com>
M: Florian Fainelli <florian.fainelli@broadcom.com>
R: Broadcom internal kernel review list <[email protected]>
L: [email protected]
S: Maintained
Expand Down Expand Up @@ -4114,14 +4114,14 @@ F: drivers/net/wireless/broadcom/brcm80211/

BROADCOM BRCMSTB GPIO DRIVER
M: Doug Berger <[email protected]>
M: Florian Fainelli <f.fainelli@gmail.com>
M: Florian Fainelli <florian.fainelli@broadcom>
R: Broadcom internal kernel review list <[email protected]>
S: Supported
F: Documentation/devicetree/bindings/gpio/brcm,brcmstb-gpio.yaml
F: drivers/gpio/gpio-brcmstb.c

BROADCOM BRCMSTB I2C DRIVER
M: Kamal Dasu <kdasu.kdev@gmail.com>
M: Kamal Dasu <kamal.dasu@broadcom.com>
R: Broadcom internal kernel review list <[email protected]>
L: [email protected]
S: Supported
Expand All @@ -4137,7 +4137,7 @@ F: Documentation/devicetree/bindings/serial/brcm,bcm7271-uart.yaml
F: drivers/tty/serial/8250/8250_bcm7271.c

BROADCOM BRCMSTB USB EHCI DRIVER
M: Justin Chen <justinpopo6@gmail.com>
M: Justin Chen <justin.chen@broadcom.com>
M: Al Cooper <[email protected]>
R: Broadcom internal kernel review list <[email protected]>
L: [email protected]
Expand All @@ -4154,7 +4154,7 @@ F: Documentation/devicetree/bindings/usb/brcm,usb-pinmap.yaml
F: drivers/usb/misc/brcmstb-usb-pinmap.c

BROADCOM BRCMSTB USB2 and USB3 PHY DRIVER
M: Justin Chen <justinpopo6@gmail.com>
M: Justin Chen <justin.chen@broadcom.com>
M: Al Cooper <[email protected]>
R: Broadcom internal kernel review list <[email protected]>
L: [email protected]
Expand All @@ -4173,7 +4173,7 @@ F: drivers/spi/spi-bcm63xx-hsspi.c
F: drivers/spi/spi-bcmbca-hsspi.c

BROADCOM ETHERNET PHY DRIVERS
M: Florian Fainelli <f.fainelli@gmail.com>
M: Florian Fainelli <florian.fainelli@broadcom.com>
R: Broadcom internal kernel review list <[email protected]>
L: [email protected]
S: Supported
Expand All @@ -4184,7 +4184,7 @@ F: include/linux/brcmphy.h

BROADCOM GENET ETHERNET DRIVER
M: Doug Berger <[email protected]>
M: Florian Fainelli <f.fainelli@gmail.com>
M: Florian Fainelli <florian.fainelli@broadcom.com>
R: Broadcom internal kernel review list <[email protected]>
L: [email protected]
S: Supported
Expand Down Expand Up @@ -4268,7 +4268,7 @@ F: drivers/firmware/broadcom/*

BROADCOM PMB (POWER MANAGEMENT BUS) DRIVER
M: Rafał Miłecki <[email protected]>
M: Florian Fainelli <f.fainelli@gmail.com>
M: Florian Fainelli <florian.fainelli@broadcom.com>
R: Broadcom internal kernel review list <[email protected]>
L: [email protected]
S: Maintained
Expand All @@ -4284,7 +4284,7 @@ F: drivers/bcma/
F: include/linux/bcma/

BROADCOM SPI DRIVER
M: Kamal Dasu <kdasu.kdev@gmail.com>
M: Kamal Dasu <kamal.dasu@broadcom.com>
R: Broadcom internal kernel review list <[email protected]>
S: Maintained
F: Documentation/devicetree/bindings/spi/brcm,spi-bcm-qspi.yaml
Expand Down Expand Up @@ -4318,7 +4318,7 @@ F: drivers/memory/brcmstb_dpfe.c

BROADCOM STB NAND FLASH DRIVER
M: Brian Norris <[email protected]>
M: Kamal Dasu <kdasu.kdev@gmail.com>
M: Kamal Dasu <kamal.dasu@broadcom.com>
R: Broadcom internal kernel review list <[email protected]>
L: [email protected]
S: Maintained
Expand All @@ -4328,15 +4328,15 @@ F: include/linux/platform_data/brcmnand.h
BROADCOM STB PCIE DRIVER
M: Jim Quinlan <[email protected]>
M: Nicolas Saenz Julienne <[email protected]>
M: Florian Fainelli <f.fainelli@gmail.com>
M: Florian Fainelli <florian.fainelli@broadcom.com>
R: Broadcom internal kernel review list <[email protected]>
L: [email protected]
S: Maintained
F: Documentation/devicetree/bindings/pci/brcm,stb-pcie.yaml
F: drivers/pci/controller/pcie-brcmstb.c

BROADCOM SYSTEMPORT ETHERNET DRIVER
M: Florian Fainelli <f.fainelli@gmail.com>
M: Florian Fainelli <florian.fainelli@broadcom.com>
R: Broadcom internal kernel review list <[email protected]>
L: [email protected]
S: Supported
Expand Down Expand Up @@ -19032,7 +19032,7 @@ K: \bsecure_computing
K: \bTIF_SECCOMP\b

SECURE DIGITAL HOST CONTROLLER INTERFACE (SDHCI) Broadcom BRCMSTB DRIVER
M: Kamal Dasu <kdasu.kdev@gmail.com>
M: Kamal Dasu <kamal.dasu@broadcom.com>
M: Al Cooper <[email protected]>
R: Broadcom internal kernel review list <[email protected]>
L: [email protected]
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/common/sa1111.c
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,7 @@ static u32 sa1111_dma_mask[] = {
/*
* Configure the SA1111 shared memory controller.
*/
void
static void
sa1111_configure_smc(struct sa1111 *sachip, int sdram, unsigned int drac,
unsigned int cas_latency)
{
Expand Down
1 change: 1 addition & 0 deletions arch/arm/mach-davinci/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include <linux/etherdevice.h>
#include <linux/davinci_emac.h>
#include <linux/dma-mapping.h>
#include <linux/platform_data/davinci-cpufreq.h>

#include <asm/tlb.h>
#include <asm/mach/map.h>
Expand Down
6 changes: 0 additions & 6 deletions arch/arm/mach-davinci/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,6 @@ extern void davinci_common_init(const struct davinci_soc_info *soc_info);
extern void davinci_init_ide(void);
void davinci_init_late(void);

#ifdef CONFIG_CPU_FREQ
int davinci_cpufreq_init(void);
#else
static inline int davinci_cpufreq_init(void) { return 0; }
#endif

#ifdef CONFIG_SUSPEND
int davinci_pm_init(void);
#else
Expand Down
3 changes: 2 additions & 1 deletion arch/arm/mach-ep93xx/timer-ep93xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include <linux/io.h>
#include <asm/mach/time.h>
#include "soc.h"
#include "platform.h"

/*************************************************************************
* Timer handling for EP93xx
Expand Down Expand Up @@ -60,7 +61,7 @@ static u64 notrace ep93xx_read_sched_clock(void)
return ret;
}

u64 ep93xx_clocksource_read(struct clocksource *c)
static u64 ep93xx_clocksource_read(struct clocksource *c)
{
u64 ret;

Expand Down
5 changes: 5 additions & 0 deletions arch/arm/mach-exynos/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@ config CPU_EXYNOS4210
default y
depends on ARCH_EXYNOS4

config SOC_EXYNOS4212
bool "Samsung Exynos4212"
default y
depends on ARCH_EXYNOS4

config SOC_EXYNOS4412
bool "Samsung Exynos4412"
default y
Expand Down
8 changes: 8 additions & 0 deletions arch/arm/mach-exynos/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#define EXYNOS3_SOC_MASK 0xFFFFF000

#define EXYNOS4210_CPU_ID 0x43210000
#define EXYNOS4212_CPU_ID 0x43220000
#define EXYNOS4412_CPU_ID 0xE4412200
#define EXYNOS4_CPU_MASK 0xFFFE0000

Expand All @@ -34,6 +35,7 @@ static inline int is_samsung_##name(void) \

IS_SAMSUNG_CPU(exynos3250, EXYNOS3250_SOC_ID, EXYNOS3_SOC_MASK)
IS_SAMSUNG_CPU(exynos4210, EXYNOS4210_CPU_ID, EXYNOS4_CPU_MASK)
IS_SAMSUNG_CPU(exynos4212, EXYNOS4212_CPU_ID, EXYNOS4_CPU_MASK)
IS_SAMSUNG_CPU(exynos4412, EXYNOS4412_CPU_ID, EXYNOS4_CPU_MASK)
IS_SAMSUNG_CPU(exynos5250, EXYNOS5250_SOC_ID, EXYNOS5_SOC_MASK)
IS_SAMSUNG_CPU(exynos5410, EXYNOS5410_SOC_ID, EXYNOS5_SOC_MASK)
Expand All @@ -52,6 +54,12 @@ IS_SAMSUNG_CPU(exynos5800, EXYNOS5800_SOC_ID, EXYNOS5_SOC_MASK)
# define soc_is_exynos4210() 0
#endif

#if defined(CONFIG_SOC_EXYNOS4212)
# define soc_is_exynos4212() is_samsung_exynos4212()
#else
# define soc_is_exynos4212() 0
#endif

#if defined(CONFIG_SOC_EXYNOS4412)
# define soc_is_exynos4412() is_samsung_exynos4412()
#else
Expand Down
2 changes: 2 additions & 0 deletions arch/arm/mach-exynos/exynos.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ static void __init exynos_dt_machine_init(void)
exynos_cpuidle.dev.platform_data = &cpuidle_coupled_exynos_data;
#endif
if (of_machine_is_compatible("samsung,exynos4210") ||
of_machine_is_compatible("samsung,exynos4212") ||
(of_machine_is_compatible("samsung,exynos4412") &&
(of_machine_is_compatible("samsung,trats2") ||
of_machine_is_compatible("samsung,midas") ||
Expand All @@ -194,6 +195,7 @@ static char const *const exynos_dt_compat[] __initconst = {
"samsung,exynos3250",
"samsung,exynos4",
"samsung,exynos4210",
"samsung,exynos4212",
"samsung,exynos4412",
"samsung,exynos5",
"samsung,exynos5250",
Expand Down
8 changes: 7 additions & 1 deletion arch/arm/mach-exynos/firmware.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,18 @@ static int exynos_cpu_boot(int cpu)
*
* On Exynos5 devices the call is ignored by trustzone firmware.
*/
if (!soc_is_exynos4210() && !soc_is_exynos4412())
if (!soc_is_exynos4210() && !soc_is_exynos4212() &&
!soc_is_exynos4412())
return 0;

/*
* The second parameter of SMC_CMD_CPU1BOOT command means CPU id.
* But, Exynos4212 has only one secondary CPU so second parameter
* isn't used for informing secure firmware about CPU id.
*/
if (soc_is_exynos4212())
cpu = 0;

exynos_smc(SMC_CMD_CPU1BOOT, cpu, 0, 0);
return 0;
}
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-exynos/pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ void exynos_enter_aftr(void)

exynos_pm_central_suspend();

if (soc_is_exynos4412()) {
if (soc_is_exynos4212() || soc_is_exynos4412()) {
/* Setting SEQ_OPTION register */
pmu_raw_writel(S5P_USE_STANDBY_WFI0 | S5P_USE_STANDBY_WFE0,
S5P_CENTRAL_SEQ_OPTION);
Expand Down
4 changes: 4 additions & 0 deletions arch/arm/mach-exynos/suspend.c
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ static int __init exynos_pmu_irq_init(struct device_node *node,

EXYNOS_PMU_IRQ(exynos3250_pmu_irq, "samsung,exynos3250-pmu");
EXYNOS_PMU_IRQ(exynos4210_pmu_irq, "samsung,exynos4210-pmu");
EXYNOS_PMU_IRQ(exynos4212_pmu_irq, "samsung,exynos4212-pmu");
EXYNOS_PMU_IRQ(exynos4412_pmu_irq, "samsung,exynos4412-pmu");
EXYNOS_PMU_IRQ(exynos5250_pmu_irq, "samsung,exynos5250-pmu");
EXYNOS_PMU_IRQ(exynos5420_pmu_irq, "samsung,exynos5420-pmu");
Expand Down Expand Up @@ -640,6 +641,9 @@ static const struct of_device_id exynos_pmu_of_device_ids[] __initconst = {
}, {
.compatible = "samsung,exynos4210-pmu",
.data = &exynos4_pm_data,
}, {
.compatible = "samsung,exynos4212-pmu",
.data = &exynos4_pm_data,
}, {
.compatible = "samsung,exynos4412-pmu",
.data = &exynos4_pm_data,
Expand Down
2 changes: 2 additions & 0 deletions arch/arm/mach-highbank/pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

#include <uapi/linux/psci.h>

#include "core.h"

#define HIGHBANK_SUSPEND_PARAM \
((0 << PSCI_0_2_POWER_STATE_ID_SHIFT) | \
(1 << PSCI_0_2_POWER_STATE_AFFL_SHIFT) | \
Expand Down
1 change: 1 addition & 0 deletions arch/arm/mach-imx/pm-imx25.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include <linux/kernel.h>
#include <linux/suspend.h>
#include <linux/io.h>
#include "common.h"

static int imx25_suspend_enter(suspend_state_t state)
{
Expand Down
1 change: 1 addition & 0 deletions arch/arm/mach-lpc32xx/serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include <linux/serial_8250.h>
#include <linux/clk.h>
#include <linux/io.h>
#include <linux/soc/nxp/lpc32xx-misc.h>

#include "lpc32xx.h"
#include "common.h"
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-omap1/pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ static int __init omap_pm_init(void)

error = sysfs_create_file(power_kobj, &sleep_while_idle_attr.attr);
if (error)
printk(KERN_ERR "sysfs_create_file failed: %d\n", error);
pr_err("sysfs_create_file failed: %d\n", error);

if (cpu_is_omap16xx()) {
/* configure LOW_PWR pin */
Expand Down
1 change: 1 addition & 0 deletions arch/arm/mach-omap1/serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

#include <asm/mach-types.h>

#include "common.h"
#include "serial.h"
#include "mux.h"
#include "pm.h"
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-omap1/sram-init.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

#define OMAP1_SRAM_PA 0x20000000
#define SRAM_BOOTLOADER_SZ 0x80
#define ROUND_DOWN(value,boundary) ((value) & (~((boundary)-1)))
#define ROUND_DOWN(value, boundary) ((value) & (~((boundary) - 1)))

static void __iomem *omap_sram_base;
static unsigned long omap_sram_start;
Expand Down
1 change: 1 addition & 0 deletions arch/arm/mach-omap2/board-generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include <linux/of_platform.h>
#include <linux/irqdomain.h>
#include <linux/clocksource.h>
#include <linux/clockchips.h>

#include <asm/setup.h>
#include <asm/mach/arch.h>
Expand Down
Loading

0 comments on commit bf1fa6f

Please sign in to comment.