Skip to contentSkip to conversation

backlight: Add RAVE SP backlight driver

PATCH Applied Andrey Smirnov 3 participants 5 messages Mar 8, 2018 – Mar 12, 2018

Subsystems (5)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/2 backlight: Add RAVE SP backlight driver

This driver provides access to RAVE SP backlight control functionality.

Cc Lee Jones <[email protected]>
Cc Daniel Thompson <[email protected]>
Cc Jingoo Han <[email protected]>
Cc Chris Healy <[email protected]>
Cc Lucas Stach <[email protected]>
Cc Aleksander Morgado <[email protected]>

---

Changes since [v1]:

- Collected various Acked-by form Lee and Daniel

- Changes BACKLIGHT_FIRMARE to BACKLIGHT_PLATFORM

[v1] https://lkml.kernel.org/r/[email protected]

 drivers/video/backlight/Kconfig             |  6 +++
 drivers/video/backlight/Makefile            |  1 +
 drivers/video/backlight/rave-sp-backlight.c | 82 +++++++++++++++++++++++++++++
 include/linux/mfd/rave-sp.h                 |  1 +
 4 files changed, 90 insertions(+)
 create mode 100644 drivers/video/backlight/rave-sp-backlight.c
drivers/video/backlight/Kconfig +6 -0
index 4e1d2ad50ba1..5d2d0d7e8100 100644
@@ -467,6 +467,12 @@ config BACKLIGHT_ARCXCNN
 	  If you have an ARCxCnnnn family backlight say Y to enable
 	  the backlight driver.
 
+config BACKLIGHT_RAVE_SP
+	tristate "RAVE SP Backlight driver"
+	depends on RAVE_SP_CORE
+	help
+	  Support for backlight control on RAVE SP device.
+
 endif # BACKLIGHT_CLASS_DEVICE
 
 endif # BACKLIGHT_LCD_SUPPORT
drivers/video/backlight/Makefile +1 -0
index 5e28f01c8391..19da71d518bf 100644
@@ -57,3 +57,4 @@ obj-$(CONFIG_BACKLIGHT_TOSA)		+= tosa_bl.o
 obj-$(CONFIG_BACKLIGHT_TPS65217)	+= tps65217_bl.o
 obj-$(CONFIG_BACKLIGHT_WM831X)		+= wm831x_bl.o
 obj-$(CONFIG_BACKLIGHT_ARCXCNN) 	+= arcxcnn_bl.o
+obj-$(CONFIG_BACKLIGHT_RAVE_SP)		+= rave-sp-backlight.o
drivers/video/backlight/rave-sp-backlight.c new file +82 -0

82 lines not on this page · raw message

