Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
09a524d
fix SPI 0 & 1 interface register base address and enable SPIDEV config
Jun 18, 2021
751b08c
Fix CONFIG_CCLK_DIV selection for SC59X and SC58X.
pwojtaszczyk-ts May 26, 2021
5b5d1f4
Fix SRU config, aplay can now playback audio files.
pwojtaszczyk-ts Jun 9, 2021
9fa525f
alsa: sc5xx-asoc-card: Fix build as a module.
pwojtaszczyk-ts Jun 10, 2021
64516a2
asoc: adi: Initial implementation of SHARC ALSA driver.
pwojtaszczyk-ts Jun 16, 2021
b5477e1
asoc: adau1962: Fix inverted master volume control.
pwojtaszczyk-ts Jun 21, 2021
90972bc
asoc: adi: Adjust machine, cpu dai and pcm drivers for kernel v5.4
pwojtaszczyk-ts Jun 23, 2021
5c49917
Merge branch 'feature/alsa_sharc_v5.4' into 'v5.4-rebase-wip'
pwojtaszczyk-ts Jun 23, 2021
a36dac8
enable qdisc configuration and netlink
Jun 28, 2021
f318631
enable CBS and ETF qdiscs in kernel config
Jun 29, 2021
a6e3ed9
mach-sc59x: Add missing software-driven interrupt triggers.
pwojtaszczyk-ts Jun 30, 2021
732379c
asoc: sc5xx-sport-sharc: Add timeout and buffer XRUN events.
pwojtaszczyk-ts Jun 30, 2021
fed673f
Merge branch 'feature/alsa_sharc_v5.4' into 'v5.4-rebase-wip'
pwojtaszczyk-ts Jun 30, 2021
bf9a3bf
iniital MQPRIO support for stmmac
Jul 2, 2021
3bf0a0b
asoc: sc5xx-sport-sharc: Add buffer data format and rate.
pwojtaszczyk-ts Jul 8, 2021
f14a58d
asoc: sc5xx-sport-sharc: Fix audio data transfer in case DMA buffer X…
pwojtaszczyk-ts Jul 8, 2021
70d271f
Merge branch 'feature/alsa_sharc_v5.4' into 'v5.4-rebase-wip'
pwojtaszczyk-ts Jul 8, 2021
4b15c81
Merge remote-tracking branch 'timesys/v5.4-rebase-wip' into develop/g-xp
hmauadi Jul 9, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion arch/arm/boot/dts/sc594-som-ezkit.dts
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,18 @@
};
};

&spi1 {
pinctrl-names = "default";
pinctrl-0 = <&spi1_default>;
status = "okay";

spidev@13{
compatible = "rohm,dh2228fv";
spi-max-frequency = <5000000>;
reg = <13>;
};
};

&spi2 {
pinctrl-names = "default";
pinctrl-0 = <&spi2_quad>;
Expand Down Expand Up @@ -301,7 +313,9 @@
&i2s0 {
reg = <0x31002400 0x80>, <0x31002480 0x80>;
interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>;
<GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 165 IRQ_TYPE_EDGE_RISING>
;
dma-channel = <10>, <11>;
status = "okay";
};
Expand Down
8 changes: 4 additions & 4 deletions arch/arm/boot/dts/sc59x.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -275,22 +275,22 @@
timeout-sec = <30>;
};

spi0: spi@0x31042000 {
spi0: spi@0x3102e000 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "adi,spi3";
reg = <0x31042000 0xFF>;
reg = <0x3102e000 0xFF>;
interrupts = <GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH>;
num-cs = <128>;
dma-channel = <22>, <23>;
status = "disabled";
};

