devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 3/6] dt-bindings: omap: Add Samaung Galaxy Tab 2 7.0
@ 2024-10-30 21:18 Mithil Bavishi
  2024-10-30 21:18 ` [PATCH v2 4/6] arm/dts: Add initial support for " Mithil Bavishi
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Mithil Bavishi @ 2024-10-30 21:18 UTC (permalink / raw)
  To: Aaro Koskinen, Andreas Kemnade, Kevin Hilman, Roger Quadros,
	Tony Lindgren, Rob Herring, Krzysztof Kozlowski, Conor Dooley
  Cc: linux-omap, devicetree, linux-kernel, linux-hardening

Add samsung-espresso7 codename for the 7 inch variant

Signed-off-by: Mithil Bavishi <bavishimithil@gmail.com>
---
 Documentation/devicetree/bindings/arm/ti/omap.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/arm/ti/omap.yaml b/Documentation/devicetree/bindings/arm/ti/omap.yaml
index 93e04a109..3d09ec1ad 100644
--- a/Documentation/devicetree/bindings/arm/ti/omap.yaml
+++ b/Documentation/devicetree/bindings/arm/ti/omap.yaml
@@ -136,6 +136,7 @@ properties:
               - motorola,droid-bionic   # Motorola Droid Bionic XT875
               - motorola,xyboard-mz609
               - motorola,xyboard-mz617
+              - samsung,espresso7
               - ti,omap4-panda
               - ti,omap4-sdp
           - const: ti,omap4430
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH v2 4/6] arm/dts: Add initial support for Galaxy Tab 2 7.0
  2024-10-30 21:18 [PATCH v2 3/6] dt-bindings: omap: Add Samaung Galaxy Tab 2 7.0 Mithil Bavishi
@ 2024-10-30 21:18 ` Mithil Bavishi
  2024-10-31  8:19   ` Krzysztof Kozlowski
  2024-10-30 21:18 ` [PATCH v2 5/6] dt-bindings: omap: Add Samaung Galaxy Tab 2 10.1 Mithil Bavishi
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 9+ messages in thread
From: Mithil Bavishi @ 2024-10-30 21:18 UTC (permalink / raw)
  To: Aaro Koskinen, Andreas Kemnade, Kevin Hilman, Roger Quadros,
	Tony Lindgren, Rob Herring, Krzysztof Kozlowski, Conor Dooley
  Cc: linux-omap, devicetree, linux-kernel, linux-hardening

Create a device tree for the 3 inch variants (P3100, P3110, P3113)

Signed-off-by: Mithil Bavishi <bavishimithil@gmail.com>
---
 arch/arm/boot/dts/ti/omap/Makefile            |  1 +
 .../dts/ti/omap/omap4-samsung-espresso7.dts   | 70 +++++++++++++++++++
 2 files changed, 71 insertions(+)
 create mode 100644 arch/arm/boot/dts/ti/omap/omap4-samsung-espresso7.dts

diff --git a/arch/arm/boot/dts/ti/omap/Makefile b/arch/arm/boot/dts/ti/omap/Makefile
index 95c68135d..a5bbf4b34 100644
--- a/arch/arm/boot/dts/ti/omap/Makefile
+++ b/arch/arm/boot/dts/ti/omap/Makefile
@@ -76,6 +76,7 @@ dtb-$(CONFIG_ARCH_OMAP4) += \
 	omap4-panda.dtb \
 	omap4-panda-a4.dtb \
 	omap4-panda-es.dtb \
+	omap4-samsung-espresso7.dtb \
 	omap4-sdp.dtb \
 	omap4-sdp-es23plus.dtb \
 	omap4-var-dvk-om44.dtb \
