* [PATCH 1/3] dt-bindings: display: simple: add support for Samsung LTL101AL01
@ 2022-05-16 19:37 ` Martin Jücker
0 siblings, 0 replies; 21+ messages in thread
From: Martin Jücker @ 2022-05-16 19:37 UTC (permalink / raw)
To: linux-samsung-soc
Cc: linux-arm-kernel, linux-kernel, devicetree, dri-devel,
Alim Akhtar, Krzysztof Kozlowski, Rob Herring, Daniel Vetter,
David Airlie, Sam Ravnborg, Thierry Reding, Martin Jücker
Add the Samsung LTL101AL01 WXGA LCD panel to the list.
Signed-off-by: Martin Jücker <martin.juecker@gmail.com>
---
.../devicetree/bindings/display/panel/panel-simple.yaml | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Documentation/devicetree/bindings/display/panel/panel-simple.yaml b/Documentation/devicetree/bindings/display/panel/panel-simple.yaml
index 1eb9dd4f8f58..9501b5a3c011 100644
--- a/Documentation/devicetree/bindings/display/panel/panel-simple.yaml
+++ b/Documentation/devicetree/bindings/display/panel/panel-simple.yaml
@@ -270,6 +270,8 @@ properties:
- samsung,atna33xc20
# Samsung 12.2" (2560x1600 pixels) TFT LCD panel
- samsung,lsn122dl01-c01
+ # Samsung Electronics 10.1" WXGA (1280x800) TFT LCD panel
+ - samsung,ltl101al01
# Samsung Electronics 10.1" WSVGA TFT LCD panel
- samsung,ltn101nt05
# Samsung Electronics 14" WXGA (1366x768) TFT LCD panel
--
2.25.1
^ permalink raw reply related [flat|nested] 21+ messages in thread
* [PATCH 1/3] dt-bindings: display: simple: add support for Samsung LTL101AL01
@ 2022-05-16 19:37 ` Martin Jücker
0 siblings, 0 replies; 21+ messages in thread
From: Martin Jücker @ 2022-05-16 19:37 UTC (permalink / raw)
To: linux-samsung-soc
Cc: linux-arm-kernel, linux-kernel, devicetree, dri-devel,
Alim Akhtar, Krzysztof Kozlowski, Rob Herring, Daniel Vetter,
David Airlie, Sam Ravnborg, Thierry Reding, Martin Jücker
Add the Samsung LTL101AL01 WXGA LCD panel to the list.
Signed-off-by: Martin Jücker <martin.juecker@gmail.com>
---
.../devicetree/bindings/display/panel/panel-simple.yaml | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Documentation/devicetree/bindings/display/panel/panel-simple.yaml b/Documentation/devicetree/bindings/display/panel/panel-simple.yaml
index 1eb9dd4f8f58..9501b5a3c011 100644
--- a/Documentation/devicetree/bindings/display/panel/panel-simple.yaml
+++ b/Documentation/devicetree/bindings/display/panel/panel-simple.yaml
@@ -270,6 +270,8 @@ properties:
- samsung,atna33xc20
# Samsung 12.2" (2560x1600 pixels) TFT LCD panel
- samsung,lsn122dl01-c01
+ # Samsung Electronics 10.1" WXGA (1280x800) TFT LCD panel
+ - samsung,ltl101al01
# Samsung Electronics 10.1" WSVGA TFT LCD panel
- samsung,ltn101nt05
# Samsung Electronics 14" WXGA (1366x768) TFT LCD panel
--
2.25.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 21+ messages in thread
* [PATCH 1/3] dt-bindings: display: simple: add support for Samsung LTL101AL01
@ 2022-05-16 19:37 ` Martin Jücker
0 siblings, 0 replies; 21+ messages in thread
From: Martin Jücker @ 2022-05-16 19:37 UTC (permalink / raw)
To: linux-samsung-soc
Cc: devicetree, Krzysztof Kozlowski, David Airlie, linux-kernel,
dri-devel, Rob Herring, Thierry Reding, Alim Akhtar,
Martin Jücker, Sam Ravnborg, linux-arm-kernel
Add the Samsung LTL101AL01 WXGA LCD panel to the list.
Signed-off-by: Martin Jücker <martin.juecker@gmail.com>
---
.../devicetree/bindings/display/panel/panel-simple.yaml | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Documentation/devicetree/bindings/display/panel/panel-simple.yaml b/Documentation/devicetree/bindings/display/panel/panel-simple.yaml
index 1eb9dd4f8f58..9501b5a3c011 100644
--- a/Documentation/devicetree/bindings/display/panel/panel-simple.yaml
+++ b/Documentation/devicetree/bindings/display/panel/panel-simple.yaml
@@ -270,6 +270,8 @@ properties:
- samsung,atna33xc20
# Samsung 12.2" (2560x1600 pixels) TFT LCD panel
- samsung,lsn122dl01-c01
+ # Samsung Electronics 10.1" WXGA (1280x800) TFT LCD panel
+ - samsung,ltl101al01
# Samsung Electronics 10.1" WSVGA TFT LCD panel
- samsung,ltn101nt05
# Samsung Electronics 14" WXGA (1366x768) TFT LCD panel
--
2.25.1
^ permalink raw reply related [flat|nested] 21+ messages in thread
* [PATCH 2/3] drm/panel: simple: add support for the Samsung LTL101AL01 panel
2022-05-16 19:37 ` Martin Jücker
(?)
@ 2022-05-16 19:37 ` Martin Jücker
-1 siblings, 0 replies; 21+ messages in thread
From: Martin Jücker @ 2022-05-16 19:37 UTC (permalink / raw)
To: linux-samsung-soc
Cc: linux-arm-kernel, linux-kernel, devicetree, dri-devel,
Alim Akhtar, Krzysztof Kozlowski, Rob Herring, Daniel Vetter,
David Airlie, Sam Ravnborg, Thierry Reding, Martin Jücker
Add timings and panel description for the Samsung LTL101AL01 panel.
Signed-off-by: Martin Jücker <martin.juecker@gmail.com>
---
drivers/gpu/drm/panel/panel-simple.c | 34 ++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
index a34f4198a534..e21f304315e4 100644
--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -3073,6 +3073,37 @@ static const struct panel_desc rocktech_rk101ii01d_ct = {
.connector_type = DRM_MODE_CONNECTOR_LVDS,
};
+static const struct display_timing samsung_ltl101al01_timing = {
+ .pixelclock = { 66663000, 66663000, 66663000 },
+ .hactive = { 1280, 1280, 1280 },
+ .hfront_porch = { 18, 18, 18 },
+ .hback_porch = { 36, 36, 36 },
+ .hsync_len = { 16, 16, 16 },
+ .vactive = { 800, 800, 800 },
+ .vfront_porch = { 4, 4, 4 },
+ .vback_porch = { 16, 16, 16 },
+ .vsync_len = { 3, 3, 3 },
+ .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW,
+};
+
+static const struct panel_desc samsung_ltl101al01 = {
+ .timings = &samsung_ltl101al01_timing,
+ .num_timings = 1,
+ .bpc = 8,
+ .size = {
+ .width = 217,
+ .height = 135,
+ },
+ .delay = {
+ .prepare = 40,
+ .enable = 300,
+ .disable = 200,
+ .unprepare = 600,
+ },
+ .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
+ .connector_type = DRM_MODE_CONNECTOR_LVDS,
+};
+
static const struct drm_display_mode samsung_ltn101nt05_mode = {
.clock = 54030,
.hdisplay = 1024,
@@ -3966,6 +3997,9 @@ static const struct of_device_id platform_of_match[] = {
}, {
.compatible = "rocktech,rk101ii01d-ct",
.data = &rocktech_rk101ii01d_ct,
+ }, {
+ .compatible = "samsung,ltl101al01",
+ .data = &samsung_ltl101al01,
}, {
.compatible = "samsung,ltn101nt05",
.data = &samsung_ltn101nt05,
--
2.25.1
^ permalink raw reply related [flat|nested] 21+ messages in thread
* [PATCH 2/3] drm/panel: simple: add support for the Samsung LTL101AL01 panel
@ 2022-05-16 19:37 ` Martin Jücker
0 siblings, 0 replies; 21+ messages in thread
From: Martin Jücker @ 2022-05-16 19:37 UTC (permalink / raw)
To: linux-samsung-soc
Cc: linux-arm-kernel, linux-kernel, devicetree, dri-devel,
Alim Akhtar, Krzysztof Kozlowski, Rob Herring, Daniel Vetter,
David Airlie, Sam Ravnborg, Thierry Reding, Martin Jücker
Add timings and panel description for the Samsung LTL101AL01 panel.
Signed-off-by: Martin Jücker <martin.juecker@gmail.com>
---
drivers/gpu/drm/panel/panel-simple.c | 34 ++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
index a34f4198a534..e21f304315e4 100644
--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -3073,6 +3073,37 @@ static const struct panel_desc rocktech_rk101ii01d_ct = {
.connector_type = DRM_MODE_CONNECTOR_LVDS,
};
+static const struct display_timing samsung_ltl101al01_timing = {
+ .pixelclock = { 66663000, 66663000, 66663000 },
+ .hactive = { 1280, 1280, 1280 },
+ .hfront_porch = { 18, 18, 18 },
+ .hback_porch = { 36, 36, 36 },
+ .hsync_len = { 16, 16, 16 },
+ .vactive = { 800, 800, 800 },
+ .vfront_porch = { 4, 4, 4 },
+ .vback_porch = { 16, 16, 16 },
+ .vsync_len = { 3, 3, 3 },
+ .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW,
+};
+
+static const struct panel_desc samsung_ltl101al01 = {
+ .timings = &samsung_ltl101al01_timing,
+ .num_timings = 1,
+ .bpc = 8,
+ .size = {
+ .width = 217,
+ .height = 135,
+ },
+ .delay = {
+ .prepare = 40,
+ .enable = 300,
+ .disable = 200,
+ .unprepare = 600,
+ },
+ .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
+ .connector_type = DRM_MODE_CONNECTOR_LVDS,
+};
+
static const struct drm_display_mode samsung_ltn101nt05_mode = {
.clock = 54030,
.hdisplay = 1024,
@@ -3966,6 +3997,9 @@ static const struct of_device_id platform_of_match[] = {
}, {
.compatible = "rocktech,rk101ii01d-ct",
.data = &rocktech_rk101ii01d_ct,
+ }, {
+ .compatible = "samsung,ltl101al01",
+ .data = &samsung_ltl101al01,
}, {
.compatible = "samsung,ltn101nt05",
.data = &samsung_ltn101nt05,
--
2.25.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 21+ messages in thread
* [PATCH 2/3] drm/panel: simple: add support for the Samsung LTL101AL01 panel
@ 2022-05-16 19:37 ` Martin Jücker
0 siblings, 0 replies; 21+ messages in thread
From: Martin Jücker @ 2022-05-16 19:37 UTC (permalink / raw)
To: linux-samsung-soc
Cc: devicetree, Krzysztof Kozlowski, David Airlie, linux-kernel,
dri-devel, Rob Herring, Thierry Reding, Alim Akhtar,
Martin Jücker, Sam Ravnborg, linux-arm-kernel
Add timings and panel description for the Samsung LTL101AL01 panel.
Signed-off-by: Martin Jücker <martin.juecker@gmail.com>
---
drivers/gpu/drm/panel/panel-simple.c | 34 ++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
index a34f4198a534..e21f304315e4 100644
--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -3073,6 +3073,37 @@ static const struct panel_desc rocktech_rk101ii01d_ct = {
.connector_type = DRM_MODE_CONNECTOR_LVDS,
};
+static const struct display_timing samsung_ltl101al01_timing = {
+ .pixelclock = { 66663000, 66663000, 66663000 },
+ .hactive = { 1280, 1280, 1280 },
+ .hfront_porch = { 18, 18, 18 },
+ .hback_porch = { 36, 36, 36 },
+ .hsync_len = { 16, 16, 16 },
+ .vactive = { 800, 800, 800 },
+ .vfront_porch = { 4, 4, 4 },
+ .vback_porch = { 16, 16, 16 },
+ .vsync_len = { 3, 3, 3 },
+ .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW,
+};
+
+static const struct panel_desc samsung_ltl101al01 = {
+ .timings = &samsung_ltl101al01_timing,
+ .num_timings = 1,
+ .bpc = 8,
+ .size = {
+ .width = 217,
+ .height = 135,
+ },
+ .delay = {
+ .prepare = 40,
+ .enable = 300,
+ .disable = 200,
+ .unprepare = 600,
+ },
+ .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
+ .connector_type = DRM_MODE_CONNECTOR_LVDS,
+};
+
static const struct drm_display_mode samsung_ltn101nt05_mode = {
.clock = 54030,
.hdisplay = 1024,
@@ -3966,6 +3997,9 @@ static const struct of_device_id platform_of_match[] = {
}, {
.compatible = "rocktech,rk101ii01d-ct",
.data = &rocktech_rk101ii01d_ct,
+ }, {
+ .compatible = "samsung,ltl101al01",
+ .data = &samsung_ltl101al01,
}, {
.compatible = "samsung,ltn101nt05",
.data = &samsung_ltn101nt05,
--
2.25.1
^ permalink raw reply related [flat|nested] 21+ messages in thread
* [PATCH 3/3] ARM: dts: exynos: add panel and backlight to p4note
2022-05-16 19:37 ` Martin Jücker
(?)
@ 2022-05-16 19:37 ` Martin Jücker
-1 siblings, 0 replies; 21+ messages in thread
From: Martin Jücker @ 2022-05-16 19:37 UTC (permalink / raw)
To: linux-samsung-soc
Cc: linux-arm-kernel, linux-kernel, devicetree, dri-devel,
Alim Akhtar, Krzysztof Kozlowski, Rob Herring, Daniel Vetter,
David Airlie, Sam Ravnborg, Thierry Reding, Martin Jücker
Add configuration for the LTL101AL01 panel and a pwm backlight to drive
the display in the p4note devices.
Signed-off-by: Martin Jücker <martin.juecker@gmail.com>
---
arch/arm/boot/dts/exynos4412-p4note.dtsi | 84 ++++++++++++++++++++----
1 file changed, 71 insertions(+), 13 deletions(-)
diff --git a/arch/arm/boot/dts/exynos4412-p4note.dtsi b/arch/arm/boot/dts/exynos4412-p4note.dtsi
index 97f131b1014b..1fd051b52387 100644
--- a/arch/arm/boot/dts/exynos4412-p4note.dtsi
+++ b/arch/arm/boot/dts/exynos4412-p4note.dtsi
@@ -106,6 +106,16 @@ voltage-regulator-3 {
regulator-always-on;
};
+ panel_vdd: voltage-regulator-4 {
+ compatible = "regulator-fixed";
+ regulator-name = "LCD_ENABLE";
+ pinctrl-names = "default";
+ pinctrl-0 = <&lcd_enable>;
+ gpios = <&gpc0 1 GPIO_ACTIVE_HIGH>;
+ enable-active-high;
+ regulator-boot-on;
+ };
+
wlan_pwrseq: sdhci3-pwrseq {
compatible = "mmc-pwrseq-simple";
reset-gpios = <&gpm3 5 GPIO_ACTIVE_LOW>;
@@ -216,6 +226,32 @@ power_supply: charger@6 {
monitored-battery = <&battery_cell>;
};
};
+
+ panel {
+ compatible = "samsung,ltl101al01";
+ pinctrl-0 = <&lvds_nshdn>;
+ pinctrl-names = "default";
+ power-supply = <&panel_vdd>;
+ enable-gpios = <&gpm0 5 GPIO_ACTIVE_HIGH>;
+ backlight = <&backlight>;
+
+ port {
+ lcd_ep: endpoint {
+ remote-endpoint = <&fimd_ep>;
+ };
+ };
+ };
+
+ backlight: backlight {
+ compatible = "pwm-backlight";
+ pinctrl-0 = <&led_bl_reset>;
+ pinctrl-names = "default";
+ enable-gpios = <&gpm0 1 GPIO_ACTIVE_HIGH>;
+ pwms = <&pwm 1 78770 0>;
+ brightness-levels = <0 48 128 255>;
+ num-interpolated-steps = <8>;
+ default-brightness-level = <12>;
+ };
};
&adc {
@@ -295,22 +331,19 @@ &exynos_usbphy {
};
&fimd {
- pinctrl-0 = <&lcd_clk &lcd_data24 &pwm1_out>;
+ pinctrl-0 = <&lcd_clk &lcd_data24>;
pinctrl-names = "default";
+ #address-cells = <1>;
+ #size-cells = <0>;
status = "okay";
- display-timings {
- timing0 {
- clock-frequency = <66666666>;
- hactive = <1280>;
- vactive = <800>;
- hfront-porch = <18>;
- hback-porch = <36>;
- hsync-len = <16>;
- vback-porch = <16>;
- vfront-porch = <4>;
- vsync-len = <3>;
- hsync-active = <1>;
+ samsung,invert-vclk;
+
+ port@3 {
+ reg = <3>;
+
+ fimd_ep: endpoint {
+ remote-endpoint = <&lcd_ep>;
};
};
};
@@ -687,6 +720,12 @@ tsp_reg_gpio_3: tsp-reg-gpio-3-pins {
samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
};
+ lcd_enable: lcd-enable-pins {
+ samsung,pins = "gpc0-1";
+ samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
+ samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
+ };
+
sleep0: sleep-state {
PIN_SLP(gpa0-0, INPUT, NONE);
PIN_SLP(gpa0-1, OUT0, NONE);
@@ -809,12 +848,24 @@ uart_sel: uart-sel-pins {
/* 0 = CP, 1 = AP (serial output) */
};
+ led_bl_reset: led-bl-reset-pins {
+ samsung,pins = "gpm0-1";
+ samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
+ samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
+ };
+
tsp_rst: tsp-rst-pins {
samsung,pins = "gpm0-4";
samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
};
+ lvds_nshdn: lvds-nshdn-pins {
+ samsung,pins = "gpm0-5";
+ samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
+ samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
+ };
+
tsp_irq: tsp-irq-pins {
samsung,pins = "gpm2-3";
samsung,pin-function = <EXYNOS_PIN_FUNC_F>;
@@ -1100,6 +1151,13 @@ &pmu_system_controller {
assigned-clock-parents = <&clock CLK_XUSBXTI>;
};
+&pwm {
+ pinctrl-0 = <&pwm1_out>;
+ pinctrl-names = "default";
+ samsung,pwm-outputs = <1>;
+ status = "okay";
+};
+
&rtc {
clocks = <&clock CLK_RTC>, <&max77686 MAX77686_CLK_AP>;
clock-names = "rtc", "rtc_src";
--
2.25.1
^ permalink raw reply related [flat|nested] 21+ messages in thread
* [PATCH 3/3] ARM: dts: exynos: add panel and backlight to p4note
@ 2022-05-16 19:37 ` Martin Jücker
0 siblings, 0 replies; 21+ messages in thread
From: Martin Jücker @ 2022-05-16 19:37 UTC (permalink / raw)
To: linux-samsung-soc
Cc: linux-arm-kernel, linux-kernel, devicetree, dri-devel,
Alim Akhtar, Krzysztof Kozlowski, Rob Herring, Daniel Vetter,
David Airlie, Sam Ravnborg, Thierry Reding, Martin Jücker
Add configuration for the LTL101AL01 panel and a pwm backlight to drive
the display in the p4note devices.
Signed-off-by: Martin Jücker <martin.juecker@gmail.com>
---
arch/arm/boot/dts/exynos4412-p4note.dtsi | 84 ++++++++++++++++++++----
1 file changed, 71 insertions(+), 13 deletions(-)
diff --git a/arch/arm/boot/dts/exynos4412-p4note.dtsi b/arch/arm/boot/dts/exynos4412-p4note.dtsi
index 97f131b1014b..1fd051b52387 100644
--- a/arch/arm/boot/dts/exynos4412-p4note.dtsi
+++ b/arch/arm/boot/dts/exynos4412-p4note.dtsi
@@ -106,6 +106,16 @@ voltage-regulator-3 {
regulator-always-on;
};
+ panel_vdd: voltage-regulator-4 {
+ compatible = "regulator-fixed";
+ regulator-name = "LCD_ENABLE";
+ pinctrl-names = "default";
+ pinctrl-0 = <&lcd_enable>;
+ gpios = <&gpc0 1 GPIO_ACTIVE_HIGH>;
+ enable-active-high;
+ regulator-boot-on;
+ };
+
wlan_pwrseq: sdhci3-pwrseq {
compatible = "mmc-pwrseq-simple";
reset-gpios = <&gpm3 5 GPIO_ACTIVE_LOW>;
@@ -216,6 +226,32 @@ power_supply: charger@6 {
monitored-battery = <&battery_cell>;
};
};
+
+ panel {
+ compatible = "samsung,ltl101al01";
+ pinctrl-0 = <&lvds_nshdn>;
+ pinctrl-names = "default";
+ power-supply = <&panel_vdd>;
+ enable-gpios = <&gpm0 5 GPIO_ACTIVE_HIGH>;
+ backlight = <&backlight>;
+
+ port {
+ lcd_ep: endpoint {
+ remote-endpoint = <&fimd_ep>;
+ };
+ };
+ };
+
+ backlight: backlight {
+ compatible = "pwm-backlight";
+ pinctrl-0 = <&led_bl_reset>;
+ pinctrl-names = "default";
+ enable-gpios = <&gpm0 1 GPIO_ACTIVE_HIGH>;
+ pwms = <&pwm 1 78770 0>;
+ brightness-levels = <0 48 128 255>;
+ num-interpolated-steps = <8>;
+ default-brightness-level = <12>;
+ };
};
&adc {
@@ -295,22 +331,19 @@ &exynos_usbphy {
};
&fimd {
- pinctrl-0 = <&lcd_clk &lcd_data24 &pwm1_out>;
+ pinctrl-0 = <&lcd_clk &lcd_data24>;
pinctrl-names = "default";
+ #address-cells = <1>;
+ #size-cells = <0>;
status = "okay";
- display-timings {
- timing0 {
- clock-frequency = <66666666>;
- hactive = <1280>;
- vactive = <800>;
- hfront-porch = <18>;
- hback-porch = <36>;
- hsync-len = <16>;
- vback-porch = <16>;
- vfront-porch = <4>;
- vsync-len = <3>;
- hsync-active = <1>;
+ samsung,invert-vclk;
+
+ port@3 {
+ reg = <3>;
+
+ fimd_ep: endpoint {
+ remote-endpoint = <&lcd_ep>;
};
};
};
@@ -687,6 +720,12 @@ tsp_reg_gpio_3: tsp-reg-gpio-3-pins {
samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
};
+ lcd_enable: lcd-enable-pins {
+ samsung,pins = "gpc0-1";
+ samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
+ samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
+ };
+
sleep0: sleep-state {
PIN_SLP(gpa0-0, INPUT, NONE);
PIN_SLP(gpa0-1, OUT0, NONE);
@@ -809,12 +848,24 @@ uart_sel: uart-sel-pins {
/* 0 = CP, 1 = AP (serial output) */
};
+ led_bl_reset: led-bl-reset-pins {
+ samsung,pins = "gpm0-1";
+ samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
+ samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
+ };
+
tsp_rst: tsp-rst-pins {
samsung,pins = "gpm0-4";
samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
};
+ lvds_nshdn: lvds-nshdn-pins {
+ samsung,pins = "gpm0-5";
+ samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
+ samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
+ };
+
tsp_irq: tsp-irq-pins {
samsung,pins = "gpm2-3";
samsung,pin-function = <EXYNOS_PIN_FUNC_F>;
@@ -1100,6 +1151,13 @@ &pmu_system_controller {
assigned-clock-parents = <&clock CLK_XUSBXTI>;
};
+&pwm {
+ pinctrl-0 = <&pwm1_out>;
+ pinctrl-names = "default";
+ samsung,pwm-outputs = <1>;
+ status = "okay";
+};
+
&rtc {
clocks = <&clock CLK_RTC>, <&max77686 MAX77686_CLK_AP>;
clock-names = "rtc", "rtc_src";
--
2.25.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 21+ messages in thread
* [PATCH 3/3] ARM: dts: exynos: add panel and backlight to p4note
@ 2022-05-16 19:37 ` Martin Jücker
0 siblings, 0 replies; 21+ messages in thread
From: Martin Jücker @ 2022-05-16 19:37 UTC (permalink / raw)
To: linux-samsung-soc
Cc: devicetree, Krzysztof Kozlowski, David Airlie, linux-kernel,
dri-devel, Rob Herring, Thierry Reding, Alim Akhtar,
Martin Jücker, Sam Ravnborg, linux-arm-kernel
Add configuration for the LTL101AL01 panel and a pwm backlight to drive
the display in the p4note devices.
Signed-off-by: Martin Jücker <martin.juecker@gmail.com>
---
arch/arm/boot/dts/exynos4412-p4note.dtsi | 84 ++++++++++++++++++++----
1 file changed, 71 insertions(+), 13 deletions(-)
diff --git a/arch/arm/boot/dts/exynos4412-p4note.dtsi b/arch/arm/boot/dts/exynos4412-p4note.dtsi
index 97f131b1014b..1fd051b52387 100644
--- a/arch/arm/boot/dts/exynos4412-p4note.dtsi
+++ b/arch/arm/boot/dts/exynos4412-p4note.dtsi
@@ -106,6 +106,16 @@ voltage-regulator-3 {
regulator-always-on;
};
+ panel_vdd: voltage-regulator-4 {
+ compatible = "regulator-fixed";
+ regulator-name = "LCD_ENABLE";
+ pinctrl-names = "default";
+ pinctrl-0 = <&lcd_enable>;
+ gpios = <&gpc0 1 GPIO_ACTIVE_HIGH>;
+ enable-active-high;
+ regulator-boot-on;
+ };
+
wlan_pwrseq: sdhci3-pwrseq {
compatible = "mmc-pwrseq-simple";
reset-gpios = <&gpm3 5 GPIO_ACTIVE_LOW>;
@@ -216,6 +226,32 @@ power_supply: charger@6 {
monitored-battery = <&battery_cell>;
};
};
+
+ panel {
+ compatible = "samsung,ltl101al01";
+ pinctrl-0 = <&lvds_nshdn>;
+ pinctrl-names = "default";
+ power-supply = <&panel_vdd>;
+ enable-gpios = <&gpm0 5 GPIO_ACTIVE_HIGH>;
+ backlight = <&backlight>;
+
+ port {
+ lcd_ep: endpoint {
+ remote-endpoint = <&fimd_ep>;
+ };
+ };
+ };
+
+ backlight: backlight {
+ compatible = "pwm-backlight";
+ pinctrl-0 = <&led_bl_reset>;
+ pinctrl-names = "default";
+ enable-gpios = <&gpm0 1 GPIO_ACTIVE_HIGH>;
+ pwms = <&pwm 1 78770 0>;
+ brightness-levels = <0 48 128 255>;
+ num-interpolated-steps = <8>;
+ default-brightness-level = <12>;
+ };
};
&adc {
@@ -295,22 +331,19 @@ &exynos_usbphy {
};
&fimd {
- pinctrl-0 = <&lcd_clk &lcd_data24 &pwm1_out>;
+ pinctrl-0 = <&lcd_clk &lcd_data24>;
pinctrl-names = "default";
+ #address-cells = <1>;
+ #size-cells = <0>;
status = "okay";
- display-timings {
- timing0 {
- clock-frequency = <66666666>;
- hactive = <1280>;
- vactive = <800>;
- hfront-porch = <18>;
- hback-porch = <36>;
- hsync-len = <16>;
- vback-porch = <16>;
- vfront-porch = <4>;
- vsync-len = <3>;
- hsync-active = <1>;
+ samsung,invert-vclk;
+
+ port@3 {
+ reg = <3>;
+
+ fimd_ep: endpoint {
+ remote-endpoint = <&lcd_ep>;
};
};
};
@@ -687,6 +720,12 @@ tsp_reg_gpio_3: tsp-reg-gpio-3-pins {
samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
};
+ lcd_enable: lcd-enable-pins {
+ samsung,pins = "gpc0-1";
+ samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
+ samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
+ };
+
sleep0: sleep-state {
PIN_SLP(gpa0-0, INPUT, NONE);
PIN_SLP(gpa0-1, OUT0, NONE);
@@ -809,12 +848,24 @@ uart_sel: uart-sel-pins {
/* 0 = CP, 1 = AP (serial output) */
};
+ led_bl_reset: led-bl-reset-pins {
+ samsung,pins = "gpm0-1";
+ samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
+ samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
+ };
+
tsp_rst: tsp-rst-pins {
samsung,pins = "gpm0-4";
samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
};
+ lvds_nshdn: lvds-nshdn-pins {
+ samsung,pins = "gpm0-5";
+ samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
+ samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
+ };
+
tsp_irq: tsp-irq-pins {
samsung,pins = "gpm2-3";
samsung,pin-function = <EXYNOS_PIN_FUNC_F>;
@@ -1100,6 +1151,13 @@ &pmu_system_controller {
assigned-clock-parents = <&clock CLK_XUSBXTI>;
};
+&pwm {
+ pinctrl-0 = <&pwm1_out>;
+ pinctrl-names = "default";
+ samsung,pwm-outputs = <1>;
+ status = "okay";
+};
+
&rtc {
clocks = <&clock CLK_RTC>, <&max77686 MAX77686_CLK_AP>;
clock-names = "rtc", "rtc_src";
--
2.25.1
^ permalink raw reply related [flat|nested] 21+ messages in thread
* Re: [PATCH 1/3] dt-bindings: display: simple: add support for Samsung LTL101AL01
2022-05-16 19:37 ` Martin Jücker
(?)
@ 2022-05-17 7:32 ` Krzysztof Kozlowski
-1 siblings, 0 replies; 21+ messages in thread
From: Krzysztof Kozlowski @ 2022-05-17 7:32 UTC (permalink / raw)
To: Martin Jücker, linux-samsung-soc
Cc: linux-arm-kernel, linux-kernel, devicetree, dri-devel,
Alim Akhtar, Krzysztof Kozlowski, Rob Herring, Daniel Vetter,
David Airlie, Sam Ravnborg, Thierry Reding
On 16/05/2022 21:37, Martin Jücker wrote:
> Add the Samsung LTL101AL01 WXGA LCD panel to the list.
>
> Signed-off-by: Martin Jücker <martin.juecker@gmail.com>
> ---
> .../devicetree/bindings/display/panel/panel-simple.yaml | 2 ++
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [PATCH 1/3] dt-bindings: display: simple: add support for Samsung LTL101AL01
@ 2022-05-17 7:32 ` Krzysztof Kozlowski
0 siblings, 0 replies; 21+ messages in thread
From: Krzysztof Kozlowski @ 2022-05-17 7:32 UTC (permalink / raw)
To: Martin Jücker, linux-samsung-soc
Cc: devicetree, Krzysztof Kozlowski, David Airlie, linux-kernel,
dri-devel, Rob Herring, Thierry Reding, Alim Akhtar,
Sam Ravnborg, linux-arm-kernel
On 16/05/2022 21:37, Martin Jücker wrote:
> Add the Samsung LTL101AL01 WXGA LCD panel to the list.
>
> Signed-off-by: Martin Jücker <martin.juecker@gmail.com>
> ---
> .../devicetree/bindings/display/panel/panel-simple.yaml | 2 ++
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [PATCH 1/3] dt-bindings: display: simple: add support for Samsung LTL101AL01
@ 2022-05-17 7:32 ` Krzysztof Kozlowski
0 siblings, 0 replies; 21+ messages in thread
From: Krzysztof Kozlowski @ 2022-05-17 7:32 UTC (permalink / raw)
To: Martin Jücker, linux-samsung-soc
Cc: linux-arm-kernel, linux-kernel, devicetree, dri-devel,
Alim Akhtar, Krzysztof Kozlowski, Rob Herring, Daniel Vetter,
David Airlie, Sam Ravnborg, Thierry Reding
On 16/05/2022 21:37, Martin Jücker wrote:
> Add the Samsung LTL101AL01 WXGA LCD panel to the list.
>
> Signed-off-by: Martin Jücker <martin.juecker@gmail.com>
> ---
> .../devicetree/bindings/display/panel/panel-simple.yaml | 2 ++
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: (subset) [PATCH 3/3] ARM: dts: exynos: add panel and backlight to p4note
2022-05-16 19:37 ` Martin Jücker
(?)
@ 2022-06-06 9:22 ` Krzysztof Kozlowski
-1 siblings, 0 replies; 21+ messages in thread
From: Krzysztof Kozlowski @ 2022-06-06 9:22 UTC (permalink / raw)
To: Martin Jücker, linux-samsung-soc
Cc: devicetree, Alim Akhtar, David Airlie, linux-kernel, dri-devel,
Rob Herring, Krzysztof Kozlowski, Thierry Reding,
Krzysztof Kozlowski, Sam Ravnborg, linux-arm-kernel
On Mon, 16 May 2022 21:37:09 +0200, Martin Jücker wrote:
> Add configuration for the LTL101AL01 panel and a pwm backlight to drive
> the display in the p4note devices.
>
>
Applied, thanks!
[3/3] ARM: dts: exynos: add panel and backlight to p4note
https://git.kernel.org/krzk/linux/c/6c52573bf4c3a0f6e7142264fb36b31ae2c3707a
Best regards,
--
Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: (subset) [PATCH 3/3] ARM: dts: exynos: add panel and backlight to p4note
@ 2022-06-06 9:22 ` Krzysztof Kozlowski
0 siblings, 0 replies; 21+ messages in thread
From: Krzysztof Kozlowski @ 2022-06-06 9:22 UTC (permalink / raw)
To: Martin Jücker, linux-samsung-soc
Cc: Krzysztof Kozlowski, linux-arm-kernel, Krzysztof Kozlowski,
devicetree, David Airlie, Sam Ravnborg, Alim Akhtar,
linux-kernel, Thierry Reding, Daniel Vetter, dri-devel,
Rob Herring
On Mon, 16 May 2022 21:37:09 +0200, Martin Jücker wrote:
> Add configuration for the LTL101AL01 panel and a pwm backlight to drive
> the display in the p4note devices.
>
>
Applied, thanks!
[3/3] ARM: dts: exynos: add panel and backlight to p4note
https://git.kernel.org/krzk/linux/c/6c52573bf4c3a0f6e7142264fb36b31ae2c3707a
Best regards,
--
Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: (subset) [PATCH 3/3] ARM: dts: exynos: add panel and backlight to p4note
@ 2022-06-06 9:22 ` Krzysztof Kozlowski
0 siblings, 0 replies; 21+ messages in thread
From: Krzysztof Kozlowski @ 2022-06-06 9:22 UTC (permalink / raw)
To: Martin Jücker, linux-samsung-soc
Cc: Krzysztof Kozlowski, linux-arm-kernel, Krzysztof Kozlowski,
devicetree, David Airlie, Sam Ravnborg, Alim Akhtar,
linux-kernel, Thierry Reding, Daniel Vetter, dri-devel,
Rob Herring
On Mon, 16 May 2022 21:37:09 +0200, Martin Jücker wrote:
> Add configuration for the LTL101AL01 panel and a pwm backlight to drive
> the display in the p4note devices.
>
>
Applied, thanks!
[3/3] ARM: dts: exynos: add panel and backlight to p4note
https://git.kernel.org/krzk/linux/c/6c52573bf4c3a0f6e7142264fb36b31ae2c3707a
Best regards,
--
Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [PATCH 1/3] dt-bindings: display: simple: add support for Samsung LTL101AL01
2022-05-16 19:37 ` Martin Jücker
(?)
@ 2022-07-09 13:57 ` Sam Ravnborg
-1 siblings, 0 replies; 21+ messages in thread
From: Sam Ravnborg @ 2022-07-09 13:57 UTC (permalink / raw)
To: Martin Jücker
Cc: linux-samsung-soc, linux-arm-kernel, linux-kernel, devicetree,
dri-devel, Alim Akhtar, Krzysztof Kozlowski, Rob Herring,
Daniel Vetter, David Airlie, Thierry Reding
Hi Martin,
On Mon, May 16, 2022 at 09:37:07PM +0200, Martin Jücker wrote:
> Add the Samsung LTL101AL01 WXGA LCD panel to the list.
>
> Signed-off-by: Martin Jücker <martin.juecker@gmail.com>
Applied to drm-misc (drm-misc-next).
Sam
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [PATCH 1/3] dt-bindings: display: simple: add support for Samsung LTL101AL01
@ 2022-07-09 13:57 ` Sam Ravnborg
0 siblings, 0 replies; 21+ messages in thread
From: Sam Ravnborg @ 2022-07-09 13:57 UTC (permalink / raw)
To: Martin Jücker
Cc: devicetree, linux-samsung-soc, Krzysztof Kozlowski, David Airlie,
linux-kernel, dri-devel, Rob Herring, Thierry Reding,
Alim Akhtar, linux-arm-kernel
Hi Martin,
On Mon, May 16, 2022 at 09:37:07PM +0200, Martin Jücker wrote:
> Add the Samsung LTL101AL01 WXGA LCD panel to the list.
>
> Signed-off-by: Martin Jücker <martin.juecker@gmail.com>
Applied to drm-misc (drm-misc-next).
Sam
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [PATCH 1/3] dt-bindings: display: simple: add support for Samsung LTL101AL01
@ 2022-07-09 13:57 ` Sam Ravnborg
0 siblings, 0 replies; 21+ messages in thread
From: Sam Ravnborg @ 2022-07-09 13:57 UTC (permalink / raw)
To: Martin Jücker
Cc: linux-samsung-soc, linux-arm-kernel, linux-kernel, devicetree,
dri-devel, Alim Akhtar, Krzysztof Kozlowski, Rob Herring,
Daniel Vetter, David Airlie, Thierry Reding
Hi Martin,
On Mon, May 16, 2022 at 09:37:07PM +0200, Martin Jücker wrote:
> Add the Samsung LTL101AL01 WXGA LCD panel to the list.
>
> Signed-off-by: Martin Jücker <martin.juecker@gmail.com>
Applied to drm-misc (drm-misc-next).
Sam
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [PATCH 2/3] drm/panel: simple: add support for the Samsung LTL101AL01 panel
2022-05-16 19:37 ` Martin Jücker
(?)
@ 2022-07-09 13:57 ` Sam Ravnborg
-1 siblings, 0 replies; 21+ messages in thread
From: Sam Ravnborg @ 2022-07-09 13:57 UTC (permalink / raw)
To: Martin Jücker
Cc: linux-samsung-soc, linux-arm-kernel, linux-kernel, devicetree,
dri-devel, Alim Akhtar, Krzysztof Kozlowski, Rob Herring,
Daniel Vetter, David Airlie, Thierry Reding
Hi Martin, the patch looks good.
On Mon, May 16, 2022 at 09:37:08PM +0200, Martin Jücker wrote:
> Add timings and panel description for the Samsung LTL101AL01 panel.
>
> Signed-off-by: Martin Jücker <martin.juecker@gmail.com>
Applied to drm-misc (drm-misc-next).
Sam
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [PATCH 2/3] drm/panel: simple: add support for the Samsung LTL101AL01 panel
@ 2022-07-09 13:57 ` Sam Ravnborg
0 siblings, 0 replies; 21+ messages in thread
From: Sam Ravnborg @ 2022-07-09 13:57 UTC (permalink / raw)
To: Martin Jücker
Cc: devicetree, linux-samsung-soc, Krzysztof Kozlowski, David Airlie,
linux-kernel, dri-devel, Rob Herring, Thierry Reding,
Alim Akhtar, linux-arm-kernel
Hi Martin, the patch looks good.
On Mon, May 16, 2022 at 09:37:08PM +0200, Martin Jücker wrote:
> Add timings and panel description for the Samsung LTL101AL01 panel.
>
> Signed-off-by: Martin Jücker <martin.juecker@gmail.com>
Applied to drm-misc (drm-misc-next).
Sam
^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: [PATCH 2/3] drm/panel: simple: add support for the Samsung LTL101AL01 panel
@ 2022-07-09 13:57 ` Sam Ravnborg
0 siblings, 0 replies; 21+ messages in thread
From: Sam Ravnborg @ 2022-07-09 13:57 UTC (permalink / raw)
To: Martin Jücker
Cc: linux-samsung-soc, linux-arm-kernel, linux-kernel, devicetree,
dri-devel, Alim Akhtar, Krzysztof Kozlowski, Rob Herring,
Daniel Vetter, David Airlie, Thierry Reding
Hi Martin, the patch looks good.
On Mon, May 16, 2022 at 09:37:08PM +0200, Martin Jücker wrote:
> Add timings and panel description for the Samsung LTL101AL01 panel.
>
> Signed-off-by: Martin Jücker <martin.juecker@gmail.com>
Applied to drm-misc (drm-misc-next).
Sam
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 21+ messages in thread
end of thread, other threads:[~2022-07-09 13:58 UTC | newest]
Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-16 19:37 [PATCH 1/3] dt-bindings: display: simple: add support for Samsung LTL101AL01 Martin Jücker
2022-05-16 19:37 ` Martin Jücker
2022-05-16 19:37 ` Martin Jücker
2022-05-16 19:37 ` [PATCH 2/3] drm/panel: simple: add support for the Samsung LTL101AL01 panel Martin Jücker
2022-05-16 19:37 ` Martin Jücker
2022-05-16 19:37 ` Martin Jücker
2022-07-09 13:57 ` Sam Ravnborg
2022-07-09 13:57 ` Sam Ravnborg
2022-07-09 13:57 ` Sam Ravnborg
2022-05-16 19:37 ` [PATCH 3/3] ARM: dts: exynos: add panel and backlight to p4note Martin Jücker
2022-05-16 19:37 ` Martin Jücker
2022-05-16 19:37 ` Martin Jücker
2022-06-06 9:22 ` (subset) " Krzysztof Kozlowski
2022-06-06 9:22 ` Krzysztof Kozlowski
2022-06-06 9:22 ` Krzysztof Kozlowski
2022-05-17 7:32 ` [PATCH 1/3] dt-bindings: display: simple: add support for Samsung LTL101AL01 Krzysztof Kozlowski
2022-05-17 7:32 ` Krzysztof Kozlowski
2022-05-17 7:32 ` Krzysztof Kozlowski
2022-07-09 13:57 ` Sam Ravnborg
2022-07-09 13:57 ` Sam Ravnborg
2022-07-09 13:57 ` Sam Ravnborg
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.