ARM: mx28: Add LCD pinmux
Subsystems (2)
PATCH 1/1 ARM: mx28: Add LCD pinmux
--- arch/arm/boot/dts/imx28.dtsi | 45 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+)
arch/arm/boot/dts/imx28.dtsi +45 -0
@@ -221,6 +221,51 @@ fsl,pull-up = <0>; }; + lcd_data_pins_8bpp_a: lcd at 0 { + reg = <0>; + fsl,pinmux-ids = <0x1000 0x1010 0x1020 0x1030 + 0x1040 0x1050 0x1060 0x1070>; + fsl,drive-strength = <0>; + fsl,voltage = <1>; + fsl,pull-up = <0>; + }; + + lcd_data_pins_16bpp_a: lcd at 1 { + reg = <0>; + fsl,pinmux-ids = <0x1000 0x1010 0x1020 0x1030 + 0x1040 0x1050 0x1060 0x1070 + 0x1080 0x1090 0x10a0 0x10b0 + 0x10c0 0x10d0 0x10e0 0x10f0>; + fsl,drive-strength = <0>; + fsl,voltage = <1>; + fsl,pull-up = <0>; + }; + + lcd_data_pins_18bpp_a: lcd at 2 { + reg = <0>; + fsl,pinmux-ids = <0x1000 0x1010 0x1020 0x1030 + 0x1040 0x1050 0x1060 0x1070 + 0x1080 0x1090 0x10a0 0x10b0 + 0x10c0 0x10d0 0x10e0 0x10f0 + 0x1100 0x1110>; + fsl,drive-strength = <0>; + fsl,voltage = <1>; + fsl,pull-up = <0>; + }; + + lcd_data_pins_24bpp_a: lcd at 3 { + reg = <0>; + fsl,pinmux-ids = <0x1000 0x1010 0x1020 0x1030 + 0x1040 0x1050 0x1060 0x1070 + 0x1080 0x1090 0x10a0 0x10b0 + 0x10c0 0x10d0 0x10e0 0x10f0 + 0x1100 0x1110 0x1120 0x1130 + 0x1140 0x1150 0x1160 0x1170>; + fsl,drive-strength = <0>; + fsl,voltage = <1>; + fsl,pull-up = <0>; + }; + mac0_pins_a: mac0 at 0 { reg = <0>; fsl,pinmux-ids = <0x4000 0x4010 0x4020
Signature · 1 line
1.7.10
Fabio Estevam
reviewerPATCH 1/1 ARM: mx28: Add LCD pinmux
Hi Marek,
Quoted 17 lines · Marek Vasut
Signed-off-by Marek Vasut <[email protected]>Cc Detlev Zundel <[email protected]>CC Dong Aisheng <[email protected]>CC Fabio Estevam <[email protected]>Cc Linux ARM kernel <[email protected]>CC Shawn Guo <[email protected]>Cc Stefano Babic <[email protected]>Cc Wolfgang Denk <[email protected]>---
?arch/arm/boot/dts/imx28.dtsi | ? 45 ++++++++++++++++++++++++++++++++++++++++++ ?1 file changed, 45 insertions(+)arch/arm/boot/dts/imx28.dtsi +0
-0
arch/arm/boot/dts/imx28.dtsi line 224
Quoted 4 lines
arch/arm/boot/dts/imx28.dtsi +1
-0@@ -221,6 +221,51 @@ ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?fsl,pull-up = <0>; ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?}; + ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? lcd_data_pins_8bpp_a: lcd at 0 {
Please remove the "bpp" from all the names.
bpp is usually used for the pixel depth in a framebuffer, and what you are describing here is how many bits are physically connected into the LCD interface.
Regards,
Fabio Estevam
PATCH 1/1 ARM: mx28: Add LCD pinmux
Dear Fabio Estevam,
Quoted 24 lines
Hi Marek,
Quoted 21 lines · Marek Vasut
Signed-off-by Marek Vasut <[email protected]>Cc Detlev Zundel <[email protected]>CC Dong Aisheng <[email protected]>CC Fabio Estevam <[email protected]>Cc Linux ARM kernel <[email protected]>CC Shawn Guo <[email protected]>Cc Stefano Babic <[email protected]>Cc Wolfgang Denk <[email protected]>--- arch/arm/boot/dts/imx28.dtsi | 45++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+)
arch/arm/boot/dts/imx28.dtsi +0
-0@@ -221,6 +221,51 @@ fsl,pull-up = <0>; };
Quoted 7 lines
arch/arm/boot/dts/imx28.dtsi line 224
Quoted 1 line
arch/arm/boot/dts/imx28.dtsi +1
-0+ lcd_data_pins_8bpp_a: lcd at 0 {Please remove the "bpp" from all the names.
bpp is usually used for the pixel depth in a framebuffer, and what you are describing here is how many bits are physically connected into the LCD interface.
But the BPP should corelate with the number of connected data pins. Or do you have any counter-argument? And besides, it's much easier to understand like that.
Quoted 3 lines
Regards,
Fabio Estevam
Best regards,
Marek Vasut
Fabio Estevam
reviewerPATCH 1/1 ARM: mx28: Add LCD pinmux
Quoted 3 lines · Marek Vasut
But the BPP should corelate with the number of connected data pins. Or do you have any counter-argument? And besides, it's much easier to understand like that.
This is not true. The pixel depth (bpp) tells how the bits are paked in the memory and does not correlate with the number of physically connected pins. For example: you can have a 16 pin LCD and decide to display it as 16bpp or 32bpp.
So keeping the bpp in the name of these data structure is not correct as you are only describing the physical connection.
PATCH 1/1 ARM: mx28: Add LCD pinmux
Dear Fabio Estevam,
Quoted 5 lines · Marek Vasut
Quoted 3 lines
But the BPP should corelate with the number of connected data pins. Or do you have any counter-argument? And besides, it's much easier to understand like that.
Quoted 7 lines
This is not true. The pixel depth (bpp) tells how the bits are paked in the memory and does not correlate with the number of physically connected pins. For example: you can have a 16 pin LCD and decide to display it as 16bpp or 32bpp.
So keeping the bpp in the name of these data structure is not correct as you are only describing the physical connection.
Ah that's right ... makes sense now. Will respin the patch.
Best regards,
Marek Vasut
PATCH 1/1 ARM: mx28: Add LCD pinmux
In reply to Marek VasutQuoted 55 lines · Marek Vasut
Signed-off-by Marek Vasut <[email protected]>Cc Detlev Zundel <[email protected]>CC Dong Aisheng <[email protected]>CC Fabio Estevam <[email protected]>Cc Linux ARM kernel <[email protected]>CC Shawn Guo <[email protected]>Cc Stefano Babic <[email protected]>Cc Wolfgang Denk <[email protected]>--- arch/arm/boot/dts/imx28.dtsi | 45 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+)arch/arm/boot/dts/imx28.dtsi +35
-0@@ -221,6 +221,51 @@ fsl,pull-up = <0>; }; + lcd_data_pins_8bpp_a: lcd at 0 { + reg = <0>; + fsl,pinmux-ids = <0x1000 0x1010 0x1020 0x1030 + 0x1040 0x1050 0x1060 0x1070>; + fsl,drive-strength = <0>; + fsl,voltage = <1>; + fsl,pull-up = <0>; + }; + + lcd_data_pins_16bpp_a: lcd at 1 { + reg = <0>; + fsl,pinmux-ids = <0x1000 0x1010 0x1020 0x1030 + 0x1040 0x1050 0x1060 0x1070 + 0x1080 0x1090 0x10a0 0x10b0 + 0x10c0 0x10d0 0x10e0 0x10f0>; + fsl,drive-strength = <0>; + fsl,voltage = <1>; + fsl,pull-up = <0>; + }; + + lcd_data_pins_18bpp_a: lcd at 2 { + reg = <0>; + fsl,pinmux-ids = <0x1000 0x1010 0x1020 0x1030 + 0x1040 0x1050 0x1060 0x1070 + 0x1080 0x1090 0x10a0 0x10b0 + 0x10c0 0x10d0 0x10e0 0x10f0 + 0x1100 0x1110>; + fsl,drive-strength = <0>; + fsl,voltage = <1>; + fsl,pull-up = <0>; + }; + + lcd_data_pins_24bpp_a: lcd at 3 { + reg = <0>; + fsl,pinmux-ids = <0x1000 0x1010 0x1020 0x1030
arch/arm/boot/dts/imx28.dtsi line 268
Quoted 10 lines
arch/arm/boot/dts/imx28.dtsi +10
-0+ 0x1040 0x1050 0x1060 0x1070 + 0x1080 0x1090 0x10a0 0x10b0 + 0x10c0 0x10d0 0x10e0 0x10f0 + 0x1100 0x1110 0x1120 0x1130 + 0x1140 0x1150 0x1160 0x1170>; + fsl,drive-strength = <0>; + fsl,voltage = <1>; + fsl,pull-up = <0>; + }; +
We do not want to enumerate all the possible mux options. Instead, please add mux setting when there is indeed a user for it.
Signature · 2 lines
Regards, Shawn
PATCH 1/1 ARM: mx28: Add LCD pinmux
Dear Shawn Guo,
Quoted 21 lines · Marek Vasut
Quoted 20 lines
Signed-off-by Marek Vasut <[email protected]>Cc Detlev Zundel <[email protected]>CC Dong Aisheng <[email protected]>CC Fabio Estevam <[email protected]>Cc Linux ARM kernel <[email protected]>CC Shawn Guo <[email protected]>Cc Stefano Babic <[email protected]>Cc Wolfgang Denk <[email protected]>---
arch/arm/boot/dts/imx28.dtsi | 45++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+)
arch/arm/boot/dts/imx28.dtsi +0
-0@@ -221,6 +221,51 @@
Quoted 7 lines
arch/arm/boot/dts/imx28.dtsi
Quoted 7 lines
arch/arm/boot/dts/imx28.dtsi +3
-0fsl,pull-up = <0>; }; + lcd_data_pins_8bpp_a: lcd at 0 { + reg = <0>; + fsl,pinmux-ids = <0x1000 0x1010 0x1020
0x1030
Quoted 9 lines
arch/arm/boot/dts/imx28.dtsi
Quoted 9 lines
arch/arm/boot/dts/imx28.dtsi +9
-0+ 0x1040 0x1050 0x1060 0x1070>; + fsl,drive-strength = <0>; + fsl,voltage = <1>; + fsl,pull-up = <0>; + }; + + lcd_data_pins_16bpp_a: lcd at 1 { + reg = <0>; + fsl,pinmux-ids = <0x1000 0x1010 0x1020
0x1030
Quoted 11 lines
arch/arm/boot/dts/imx28.dtsi
Quoted 11 lines
arch/arm/boot/dts/imx28.dtsi +11
-0+ 0x1040 0x1050 0x1060 0x1070 + 0x1080 0x1090 0x10a0 0x10b0 + 0x10c0 0x10d0 0x10e0 0x10f0>; + fsl,drive-strength = <0>; + fsl,voltage = <1>; + fsl,pull-up = <0>; + }; + + lcd_data_pins_18bpp_a: lcd at 2 { + reg = <0>; + fsl,pinmux-ids = <0x1000 0x1010 0x1020
0x1030
Quoted 4 lines
Quoted 4 lines
arch/arm/boot/dts/imx28.dtsi +4
-0+ 0x1040 0x1050 0x1060 0x1070 + 0x1080 0x1090 0x10a0 0x10b0 + 0x10c0 0x10d0 0x10e0 0x10f0 + 0x1100 0x1110>;
Quoted 8 lines
arch/arm/boot/dts/imx28.dtsi
Quoted 8 lines
arch/arm/boot/dts/imx28.dtsi +8
-0+ fsl,drive-strength = <0>; + fsl,voltage = <1>; + fsl,pull-up = <0>; + }; + + lcd_data_pins_24bpp_a: lcd at 3 { + reg = <0>; + fsl,pinmux-ids = <0x1000 0x1010 0x1020
0x1030
Quoted 5 lines
Quoted 5 lines
arch/arm/boot/dts/imx28.dtsi +5
-0+ 0x1040 0x1050 0x1060 0x1070 + 0x1080 0x1090 0x10a0 0x10b0 + 0x10c0 0x10d0 0x10e0 0x10f0 + 0x1100 0x1110 0x1120 0x1130 + 0x1140 0x1150 0x1160 0x1170>;
Quoted 8 lines
arch/arm/boot/dts/imx28.dtsi line 232
Quoted 5 lines
arch/arm/boot/dts/imx28.dtsi +5
-0+ fsl,drive-strength = <0>; + fsl,voltage = <1>; + fsl,pull-up = <0>; + }; +We do not want to enumerate all the possible mux options. Instead, please add mux setting when there is indeed a user for it.
Well, I'd prefer to have it ready to be used, instead of having partial slabs of muxes. But whatever.
Is anyone converting the LCD driver over to DT or not?
Best regards,
Marek Vasut