Skip to contentSkip to conversation

ARM: dts: add Tolino Shine 2 HD

PATCH Applied Andreas Kemnade 3 participants 6 messages Aug 26, 2020 – Sep 5, 2020

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

v2 cover ARM: dts: add Tolino Shine 2 HD

This adds a device tree for the Tolino Shine 2 HD Ebook reader.

It is equipped with an i.MX6SL SoC. Except for backlight (via an EC) and the EPD, drivers are available and therefore things are defined in the dts.

Andreas Kemnade (2):
dt-bindings: arm: fsl: add compatible string for Tolino Shine 2 HD
ARM: dts: imx: add devicetree for Tolino Shine 2 HD

 .../devicetree/bindings/arm/fsl.yaml          |   1 +
 arch/arm/boot/dts/Makefile                    |   1 +
 arch/arm/boot/dts/imx6sl-tolino-shine2hd.dts  | 588 ++++++++++++++++++
 3 files changed, 590 insertions(+)
 create mode 100644 arch/arm/boot/dts/imx6sl-tolino-shine2hd.dts
Signature · 1 line
2.20.1
#1 lore raw

PATCH v2 1/2 dt-bindings: arm: fsl: add compatible string for Tolino Shine 2 HD

This adds a compatible string for the Tolino Shine 2 HD eBook reader.

---
 Documentation/devicetree/bindings/arm/fsl.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/arm/fsl.yaml +1 -0
index 05906e291e38..a3fb61868a16 100644
@@ -211,6 +211,7 @@ properties:
         items:
           - enum:
               - fsl,imx6sl-evk            # i.MX6 SoloLite EVK Board
+              - kobo,tolino-shine2hd
               - kobo,tolino-shine3
           - const: fsl,imx6sl
 
Signature · 1 line
2.20.1
#2 lore raw

PATCH v2 2/2 ARM: dts: imx: add devicetree for Tolino Shine 2 HD

In reply to Andreas Kemnade

This adds a devicetree for the Tolino Shine 2 HD Ebook reader. It is based on boards marked with "37NB-E60QF0+4A2". It is equipped with an i.MX6SL SoC.

Expected to work:
- Buttons
- Wifi
- Touchscreen
- LED
- uSD
- USB
- RTC

Not working due to missing drivers:
- Backlight (requires NTXEC driver)
- EPD

Not working due to unknown reasons:
- deep sleep (echo standby >/sys/power/state works), wakeup fails when imx_gpc_pre_suspend(true) was called.

---
Changes in v2:
- better comments about internals
- avoid confusion about polarity of wifi enable pin
- newline cleanup

 arch/arm/boot/dts/Makefile                   |   1 +
 arch/arm/boot/dts/imx6sl-tolino-shine2hd.dts | 588 +++++++++++++++++++
 2 files changed, 589 insertions(+)
 create mode 100644 arch/arm/boot/dts/imx6sl-tolino-shine2hd.dts
arch/arm/boot/dts/Makefile +1 -0
index e6a1cac0bfc7..c65fa3852246 100644
@@ -581,6 +581,7 @@ dtb-$(CONFIG_SOC_IMX6Q) += \
 	imx6qp-zii-rdu2.dtb
 dtb-$(CONFIG_SOC_IMX6SL) += \
 	imx6sl-evk.dtb \
+	imx6sl-tolino-shine2hd.dtb \
 	imx6sl-tolino-shine3.dtb \
 	imx6sl-warp.dtb
 dtb-$(CONFIG_SOC_IMX6SLL) += \
arch/arm/boot/dts/imx6sl-tolino-shine2hd.dts new file +588 -0

588 lines not on this page · raw message

Signature · 1 line
2.20.1
Reviewed-by on v2 2/2
#3 lore raw

Re: [PATCH v2 2/2] ARM: dts: imx: add devicetree for Tolino Shine 2 HD

Quoted 23 lines · Andreas Kemnade

This adds a devicetree for the Tolino Shine 2 HD Ebook reader. It is based on boards marked with "37NB-E60QF0+4A2". It is equipped with an i.MX6SL SoC.

Expected to work:
- Buttons
- Wifi
- Touchscreen
- LED
- uSD
- USB
- RTC

Not working due to missing drivers:
- Backlight (requires NTXEC driver)
- EPD

Not working due to unknown reasons:
- deep sleep (echo standby >/sys/power/state works), wakeup fails when imx_gpc_pre_suspend(true) was called.

---

[...]

arch/arm/boot/dts/imx6sl-tolino-shine2hd.dts line 42

Quoted 5 lines
arch/arm/boot/dts/imx6sl-tolino-shine2hd.dts new file +5 -0
+		fl {
+			label = "Frontlight";
+			gpios = <&gpio3 26 GPIO_ACTIVE_LOW>;
+			linux,code = <KEY_BRIGHTNESS_CYCLE>;
+		};

Another option might be KEY_BRIGHTNESS_TOGGLE/KEY_DISPLAYTOGGLE, but it's not a perfect match, either. (And perhaps a worse match due to the connotation of turning the display off.)

Thanks

#4 lore raw

Re: [PATCH v2 2/2] ARM: dts: imx: add devicetree for Tolino Shine 2 HD

Hi,

Quoted 25 lines · On Thu, 27 Aug 2020 20:33:23 +0200 Jonathan Neuschäfer <[email protected]>…
Quoted 23 lines · Andreas Kemnade

This adds a devicetree for the Tolino Shine 2 HD Ebook reader. It is based on boards marked with "37NB-E60QF0+4A2". It is equipped with an i.MX6SL SoC.

Expected to work:
- Buttons
- Wifi
- Touchscreen
- LED
- uSD
- USB
- RTC

Not working due to missing drivers:
- Backlight (requires NTXEC driver)
- EPD

Not working due to unknown reasons:
- deep sleep (echo standby >/sys/power/state works), wakeup fails when imx_gpc_pre_suspend(true) was called.

---

[...]

Quoted 10 lines

arch/arm/boot/dts/imx6sl-tolino-shine2hd.dts line 42

Quoted 5 lines
arch/arm/boot/dts/imx6sl-tolino-shine2hd.dts new file +5 -0
+		fl {
+			label = "Frontlight";
+			gpios = <&gpio3 26 GPIO_ACTIVE_LOW>;
+			linux,code = <KEY_BRIGHTNESS_CYCLE>;
+		};  

Another option might be KEY_BRIGHTNESS_TOGGLE/KEY_DISPLAYTOGGLE, but it's not a perfect match, either. (And perhaps a worse match due to the connotation of turning the display off.)

I have also thought about these, but came to the same conclusion as you, the connotation of turning the display off does not feel right.

Quoted 4 lines

Thanks

Regards,
Andreas

Applied
#5 lore raw
In reply to Andreas Kemnade
Quoted 9 lines · Andreas Kemnade

This adds a device tree for the Tolino Shine 2 HD Ebook reader.

It is equipped with an i.MX6SL SoC. Except for backlight (via an EC) and the EPD, drivers are available and therefore things are defined in the dts.

Andreas Kemnade (2):
dt-bindings: arm: fsl: add compatible string for Tolino Shine 2 HD
ARM: dts: imx: add devicetree for Tolino Shine 2 HD

Applied both, thanks.