spi1: spi@0x31043000 {
spi1: spi@0x3102f000 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "adi,spi3";
reg = <0x31043000 0xFF>;
reg = <0x3102f000 0xFF>;
interrupts = <GIC_SPI 113 IRQ_TYPE_LEVEL_HIGH>;
num-cs = <128>;
dma-channel = <24>, <25>;
Expand Down
8 changes: 8 additions & 0 deletions arch/arm/configs/sc594-som-ezkit_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ CONFIG_MODULE_UNLOAD=y
# CONFIG_COREDUMP is not set
# CONFIG_COMPACTION is not set
CONFIG_NET=y
CONFIG_VLAN_8021Q=y
CONFIG_NET_SCHED=y
CONFIG_NET_SCH_MQPRIO=y
CONFIG_NET_SCH_CBS=y
CONFIG_NET_SCH_ETF=y
CONFIG_PACKET=y
CONFIG_UNIX=y
CONFIG_INET=y
Expand All @@ -42,6 +47,8 @@ CONFIG_IP_PNP_RARP=y
# CONFIG_INET_DIAG is not set
CONFIG_NETWORK_PHY_TIMESTAMPING=y
CONFIG_NETFILTER=y
CONFIG_NETFILTER_NETLINK=y
CONFIG_NETFILTER_NETLINK_QUEUE=y
CONFIG_CAN=y
CONFIG_CFG80211=y
CONFIG_CFG80211_WEXT=y
Expand Down Expand Up @@ -80,6 +87,7 @@ CONFIG_I2C_MUX=m
CONFIG_I2C_ADI_TWI=y
CONFIG_SPI=y
CONFIG_SPI_ADI_V3=y
CONFIG_SPI_SPIDEV=y
CONFIG_PINCTRL_MCP23S08=y
CONFIG_GPIO_SYSFS=y
# CONFIG_HWMON is not set
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-sc57x/sc57x-ezkit.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

#include "core.h"

#if IS_ENABLED(CONFIG_SND_SC5XX_SPORT)
#if IS_ENABLED(CONFIG_SND_SC5XX_SPORT) || IS_ENABLED(CONFIG_SND_SC5XX_SPORT_SHARC)
void sru_init(void)
{
/* set DAI0_PIN02 to input */
Expand Down
12 changes: 6 additions & 6 deletions arch/arm/mach-sc58x/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -36,22 +36,22 @@ config ARCH_SC58X_SLAVECORE_COUNT
This sets the slave core count in sc58x processor.

choice
prompt "Core Clock Divider"
default CCLK_DIV_1
prompt "SC58X Core Clock Divider"
default SC58X_CCLK_DIV_1
help
This sets the frequency of the core. It can be 1, 2, 4 or 8
Core Frequency = (PLL frequency) / (this setting)

config CCLK_DIV_1
config SC58X_CCLK_DIV_1
bool "1"

config CCLK_DIV_2
config SC58X_CCLK_DIV_2
bool "2"

config CCLK_DIV_4
config SC58X_CCLK_DIV_4
bool "4"

config CCLK_DIV_8
config SC58X_CCLK_DIV_8
bool "8"

endchoice
Expand Down
8 changes: 4 additions & 4 deletions arch/arm/mach-sc58x/include/mach/clkdev.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@

#include <linux/clk.h>

#ifdef CONFIG_CCLK_DIV_1
#ifdef CONFIG_SC58X_CCLK_DIV_1
# define CONFIG_CCLK_DIV 1
#endif

#ifdef CONFIG_CCLK_DIV_2
#ifdef CONFIG_SC58X_CCLK_DIV_2
# define CONFIG_CCLK_DIV 2
#endif

#ifdef CONFIG_CCLK_DIV_4
#ifdef CONFIG_SC58X_CCLK_DIV_4
# define CONFIG_CCLK_DIV 4
#endif

#ifdef CONFIG_CCLK_DIV_8
#ifdef CONFIG_SC58X_CCLK_DIV_8
# define CONFIG_CCLK_DIV 8
#endif

Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-sc58x/sc58x-ezkit.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

#include "core.h"

#if IS_ENABLED(CONFIG_SND_SC5XX_SPORT)
#if IS_ENABLED(CONFIG_SND_SC5XX_SPORT) || IS_ENABLED(CONFIG_SND_SC5XX_SPORT_SHARC)
void sru_init(void)
{
#if IS_ENABLED(CONFIG_MACH_SC589_MINI)
Expand Down
12 changes: 6 additions & 6 deletions arch/arm/mach-sc59x/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -25,22 +25,22 @@ config ARCH_SC59X_SLAVECORE_COUNT
This sets the slave core count in sc59x processor.

choice
prompt "Core Clock Divider"
default CCLK_DIV_2
prompt "SC59X Core Clock Divider"
default SC59X_CCLK_DIV_2
help
This sets the frequency of the core. It can be 1, 2, 4 or 8
Core Frequency = (PLL frequency) / (this setting)

config CCLK_DIV_1
config SC59X_CCLK_DIV_1
bool "1"

config CCLK_DIV_2
config SC59X_CCLK_DIV_2
bool "2"

config CCLK_DIV_4
config SC59X_CCLK_DIV_4
bool "4"

config CCLK_DIV_8
config SC59X_CCLK_DIV_8
bool "8"
endchoice

Expand Down
1 change: 1 addition & 0 deletions arch/arm/mach-sc59x/icc.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ void platform_send_ipi_cpu(unsigned int cpu, int irq)
BUG_ON(cpu > 2);
writel(cpu + TRGM_SOFT3, __io_address(REG_TRU0_MTR));
}
EXPORT_SYMBOL(platform_send_ipi_cpu);

void platform_send_ipi(cpumask_t callmap, int irq)
{
Expand Down
8 changes: 4 additions & 4 deletions arch/arm/mach-sc59x/include/mach/clkdev.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@

#include <linux/clk.h>

#ifdef CONFIG_CCLK_DIV_1
#ifdef CONFIG_SC59X_CCLK_DIV_1
# define CONFIG_CCLK_DIV 1
#endif

#ifdef CONFIG_CCLK_DIV_2
#ifdef CONFIG_SC59X_CCLK_DIV_2
# define CONFIG_CCLK_DIV 2
#endif

#ifdef CONFIG_CCLK_DIV_4
#ifdef CONFIG_SC59X_CCLK_DIV_4
# define CONFIG_CCLK_DIV 4
#endif

#ifdef CONFIG_CCLK_DIV_8
#ifdef CONFIG_SC59X_CCLK_DIV_8
# define CONFIG_CCLK_DIV 8
#endif

Expand Down
3 changes: 3 additions & 0 deletions arch/arm/mach-sc59x/include/mach/sc59x.h
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,9 @@
/* ===================================
Trigger Master Definitions
=================================== */
#define TRGM_SOFT0 136 /* Software-driven Trigger 3 */
#define TRGM_SOFT1 137 /* Software-driven Trigger 3 */
#define TRGM_SOFT2 138 /* Software-driven Trigger 4 */
#define TRGM_SOFT3 139 /* Software-driven Trigger 3 */
#define TRGM_SOFT4 140 /* Software-driven Trigger 4 */
#define TRGM_SOFT5 141 /* Software-driven Trigger 5 */
Expand Down
Loading