diff --git a/arch/arm/boot/dts/ti/omap/omap4-samsung-espresso7.dts b/arch/arm/boot/dts/ti/omap/omap4-samsung-espresso7.dts
new file mode 100644
index 000000000..9049d412a
--- /dev/null
+++ b/arch/arm/boot/dts/ti/omap/omap4-samsung-espresso7.dts
@@ -0,0 +1,70 @@
+// SPDX-License-Identifier: (GPL-2.0 OR MIT)
+/dts-v1/;
+
+#include "omap4-samsung-espresso-common.dtsi"
+
+/ {
+	model = "Samsung Galaxy Tab 2 (7 inch)";
+	compatible = "samsung,espresso7", "ti,omap4430", "ti,omap4";
+
+	backlight: backlight {
+		compatible = "pwm-backlight";
+		pinctrl-names = "default";
+		pinctrl-0 = <&backlight_pins>;
+		pwms = <&pwm10 0 1200 0>;
+		power-supply = <&reg_lcd>;
+		enable-gpios = <&gpio3 31 GPIO_ACTIVE_HIGH>;
+		brightness-levels = <0 4 8 16 32 64 128 255>;
+		default-brightness-level = <2>;
+	};
+
+	panel {
+		compatible = "panel-lvds";
+		power-supply = <&reg_lcd>;
+		width-mm = <154>;
+		height-mm = <90>;
+		data-mapping = "vesa-24";
+		backlight = <&backlight>;
+
+		panel-timing {
+			clock-frequency = <47255554>;
+
+			hback-porch = <210>;
+			hactive = <1024>;
+			hfront-porch = <186>;
+			hsync-len = <50>;
+
+			vback-porch = <11>;
+			vactive = <600>;
+			vfront-porch = <24>;
+			vsync-len = <10>;
+
+			hsync-active = <0>;
+			vsync-active = <0>;
+			de-active = <1>;
+			pixelclk-active = <1>;
+			syncclk-active = <0>;
+		};
+
+		port {
+			panel_in: endpoint {
+				remote-endpoint = <&bridge_out>;
+			};
+		};
+	};
+};
+
+&i2c3 {
+	touchscreen@48 {
+		compatible = "melfas,mms136";
+		reg = <0x48>;
+		interrupt-parent = <&gpio2>;
+		interrupts = <14 IRQ_TYPE_EDGE_FALLING>;
+		touchscreen-size-x = <1023>;
+		touchscreen-size-y = <599>;
+		pinctrl-names = "default";
+		pinctrl-0 = <&touch_pins>;
+		avdd-supply = <&reg_touch_ldo_en>;
+		vdd-supply = <&ldo6>;
+	};
+};
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH v2 5/6] dt-bindings: omap: Add Samaung Galaxy Tab 2 10.1
  2024-10-30 21:18 [PATCH v2 3/6] dt-bindings: omap: Add Samaung Galaxy Tab 2 7.0 Mithil Bavishi
  2024-10-30 21:18 ` [PATCH v2 4/6] arm/dts: Add initial support for " Mithil Bavishi
@ 2024-10-30 21:18 ` Mithil Bavishi
  2024-10-30 21:18 ` [PATCH v2 6/6] arm/dts: Add initial support for " Mithil Bavishi
  2024-10-31  8:18 ` [PATCH v2 3/6] dt-bindings: omap: Add Samaung Galaxy Tab 2 7.0 Krzysztof Kozlowski
  3 siblings, 0 replies; 9+ messages in thread
From: Mithil Bavishi @ 2024-10-30 21:18 UTC (permalink / raw)
  To: Aaro Koskinen, Andreas Kemnade, Kevin Hilman, Roger Quadros,
	Tony Lindgren, Rob Herring, Krzysztof Kozlowski, Conor Dooley
  Cc: linux-omap, devicetree, linux-kernel, linux-hardening

Add samsung-espresso7 codename for the 7 inch variant

Signed-off-by: Mithil Bavishi <bavishimithil@gmail.com>
---
 Documentation/devicetree/bindings/arm/ti/omap.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/arm/ti/omap.yaml b/Documentation/devicetree/bindings/arm/ti/omap.yaml
index 3d09ec1ad..2d39de677 100644
--- a/Documentation/devicetree/bindings/arm/ti/omap.yaml
+++ b/Documentation/devicetree/bindings/arm/ti/omap.yaml
@@ -137,6 +137,7 @@ properties:
               - motorola,xyboard-mz609
               - motorola,xyboard-mz617
               - samsung,espresso7
+              - samsung,espresso10
               - ti,omap4-panda
               - ti,omap4-sdp
           - const: ti,omap4430
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH v2 6/6] arm/dts: Add initial support for Galaxy Tab 2 10.1
  2024-10-30 21:18 [PATCH v2 3/6] dt-bindings: omap: Add Samaung Galaxy Tab 2 7.0 Mithil Bavishi
  2024-10-30 21:18 ` [PATCH v2 4/6] arm/dts: Add initial support for " Mithil Bavishi
  2024-10-30 21:18 ` [PATCH v2 5/6] dt-bindings: omap: Add Samaung Galaxy Tab 2 10.1 Mithil Bavishi
@ 2024-10-30 21:18 ` Mithil Bavishi
  2024-10-31  8:18 ` [PATCH v2 3/6] dt-bindings: omap: Add Samaung Galaxy Tab 2 7.0 Krzysztof Kozlowski
  3 siblings, 0 replies; 9+ messages in thread