include/linux/mfd/rave-sp.h +1 -0
index 796fb9794c9e..fe0ce7bc59cf 100644
@@ -21,6 +21,7 @@ enum rave_sp_command {
 	RAVE_SP_CMD_STATUS			= 0xA0,
 	RAVE_SP_CMD_SW_WDT			= 0xA1,
 	RAVE_SP_CMD_PET_WDT			= 0xA2,
+	RAVE_SP_CMD_SET_BACKLIGHT		= 0xA6,
 	RAVE_SP_CMD_RESET			= 0xA7,
 	RAVE_SP_CMD_RESET_REASON		= 0xA8,
 
Signature · 1 line
2.14.3
#1 lore raw

PATCH v2 2/2 dt-bindings: backlight: Add binding for RAVE SP backlight driver

Add Device Tree bindings for RAVE SP backlight driver - an MFD cell of parent RAVE SP driver (documented in Documentation/devicetree/bindings/mfd/zii,rave-sp.txt).

Cc Lee Jones <[email protected]>
Cc Daniel Thompson <[email protected]>
Cc Jingoo Han <[email protected]>
Cc Chris Healy <[email protected]>
Cc Lucas Stach <[email protected]>
Cc Aleksander Morgado <[email protected]>
Cc Rob Herring <[email protected]>
Cc Mark Rutland <[email protected]>

---

Changes since [v1]:

- Fixed typos in commit message and incorrect node name in example section

[v1] https://lkml.kernel.org/r/[email protected]

 .../leds/backlight/zii,rave-sp-backlight.txt       | 23 ++++++++++++++++++++++
 1 file changed, 23 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/leds/backlight/zii,rave-sp-backlight.txt
Documentation/devicetree/bindings/leds/backlight/zii,rave-sp-backlight.txt new file +23 -0
new file mode 100644
index 000000000000..ff5c92138650
@@ -0,0 +1,23 @@
+Zodiac Inflight Innovations RAVE Supervisory Processor Backlight Bindings
+
+RAVE SP backlight device is a "MFD cell" device corresponding to
+backlight functionality of RAVE Supervisory Processor. It is expected
+that its Device Tree node is specified as a child of the node
+corresponding to the parent RAVE SP device (as documented in
+Documentation/devicetree/bindings/mfd/zii,rave-sp.txt)
+
+Required properties:
+
+- compatible: Should be "zii,rave-sp-backlight"
+
+Example:
+
+	rave-sp {
+		compatible = "zii,rave-sp-rdu1";
+		current-speed = <38400>;
+
+		backlight {
+			compatible = "zii,rave-sp-backlight";
+		};
+	}
+
Signature · 1 line
2.14.3
maintainer Reviewed-by on v2 2/2
#2 lore raw

Re: [PATCH v2 2/2] dt-bindings: backlight: Add binding for RAVE SP backlight driver

Quoted 20 lines · Andrey Smirnov

Add Device Tree bindings for RAVE SP backlight driver - an MFD cell of parent RAVE SP driver (documented in Documentation/devicetree/bindings/mfd/zii,rave-sp.txt).

Cc Lee Jones <[email protected]>
Cc Daniel Thompson <[email protected]>
Cc Jingoo Han <[email protected]>
Cc Chris Healy <[email protected]>
Cc Lucas Stach <[email protected]>
Cc Aleksander Morgado <[email protected]>
Cc Rob Herring <[email protected]>
Cc Mark Rutland <[email protected]>

---

Changes since [v1]:

Quoted 7 lines

- Fixed typos in commit message and incorrect node name in example section

[v1] https://lkml.kernel.org/r/[email protected]

 .../leds/backlight/zii,rave-sp-backlight.txt       | 23 ++++++++++++++++++++++
 1 file changed, 23 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/leds/backlight/zii,rave-sp-backlight.txt
Applied
#3 lore raw

Re: [PATCH v2 2/2] dt-bindings: backlight: Add binding for RAVE SP backlight driver

In reply to Andrey Smirnov
Quoted 20 lines · Andrey Smirnov

Add Device Tree bindings for RAVE SP backlight driver - an MFD cell of parent RAVE SP driver (documented in Documentation/devicetree/bindings/mfd/zii,rave-sp.txt).

Cc Lee Jones <[email protected]>
Cc Daniel Thompson <[email protected]>
Cc Jingoo Han <[email protected]>
Cc Chris Healy <[email protected]>
Cc Lucas Stach <[email protected]>
Cc Aleksander Morgado <[email protected]>
Cc Rob Herring <[email protected]>
Cc Mark Rutland <[email protected]>

---

Changes since [v1]:

Quoted 7 lines

- Fixed typos in commit message and incorrect node name in example section

[v1] https://lkml.kernel.org/r/[email protected]

 .../leds/backlight/zii,rave-sp-backlight.txt       | 23 ++++++++++++++++++++++
 1 file changed, 23 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/leds/backlight/zii,rave-sp-backlight.txt

Applied, thanks.

Signature · 4 lines
Lee Jones [李琼斯]
Linaro Services Technical Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
Applied
#4 lore raw
In reply to Andrey Smirnov
Quoted 21 lines · Andrey Smirnov

This driver provides access to RAVE SP backlight control functionality.

Cc Lee Jones <[email protected]>
Cc Daniel Thompson <[email protected]>
Cc Jingoo Han <[email protected]>
Cc Chris Healy <[email protected]>
Cc Lucas Stach <[email protected]>
Cc Aleksander Morgado <[email protected]>

---

Changes since [v1]:

- Collected various Acked-by form Lee and Daniel

- Changes BACKLIGHT_FIRMARE to BACKLIGHT_PLATFORM

Quoted 8 lines

[v1] https://lkml.kernel.org/r/[email protected]

 drivers/video/backlight/Kconfig             |  6 +++
 drivers/video/backlight/Makefile            |  1 +
 drivers/video/backlight/rave-sp-backlight.c | 82 +++++++++++++++++++++++++++++
 include/linux/mfd/rave-sp.h                 |  1 +
 4 files changed, 90 insertions(+)
 create mode 100644 drivers/video/backlight/rave-sp-backlight.c

Applied, thanks.

Signature · 4 lines
Lee Jones [李琼斯]
Linaro Services Technical Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog