Skip to content

Commit 686191a

Browse files
Jonathan CameronJonathan Cameron
authored andcommitted
Merge branch 'ib-ti-eqep-5.4-rc1' into togreg
Immutable branch being merged in. Created as this also involves moving some dependencies around, outside of the counter subsystem. It's possible it will want to be pulled into other trees.
2 parents a711866 + f213729 commit 686191a

10 files changed

Lines changed: 551 additions & 10 deletions

File tree

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/counter/ti-eqep.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Texas Instruments Enhanced Quadrature Encoder Pulse (eQEP) Module
8+
9+
maintainers:
10+
- David Lechner <david@lechnology.com>
11+
12+
properties:
13+
compatible:
14+
const: ti,am3352-eqep
15+
16+
reg:
17+
maxItems: 1
18+
19+
interrupts:
20+
description: The eQEP event interrupt
21+
maxItems: 1
22+
23+
clocks:
24+
description: The clock that determines the SYSCLKOUT rate for the eQEP
25+
peripheral.
26+
maxItems: 1
27+
28+
clock-names:
29+
const: sysclkout
30+
31+
required:
32+
- compatible
33+
- reg
34+
- interrupts
35+
- clocks
36+
- clock-names
37+
38+
additionalProperties: false
39+
40+
examples:
41+
- |
42+
eqep0: counter@180 {
43+
compatible = "ti,am3352-eqep";
44+
reg = <0x180 0x80>;
45+
clocks = <&l4ls_gclk>;
46+
clock-names = "sysclkout";
47+
interrupts = <79>;
48+
};
49+
50+
...

‎MAINTAINERS‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16215,6 +16215,12 @@ S: Maintained
1621516215
F: drivers/media/platform/davinci/
1621616216
F: include/media/davinci/
1621716217

16218+
TI ENHANCED QUADRATURE ENCODER PULSE (eQEP) DRIVER
16219+
R: David Lechner <david@lechnology.com>
16220+
L: linux-iio@vger.kernel.org
16221+
F: Documentation/devicetree/bindings/counter/ti-eqep.yaml
16222+
F: drivers/counter/ti-eqep.c
16223+
1621816224
TI ETHERNET SWITCH DRIVER (CPSW)
1621916225
R: Grygorii Strashko <grygorii.strashko@ti.com>
1622016226
L: linux-omap@vger.kernel.org

‎drivers/bus/Kconfig‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,15 @@ config TEGRA_GMI
150150
Driver for the Tegra Generic Memory Interface bus which can be used
151151
to attach devices such as NOR, UART, FPGA and more.
152152

153+
config TI_PWMSS
154+
bool
155+
default y if (ARCH_OMAP2PLUS) && (PWM_TIECAP || PWM_TIEHRPWM || TI_EQEP)
156+
help
157+
PWM Subsystem driver support for AM33xx SOC.
158+
159+
PWM submodules require PWM config space access from submodule
160+
drivers and require common parent driver support.
161+
153162
config TI_SYSC
154163
bool "TI sysc interconnect target module driver"
155164
depends on ARCH_OMAP2PLUS

‎drivers/bus/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ obj-$(CONFIG_SUNXI_RSB) += sunxi-rsb.o
2727
obj-$(CONFIG_SIMPLE_PM_BUS) += simple-pm-bus.o
2828
obj-$(CONFIG_TEGRA_ACONNECT) += tegra-aconnect.o
2929
obj-$(CONFIG_TEGRA_GMI) += tegra-gmi.o
30+
obj-$(CONFIG_TI_PWMSS) += ti-pwmss.o
3031
obj-$(CONFIG_TI_SYSC) += ti-sysc.o
3132
obj-$(CONFIG_TS_NBUS) += ts-nbus.o
3233
obj-$(CONFIG_UNIPHIER_SYSTEM_BUS) += uniphier-system-bus.o

‎drivers/counter/Kconfig‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,17 @@ config STM32_LPTIMER_CNT
4949
To compile this driver as a module, choose M here: the
5050
module will be called stm32-lptimer-cnt.
5151

52+
config TI_EQEP
53+
tristate "TI eQEP counter driver"
54+
depends on (SOC_AM33XX || COMPILE_TEST)
55+
select REGMAP_MMIO
56+
help
57+
Select this option to enable the Texas Instruments Enhanced Quadrature
58+
Encoder Pulse (eQEP) counter driver.
59+
60+
To compile this driver as a module, choose M here: the module will be
61+
called ti-eqep.
62+
5263
config FTM_QUADDEC
5364
tristate "Flex Timer Module Quadrature decoder driver"
5465
depends on HAS_IOMEM && OF

‎drivers/counter/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ obj-$(CONFIG_COUNTER) += counter.o
88
obj-$(CONFIG_104_QUAD_8) += 104-quad-8.o
99
obj-$(CONFIG_STM32_TIMER_CNT) += stm32-timer-cnt.o
1010
obj-$(CONFIG_STM32_LPTIMER_CNT) += stm32-lptimer-cnt.o
11+
obj-$(CONFIG_TI_EQEP) += ti-eqep.o
1112
obj-$(CONFIG_FTM_QUADDEC) += ftm-quaddec.o

0 commit comments

Comments
 (0)