From: Mithil Bavishi @ 2024-10-30 21:18 UTC (permalink / raw)
  To: Aaro Koskinen, Andreas Kemnade, Kevin Hilman, Roger Quadros,
	Tony Lindgren, Rob Herring, Krzysztof Kozlowski, Conor Dooley
  Cc: linux-omap, devicetree, linux-kernel, linux-hardening

Create a device tree for the 10 inch variants (P5100, P5110, P5113)

Signed-off-by: Mithil Bavishi <bavishimithil@gmail.com>
---
 arch/arm/boot/dts/ti/omap/Makefile            |   1 +
 .../dts/ti/omap/omap4-samsung-espresso10.dts  | 102 ++++++++++++++++++
 2 files changed, 103 insertions(+)
 create mode 100644 arch/arm/boot/dts/ti/omap/omap4-samsung-espresso10.dts

diff --git a/arch/arm/boot/dts/ti/omap/Makefile b/arch/arm/boot/dts/ti/omap/Makefile
index a5bbf4b34..576a059de 100644
--- a/arch/arm/boot/dts/ti/omap/Makefile
+++ b/arch/arm/boot/dts/ti/omap/Makefile
@@ -77,6 +77,7 @@ dtb-$(CONFIG_ARCH_OMAP4) += \
 	omap4-panda-a4.dtb \
 	omap4-panda-es.dtb \
 	omap4-samsung-espresso7.dtb \
+	omap4-samsung-espresso10.dtb \
 	omap4-sdp.dtb \
 	omap4-sdp-es23plus.dtb \
 	omap4-var-dvk-om44.dtb \
diff --git a/arch/arm/boot/dts/ti/omap/omap4-samsung-espresso10.dts b/arch/arm/boot/dts/ti/omap/omap4-samsung-espresso10.dts
new file mode 100644
index 000000000..d0e240cf0
--- /dev/null
+++ b/arch/arm/boot/dts/ti/omap/omap4-samsung-espresso10.dts
@@ -0,0 +1,102 @@
+// SPDX-License-Identifier: (GPL-2.0 OR MIT)
+/dts-v1/;
+
+#include "omap4-samsung-espresso-common.dtsi"
+#include <dt-bindings/power/summit,smb347-charger.h>
+/ {
+	model = "Samsung Galaxy Tab 2 (10 inch)";
+	compatible = "samsung,espresso10", "ti,omap4430", "ti,omap4";
+
+	i2c-gpio-5 {
+		smb347: charger@6 {
+			compatible = "summit,smb347";
+			reg = <0x6>; // 0x0C >> 1
+			iterrupt-parent = <&gpio2>;
+			interrupts = <0 IRQ_TYPE_EDGE_BOTH>;
+
+			summit,enable-usb-charging;
+			summit,enable-charge-control = <SMB3XX_CHG_ENABLE_SW>;
+			summit,chip-temperature-threshold-celsius = <120>;
+			summit,usb-current-limit-microamp = <1800000>;
+		};
+	};
+
+	backlight: backlight {
+		compatible = "pwm-backlight";
+		pinctrl-names = "default";
+		pinctrl-0 = <&backlight_pins>;
+		pwms = <&pwm10 0 1600 0>;
+		power-supply = <&reg_lcd>;
+		enable-gpios = <&gpio3 31 GPIO_ACTIVE_HIGH>;
+		brightness-levels = <0 4 8 16 32 64 128 255>;
+		default-brightness-level = <7>;
+	};
+
+	panel {
+		compatible = "panel-lvds";
+		power-supply = <&reg_lcd>;
+		width-mm = <223>;
+		height-mm = <125>;
+		data-mapping = "jeida-24";
+		backlight = <&backlight>;
+
+		panel-timing {
+			clock-frequency = <69818000>;
+
+			hback-porch = <64>;
+			hactive = <1280>;
+			hfront-porch = <16>;
+			hsync-len = <48>;
+
+			vback-porch = <11>;
+			vactive = <800>;
+			vfront-porch = <16>;
+			vsync-len = <3>;
+
+			hsync-active = <0>;
+			vsync-active = <0>;
+			de-active = <1>;
+			pixelclk-active = <1>;
+		};
+
+		port {
+			panel_in: endpoint {
+				remote-endpoint = <&bridge_out>;
+			};
+		};
+	};
+};
+
+&i2c3 {
+	touchscreen: synaptics-rmi4-i2c@20 {
+		compatible = "syna,rmi4-i2c";
+		reg = <0x20>;
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		interrupt-parent = <&gpio2>;
+		interrupts = <14 IRQ_TYPE_EDGE_FALLING>;
+
+		pinctrl-names = "default";
+		pinctrl-0 = <&touch_pins>;
+
+		avdd-supply = <&reg_touch_ldo_en>;
+		vdd-supply = <&ldo6>;
+
+		syna,reset-delay-ms = <200>;
+		syna,startup-delay-ms = <200>;
+
+		touchscreen-size-x = <1279>;
+		touchscreen-size-y = <799>;
+
+		rmi4-f01@1 {
+			reg = <0x01>;
+			syna,nosleep-mode = <1>;
+		};
+
+		rmi4-f11@11 {
+			reg = <0x11>;
+			syna,sensor-type = <1>;
+		};
+	};
+};
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [PATCH v2 3/6] dt-bindings: omap: Add Samaung Galaxy Tab 2 7.0
  2024-10-30 21:18 [PATCH v2 3/6] dt-bindings: omap: Add Samaung Galaxy Tab 2 7.0 Mithil Bavishi
                   ` (2 preceding siblings ...)
  2024-10-30 21:18 ` [PATCH v2 6/6] arm/dts: Add initial support for " Mithil Bavishi
