This simple driver handles the IRQ chip of the TCU
(Timer Counter Unit) of the JZ47xx Ingenic SoCs.
Signed-off-by: Paul Cercueil <p...@crapouillou.net>
---
drivers/irqchip/Kconfig | 6 ++
drivers/irqchip/Makefile | 1 +
drivers/irqchip/irq-ingenic-tcu.c
Hi Philippe,
Le dim. 7 janv. 2018 à 17:18, Philippe Ombredanne
<pombreda...@nexb.com> a écrit :
On Fri, Jan 5, 2018 at 7:25 PM, Paul Cercueil <p...@crapouillou.net>
wrote:
The GCW Zero (http://www.gcw-zero.com) is a retro-gaming focused
handheld game console, successfully
Add documentation about how to properly use the Ingenic TCU
(Timer/Counter Unit) timers driver from devicetree.
Signed-off-by: Paul Cercueil <p...@crapouillou.net>
---
.../devicetree/bindings/timer/ingenic,tcu.txt | 35 ++
1 file changed, 35 insertions(+)
creat
Add myself as maintainer for the ingenic-tcu-intc interrupt controller
driver, the ingenic-tcu-clocks clock driver, and the ingenic-tcu
clocksource driver.
Signed-off-by: Paul Cercueil <p...@crapouillou.net>
---
MAINTAINERS | 9 +
1 file changed, 9 insertions(+)
v2: No chan
channel (plus
one for the watchdog and one for the OS timer) that can be used by other
drivers.
Signed-off-by: Paul Cercueil <p...@crapouillou.net>
---
drivers/clk/ingenic/Makefile | 2 +-
drivers/clk/ingenic/tcu.c| 319 +++
2 files change
This header provides clock numbers for the ingenic,tcu
DT binding.
Signed-off-by: Paul Cercueil <p...@crapouillou.net>
Reviewed-by: Rob Herring <r...@kernel.org>
---
include/dt-bindings/clock/ingenic,tcu.h | 23 +++
1 file changed, 23 insertions(+)
create mode 10
Add documentation about how to properly use the Ingenic TCU
(Timer/Counter Unit) clocks driver from devicetree.
Signed-off-by: Paul Cercueil <p...@crapouillou.net>
---
.../bindings/clock/ingenic,tcu-clocks.txt | 36 ++
1 file changed, 36 insertions(+)
creat
Hi James,
Le mer. 17 janv. 2018 à 22:28, James Hogan <james.ho...@mips.com> a
écrit :
On Tue, Jan 16, 2018 at 04:48:01PM +0100, Paul Cercueil wrote:
Provide just enough bits (clocks, clocksource, uart) to allow a
kernel
to boot on the JZ4770 SoC to a initramfs userspace.
Sign
This will be used from the devicetree bindings to specify the clocks
that should be obtained from the jz4770-cgu driver.
Signed-off-by: Paul Cercueil <p...@crapouillou.net>
Acked-by: Stephen Boyd <sb...@codeaurora.org>
Reviewed-by: Rob Herring <r...@kernel.org>
---
include
From: Paul Burton
jz4740_init_cmdline appends all arguments from argv (in fw_arg1) to
arcs_cmdline, up to argc (in fw_arg0). The common code in
fw_init_cmdline will do the exact same thing when run on a system where
fw_arg0 isn't a pointer to kseg0 (it'll also set _fw_envp
Add a machtype ID for the JZ4780 SoC, which was missing, and one for the
newly supported JZ4770 SoC.
Signed-off-by: Paul Cercueil <p...@crapouillou.net>
Reviewed-by: PrasannaKumar Muralidharan <prasannatsmku...@gmail.com>
Reviewed-by: James Hogan <jho...@kernel.org>
---
arc
Previously, the mips_machtype variable was always initialized
to MACH_INGENIC_JZ4740 even if running on different SoCs.
Signed-off-by: Paul Cercueil <p...@crapouillou.net>
---
arch/mips/jz4740/prom.c | 1 -
arch/mips/jz4740/setup.c | 22 +++---
2 files changed, 19 inse
Game Consoles Worldwide, mostly known under the acronym GCW, is the
creator of the GCW Zero open-source video game system.
Signed-off-by: Paul Cercueil <p...@crapouillou.net>
Acked-by: Rob Herring <r...@kernel.org>
---
Documentation/devicetree/bindings/vendor-prefixes.txt | 1 +
1
The GCW Zero (http://www.gcw-zero.com) is a retro-gaming focused
handheld game console, successfully kickstarted in ~2012, running Linux.
Signed-off-by: Paul Cercueil <p...@crapouillou.net>
Acked-by: Mathieu Malaterre <ma...@debian.org>
Acked-by: Philippe Ombredanne <pombr
This commit permits the PLLs to be dynamically enabled and disabled when
their children clocks are enabled and disabled.
Signed-off-by: Paul Cercueil <p...@crapouillou.net>
Acked-by: Stephen Boyd <sb...@codeaurora.org>
---
drivers/clk/ingeni
Provide just enough bits (clocks, clocksource, uart) to allow a kernel
to boot on the JZ4770 SoC to a initramfs userspace.
Signed-off-by: Paul Cercueil <p...@crapouillou.net>
Reviewed-by: PrasannaKumar Muralidharan <prasannatsmku...@gmail.com>
---
arch/mips/boot/dts/ingenic/jz477
From: Maarten ter Huurne
According to config2, the associativity would be 5-ways, but the
documentation states 4-ways, which also matches the documented
L2 cache size of 256 kB.
Signed-off-by: Maarten ter Huurne
Reviewed-by: James Hogan
Hi Ralf,
Here is the V7 of my JZ4770 and GCW0 patch series.
What changed from V6:
- In patch 10/14 I reverted a change that prevented the system
name/model from being correctly initialized
- The patch dealing with the MMC DMA hardware issue has been dropped,
since we couldn't reproduce the
-off-by: Paul Cercueil <p...@crapouillou.net>
Acked-by: Stephen Boyd <sb...@codeaurora.org>
---
drivers/clk/ingenic/cgu.c | 2 ++
1 file changed, 2 insertions(+)
v2: No changes
v3: No changes
v4: No changes
v5: No changes
v6: No changes
v7: No changes
diff --git a/drivers/clk/ing
The second PLL of the JZ4770 does not have a bypass bit.
This commit makes it possible to support it with the current common CGU
code.
Signed-off-by: Paul Cercueil <p...@crapouillou.net>
Acked-by: Stephen Boyd <sb...@codeaurora.org>
---
drivers/clk/ingenic/cgu.c | 3 ++-
drivers
Add support for the clocks provided by the CGU in the Ingenic JZ4770
SoC.
Signed-off-by: Paul Cercueil <p...@crapouillou.net>
Signed-off-by: Maarten ter Huurne <maar...@treewalker.org>
Acked-by: Stephen Boyd <sb...@codeaurora.org>
---
drivers/clk/ingenic/Makefile | 1 +
d
From: Paul Burton
Platforms using DT will typically call __dt_setup_arch from
plat_mem_setup. This in turn calls early_init_dt_scan. When
CONFIG_CMDLINE is set, this leads to its value being copied into
boot_command_line by early_init_dt_scan_chosen. If this happens before
The CGU common code does not modify the pointed clk_ops structure, so it
should be marked as const.
Signed-off-by: Paul Cercueil <p...@crapouillou.net>
Acked-by: Stephen Boyd <sb...@codeaurora.org>
---
drivers/clk/ingenic/cgu.h| 2 +-
drivers/clk/ingenic/jz4780-cgu.c | 2
Hi James,
Le mer. 10 janv. 2018 à 23:27, James Hogan <james.ho...@mips.com> a
écrit :
On Fri, Jan 05, 2018 at 07:25:08PM +0100, Paul Cercueil wrote:
Previously, the mips_machtype variable was always initialized
to MACH_INGENIC_JZ4740 even if running on different SoCs.
Signed-off-by
Hi James,
Le jeu. 11 janv. 2018 à 0:20, James Hogan <james.ho...@mips.com> a
écrit :
On Fri, Jan 05, 2018 at 07:25:11PM +0100, Paul Cercueil wrote:
[...]
+
+/*
+ * We have seen MMC DMA transfers read corrupted data from SDRAM
when a burst
+ * interval ends at physical address 0x10
This commit permits the PLLs to be dynamically enabled and disabled when
their children clocks are enabled and disabled.
Signed-off-by: Paul Cercueil <p...@crapouillou.net>
---
drivers/clk/ingenic/cgu.c | 89 +++
1 file changed, 74 insertions(
-off-by: Paul Cercueil <p...@crapouillou.net>
---
drivers/clk/ingenic/cgu.c | 2 ++
1 file changed, 2 insertions(+)
v2: No changes
v3: No changes
v4: No changes
diff --git a/drivers/clk/ingenic/cgu.c b/drivers/clk/ingenic/cgu.c
index ab393637f7b0..a2e73a6d60fd 100644
--- a/drivers/clk/i
The pointed string is never modified from within uart_parse_options, so
it should be marked as const in the function prototype.
Signed-off-by: Paul Cercueil <p...@crapouillou.net>
---
drivers/tty/serial/serial_core.c | 5 +++--
include/linux/serial_core.h | 2 +-
2 files chan
From: Maarten ter Huurne
We have seen MMC DMA transfers read corrupted data from SDRAM when
a burst interval ends at physical address 0x1000. To avoid this
problem, we remove the final page of low memory from the memory map.
Signed-off-by: Maarten ter Huurne
From: Paul Burton
Platforms using DT will typically call __dt_setup_arch from
plat_mem_setup. This in turn calls early_init_dt_scan. When
CONFIG_CMDLINE is set, this leads to its value being copied into
boot_command_line by early_init_dt_scan_chosen. If this happens
From: Maarten ter Huurne
According to config2, the associativity would be 5-ways, but the
documentation states 4-ways, which also matches the documented
L2 cache size of 256 kB.
Signed-off-by: Maarten ter Huurne
---
arch/mips/mm/sc-mips.c | 9
This makes sure that 'mips_machtype' will be initialized to the SoC
version used on the board.
Signed-off-by: Paul Cercueil <p...@crapouillou.net>
---
arch/mips/Kconfig | 1 +
arch/mips/jz4740/Makefile | 2 +-
arch/mips/jz4740/boards.c | 16
arch/mips/jz4740/s
Provide just enough bits (clocks, clocksource, uart) to allow a kernel
to boot on the JZ4770 SoC to a initramfs userspace.
Signed-off-by: Paul Cercueil <p...@crapouillou.net>
---
arch/mips/boot/dts/ingenic/jz4770.dtsi | 210 +
arch/mips/jz4740/K
From: Paul Burton
jz4740_init_cmdline appends all arguments from argv (in fw_arg1) to
arcs_cmdline, up to argc (in fw_arg0). The common code in
fw_init_cmdline will do the exact same thing when run on a system where
fw_arg0 isn't a pointer to kseg0 (it'll also set
Add a machtype ID for the JZ4780 SoC, which was missing, and one for the
newly supported JZ4770 SoC.
Signed-off-by: Paul Cercueil <p...@crapouillou.net>
---
arch/mips/include/asm/bootinfo.h | 2 ++
1 file changed, 2 insertions(+)
v2: No change
v3: No change
v4: No change
diff --git
The GCW Zero (http://www.gcw-zero.com) is a retro-gaming focused
handheld game console, successfully kickstarted in ~2012, running Linux.
Signed-off-by: Paul Cercueil <p...@crapouillou.net>
---
arch/mips/boot/dts/ingenic/Makefile | 1 +
arch/mips/boot/dts/ingenic/gcw0.dt
The second PLL of the JZ4770 does not have a bypass bit.
This commit makes it possible to support it with the current common CGU
code.
Signed-off-by: Paul Cercueil <p...@crapouillou.net>
---
drivers/clk/ingenic/cgu.c | 3 ++-
drivers/clk/ingenic/cgu.h | 2 ++
2 files changed, 4 insertions
Add support for the clocks provided by the CGU in the Ingenic JZ4770
SoC.
Signed-off-by: Paul Cercueil <p...@crapouillou.net>
Signed-off-by: Maarten ter Huurne <maar...@treewalker.org>
---
drivers/clk/ingenic/Makefile | 1 +
drivers/clk/ingenic/jz4770
Hi Greg, list,
I split this set of 3 patches from another patchset that was sent to the
MIPS mailing list (JZ4770 & GCW0 patchset) but never merged.
That's why patch 2/3 already has an ACK from Rob.
Cheers,
- Paul Cercueil
ly console for a baudrate of
57600 bps, no parity, and 8 bits per baud.
This patches implements parsing of this configuration string in the
8250_ingenic driver, which previously just ignored it.
Signed-off-by: Paul Cercueil <p...@crapouillou.net>
---
drivers/tty/serial/8250/8250_ingenic.c | 12
The JZ4770 SoC's UART is no different from the other JZ SoCs, so this
commit simply adds the ingenic,jz4770-uart compatible string.
Signed-off-by: Paul Cercueil <p...@crapouillou.net>
Acked-by: Rob Herring <r...@kernel.org>
---
Documentation/devicetree/bindings/serial/ingenic,
The CGU common code does not modify the pointed clk_ops structure, so it
should be marked as const.
Signed-off-by: Paul Cercueil <p...@crapouillou.net>
Acked-by: Stephen Boyd <sb...@codeaurora.org>
---
drivers/clk/ingenic/cgu.h| 2 +-
drivers/clk/ingenic/jz4780-cgu.c | 2
on top of v4.15-rc5.
Regards,
-Paul Cercueil
This will be used from the devicetree bindings to specify the clocks
that should be obtained from the jz4770-cgu driver.
Signed-off-by: Paul Cercueil <p...@crapouillou.net>
---
include/dt-bindings/clock/jz4770-cgu.h | 57 ++
1 file changed, 57 inse
Game Consoles Worldwide, mostly known under the acronym GCW, is the
creator of the GCW Zero open-source video game system.
Signed-off-by: Paul Cercueil <p...@crapouillou.net>
Acked-by: Rob Herring <r...@kernel.org>
---
Documentation/devicetree/bindings/vendor-prefixes.txt | 1 +
1
Previously, the clock was disabled first, which makes the watchdog
component insensitive to register writes.
Signed-off-by: Paul Cercueil <p...@crapouillou.net>
---
drivers/watchdog/jz4740_wdt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/watchdog/jz4740_w
Hi,
This patchset is meant to drop the platform code that handles the system
reset, since the watchdog driver can be used for this task.
Some fixes and cleanups are also included.
Thanks,
-Paul Cercueil
The watchdog is an useful piece of hardware, so there's no reason not to
enable it.
This commit enables the Kconfig option in the qi_lb60 defconfig.
Signed-off-by: Paul Cercueil <p...@crapouillou.net>
---
arch/mips/configs/qi_lb60_defconfig | 2 ++
1 file changed, 2 insertions(+)
diff
- The previous node requested a memory area of 0x100 bytes, while the
driver only manipulates four registers present in the first 0x10 bytes.
- The driver requests for the "rtc" clock, but the previous node did not
provide any.
Signed-off-by: Paul Cercueil <p...@crapouillou.n
Also remove the watchdog platform_device from platform.c, since it
wasn't used anywhere anyway.
Signed-off-by: Paul Cercueil <p...@crapouillou.net>
---
arch/mips/boot/dts/ingenic/jz4740.dtsi | 8
arch/mips/jz4740/platform.c| 16
2 files chan
The watchdog driver can restart the system by simply configuring the
hardware for a timeout of 0 seconds.
Signed-off-by: Paul Cercueil <p...@crapouillou.net>
---
drivers/watchdog/jz4740_wdt.c | 9 +
1 file changed, 9 insertions(+)
diff --git a/drivers/watchdog/jz4740_wdt.c b/d
This work is now performed by the watchdog driver directly.
Signed-off-by: Paul Cercueil <p...@crapouillou.net>
---
arch/mips/jz4740/reset.c | 31 ---
1 file changed, 31 deletions(-)
diff --git a/arch/mips/jz4740/reset.c b/arch/mips/jz4740/reset.c
index 67780c
- Use devm_clk_get instead of clk_get
- Use devm_watchdog_register_device instead of watchdog_register_device
Signed-off-by: Paul Cercueil <p...@crapouillou.net>
---
drivers/watchdog/jz4740_wdt.c | 27 ---
1 file changed, 8 insertions(+), 19 deletions(-)
diff
Hi Guenter,
Le jeu. 28 déc. 2017 à 18:48, Guenter Roeck <li...@roeck-us.net> a
écrit :
On 12/28/2017 08:29 AM, Paul Cercueil wrote:
- Use devm_clk_get instead of clk_get
- Use devm_watchdog_register_device instead of
watchdog_register_device
Signed-off-by: Paul Cercu
Le jeu. 28 déc. 2017 à 21:19, Guenter Roeck <li...@roeck-us.net> a
écrit :
On 12/28/2017 11:59 AM, Paul Cercueil wrote:
Hi Guenter,
Le jeu. 28 déc. 2017 à 18:48, Guenter Roeck <li...@roeck-us.net> a
écrit :
On 12/28/2017 08:29 AM, Paul Cercueil wrote:
- Use devm_clk
Hi PrasannaKumar,
Le mar. 2 janv. 2018 à 17:02, PrasannaKumar Muralidharan
<prasannatsmku...@gmail.com> a écrit :
Hi Paul,
On 2 January 2018 at 20:38, Paul Cercueil <p...@crapouillou.net>
wrote:
This makes sure that 'mips_machtype' will be initialized to the SoC
version used
From: Paul Burton
Platforms using DT will typically call __dt_setup_arch from
plat_mem_setup. This in turn calls early_init_dt_scan. When
CONFIG_CMDLINE is set, this leads to its value being copied into
boot_command_line by early_init_dt_scan_chosen. If this happens
Add support for the clocks provided by the CGU in the Ingenic JZ4770
SoC.
Signed-off-by: Paul Cercueil <p...@crapouillou.net>
Signed-off-by: Maarten ter Huurne <maar...@treewalker.org>
Acked-by: Stephen Boyd <sb...@codeaurora.org>
---
drivers/clk/ingenic/Makefile | 1 +
d
This commit permits the PLLs to be dynamically enabled and disabled when
their children clocks are enabled and disabled.
Signed-off-by: Paul Cercueil <p...@crapouillou.net>
Acked-by: Stephen Boyd <sb...@codeaurora.org>
---
drivers/clk/ingeni
Add a machtype ID for the JZ4780 SoC, which was missing, and one for the
newly supported JZ4770 SoC.
Signed-off-by: Paul Cercueil <p...@crapouillou.net>
---
arch/mips/include/asm/bootinfo.h | 2 ++
1 file changed, 2 insertions(+)
v2: No change
v3: No change
v5: No change
diff --git
Hi PrasannaKumar,
Le mar. 2 janv. 2018 à 17:37, PrasannaKumar Muralidharan
<prasannatsmku...@gmail.com> a écrit :
Hi Paul,
On 30 December 2017 at 19:21, Paul Cercueil <p...@crapouillou.net>
wrote:
Also remove the watchdog platform_device from platform.c, since it
wasn't u
The second PLL of the JZ4770 does not have a bypass bit.
This commit makes it possible to support it with the current common CGU
code.
Signed-off-by: Paul Cercueil <p...@crapouillou.net>
Acked-by: Stephen Boyd <sb...@codeaurora.org>
---
drivers/clk/ingenic/cgu.c | 3 ++-
drivers
Add touchscreen platform data for the Teclast X98 Plus II tablet.
Signed-off-by: Paul Cercueil <p...@crapouillou.net>
---
drivers/platform/x86/silead_dmi.c | 24
1 file changed, 24 insertions(+)
diff --git a/drivers/platform/x86/silead_dmi.c
b/drivers/platfo
Provide just enough bits (clocks, clocksource, uart) to allow a kernel
to boot on the JZ4770 SoC to a initramfs userspace.
Signed-off-by: Paul Cercueil <p...@crapouillou.net>
---
arch/mips/boot/dts/ingenic/jz4770.dtsi | 212 +
arch/mips/jz4740/K
The GCW Zero (http://www.gcw-zero.com) is a retro-gaming focused
handheld game console, successfully kickstarted in ~2012, running Linux.
Signed-off-by: Paul Cercueil <p...@crapouillou.net>
---
arch/mips/boot/dts/ingenic/Makefile | 1 +
arch/mips/boot/dts/ingenic/gcw0.dt
From: Maarten ter Huurne
We have seen MMC DMA transfers read corrupted data from SDRAM when
a burst interval ends at physical address 0x1000. To avoid this
problem, we remove the final page of low memory from the memory map.
Signed-off-by: Maarten ter Huurne
Game Consoles Worldwide, mostly known under the acronym GCW, is the
creator of the GCW Zero open-source video game system.
Signed-off-by: Paul Cercueil <p...@crapouillou.net>
Acked-by: Rob Herring <r...@kernel.org>
---
Documentation/devicetree/bindings/vendor-prefixes.txt | 1 +
1
This makes sure that 'mips_machtype' will be initialized to the SoC
version used on the board.
Signed-off-by: Paul Cercueil <p...@crapouillou.net>
---
arch/mips/Kconfig | 1 +
arch/mips/jz4740/Makefile | 2 +-
arch/mips/jz4740/boards.c | 12
arch/mips/jz4740/setup.c
From: Maarten ter Huurne
According to config2, the associativity would be 5-ways, but the
documentation states 4-ways, which also matches the documented
L2 cache size of 256 kB.
Signed-off-by: Maarten ter Huurne
---
arch/mips/mm/sc-mips.c | 9
From: Paul Burton
jz4740_init_cmdline appends all arguments from argv (in fw_arg1) to
arcs_cmdline, up to argc (in fw_arg0). The common code in
fw_init_cmdline will do the exact same thing when run on a system where
fw_arg0 isn't a pointer to kseg0 (it'll also set
This will be used from the devicetree bindings to specify the clocks
that should be obtained from the jz4770-cgu driver.
Signed-off-by: Paul Cercueil <p...@crapouillou.net>
Acked-by: Stephen Boyd <sb...@codeaurora.org>
---
include/dt-bindings/clock/jz477
-off-by: Paul Cercueil <p...@crapouillou.net>
Acked-by: Stephen Boyd <sb...@codeaurora.org>
---
drivers/clk/ingenic/cgu.c | 2 ++
1 file changed, 2 insertions(+)
v2: No changes
v3: No changes
v4: No changes
v5: No changes
diff --git a/drivers/clk/ingenic/cgu.c b/drivers/clk/ingenic
The CGU common code does not modify the pointed clk_ops structure, so it
should be marked as const.
Signed-off-by: Paul Cercueil <p...@crapouillou.net>
Acked-by: Stephen Boyd <sb...@codeaurora.org>
---
drivers/clk/ingenic/cgu.h| 2 +-
drivers/clk/ingenic/jz4780-cgu.c | 2
Hi,
[...]
+
+static void __init ingenic_tcu_init(struct device_node *np,
+ enum ingenic_version id)
+{
+ struct ingenic_tcu *tcu;
+ size_t i, nb_clks;
+ int ret = -ENOMEM;
+
+ if (id >= ID_JZ4770)
+ nb_clks = (JZ4770_CLK_LAST -
Hi,
Le mer. 3 janv. 2018 à 22:08, Rob Herring <r...@kernel.org> a écrit :
On Mon, Jan 01, 2018 at 03:33:43PM +0100, Paul Cercueil wrote:
This driver will use the TCU (Timer Counter Unit) present on the
Ingenic
JZ47xx SoCs to provide the kernel with a clocksource and timers.
Sign
Hi,
Le mer. 3 janv. 2018 à 21:58, Rob Herring <r...@kernel.org> a écrit :
On Mon, Jan 01, 2018 at 03:33:41PM +0100, Paul Cercueil wrote:
This simple driver handles the IRQ chip of the TCU
(Timer Counter Unit) of the JZ47xx Ingenic SoCs.
Signed-off-by: Paul Cercueil <p...@crapou
This header contains macros for the registers that are present in the
regmap shared by all the drivers related to the TCU (Timer Counter Unit)
of the Ingenic JZ47xx SoCs.
Signed-off-by: Paul Cercueil <p...@crapouillou.net>
---
include/linux/mfd/syscon/ingenic-tcu.
Add myself as maintainer for the ingenic-tcu-intc interrupt controller
driver, the ingenic-tcu-clocks clock driver, and the ingenic-tcu
clocksource driver.
Signed-off-by: Paul Cercueil <p...@crapouillou.net>
---
MAINTAINERS | 9 +
1 file changed, 9 insertions(+)
diff --git a/MAINT
channel (plus
one for the watchdog and one for the OS timer) that can be used by other
drivers.
Signed-off-by: Paul Cercueil <p...@crapouillou.net>
---
.../bindings/clock/ingenic,tcu-clocks.txt | 35 +++
drivers/clk/ingenic/Makefile | 2 +-
drivers/clk/i
This driver will use the TCU (Timer Counter Unit) present on the Ingenic
JZ47xx SoCs to provide the kernel with a clocksource and timers.
Signed-off-by: Paul Cercueil <p...@crapouillou.net>
---
.../devicetree/bindings/timer/ingenic,tcu.txt | 35 +++
drivers/clocksource/K
This simple driver handles the IRQ chip of the TCU
(Timer Counter Unit) of the JZ47xx Ingenic SoCs.
Signed-off-by: Paul Cercueil <p...@crapouillou.net>
---
.../bindings/interrupt-controller/ingenic,tcu.txt | 32 +
drivers/irqchip/Kconfig| 6 +
drivers/i
This header provides clock numbers for the ingenic,tcu
DT binding.
Signed-off-by: Paul Cercueil <p...@crapouillou.net>
---
include/dt-bindings/clock/ingenic,tcu.h | 23 +++
1 file changed, 23 insertions(+)
create mode 100644 include/dt-bindings/clock/ingenic,tcu.h
v
Add touchscreen platform data for the Teclast X98 Plus II tablet.
Signed-off-by: Paul Cercueil <p...@crapouillou.net>
Acked-by: Hans de Goede <hdego...@redhat.com>
---
drivers/platform/x86/silead_dmi.c | 24
1 file changed, 24 insertions(+)
v2: Rebased on
Hi,
Le mer. 25 juil. 2018 à 1:35, Rob Herring a écrit :
On Sat, Jul 21, 2018 at 01:06:26PM +0200, Paul Cercueil wrote:
The driver is now compatible with four SoCs: JZ4780, JZ4770,
JZ4725B and
JZ4740.
What the driver supports is irrelevant to the binding.
That's just informative. But I
Hi Vinod,
Le mar. 24 juil. 2018 à 15:32, Vinod a écrit :
On 21-07-18, 13:06, Paul Cercueil wrote:
+static inline void jz4780_dma_chan_enable(struct jz4780_dma_dev
*jzdma,
+ unsigned int chn)
right justified and aligned with preceding please. While adding new
code to a existing
The pinctrl-ingenic driver is now handling the GPIO chips directly.
Signed-off-by: Paul Cercueil
---
.../devicetree/bindings/gpio/ingenic,gpio.txt | 46 ---
drivers/gpio/Kconfig | 11 -
drivers/gpio/Makefile | 1 -
drivers/gpio
Add support for the JZ4725B and compatible SoCs from Ingenic.
Signed-off-by: Paul Cercueil
---
.../bindings/pinctrl/ingenic,pinctrl.txt | 2 +
drivers/pinctrl/pinctrl-ingenic.c | 99 ++
2 files changed, 101 insertions(+)
diff --git
By using platform_driver_probe() instead of platform_driver_register(),
we can mark the ingenic_pinctrl_probe() function as __init.
Signed-off-by: Paul Cercueil
---
drivers/pinctrl/pinctrl-ingenic.c | 7 +++
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/drivers/pinctrl
This allows to read from debugfs whether the GPIOs requested are set as
input or output.
Signed-off-by: Paul Cercueil
---
drivers/pinctrl/pinctrl-ingenic.c | 16
1 file changed, 16 insertions(+)
diff --git a/drivers/pinctrl/pinctrl-ingenic.c
b/drivers/pinctrl/pinctrl
Depending on MACH_INGENIC prevent us from creating a generic kernel that
works on more than one MIPS board. Instead, we just depend on MIPS being
set.
Signed-off-by: Paul Cercueil
---
drivers/pinctrl/Kconfig | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/pinctrl
Merge the code of the gpio-ingenic driver into the pinctrl-ingenic
driver.
The reason behind this, is that the same hardware block handles both pin
config / muxing and GPIO.
Signed-off-by: Paul Cercueil
---
.../bindings/pinctrl/ingenic,pinctrl.txt | 38 ++-
drivers/pinctrl/Kconfig
Using postcore_initcall() makes the driver try to initialize way too
early.
Signed-off-by: Paul Cercueil
---
drivers/pinctrl/pinctrl-ingenic.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/pinctrl/pinctrl-ingenic.c
b/drivers/pinctrl/pinctrl-ingenic.c
index
The JZ4770 SoC has two DMA cores, each one featuring six DMA channels.
The major change is that each channel's clock can be enabled or disabled
through register writes.
Signed-off-by: Paul Cercueil
Tested-by: Mathieu Malaterre
---
drivers/dma/dma-jz4780.c | 61
The JZ4740 SoC has a single DMA core starring six DMA channels.
Signed-off-by: Paul Cercueil
Tested-by: Mathieu Malaterre
Reviewed-by: PrasannaKumar Muralidharan
---
drivers/dma/dma-jz4780.c | 6 ++
1 file changed, 6 insertions(+)
v2: The documentation update is now in patch 01/17
v3
-specific registers and
one memory resource for the core-specific registers, we can support
the JZ4770, by initializing the driver once per DMA core with different
addresses.
Signed-off-by: Paul Cercueil
Tested-by: Mathieu Malaterre
---
drivers/dma/dma-jz4780.c | 112
As part of the work to support various other Ingenic JZ47xx SoC versions,
which don't feature the same number of DMA channels per core, we now
deduce the number of DMA channels available from the devicetree
compatible string.
Signed-off-by: Paul Cercueil
Tested-by: Mathieu Malaterre
From: Daniel Silsby
Simple cleanup, no changes to actual logic here.
Signed-off-by: Daniel Silsby
Signed-off-by: Paul Cercueil
Tested-by: Mathieu Malaterre
---
drivers/dma/dma-jz4780.c | 15 +--
1 file changed, 5 insertions(+), 10 deletions(-)
v2: No change
v3: No change
Add the two devicetree nodes for the two DMA cores of the JZ4770 SoC,
disabled by default, as currently there are no clients for the DMA
driver (until the MMC driver and/or others get a devicetree node).
Signed-off-by: Paul Cercueil
Tested-by: Mathieu Malaterre
Acked-by: Paul Burton
---
arch
of the DTCn hardware reg are automatically masked this way.
Signed-off-by: Daniel Silsby
Signed-off-by: Paul Cercueil
Tested-by: Mathieu Malaterre
---
drivers/dma/dma-jz4780.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
v2: No change
v3: No change
v4: Add my Signed-off-by
diff
The driver calls clk_get() with the clock name set to NULL, which means
that the driver could only work when probed from devicetree. From now
on, we explicitly require the driver to be probed from devicetree.
Signed-off-by: Paul Cercueil
Tested-by: Mathieu Malaterre
---
drivers/dma/dma-jz4780
301 - 400 of 2213 matches
Mail list logo