main/linux-postmarketos-allwinner: add lark-freeme-70-2s device tree and LCD panel (MR 2040)
also enables Domintech DMARD06 accelerometer and X-Powers AXP20X PMU pinctl driver
This commit is contained in:
parent
ab59db10e7
commit
34b1b44046
4 changed files with 343 additions and 4 deletions
|
@ -0,0 +1,57 @@
|
|||
From 0ed69e3cc6d9757a69f1afba385ea2c563849448 Mon Sep 17 00:00:00 2001
|
||||
From: JuniorJPDJ <git@juniorjpdj.pl>
|
||||
Date: Thu, 25 Mar 2021 19:11:22 +0100
|
||||
Subject: [PATCH] drm: panel: simple: Add Hannstar HSD070IDW1-A
|
||||
|
||||
---
|
||||
drivers/gpu/drm/panel/panel-simple.c | 27 +++++++++++++++++++++++++++
|
||||
1 file changed, 27 insertions(+)
|
||||
|
||||
diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
|
||||
index e1cc84359fff..453d9f7f8d6f 100644
|
||||
--- a/drivers/gpu/drm/panel/panel-simple.c
|
||||
+++ b/drivers/gpu/drm/panel/panel-simple.c
|
||||
@@ -1990,6 +1990,30 @@ static const struct panel_desc giantplus_gpm940b0 = {
|
||||
.bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_POSEDGE,
|
||||
};
|
||||
|
||||
+static const struct drm_display_mode hannstar_hsd070idw1_a_mode = {
|
||||
+ .clock = 33000,
|
||||
+ .hdisplay = 800,
|
||||
+ .hsync_start = 800 + 40,
|
||||
+ .hsync_end = 800 + 40 + 1,
|
||||
+ .htotal = 800 + 40 + 1 + 87,
|
||||
+ .vdisplay = 480,
|
||||
+ .vsync_start = 480 + 13,
|
||||
+ .vsync_end = 480 + 13 + 1,
|
||||
+ .vtotal = 480 + 13 + 1 + 31,
|
||||
+};
|
||||
+
|
||||
+static const struct panel_desc hannstar_hsd070idw1_a = {
|
||||
+ .modes = &hannstar_hsd070idw1_a_mode,
|
||||
+ .num_modes = 1,
|
||||
+ .bpc = 6,
|
||||
+ .size = {
|
||||
+ .width = 154,
|
||||
+ .height = 87,
|
||||
+ },
|
||||
+ .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
|
||||
+ .connector_type = DRM_MODE_CONNECTOR_DPI,
|
||||
+};
|
||||
+
|
||||
static const struct display_timing hannstar_hsd070pww1_timing = {
|
||||
.pixelclock = { 64300000, 71100000, 82000000 },
|
||||
.hactive = { 1280, 1280, 1280 },
|
||||
@@ -4141,6 +4165,9 @@ static const struct of_device_id platform_of_match[] = {
|
||||
}, {
|
||||
.compatible = "giantplus,gpm940b0",
|
||||
.data = &giantplus_gpm940b0,
|
||||
+ }, {
|
||||
+ .compatible = "hannstar,hsd070idw1-a",
|
||||
+ .data = &hannstar_hsd070idw1_a,
|
||||
}, {
|
||||
.compatible = "hannstar,hsd070pww1",
|
||||
.data = &hannstar_hsd070pww1,
|
||||
--
|
||||
2.31.0
|
||||
|
|
@ -0,0 +1,278 @@
|
|||
From e17eb4a726941f30565f245b2c22da4a3c542556 Mon Sep 17 00:00:00 2001
|
||||
From: JuniorJPDJ <git@juniorjpdj.pl>
|
||||
Date: Thu, 25 Mar 2021 19:18:58 +0100
|
||||
Subject: [PATCH] ARM: dts: sun6i: Add Lark FreeMe 70.2S tablet
|
||||
|
||||
---
|
||||
arch/arm/boot/dts/Makefile | 1 +
|
||||
.../boot/dts/sun4i-a10-lark-freeme-70-2s.dts | 246 ++++++++++++++++++
|
||||
2 files changed, 247 insertions(+)
|
||||
create mode 100644 arch/arm/boot/dts/sun4i-a10-lark-freeme-70-2s.dts
|
||||
|
||||
diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
|
||||
index c402f2f7e2a1..f9beb8fde5bb 100644
|
||||
--- a/arch/arm/boot/dts/Makefile
|
||||
+++ b/arch/arm/boot/dts/Makefile
|
||||
@@ -1096,6 +1096,7 @@ dtb-$(CONFIG_MACH_SUN4I) += \
|
||||
sun4i-a10-inet9f-rev03.dtb \
|
||||
sun4i-a10-itead-iteaduino-plus.dtb \
|
||||
sun4i-a10-jesurun-q5.dtb \
|
||||
+ sun4i-a10-lark-freeme-70-2s.dtb \
|
||||
sun4i-a10-marsboard.dtb \
|
||||
sun4i-a10-mini-xplus.dtb \
|
||||
sun4i-a10-mk802.dtb \
|
||||
diff --git a/arch/arm/boot/dts/sun4i-a10-lark-freeme-70-2s.dts b/arch/arm/boot/dts/sun4i-a10-lark-freeme-70-2s.dts
|
||||
new file mode 100644
|
||||
index 000000000000..fcba874976fa
|
||||
--- /dev/null
|
||||
+++ b/arch/arm/boot/dts/sun4i-a10-lark-freeme-70-2s.dts
|
||||
@@ -0,0 +1,246 @@
|
||||
+// SPDX-License-Identifier: (GPL-2.0+ OR X11)
|
||||
+// Copyright 2021 Jacek Pruciak <linux@juniorjpdj.pl>
|
||||
+// Copyright 2020 Adam Słaboń <asaillen456esx@gmail.com>
|
||||
+// Copyright 2015 Hans de Goede <hdegoede@redhat.com>
|
||||
+
|
||||
+/dts-v1/;
|
||||
+#include "sun4i-a10.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 = "Lark FreeMe 70.2S";
|
||||
+ compatible = "lark,freeme-70-2s", "allwinner,sun4i-a10";
|
||||
+
|
||||
+ aliases {
|
||||
+ serial0 = &uart0;
|
||||
+ };
|
||||
+
|
||||
+ chosen {
|
||||
+ stdout-path = "serial0:115200n8";
|
||||
+ };
|
||||
+
|
||||
+ hdmi-connector {
|
||||
+ compatible = "hdmi-connector";
|
||||
+ type = "c";
|
||||
+
|
||||
+ port {
|
||||
+ hdmi_con_in: endpoint {
|
||||
+ remote-endpoint = <&hdmi_out_con>;
|
||||
+ };
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+ backlight: backlight {
|
||||
+ compatible = "pwm-backlight";
|
||||
+ pwms = <&pwm 0 50000 PWM_POLARITY_INVERTED>;
|
||||
+ brightness-levels = <0 10 20 30 40 50 60 70 80 90 100>;
|
||||
+ default-brightness-level = <8>;
|
||||
+ enable-gpios = <&pio 7 7 GPIO_ACTIVE_HIGH>; /* PH7 */
|
||||
+ };
|
||||
+
|
||||
+ panel: panel {
|
||||
+ compatible = "hannstar,hsd070idw1-a";
|
||||
+ power-supply = <®_vcc3v3>;
|
||||
+ enable-gpios = <&pio 7 8 GPIO_ACTIVE_HIGH>; /* PH8 */
|
||||
+ backlight = <&backlight>;
|
||||
+
|
||||
+ port {
|
||||
+ panel_input: endpoint {
|
||||
+ remote-endpoint = <&tcon0_out_lcd>;
|
||||
+ };
|
||||
+ };
|
||||
+ };
|
||||
+};
|
||||
+
|
||||
+&tcon0 {
|
||||
+ pinctrl-names = "default";
|
||||
+ pinctrl-0 = <&lcd_rgb666_pins>;
|
||||
+ status = "okay";
|
||||
+};
|
||||
+
|
||||
+&tcon0_out {
|
||||
+ tcon0_out_lcd: endpoint@0 {
|
||||
+ reg = <0>;
|
||||
+ remote-endpoint = <&panel_input>;
|
||||
+ };
|
||||
+};
|
||||
+
|
||||
+&pio {
|
||||
+ lcd_rgb666_pins: lcd-rgb666-pins {
|
||||
+ pins = "PD2", "PD3", "PD4", "PD5", "PD6", "PD7",
|
||||
+ "PD10", "PD11", "PD12", "PD13", "PD14", "PD15",
|
||||
+ "PD18", "PD19", "PD20", "PD21", "PD22", "PD23",
|
||||
+ "PD24", "PD25", "PD26", "PD27";
|
||||
+ function = "lcd0";
|
||||
+ };
|
||||
+};
|
||||
+
|
||||
+&pwm {
|
||||
+ pinctrl-names = "default";
|
||||
+ pinctrl-0 = <&pwm0_pin>;
|
||||
+ status = "okay";
|
||||
+};
|
||||
+
|
||||
+&ehci1 {
|
||||
+ /* WiFi card */
|
||||
+ status = "okay";
|
||||
+};
|
||||
+
|
||||
+&ohci0 {
|
||||
+ /* Full USB port - USB1.1 */
|
||||
+ status = "okay";
|
||||
+};
|
||||
+
|
||||
+&ehci0 {
|
||||
+ /* Full USB port - USB2 */
|
||||
+ status = "okay";
|
||||
+};
|
||||
+
|
||||
+&i2c0 {
|
||||
+ status = "okay";
|
||||
+
|
||||
+ axp209: pmic@34 {
|
||||
+ reg = <0x34>;
|
||||
+ interrupts = <0>;
|
||||
+ };
|
||||
+};
|
||||
+
|
||||
+&i2c1 {
|
||||
+ status = "okay";
|
||||
+
|
||||
+ accelerometer@1c {
|
||||
+ compatible = "domintech,dmard06";
|
||||
+ reg = <0x1c>;
|
||||
+ };
|
||||
+};
|
||||
+
|
||||
+#include "axp209.dtsi"
|
||||
+
|
||||
+®_dcdc2 {
|
||||
+ regulator-always-on;
|
||||
+ regulator-min-microvolt = <1000000>;
|
||||
+ regulator-max-microvolt = <1400000>;
|
||||
+ regulator-name = "vdd-cpu";
|
||||
+};
|
||||
+
|
||||
+®_dcdc3 {
|
||||
+ regulator-always-on;
|
||||
+ regulator-min-microvolt = <1000000>;
|
||||
+ regulator-max-microvolt = <1400000>;
|
||||
+ regulator-name = "vdd-int-dll";
|
||||
+};
|
||||
+
|
||||
+®_ldo1 {
|
||||
+ regulator-name = "vdd-rtc";
|
||||
+};
|
||||
+
|
||||
+®_ldo2 {
|
||||
+ regulator-always-on;
|
||||
+ regulator-min-microvolt = <3000000>;
|
||||
+ regulator-max-microvolt = <3000000>;
|
||||
+ regulator-name = "avcc";
|
||||
+};
|
||||
+
|
||||
+&ac_power_supply {
|
||||
+ status = "okay";
|
||||
+};
|
||||
+
|
||||
+&battery_power_supply {
|
||||
+ status = "okay";
|
||||
+};
|
||||
+
|
||||
+&usb_power_supply {
|
||||
+ status = "okay";
|
||||
+};
|
||||
+
|
||||
+&i2c1 {
|
||||
+ status = "okay";
|
||||
+};
|
||||
+
|
||||
+&lradc {
|
||||
+ vref-supply = <®_vcc3v0>;
|
||||
+ status = "okay";
|
||||
+
|
||||
+ button-400 {
|
||||
+ label = "Key Esc";
|
||||
+ linux,code = <KEY_ESC>;
|
||||
+ channel = <0>;
|
||||
+ voltage = <400000>;
|
||||
+ };
|
||||
+
|
||||
+ button-800 {
|
||||
+ label = "Key Menu";
|
||||
+ linux,code = <KEY_MENU>;
|
||||
+ channel = <0>;
|
||||
+ voltage = <800000>;
|
||||
+ };
|
||||
+};
|
||||
+
|
||||
+&mmc0 {
|
||||
+ vmmc-supply = <®_vcc3v3>;
|
||||
+ bus-width = <4>;
|
||||
+ cd-gpios = <&pio 7 1 GPIO_ACTIVE_LOW>; /* PH1 */
|
||||
+ status = "okay";
|
||||
+};
|
||||
+
|
||||
+&otg_sram {
|
||||
+ status = "okay";
|
||||
+};
|
||||
+
|
||||
+®_usb0_vbus {
|
||||
+ status = "okay";
|
||||
+};
|
||||
+
|
||||
+®_usb1_vbus {
|
||||
+ status = "okay";
|
||||
+};
|
||||
+
|
||||
+®_usb2_vbus {
|
||||
+ /* WiFi */
|
||||
+ gpio = <&pio 7 12 GPIO_ACTIVE_HIGH>; /* PH12 */
|
||||
+ status = "okay";
|
||||
+};
|
||||
+
|
||||
+&uart0 {
|
||||
+ pinctrl-names = "default";
|
||||
+ pinctrl-0 = <&uart0_pb_pins>;
|
||||
+ status = "okay";
|
||||
+};
|
||||
+
|
||||
+&usb_otg {
|
||||
+ dr_mode = "otg";
|
||||
+ status = "okay";
|
||||
+};
|
||||
+
|
||||
+&codec {
|
||||
+ allwinner,pa-gpios = <&pio 7 15 GPIO_ACTIVE_HIGH>; /* PH15 */
|
||||
+ status = "okay";
|
||||
+};
|
||||
+
|
||||
+&de {
|
||||
+ status = "okay";
|
||||
+};
|
||||
+
|
||||
+&hdmi {
|
||||
+ status = "okay";
|
||||
+};
|
||||
+
|
||||
+&hdmi_out {
|
||||
+ hdmi_out_con: endpoint {
|
||||
+ remote-endpoint = <&hdmi_con_in>;
|
||||
+ };
|
||||
+};
|
||||
+
|
||||
+&usbphy {
|
||||
+ usb0_id_det-gpios = <&pio 7 4 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>; /* PH4 */
|
||||
+ usb0_vbus_det-gpios = <&pio 7 5 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>; /* PH5 */
|
||||
+ usb0_vbus_power-supply = <&usb_power_supply>;
|
||||
+ usb0_vbus-supply = <®_usb0_vbus>;
|
||||
+ usb1_vbus-supply = <®_usb1_vbus>;
|
||||
+ usb2_vbus-supply = <®_usb2_vbus>;
|
||||
+ status = "okay";
|
||||
+};
|
||||
--
|
||||
2.31.0
|
||||
|
|
@ -45,6 +45,8 @@ source="$pkgname-$_tag.tar.gz::https://github.com/megous/linux/archive/$_tag.tar
|
|||
0012-pinephone-fix-pogopin-i2c.patch
|
||||
0013-drm-panel-simple-Add-Hannstar-TQTM070CB501.patch
|
||||
0014-ARM-dts-sun6i-Add-GoClever-Orion-70L-tablet.patch
|
||||
0015-drm-panel-simple-Add-Hannstar-HSD070IDW1-A.patch
|
||||
0016-ARM-dts-sun6i-Add-Lark-FreeMe-70.2S-tablet.patch
|
||||
"
|
||||
subpackages="$pkgname-dev"
|
||||
builddir="$srcdir/linux-$_tag"
|
||||
|
@ -93,7 +95,7 @@ dev() {
|
|||
|
||||
sha512sums="a57b8c168403c33ead5a1c963f60dc56add6233fa79496d8b97459c3003396708477b2f7888c9845e7a140d79397c7fc1ac726da2ca2104ca717207e387a28da linux-postmarketos-allwinner-orange-pi-5.11-20210325-1125.tar.gz
|
||||
2b632c867004f4f6bfa93cf7e2f0b04f63c8aabec2e6d1893e50f975f5c64d8301479080d950ada6e5e3f83ab08dfae644bdb98a20038ec672af92777d6ded96 config-postmarketos-allwinner.aarch64
|
||||
25ae90aa00ba38f24da8827a8c14675b1fc09a5128aba92b89e3dcc2f71b28f8f426db30e9c352b783f36d933e93c8d1522b33e6c08bd7becd2d2420fd326557 config-postmarketos-allwinner.armv7
|
||||
3c222d5dd76f408e8a8122b5028a7e07431c9c2f02afc7ba76272b2d33f5b3be1df08ff80256b717d9c249abb52f237e086e250da215a5b0c854ddd45172ed03 config-postmarketos-allwinner.armv7
|
||||
b174532e356dcb2144c2629c1747dcb0026a40aa8e4deca5bde67344d271e519ff90f6fa287633b1dec857855331e4aa1d1bd5fd0d73044309f98e8d829e2be0 0001-dts-add-dontbeevil-pinephone-devkit.patch
|
||||
898e5e6dbdfa5b2f2154818bf006f2ae4d162a246c58dab5c43534e7630a35faf48ba74f6d2493d7500ad956a0e71c0b85ca9d7a51044c21d7d87b6f27b055f5 0002-dts-add-pinetab-dev-old-display-panel.patch
|
||||
55f8bc826d7958d8fd16c59663746529be80daacdca9425e5678ee175bf0b93e4c1e0d2b5878ee58b488dde7eb7a05e438ec16c97c4298d3f272957a5caf183d 0003-dts-pinetab-add-missing-bma223-ohci1.patch
|
||||
|
@ -107,4 +109,6 @@ e9cfb545c216c061da243b0eeb2169ff11e80898270a87f432cec937057d585313109d4ae9487a66
|
|||
789ae2e405f00e897c357427c587cb7a4a3d3a68b77b9700fb6f6a67d92314fcf75f2ad8b65c0d046215bb7bd5fcf65e4e8e31748170ed595bef1ba3010dd0bf 0011-dts-pinephone-jack-detection.patch
|
||||
611bab79b36ee3a9ff8504fa5c56964a0ff1bcd65eacc692d8d991a9bc300e2b16c6d69f4bcad3a35315e848653c2969a985446c385081f019d3e4e74521f42c 0012-pinephone-fix-pogopin-i2c.patch
|
||||
59f3da8cf071b2a26121dc4d84c3500e75a2d811067f514e7766fcacbef4ad469f7b89fe181098ae4f23eb39e0b60e1a071db58628c6b64b3e5e475504b2fd81 0013-drm-panel-simple-Add-Hannstar-TQTM070CB501.patch
|
||||
cccc8e833cd2cd94a6dd79a287c81e4f5d8ad41876bc695afb44f241cdb609696466381adc135535e4db78a742c05181f2e29b6e750850f02241cac442dcdcd6 0014-ARM-dts-sun6i-Add-GoClever-Orion-70L-tablet.patch"
|
||||
cccc8e833cd2cd94a6dd79a287c81e4f5d8ad41876bc695afb44f241cdb609696466381adc135535e4db78a742c05181f2e29b6e750850f02241cac442dcdcd6 0014-ARM-dts-sun6i-Add-GoClever-Orion-70L-tablet.patch
|
||||
59a508c9d4f3cfc68a7c2d9ce0fffcf5b4d213631f5909384719d2a1a5be7774c7aa971de404d8f4dafe4f0aa09f22a82688ca446226342a942715d511e14008 0015-drm-panel-simple-Add-Hannstar-HSD070IDW1-A.patch
|
||||
9159c63ce65d2c7d9741ca65bd3e67ceaf95d4836d380660e4283fc8c0423e6e754e1d4d5c0b07ba9517e4072bc07ea39a6b4198ecfa00efb656617bcae68c9c 0016-ARM-dts-sun6i-Add-Lark-FreeMe-70.2S-tablet.patch"
|
||||
|
|
|
@ -2136,7 +2136,7 @@ CONFIG_PINCTRL=y
|
|||
CONFIG_PINMUX=y
|
||||
CONFIG_PINCONF=y
|
||||
CONFIG_GENERIC_PINCONF=y
|
||||
# CONFIG_PINCTRL_AXP209 is not set
|
||||
CONFIG_PINCTRL_AXP209=y
|
||||
# CONFIG_PINCTRL_MCP23S08 is not set
|
||||
# CONFIG_PINCTRL_SINGLE is not set
|
||||
# CONFIG_PINCTRL_SX150X is not set
|
||||
|
@ -4263,7 +4263,7 @@ CONFIG_IIO=y
|
|||
# CONFIG_BMC150_ACCEL is not set
|
||||
# CONFIG_DA280 is not set
|
||||
# CONFIG_DA311 is not set
|
||||
# CONFIG_DMARD06 is not set
|
||||
CONFIG_DMARD06=m
|
||||
# CONFIG_DMARD09 is not set
|
||||
# CONFIG_DMARD10 is not set
|
||||
# CONFIG_IIO_ST_ACCEL_3AXIS is not set
|
||||
|
|
Loading…
Reference in a new issue