* [PATCH 0/3] Add support for PocketBook Touch Lux 3 e-book reader
@ 2020-02-23 3:16 Ondrej Jirman
2020-02-23 3:16 ` [PATCH 1/3] dt-bindings: vendor-prefixes: Add prefix for PocketBook International SA Ondrej Jirman
` (3 more replies)
0 siblings, 4 replies; 7+ messages in thread
From: Ondrej Jirman @ 2020-02-23 3:16 UTC (permalink / raw)
To: linux-sunxi, Rob Herring, Maxime Ripard, Chen-Yu Tsai
Cc: Ondrej Jirman, Mark Rutland, Corentin Labbe, Sunil Mohan Adapa,
Sam Ravnborg, Heiko Stuebner, Stephan Gerhold, Mark Brown,
devicetree, linux-arm-kernel, linux-kernel
This series adds a fairly complete support for this e-book reader.
Missing parts are eink display driver and the touch panel driver.
Support for both is available out-of-tree for now at:
https://megous.com/git/linux/log/?h=pb-5.6
The rest of the board is supported by the mainline drivers.
Please take a look.
thank you and regards,
Ondrej Jirman
Ondrej Jirman (3):
dt-bindings: vendor-prefixes: Add prefix for PocketBook International
SA
dt-bindings: arm: sunxi: Add PocketBook Touch Lux 3
ARM: dts: sun5i: Add PocketBook Touch Lux 3 support
.../devicetree/bindings/arm/sunxi.yaml | 5 +
.../devicetree/bindings/vendor-prefixes.yaml | 2 +
arch/arm/boot/dts/Makefile | 1 +
.../dts/sun5i-a13-pocketbook-touch-lux-3.dts | 257 ++++++++++++++++++
4 files changed, 265 insertions(+)
create mode 100644 arch/arm/boot/dts/sun5i-a13-pocketbook-touch-lux-3.dts
--
2.25.1
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 1/3] dt-bindings: vendor-prefixes: Add prefix for PocketBook International SA
2020-02-23 3:16 [PATCH 0/3] Add support for PocketBook Touch Lux 3 e-book reader Ondrej Jirman
@ 2020-02-23 3:16 ` Ondrej Jirman
2020-02-24 9:17 ` Maxime Ripard
2020-02-26 22:25 ` Rob Herring
2020-02-23 3:16 ` [PATCH 2/3] dt-bindings: arm: sunxi: Add PocketBook Touch Lux 3 Ondrej Jirman
` (2 subsequent siblings)
3 siblings, 2 replies; 7+ messages in thread
From: Ondrej Jirman @ 2020-02-23 3:16 UTC (permalink / raw)
To: linux-sunxi, Rob Herring, Maxime Ripard, Chen-Yu Tsai
Cc: Ondrej Jirman, Mark Rutland, Corentin Labbe, Sunil Mohan Adapa,
Sam Ravnborg, Heiko Stuebner, Stephan Gerhold, Mark Brown,
devicetree, linux-arm-kernel, linux-kernel
Call it "pocketbook".
Signed-off-by: Ondrej Jirman <megous@megous.com>
---
Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-prefixes.yaml
index 9e67944bec9c6..434cf7de691d2 100644
--- a/Documentation/devicetree/bindings/vendor-prefixes.yaml
+++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml
@@ -761,6 +761,8 @@ patternProperties:
description: Broadcom Corporation (formerly PLX Technology)
"^pni,.*":
description: PNI Sensor Corporation
+ "^pocketbook,.*":
+ description: PocketBook International SA
"^polaroid,.*":
description: Polaroid Corporation
"^portwell,.*":
--
2.25.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 2/3] dt-bindings: arm: sunxi: Add PocketBook Touch Lux 3
2020-02-23 3:16 [PATCH 0/3] Add support for PocketBook Touch Lux 3 e-book reader Ondrej Jirman
2020-02-23 3:16 ` [PATCH 1/3] dt-bindings: vendor-prefixes: Add prefix for PocketBook International SA Ondrej Jirman
@ 2020-02-23 3:16 ` Ondrej Jirman
2020-02-23 3:16 ` [PATCH 3/3] ARM: dts: sun5i: Add PocketBook Touch Lux 3 support Ondrej Jirman
2020-02-24 9:18 ` [PATCH 0/3] Add support for PocketBook Touch Lux 3 e-book reader Maxime Ripard
3 siblings, 0 replies; 7+ messages in thread
From: Ondrej Jirman @ 2020-02-23 3:16 UTC (permalink / raw)
To: linux-sunxi, Rob Herring, Maxime Ripard, Chen-Yu Tsai
Cc: Ondrej Jirman, Mark Rutland, Corentin Labbe, Sunil Mohan Adapa,
Sam Ravnborg, Heiko Stuebner, Stephan Gerhold, Mark Brown,
devicetree, linux-arm-kernel, linux-kernel
Add a new board name.
Signed-off-by: Ondrej Jirman <megous@megous.com>
---
Documentation/devicetree/bindings/arm/sunxi.yaml | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/Documentation/devicetree/bindings/arm/sunxi.yaml b/Documentation/devicetree/bindings/arm/sunxi.yaml
index 327ce67308237..7c4be977be37f 100644
--- a/Documentation/devicetree/bindings/arm/sunxi.yaml
+++ b/Documentation/devicetree/bindings/arm/sunxi.yaml
@@ -647,6 +647,11 @@ properties:
- const: pineriver,mini-xplus
- const: allwinner,sun4i-a10
+ - description: PocketBook Touch Lux 3
+ items:
+ - const: pocketbook,touch-lux-3
+ - const: allwinner,sun5i-a13
+
- description: Point of View Protab2-IPS9
items:
- const: pov,protab2-ips9
--
2.25.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 3/3] ARM: dts: sun5i: Add PocketBook Touch Lux 3 support
2020-02-23 3:16 [PATCH 0/3] Add support for PocketBook Touch Lux 3 e-book reader Ondrej Jirman
2020-02-23 3:16 ` [PATCH 1/3] dt-bindings: vendor-prefixes: Add prefix for PocketBook International SA Ondrej Jirman
2020-02-23 3:16 ` [PATCH 2/3] dt-bindings: arm: sunxi: Add PocketBook Touch Lux 3 Ondrej Jirman
@ 2020-02-23 3:16 ` Ondrej Jirman
2020-02-24 9:18 ` [PATCH 0/3] Add support for PocketBook Touch Lux 3 e-book reader Maxime Ripard
3 siblings, 0 replies; 7+ messages in thread
From: Ondrej Jirman @ 2020-02-23 3:16 UTC (permalink / raw)
To: linux-sunxi, Rob Herring, Maxime Ripard, Chen-Yu Tsai
Cc: Ondrej Jirman, Mark Rutland, Corentin Labbe, Sunil Mohan Adapa,
Sam Ravnborg, Heiko Stuebner, Stephan Gerhold, Mark Brown,
devicetree, linux-arm-kernel, linux-kernel
What works:
- Serial console
- mmc0, mmc2 (both microSD card slots on the board)
- All buttons (gpio and lradc based)
- Power LED
- PMIC
- RTC
- USB OTG/gadgets mode
- Realtek USB WiFi
- Display backlight
- eInk display SPI NOR flash memory
Signed-off-by: Ondrej Jirman <megous@megous.com>
---
arch/arm/boot/dts/Makefile | 1 +
.../dts/sun5i-a13-pocketbook-touch-lux-3.dts | 257 ++++++++++++++++++
2 files changed, 258 insertions(+)
create mode 100644 arch/arm/boot/dts/sun5i-a13-pocketbook-touch-lux-3.dts
diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index d6546d2676b9d..ef732a31e4352 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -1056,6 +1056,7 @@ dtb-$(CONFIG_MACH_SUN5I) += \
sun5i-a13-licheepi-one.dtb \
sun5i-a13-olinuxino.dtb \
sun5i-a13-olinuxino-micro.dtb \
+ sun5i-a13-pocketbook-touch-lux-3.dtb \
sun5i-a13-q8-tablet.dtb \
sun5i-a13-utoo-p66.dtb \
sun5i-gr8-chip-pro.dtb \
diff --git a/arch/arm/boot/dts/sun5i-a13-pocketbook-touch-lux-3.dts b/arch/arm/boot/dts/sun5i-a13-pocketbook-touch-lux-3.dts
new file mode 100644
index 0000000000000..e9ef97c9c893b
--- /dev/null
+++ b/arch/arm/boot/dts/sun5i-a13-pocketbook-touch-lux-3.dts
@@ -0,0 +1,257 @@
+// SPDX-License-Identifier: GPL-2.0 OR MIT
+/*
+ * Copyright 2019 Ondrej Jirman <megous@megous.com>
+ */
+
+/dts-v1/;
+#include "sun5i-a13.dtsi"
+#include "sunxi-common-regulators.dtsi"
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+#include <dt-bindings/interrupt-controller/irq.h>
+#include <dt-bindings/pwm/pwm.h>
+
+/ {
+ model = "PocketBook Touch Lux 3";
+ compatible = "pocketbook,touch-lux-3", "allwinner,sun5i-a13";
+
+ aliases {
+ serial0 = &uart1;
+ i2c0 = &i2c0;
+ i2c1 = &i2c1;
+ i2c2 = &i2c2;
+ };
+
+ backlight {
+ compatible = "pwm-backlight";
+ pwms = <&pwm 0 50000 PWM_POLARITY_INVERTED>;
+ enable-gpios = <&pio 1 4 GPIO_ACTIVE_HIGH>; /* PB4 */
+ brightness-levels = <0 10 20 30 40 50 60 70 80 90 100>;
+ default-brightness-level = <8>;
+ };
+
+ chosen {
+ stdout-path = "serial0:115200n8";
+ };
+
+ leds {
+ compatible = "gpio-leds";
+
+ power {
+ gpios = <&pio 4 8 GPIO_ACTIVE_LOW>; /* PE8 */
+ default-state = "on";
+ };
+ };
+
+ gpio-keys {
+ compatible = "gpio-keys";
+ autorepeat;
+ label = "GPIO Keys";
+
+ key-right {
+ label = "Right";
+ linux,code = <KEY_RIGHT>;
+ gpios = <&pio 6 9 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; /* PG9 */
+ };
+
+ key-left {
+ label = "Left";
+ linux,code = <KEY_LEFT>;
+ gpios = <&pio 6 10 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; /* PG10 */
+ };
+ };
+
+ reg_1v8: regulator-1v8 {
+ compatible = "regulator-fixed";
+ regulator-name = "vdd-1v8-nor-ctp";
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <1800000>;
+ gpio = <&pio 2 15 GPIO_ACTIVE_HIGH>;
+ enable-active-high;
+ };
+
+ reg_1v8_nor: regulator-nor {
+ compatible = "regulator-fixed";
+ regulator-name = "vdd-nor";
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <1800000>;
+ gpio = <&pio 2 14 GPIO_ACTIVE_HIGH>;
+ enable-active-high;
+ vin-supply = <®_1v8>;
+ regulator-always-on;
+ };
+
+ reg_1v8_ctp: regulator-ctp {
+ compatible = "regulator-fixed";
+ regulator-name = "vdd-ctp";
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <1800000>;
+ gpio = <&pio 2 13 GPIO_ACTIVE_HIGH>;
+ enable-active-high;
+ vin-supply = <®_1v8>;
+ };
+
+ reg_3v3_mmc0: regulator-mmc0 {
+ compatible = "regulator-fixed";
+ regulator-name = "vdd-mmc0";
+ regulator-min-microvolt = <3300000>;
+ regulator-max-microvolt = <3300000>;
+ gpio = <&pio 4 4 GPIO_ACTIVE_LOW>; /* PE4 */
+ vin-supply = <®_vcc3v3>;
+ };
+};
+
+&cpu0 {
+ cpu-supply = <®_dcdc2>;
+};
+
+&ehci0 {
+ status = "okay";
+};
+
+&i2c0 {
+ status = "okay";
+
+ axp209: pmic@34 {
+ reg = <0x34>;
+ interrupts = <0>;
+ };
+};
+
+#include "axp209.dtsi"
+
+&i2c1 {
+ status = "okay";
+
+ pcf8563: rtc@51 {
+ compatible = "nxp,pcf8563";
+ reg = <0x51>;
+ };
+};
+
+&i2c2 {
+ status = "okay";
+
+ /* Touchpanel is connected here. */
+};
+
+&lradc {
+ vref-supply = <®_ldo2>;
+ status = "okay";
+
+ button-200 {
+ label = "Home";
+ linux,code = <KEY_HOME>;
+ channel = <0>;
+ voltage = <200000>;
+ };
+
+ button-400 {
+ label = "Menu";
+ linux,code = <KEY_MENU>;
+ channel = <0>;
+ voltage = <400000>;
+ };
+};
+
+&mmc0 {
+ vmmc-supply = <®_3v3_mmc0>;
+ bus-width = <4>;
+ cd-gpios = <&pio 6 0 GPIO_ACTIVE_LOW>; /* PG0 */
+ status = "okay";
+};
+
+&mmc2 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&mmc2_4bit_pc_pins>;
+ vmmc-supply = <®_vcc3v3>;
+ bus-width = <4>;
+ non-removable;
+ status = "okay";
+};
+
+&ohci0 {
+ status = "okay";
+};
+
+&otg_sram {
+ status = "okay";
+};
+
+&pwm {
+ pinctrl-names = "default";
+ pinctrl-0 = <&pwm0_pin>;
+ status = "okay";
+};
+
+®_dcdc2 {
+ regulator-always-on;
+ regulator-min-microvolt = <1000000>;
+ regulator-max-microvolt = <1400000>;
+ regulator-name = "vdd-cpu";
+};
+
+®_dcdc3 {
+ regulator-always-on;
+ regulator-min-microvolt = <1200000>;
+ regulator-max-microvolt = <1200000>;
+ regulator-name = "vdd-int-pll";
+};
+
+®_ldo1 {
+ regulator-name = "vdd-rtc";
+};
+
+®_ldo2 {
+ regulator-always-on;
+ regulator-min-microvolt = <3000000>;
+ regulator-max-microvolt = <3000000>;
+ regulator-name = "avcc";
+};
+
+®_ldo3 {
+ regulator-min-microvolt = <3300000>;
+ regulator-max-microvolt = <3300000>;
+ regulator-name = "vcc-wifi";
+ /* We need this otherwise the LDO3 would overload */
+ regulator-soft-start;
+ regulator-ramp-delay = <1600>;
+};
+
+&spi2 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&spi2_pe_pins>, <&spi2_cs0_pe_pin>;
+ status = "okay";
+
+ epd_flash: flash@0 {
+ #address-cells = <1>;
+ #size-cells = <1>;
+ compatible = "macronix,mx25u4033", "jedec,spi-nor";
+ reg = <0>;
+ spi-max-frequency = <4000000>;
+ };
+};
+
+&uart1 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&uart1_pg_pins>;
+ status = "okay";
+};
+
+&usb_otg {
+ dr_mode = "peripheral";
+ status = "okay";
+};
+
+&battery_power_supply {
+ status = "okay";
+};
+
+&usb_power_supply {
+ status = "okay";
+};
+
+&usbphy {
+ usb1_vbus-supply = <®_ldo3>;
+ status = "okay";
+};
--
2.25.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH 1/3] dt-bindings: vendor-prefixes: Add prefix for PocketBook International SA
2020-02-23 3:16 ` [PATCH 1/3] dt-bindings: vendor-prefixes: Add prefix for PocketBook International SA Ondrej Jirman
@ 2020-02-24 9:17 ` Maxime Ripard
2020-02-26 22:25 ` Rob Herring
1 sibling, 0 replies; 7+ messages in thread
From: Maxime Ripard @ 2020-02-24 9:17 UTC (permalink / raw)
To: Ondrej Jirman
Cc: linux-sunxi, Rob Herring, Chen-Yu Tsai, Mark Rutland,
Corentin Labbe, Sunil Mohan Adapa, Sam Ravnborg, Heiko Stuebner,
Stephan Gerhold, Mark Brown, devicetree, linux-arm-kernel,
linux-kernel
[-- Attachment #1: Type: text/plain, Size: 203 bytes --]
On Sun, Feb 23, 2020 at 04:16:12AM +0100, Ondrej Jirman wrote:
> Call it "pocketbook".
>
> Signed-off-by: Ondrej Jirman <megous@megous.com>
Acked-by: Maxime Ripard <mripard@kernel.org>
Thanks!
Maxime
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 0/3] Add support for PocketBook Touch Lux 3 e-book reader
2020-02-23 3:16 [PATCH 0/3] Add support for PocketBook Touch Lux 3 e-book reader Ondrej Jirman
` (2 preceding siblings ...)
2020-02-23 3:16 ` [PATCH 3/3] ARM: dts: sun5i: Add PocketBook Touch Lux 3 support Ondrej Jirman
@ 2020-02-24 9:18 ` Maxime Ripard
3 siblings, 0 replies; 7+ messages in thread
From: Maxime Ripard @ 2020-02-24 9:18 UTC (permalink / raw)
To: Ondrej Jirman
Cc: linux-sunxi, Rob Herring, Chen-Yu Tsai, Mark Rutland,
Corentin Labbe, Sunil Mohan Adapa, Sam Ravnborg, Heiko Stuebner,
Stephan Gerhold, Mark Brown, devicetree, linux-arm-kernel,
linux-kernel
[-- Attachment #1: Type: text/plain, Size: 426 bytes --]
On Sun, Feb 23, 2020 at 04:16:11AM +0100, Ondrej Jirman wrote:
> This series adds a fairly complete support for this e-book reader.
>
> Missing parts are eink display driver and the touch panel driver.
> Support for both is available out-of-tree for now at:
> https://megous.com/git/linux/log/?h=pb-5.6
>
> The rest of the board is supported by the mainline drivers.
>
> Please take a look.
Applied 2 and 3, thanks!
Maxime
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/3] dt-bindings: vendor-prefixes: Add prefix for PocketBook International SA
2020-02-23 3:16 ` [PATCH 1/3] dt-bindings: vendor-prefixes: Add prefix for PocketBook International SA Ondrej Jirman
2020-02-24 9:17 ` Maxime Ripard
@ 2020-02-26 22:25 ` Rob Herring
1 sibling, 0 replies; 7+ messages in thread
From: Rob Herring @ 2020-02-26 22:25 UTC (permalink / raw)
To: Ondrej Jirman
Cc: linux-sunxi, Chen-Yu Tsai, Ondrej Jirman, Mark Rutland,
Corentin Labbe, Sunil Mohan Adapa, Sam Ravnborg, Heiko Stuebner,
Stephan Gerhold, Mark Brown, devicetree, linux-arm-kernel,
linux-kernel
On Sun, 23 Feb 2020 04:16:12 +0100, Ondrej Jirman wrote:
> Call it "pocketbook".
>
> Signed-off-by: Ondrej Jirman <megous@megous.com>
> ---
> Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++
> 1 file changed, 2 insertions(+)
>
Applied, thanks.
Rob
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2020-02-26 22:26 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-23 3:16 [PATCH 0/3] Add support for PocketBook Touch Lux 3 e-book reader Ondrej Jirman
2020-02-23 3:16 ` [PATCH 1/3] dt-bindings: vendor-prefixes: Add prefix for PocketBook International SA Ondrej Jirman
2020-02-24 9:17 ` Maxime Ripard
2020-02-26 22:25 ` Rob Herring
2020-02-23 3:16 ` [PATCH 2/3] dt-bindings: arm: sunxi: Add PocketBook Touch Lux 3 Ondrej Jirman
2020-02-23 3:16 ` [PATCH 3/3] ARM: dts: sun5i: Add PocketBook Touch Lux 3 support Ondrej Jirman
2020-02-24 9:18 ` [PATCH 0/3] Add support for PocketBook Touch Lux 3 e-book reader Maxime Ripard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).