@ 2024-10-31  8:18 ` Krzysztof Kozlowski
  2024-10-31  8:24   ` Andreas Kemnade
  3 siblings, 1 reply; 9+ messages in thread
From: Krzysztof Kozlowski @ 2024-10-31  8:18 UTC (permalink / raw)
  To: Mithil Bavishi
  Cc: Aaro Koskinen, Andreas Kemnade, Kevin Hilman, Roger Quadros,
	Tony Lindgren, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	linux-omap, devicetree, linux-kernel, linux-hardening

On Wed, Oct 30, 2024 at 09:18:43PM +0000, Mithil Bavishi wrote:
> Add samsung-espresso7 codename for the 7 inch variant
> 
> Signed-off-by: Mithil Bavishi <bavishimithil@gmail.com>
> ---
>  Documentation/devicetree/bindings/arm/ti/omap.yaml | 1 +
>  1 file changed, 1 insertion(+)
>

This is v2, so where is the changelog? Same for all other patches. No
cover letter, no changelogs in patches.

Best regards,
Krzysztof


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH v2 4/6] arm/dts: Add initial support for Galaxy Tab 2 7.0
  2024-10-30 21:18 ` [PATCH v2 4/6] arm/dts: Add initial support for " Mithil Bavishi
@ 2024-10-31  8:19   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 9+ messages in thread
From: Krzysztof Kozlowski @ 2024-10-31  8:19 UTC (permalink / raw)
  To: Mithil Bavishi
  Cc: Aaro Koskinen, Andreas Kemnade, Kevin Hilman, Roger Quadros,
	Tony Lindgren, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	linux-omap, devicetree, linux-kernel, linux-hardening

On Wed, Oct 30, 2024 at 09:18:44PM +0000, Mithil Bavishi wrote:
> Create a device tree for the 3 inch variants (P3100, P3110, P3113)

3 inch variants of what? Describe here the hardware.

> 
> Signed-off-by: Mithil Bavishi <bavishimithil@gmail.com>
> ---

Please use subject prefixes matching the subsystem. You can get them for
example with 'git log --oneline -- DIRECTORY_OR_FILE' on the directory
your patch is touching. For bindings, the preferred subjects are
explained here:
https://www.kernel.org/doc/html/latest/devicetree/bindings/submitting-patches.html#i-for-patch-submitters


>  arch/arm/boot/dts/ti/omap/Makefile            |  1 +
>  .../dts/ti/omap/omap4-samsung-espresso7.dts   | 70 +++++++++++++++++++
>  2 files changed, 71 insertions(+)
>  create mode 100644 arch/arm/boot/dts/ti/omap/omap4-samsung-espresso7.dts


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH v2 3/6] dt-bindings: omap: Add Samaung Galaxy Tab 2 7.0
  2024-10-31  8:18 ` [PATCH v2 3/6] dt-bindings: omap: Add Samaung Galaxy Tab 2 7.0 Krzysztof Kozlowski
@ 2024-10-31  8:24   ` Andreas Kemnade
  2024-10-31  9:49     ` Krzysztof Kozlowski
  0 siblings, 1 reply; 9+ messages in thread
From: Andreas Kemnade @ 2024-10-31  8:24 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Mithil Bavishi, Aaro Koskinen, Kevin Hilman, Roger Quadros,
	Tony Lindgren, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	linux-omap, devicetree, linux-kernel, linux-hardening

Am Thu, 31 Oct 2024 09:18:49 +0100
schrieb Krzysztof Kozlowski <krzk@kernel.org>:

> On Wed, Oct 30, 2024 at 09:18:43PM +0000, Mithil Bavishi wrote:
> > Add samsung-espresso7 codename for the 7 inch variant
> > 
> > Signed-off-by: Mithil Bavishi <bavishimithil@gmail.com>
> > ---
> >  Documentation/devicetree/bindings/arm/ti/omap.yaml | 1 +
> >  1 file changed, 1 insertion(+)
> >  
> 
> This is v2, so where is the changelog? Same for all other patches. No
> cover letter, no changelogs in patches.
> 
The cover letter including changelog is here:
https://lore.kernel.org/linux-omap/20241030211215.347710-1-bavishimithil@gmail.com/T/#t

seems like it was ripped apart somehow.

Regards,
Andreas

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH v2 3/6] dt-bindings: omap: Add Samaung Galaxy Tab 2 7.0
  2024-10-31  8:24   ` Andreas Kemnade
@ 2024-10-31  9:49     ` Krzysztof Kozlowski
  2024-10-31 10:46       ` Mithil Bavishi
  0 siblings, 1 reply; 9+ messages in thread
From: Krzysztof Kozlowski @ 2024-10-31  9:49 UTC (permalink / raw)
  To: Andreas Kemnade
  Cc: Mithil Bavishi, Aaro Koskinen, Kevin Hilman, Roger Quadros,
	Tony Lindgren, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	linux-omap, devicetree, linux-kernel, linux-hardening

On 31/10/2024 09:24, Andreas Kemnade wrote:
> Am Thu, 31 Oct 2024 09:18:49 +0100
> schrieb Krzysztof Kozlowski <krzk@kernel.org>:
> 
>> On Wed, Oct 30, 2024 at 09:18:43PM +0000, Mithil Bavishi wrote:
>>> Add samsung-espresso7 codename for the 7 inch variant
>>>
>>> Signed-off-by: Mithil Bavishi <bavishimithil@gmail.com>
>>> ---
>>>  Documentation/devicetree/bindings/arm/ti/omap.yaml | 1 +
>>>  1 file changed, 1 insertion(+)
>>>  
>>
>> This is v2, so where is the changelog? Same for all other patches. No
>> cover letter, no changelogs in patches.
>>
> The cover letter including changelog is here:
> https://lore.kernel.org/linux-omap/20241030211215.347710-1-bavishimithil@gmail.com/T/#t
> 
> seems like it was ripped apart somehow.

It's not attached to this thread. I don't have it in my mailbox. Neither
did b4 when applying entire thread for review. Sending something
separately or making it not accessible for review means it does not exist.

Best regards,
Krzysztof


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH v2 3/6] dt-bindings: omap: Add Samaung Galaxy Tab 2 7.0
  2024-10-31  9:49     ` Krzysztof Kozlowski
@ 2024-10-31 10:46       ` Mithil Bavishi
  0 siblings, 0 replies; 9+ messages in thread
From: Mithil Bavishi @ 2024-10-31 10:46 UTC (permalink / raw)
  To: krzk
  Cc: aaro.koskinen, andreas, bavishimithil, conor+dt, devicetree,
	khilman, krzk+dt, linux-hardening, linux-kernel, linux-omap, robh,
	rogerq, tony

> It's not attached to this thread. I don't have it in my mailbox. Neither
> did b4 when applying entire thread for review. Sending something
> separately or making it not accessible for review means it does not
> exist.

I am not sure why was sent seperately, I'm trying to learn this workflow
so it may have been a ametuer mistake from my side, apologies for that.
I have notes the changes you requested and will try to apply them in v3
along with others mentioned.

Thanks a lot for your patience.

Best Regards,
Mithil

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2024-10-31 10:47 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-30 21:18 [PATCH v2 3/6] dt-bindings: omap: Add Samaung Galaxy Tab 2 7.0 Mithil Bavishi
2024-10-30 21:18 ` [PATCH v2 4/6] arm/dts: Add initial support for " Mithil Bavishi
2024-10-31  8:19   ` Krzysztof Kozlowski
2024-10-30 21:18 ` [PATCH v2 5/6] dt-bindings: omap: Add Samaung Galaxy Tab 2 10.1 Mithil Bavishi
2024-10-30 21:18 ` [PATCH v2 6/6] arm/dts: Add initial support for " Mithil Bavishi
2024-10-31  8:18 ` [PATCH v2 3/6] dt-bindings: omap: Add Samaung Galaxy Tab 2 7.0 Krzysztof Kozlowski
2024-10-31  8:24   ` Andreas Kemnade
2024-10-31  9:49     ` Krzysztof Kozlowski
2024-10-31 10:46       ` Mithil Bavishi

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).