From: Shawn Guo <shawnguo@kernel.org>
To: Andreas Kemnade <andreas@kemnade.info>
Cc: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org,
arnd@arndb.de, olof@lixom.net, soc@kernel.org,
s.hauer@pengutronix.de, kernel@pengutronix.de,
festevam@gmail.com, linux-imx@nxp.com, marex@denx.de,
max.krummenacher@toradex.com, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH v2 2/2] ARM: dts: imx: Add devicetree for Tolino Vison
Date: Mon, 27 Mar 2023 10:45:07 +0800 [thread overview]
Message-ID: <20230327024507.GG3364759@dragon> (raw)
In-Reply-To: <20230317081618.2387407-3-andreas@kemnade.info>
On Fri, Mar 17, 2023 at 09:16:18AM +0100, Andreas Kemnade wrote:
> 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
> - Backlight
>
> Signed-off-by: Andreas Kemnade <andreas@kemnade.info>
> ---
> 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
>
> diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
> index efe4152e5846..159363f46522 100644
> --- a/arch/arm/boot/dts/Makefile
> +++ b/arch/arm/boot/dts/Makefile
> @@ -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) += \
> diff --git a/arch/arm/boot/dts/imx6sl-tolino-vision.dts b/arch/arm/boot/dts/imx6sl-tolino-vision.dts
> new file mode 100644
> index 000000000000..035d1dea42c4
> --- /dev/null
> +++ b/arch/arm/boot/dts/imx6sl-tolino-vision.dts
> @@ -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";
> + 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
> + };
> +};
WARNING: multiple messages have this Message-ID (diff)
From: Shawn Guo <shawnguo@kernel.org>
To: Andreas Kemnade <andreas@kemnade.info>
Cc: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org,
arnd@arndb.de, olof@lixom.net, soc@kernel.org,
s.hauer@pengutronix.de, kernel@pengutronix.de,
festevam@gmail.com, linux-imx@nxp.com, marex@denx.de,
max.krummenacher@toradex.com, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH v2 2/2] ARM: dts: imx: Add devicetree for Tolino Vison
Date: Mon, 27 Mar 2023 10:45:07 +0800 [thread overview]
Message-ID: <20230327024507.GG3364759@dragon> (raw)
In-Reply-To: <20230317081618.2387407-3-andreas@kemnade.info>
On Fri, Mar 17, 2023 at 09:16:18AM +0100, Andreas Kemnade wrote:
> 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
> - Backlight
>
> Signed-off-by: Andreas Kemnade <andreas@kemnade.info>
> ---
> 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
>
> diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
> index efe4152e5846..159363f46522 100644
> --- a/arch/arm/boot/dts/Makefile
> +++ b/arch/arm/boot/dts/Makefile
> @@ -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) += \
> diff --git a/arch/arm/boot/dts/imx6sl-tolino-vision.dts b/arch/arm/boot/dts/imx6sl-tolino-vision.dts
> new file mode 100644
> index 000000000000..035d1dea42c4
> --- /dev/null
> +++ b/arch/arm/boot/dts/imx6sl-tolino-vision.dts
> @@ -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";
> + 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
> + };
> +};
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2023-03-27 2:45 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-17 8:16 [PATCH v2 0/2] ARM: dts: Add Tolino Vision Andreas Kemnade
2023-03-17 8:16 ` Andreas Kemnade
2023-03-17 8:16 ` [PATCH v2 1/2] dt-bindings: arm: fsl: add compatible string for " Andreas Kemnade
2023-03-17 8:16 ` Andreas Kemnade
2023-03-17 9:16 ` Krzysztof Kozlowski
2023-03-17 9:16 ` Krzysztof Kozlowski
2023-03-17 8:16 ` [PATCH v2 2/2] ARM: dts: imx: Add devicetree for Tolino Vison Andreas Kemnade
2023-03-17 8:16 ` Andreas Kemnade
2023-03-27 2:45 ` Shawn Guo [this message]
2023-03-27 2:45 ` Shawn Guo
2023-03-17 9:16 ` [PATCH v2 0/2] ARM: dts: Add Tolino Vision Krzysztof Kozlowski
2023-03-17 9:16 ` Krzysztof Kozlowski
2023-03-17 16:47 ` Andreas Kemnade
2023-03-17 16:47 ` Andreas Kemnade
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230327024507.GG3364759@dragon \
--to=shawnguo@kernel.org \
--cc=andreas@kemnade.info \
--cc=arnd@arndb.de \
--cc=devicetree@vger.kernel.org \
--cc=festevam@gmail.com \
--cc=kernel@pengutronix.de \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-imx@nxp.com \
--cc=linux-kernel@vger.kernel.org \
--cc=marex@denx.de \
--cc=max.krummenacher@toradex.com \
--cc=olof@lixom.net \
--cc=robh+dt@kernel.org \
--cc=s.hauer@pengutronix.de \
--cc=soc@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.