ARM: dts: Add Tolino Vision
Subsystems (3)
v2 cover ARM: dts: Add Tolino Vision
Add a basic device tree for the Tolino Vision Ebook reader. It is equipped with an i.MX6SL SoC.
Andreas Kemnade (2):
dt-bindings: arm: fsl: add compatible string for Tolino Vision
ARM: dts: imx: Add devicetree for Tolino Vison
.../devicetree/bindings/arm/fsl.yaml | 1 + arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/imx6sl-tolino-vision.dts | 490 ++++++++++++++++++ 3 files changed, 492 insertions(+) create mode 100644 arch/arm/boot/dts/imx6sl-tolino-vision.dts
Signature · 1 line
2.30.2
PATCH v2 1/2 dt-bindings: arm: fsl: add compatible string for Tolino Vision
Add a compatible string for the Tolino Vision eBook reader.
--- Documentation/devicetree/bindings/arm/fsl.yaml | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/arm/fsl.yaml +1 -0
@@ -581,6 +581,7 @@ properties: - kobo,aura2 - kobo,tolino-shine2hd - kobo,tolino-shine3 + - kobo,tolino-vision - kobo,tolino-vision5 - revotics,imx6sl-warp # Revotics WaRP Board - const: fsl,imx6sl
Signature · 1 line
2.30.2
Re: [PATCH v2 1/2] dt-bindings: arm: fsl: add compatible string for Tolino Vision
Quoted 4 lines · Andreas Kemnade
Add a compatible string for the Tolino Vision eBook reader.
Signed-off-by Andreas Kemnade <[email protected]>---
Best regards,
Krzysztof
PATCH v2 2/2 ARM: dts: imx: Add devicetree for Tolino Vison
In reply to Andreas KemnadeAdd a devicetree for the Tolino Vision Ebook reader. It is based on boards marked with "37NB-E60Q30+4A3". It is equipped with an i.MX6SL SoC.
Expected to work:
- Buttons
- Wifi
- LEDs
- uSD
- eMMC
- USB
- RTC
- Touchscreen
- Backlight
--- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/imx6sl-tolino-vision.dts | 490 +++++++++++++++++++++ 2 files changed, 491 insertions(+) create mode 100644 arch/arm/boot/dts/imx6sl-tolino-vision.dts
arch/arm/boot/dts/Makefile +1 -0
@@ -690,6 +690,7 @@ dtb-$(CONFIG_SOC_IMX6SL) += \ imx6sl-kobo-aura2.dtb \ imx6sl-tolino-shine2hd.dtb \ imx6sl-tolino-shine3.dtb \ + imx6sl-tolino-vision.dtb \ imx6sl-tolino-vision5.dtb \ imx6sl-warp.dtb dtb-$(CONFIG_SOC_IMX6SLL) += \
arch/arm/boot/dts/imx6sl-tolino-vision.dts new file +490 -0
490 lines not on this page · raw message
Signature · 1 line
2.30.2
Re: [PATCH v2 2/2] ARM: dts: imx: Add devicetree for Tolino Vison
Quoted 167 lines · Andreas Kemnade
Add a devicetree for the Tolino Vision Ebook reader. It is based on boards marked with "37NB-E60Q30+4A3". It is equipped with an i.MX6SL SoC.
Expected to work:
- Buttons
- Wifi
- LEDs
- uSD
- eMMC
- USB
- RTC
- Touchscreen
- BacklightSigned-off-by Andreas Kemnade <[email protected]>--- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/imx6sl-tolino-vision.dts | 490 +++++++++++++++++++++ 2 files changed, 491 insertions(+) create mode 100644 arch/arm/boot/dts/imx6sl-tolino-vision.dtsarch/arm/boot/dts/Makefile +1
-0@@ -690,6 +690,7 @@ dtb-$(CONFIG_SOC_IMX6SL) += \ imx6sl-kobo-aura2.dtb \ imx6sl-tolino-shine2hd.dtb \ imx6sl-tolino-shine3.dtb \ + imx6sl-tolino-vision.dtb \ imx6sl-tolino-vision5.dtb \ imx6sl-warp.dtb dtb-$(CONFIG_SOC_IMX6SLL) += \arch/arm/boot/dts/imx6sl-tolino-vision.dts new file +127
-0@@ -0,0 +1,490 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Device tree for the Tolino Vison ebook reader + * + * Name on mainboard is: 37NB-E60Q30+4A3 + * Serials start with: 6032 + * + * Copyright 2023 Andreas Kemnade + */ + +/dts-v1/; + +#include <dt-bindings/leds/common.h> +#include <dt-bindings/input/input.h> +#include <dt-bindings/gpio/gpio.h> +#include "imx6sl.dtsi" + +/ { + model = "Tolino Vision"; + compatible = "kobo,tolino-vision", "fsl,imx6sl"; + + aliases { + mmc0 = &usdhc4; + mmc1 = &usdhc2; + }; + + backlight { + compatible = "pwm-backlight"; + pwms = <&ec 0 50000>; + power-supply = <&backlight_regulator>; + }; + + backlight_regulator: regulator-backlight { + compatible = "regulator-fixed"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_backlight_power>; + regulator-name = "backlight"; + gpio = <&gpio2 10 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + + chosen { + stdout-path = &uart1; + }; + + gpio_keys: gpio-keys { + compatible = "gpio-keys"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_gpio_keys>; + + key-cover { + /* magnetic sensor in the corner next to the uSD slot */ + label = "Cover"; + gpios = <&gpio5 12 GPIO_ACTIVE_LOW>; + linux,code = <SW_LID>; + linux,input-type = <EV_SW>; + wakeup-source; + }; + + key-fl { + label = "Frontlight"; + gpios = <&gpio3 26 GPIO_ACTIVE_LOW>; + linux,code = <KEY_BRIGHTNESS_CYCLE>; + }; + + key-power { + label = "Power"; + gpios = <&gpio5 8 GPIO_ACTIVE_LOW>; + linux,code = <KEY_POWER>; + wakeup-source; + }; + }; + + leds: leds { + compatible = "gpio-leds"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_leds>; + + led-0 { + /* LED on home button */ + color = <LED_COLOR_ID_WHITE>; + function = LED_FUNCTION_STATUS; + gpios = <&gpio5 10 GPIO_ACTIVE_LOW>; + }; + + led-1 { + /* LED on power button */ + color = <LED_COLOR_ID_WHITE>; + function = LED_FUNCTION_POWER; + gpios = <&gpio5 7 GPIO_ACTIVE_LOW>; + linux,default-trigger = "timer"; + }; + }; + + memory@80000000 { + device_type = "memory"; + reg = <0x80000000 0x20000000>; + }; + + reg_wifi: regulator-wifi { + compatible = "regulator-fixed"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_wifi_power>; + regulator-name = "SD3_SPWR"; + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <3000000>; + gpio = <&gpio4 29 GPIO_ACTIVE_LOW>; + }; + + + wifi_pwrseq: wifi_pwrseq { + compatible = "mmc-pwrseq-simple"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_wifi_reset>; + post-power-on-delay-ms = <20>; + reset-gpios = <&gpio5 0 GPIO_ACTIVE_LOW>; + }; +}; + +&i2c1 { + pinctrl-names = "default","sleep"; + pinctrl-0 = <&pinctrl_i2c1>; + pinctrl-1 = <&pinctrl_i2c1_sleep>; + status = "okay"; + + touchscreen@15 { + compatible = "elan,ektf2132";
arch/arm/boot/dts/imx6sl-tolino-vision.dts line 137
Quoted 10 lines
arch/arm/boot/dts/imx6sl-tolino-vision.dts new file +10
-0+ reg = <0x15>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_ts>; + power-gpios = <&gpio5 13 GPIO_ACTIVE_HIGH>; + interrupts-extended = <&gpio5 6 IRQ_TYPE_EDGE_FALLING>; + }; + + accelerometer@1d { + reg = <0x1d>; + compatible = "fsl,mma8652";
Flipped the order of these two. Applied both, thanks!
Shawn
Quoted 2 lines
arch/arm/boot/dts/imx6sl-tolino-vision.dts new file +2
-0+ }; +};
Quoted 3 lines · Andreas Kemnade
Add a basic device tree for the Tolino Vision Ebook reader. It is equipped with an i.MX6SL SoC.
This is v2, so you need changelog describing changes against v1.
Best regards,
Krzysztof
Quoted 7 lines · On Fri, 17 Mar 2023 10:16:42 +0100 Krzysztof Kozlowski…
Quoted 3 lines · Andreas Kemnade
Add a basic device tree for the Tolino Vision Ebook reader. It is equipped with an i.MX6SL SoC.
This is v2, so you need changelog describing changes against v1.
Sorry, I have forgotten that:
- improved commit messages
- s/grp-something/-somethinggrp/
- reorder compatible property for touchscren
Regards,
Andreas