ARM: S5P: Add platform support for MIPI-CSI2 devices
Subsystems (3)
cover ARM: S5P: Add platform support for MIPI-CSI2 devices
Hello,
the following patch series adds S5P platform support for MIPI-CSI2 devices. It has been rebased onto next-samsung branch at:git://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung.git
[PATCH 1/4] mach-s5pv210: Add platform definitions for mipi-csis [PATCH 2/4] mach-s5pv310: Add resource definitions for mipi-csis [PATCH 3/4] plat-s5p: Add platform support for MIPI-CSI2 devices [PATCH 4/4] mach-s5pv210: Add MIPI-CSI DPHY clock definition
Thanks.
--
Sylwester Nawrocki
Linux Platform Group
Samsung Poland R&D Center
PATCH 1/4 mach-s5pv210: Add platform definitions for mipi-csis
Added resource definitions for mipi-csis interface, naming changed for consistency with s5pv310 where there are two instances of the device.
--- arch/arm/mach-s5pv210/include/mach/irqs.h | 2 +- arch/arm/mach-s5pv210/include/mach/map.h | 4 ++++ arch/arm/mach-s5pv210/include/mach/regs-clock.h | 5 +---- 3 files changed, 6 insertions(+), 5 deletions(-)
arch/arm/mach-s5pv210/include/mach/irqs.h +1 -1
@@ -65,7 +65,7 @@#define IRQ_HSMMC0 S5P_IRQ_VIC1(26)#define IRQ_HSMMC1 S5P_IRQ_VIC1(27)#define IRQ_HSMMC2 S5P_IRQ_VIC1(28) -#define IRQ_MIPICSI S5P_IRQ_VIC1(29) +#define IRQ_MIPICSI0 S5P_IRQ_VIC1(29)#define IRQ_MIPIDSI S5P_IRQ_VIC1(30)#define IRQ_ONENAND_AUDI S5P_IRQ_VIC1(31)
arch/arm/mach-s5pv210/include/mach/map.h +4 -0
@@ -107,6 +107,9 @@#define S5PV210_PA_DMC0 (0xF0000000)#define S5PV210_PA_DMC1 (0xF1400000) +/* MIPI CSI */ +#define S5PV210_PA_CSIS 0xFA600000 +/* compatibiltiy defines. */ #define S3C_PA_UART S5PV210_PA_UART#define S3C_PA_HSMMC0 S5PV210_PA_HSMMC(0)
@@ -123,6 +126,7 @@#define S5P_PA_FIMC0 S5PV210_PA_FIMC0#define S5P_PA_FIMC1 S5PV210_PA_FIMC1#define S5P_PA_FIMC2 S5PV210_PA_FIMC2 +#define S5P_PA_CSIS0 S5PV210_PA_CSIS#define SAMSUNG_PA_ADC S5PV210_PA_ADC#define SAMSUNG_PA_CFCON S5PV210_PA_CFCON
arch/arm/mach-s5pv210/include/mach/regs-clock.h +1 -4
@@ -161,7 +161,7 @@#define S5P_MDNIE_SEL S5P_CLKREG(0x7008)#define S5P_MIPI_PHY_CON0 S5P_CLKREG(0x7200)#define S5P_MIPI_PHY_CON1 S5P_CLKREG(0x7204) -#define S5P_MIPI_CONTROL S5P_CLKREG(0xE814) +#define S5P_MIPI_DPHY_CONTROL S5P_CLKREG(0xE814)#define S5P_IDLE_CFG_TL_MASK (3 << 30)#define S5P_IDLE_CFG_TM_MASK (3 << 28)
@@ -195,9 +195,6 @@#define S5P_OTHERS_RET_UART (1 << 28)#define S5P_OTHERS_USB_SIG_MASK (1 << 16) -/* MIPI */ -#define S5P_MIPI_DPHY_EN (3) -/* S5P_DAC_CONTROL */ #define S5P_DAC_ENABLE (1)#define S5P_DAC_DISABLE (0)
Signature · 1 line
1.7.1
PATCH 1/4 mach-s5pv210: Add platform definitions for mipi-csis
Quoted 19 lines · Sylwester Nawrocki
Added resource definitions for mipi-csis interface, naming changed for consistency with s5pv310 where there are two instances of the device.
Signed-off-by Sylwester Nawrocki <[email protected]>Signed-off-by Kyungmin Park <[email protected]>--- arch/arm/mach-s5pv210/include/mach/irqs.h | 2 +- arch/arm/mach-s5pv210/include/mach/map.h | 4 ++++ arch/arm/mach-s5pv210/include/mach/regs-clock.h | 5 +---- 3 files changed, 6 insertions(+), 5 deletions(-)arch/arm/mach- renamed from arch/arm/mach-s5pv210/include/mach/irqs.h +0
-0
s5pv210/include/mach/irqs.h
index 119b95f..8b5994c 100644
arch/arm/mach-s5pv210/include/mach/irqs.h line 68
Quoted 5 lines
arch/arm/mach-s5pv210/include/mach/irqs.h +1
-1@@ -65,7 +65,7 @@#define IRQ_HSMMC0 S5P_IRQ_VIC1(26)#define IRQ_HSMMC1 S5P_IRQ_VIC1(27)#define IRQ_HSMMC2 S5P_IRQ_VIC1(28) -#define IRQ_MIPICSI S5P_IRQ_VIC1(29) +#define IRQ_MIPICSI0 S5P_IRQ_VIC1(29)
Firstly don't use directly IRQ_MIPICSI0 which is used in platform device. Because it can be confused that there would be another MIPICSI such as MIPICSI1.
In that case, just use like following. For example,
---
@@ -132,5 +132,6 @@
#define IRQ_LCD_FIFO IRQ_LCD0 #define IRQ_LCD_VSYNC IRQ_LCD1 #define IRQ_LCD_SYSTEM IRQ_LCD2 +#define IRQ_MIPI_CSIS0 IRQ_MIPICSI
#endif /* ASM_ARCH_IRQS_H */
---
And I'm confused about the name of MIPI-CSI... Hmm...used MIPICSI or MIPI_CSI, sometimes MIPICSIS or MIPI_CSIS.
Maybe the meaning is Camera Serial Interface Slave... So...how about to use just one such as "IRQ_MIPI_CSIS" and "S5PV210_PA_MIPI_CSIS".
---
@@ -65,7 +65,7 @@
#define IRQ_HSMMC0 S5P_IRQ_VIC1(26) #define IRQ_HSMMC1 S5P_IRQ_VIC1(27) #define IRQ_HSMMC2 S5P_IRQ_VIC1(28) -#define IRQ_MIPICSI S5P_IRQ_VIC1(29) +#define IRQ_MIPI_CSIS S5P_IRQ_VIC1(29) #define IRQ_MIPIDSI S5P_IRQ_VIC1(30) #define IRQ_ONENAND_AUDI S5P_IRQ_VIC1(31)
@@ -132,5 +132,6 @@
#define IRQ_LCD_FIFO IRQ_LCD0 #define IRQ_LCD_VSYNC IRQ_LCD1 #define IRQ_LCD_SYSTEM IRQ_LCD2 +#define IRQ_MIPI_CSIS0 IRQ_MIPI_CSIS
#endif /* ASM_ARCH_IRQS_H */
---
arch/arm/mach-s5pv210/include/mach/map.h line 110
Quoted 13 lines
arch/arm/mach-s5pv210/include/mach/irqs.h +0
-0#define IRQ_MIPIDSI S5P_IRQ_VIC1(30)#define IRQ_ONENAND_AUDI S5P_IRQ_VIC1(31)arch/arm/mach- renamed from arch/arm/mach-s5pv210/include/mach/map.h +0
-0
s5pv210/include/mach/map.h
index 861d7fe..8f376f1 100644arch/arm/mach-s5pv210/include/mach/map.h +1
-0@@ -107,6 +107,9 @@#define S5PV210_PA_DMC0 (0xF0000000)#define S5PV210_PA_DMC1 (0xF1400000) +/* MIPI CSI */
No need comment.
arch/arm/mach-s5pv210/include/mach/map.h line 130
Quoted 11 lines
arch/arm/mach-s5pv210/include/mach/map.h +3
-0+#define S5PV210_PA_CSIS 0xFA600000 +/* compatibiltiy defines. */ #define S3C_PA_UART S5PV210_PA_UART#define S3C_PA_HSMMC0 S5PV210_PA_HSMMC(0)@@ -123,6 +126,7 @@#define S5P_PA_FIMC0 S5PV210_PA_FIMC0#define S5P_PA_FIMC1 S5PV210_PA_FIMC1#define S5P_PA_FIMC2 S5PV210_PA_FIMC2 +#define S5P_PA_CSIS0 S5PV210_PA_CSIS
Same as above.
Review
Quoted 3 lines
arch/arm/mach-s5pv210/include/mach/map.h +0
-0#define SAMSUNG_PA_ADC S5PV210_PA_ADC#define SAMSUNG_PA_CFCON S5PV210_PA_CFCON(quoted diff) +0
-0
b/arch/arm/mach-
Quoted 14 lines
s5pv210/include/mach/regs-clock.h
index ebaabe0..4c45b74 100644arch/arm/mach-s5pv210/include/mach/regs-clock.h +1
-1@@ -161,7 +161,7 @@#define S5P_MDNIE_SEL S5P_CLKREG(0x7008)#define S5P_MIPI_PHY_CON0 S5P_CLKREG(0x7200)#define S5P_MIPI_PHY_CON1 S5P_CLKREG(0x7204) -#define S5P_MIPI_CONTROL S5P_CLKREG(0xE814) +#define S5P_MIPI_DPHY_CONTROL S5P_CLKREG(0xE814)#define S5P_IDLE_CFG_TL_MASK (3 << 30)#define S5P_IDLE_CFG_TM_MASK (3 << 28)
arch/arm/mach-s5pv210/include/mach/regs-clock.h line 200
Quoted 6 lines
arch/arm/mach-s5pv210/include/mach/regs-clock.h +0
-3@@ -195,9 +195,6 @@#define S5P_OTHERS_RET_UART (1 << 28)#define S5P_OTHERS_USB_SIG_MASK (1 << 16) -/* MIPI */ -#define S5P_MIPI_DPHY_EN (3) -
Great.
arch/arm/mach-s5pv210/include/mach/regs-clock.h
Quoted 4 lines
arch/arm/mach-s5pv210/include/mach/regs-clock.h +0
-1/* S5P_DAC_CONTROL */ #define S5P_DAC_ENABLE (1)#define S5P_DAC_DISABLE (0) --
Thanks.
Best regards,
Kgene.
--
Kukjin Kim <[email protected]>, Senior Engineer, SW Solution Development Team, Samsung Electronics Co., Ltd.
PATCH 1/4 mach-s5pv210: Add platform definitions for mipi-csis
Quoted 14 lines · Kukjin Kim
Quoted 13 lines · Sylwester Nawrocki
Added resource definitions for mipi-csis interface, naming changed for consistency with s5pv310 where there are two instances of the device.
Signed-off-by Sylwester Nawrocki <[email protected]>Signed-off-by Kyungmin Park <[email protected]>---
?arch/arm/mach-s5pv210/include/mach/irqs.h ? ? ? | ? ?2 +- ?arch/arm/mach-s5pv210/include/mach/map.h ? ? ? ?| ? ?4 ++++ ?arch/arm/mach-s5pv210/include/mach/regs-clock.h | ? ?5 +----?3 files changed, 6 insertions(+), 5 deletions(-)
Quoted 16 lines
arch/arm/mach-s5pv210/include/mach/irqs.h line 68
Quoted 11 lines
arch/arm/mach- renamed from arch/arm/mach-s5pv210/include/mach/irqs.h +0
-0
s5pv210/include/mach/irqs.h
index 119b95f..8b5994c 100644arch/arm/mach-s5pv210/include/mach/irqs.h +1
-1@@ -65,7 +65,7 @@ ?#define IRQ_HSMMC0 ? ? ? ? ? S5P_IRQ_VIC1(26) ?#define IRQ_HSMMC1 ? ? ? ? ? S5P_IRQ_VIC1(27) ?#define IRQ_HSMMC2 ? ? ? ? ? S5P_IRQ_VIC1(28) -#define IRQ_MIPICSI ? ? ? ? ?S5P_IRQ_VIC1(29) +#define IRQ_MIPICSI0 ? ? ? ? S5P_IRQ_VIC1(29)Firstly don't use directly
IRQ_MIPICSI0which is used in platform device. Because it can be confused that there would be another MIPICSI such as MIPICSI1.
In that case, just use like following. For example,
Hi,
First respect others work.
my impression is that you forced the developers to work as you want.
okay who summit this code? If you think name is odd, then you check it before you submitted.
When you commit the code is okay, but other should be considered as yours.
Quoted 11 lines
---
(quoted diff) +0
-0@@ -132,5 +132,6 @@?#define
IRQ_LCD_FIFO? ? ? ? ?IRQ_LCD0
?#defineIRQ_LCD_VSYNC? ? ? ? ?IRQ_LCD1
?#defineIRQ_LCD_SYSTEM? ? ? ?IRQ_LCD2
+#defineIRQ_MIPI_CSIS0? ? ? ?IRQ_MIPICSI?#endif /*
ASM_ARCH_IRQS_H*/
---
Quoted 6 lines
And I'm confused about the name of MIPI-CSI... Hmm...used MIPICSI or
MIPI_CSI, sometimes MIPICSIS orMIPI_CSIS.Maybe the meaning is Camera Serial Interface Slave... So...how about to use just one such as "
IRQ_MIPI_CSIS" and "S5PV210_PA_MIPI_CSIS".
I think it's better use the common word, CSI. I can't find CSIS word at googling.
Quoted 12 lines
---
(quoted diff) +1
-1@@ -65,7 +65,7 @@ ?#define IRQ_HSMMC0 ? ? ? ? ? ? S5P_IRQ_VIC1(26) ?#define IRQ_HSMMC1 ? ? ? ? ? ? S5P_IRQ_VIC1(27) ?#define IRQ_HSMMC2 ? ? ? ? ? ? S5P_IRQ_VIC1(28) -#define IRQ_MIPICSI ? ? ? ? ? ?S5P_IRQ_VIC1(29) +#define IRQ_MIPI_CSIS ? ? ? ? ?S5P_IRQ_VIC1(29) ?#define IRQ_MIPIDSI ? ? ? ? ? ?S5P_IRQ_VIC1(30) ?#define IRQ_ONENAND_AUDI ? ? ? S5P_IRQ_VIC1(31)@@ -132,5 +132,6 @@
Quoted 4 lines
?#define
IRQ_LCD_FIFO? ? ? ? ?IRQ_LCD0
?#defineIRQ_LCD_VSYNC? ? ? ? ?IRQ_LCD1
?#defineIRQ_LCD_SYSTEM? ? ? ?IRQ_LCD2
+#defineIRQ_MIPI_CSIS0? ? ? ?IRQ_MIPI_CSIS
In this case, I can't find any good reason since it's first used. as s3c series used the different names compare to s5p series. it's okay make these wrapper.
but it's new one and not used previous time.
Thank you,
Kyungmin Park
Quoted 79 lines
?#endif /*
ASM_ARCH_IRQS_H*/
---arch/arm/mach-s5pv210/include/mach/map.h line 110
Quoted 13 lines
arch/arm/mach-s5pv210/include/mach/irqs.h +0
-0?#define IRQ_MIPIDSI ? ? ? ? ?S5P_IRQ_VIC1(30) ?#define IRQ_ONENAND_AUDI ? ? S5P_IRQ_VIC1(31)arch/arm/mach- renamed from arch/arm/mach-s5pv210/include/mach/map.h +0
-0
s5pv210/include/mach/map.h
index 861d7fe..8f376f1 100644arch/arm/mach-s5pv210/include/mach/map.h +1
-0@@ -107,6 +107,9 @@ ?#define S5PV210_PA_DMC0 ? ? ? ? ? ? ?(0xF0000000) ?#define S5PV210_PA_DMC1 ? ? ? ? ? ? ?(0xF1400000) +/* MIPI CSI */ No need comment.
Quoted 11 lines
arch/arm/mach-s5pv210/include/mach/map.h +2
-0+#define S5PV210_PA_CSIS ? ? ? ? ? ? ?0xFA600000 +?/* compatibiltiy defines. */
?#defineS3C_PA_UART? ? ? ? ?S5PV210_PA_UART ?#defineS3C_PA_HSMMC0? ? ? ? ? ? ? ?S5PV210_PA_HSMMC(0)arch/arm/mach-s5pv210/include/mach/map.h +0
-0@@ -123,6 +126,7 @@?#define
S5P_PA_FIMC0? ? ? ?S5PV210_PA_FIMC0?#defineS5P_PA_FIMC1? ? ? ?S5PV210_PA_FIMC1?#defineS5P_PA_FIMC2? ? ? ?S5PV210_PA_FIMC2+#defineS5P_PA_CSIS0? ? ? ?S5PV210_PA_CSISSame as above.
Review
Quoted 3 lines
?#define
SAMSUNG_PA_ADC? ? ? ? ? ? ?S5PV210_PA_ADC?#defineSAMSUNG_PA_CFCON? ?S5PV210_PA_CFCON(quoted diff) +0
-0b/arch/arm/mach-
Quoted 14 lines
s5pv210/include/mach/regs-clock.h
index ebaabe0..4c45b74 100644arch/arm/mach-s5pv210/include/mach/regs-clock.h +1
-1@@ -161,7 +161,7 @@ ?#define S5P_MDNIE_SEL ? ? ? ? ? ? ? ?S5P_CLKREG(0x7008) ?#define S5P_MIPI_PHY_CON0 ? ?S5P_CLKREG(0x7200) ?#define S5P_MIPI_PHY_CON1 ? ?S5P_CLKREG(0x7204) -#define S5P_MIPI_CONTROL ? ? S5P_CLKREG(0xE814) +#define S5P_MIPI_DPHY_CONTROL ? ? ? ?S5P_CLKREG(0xE814) ?#define S5P_IDLE_CFG_TL_MASK (3 << 30) ?#define S5P_IDLE_CFG_TM_MASK (3 << 28)arch/arm/mach-s5pv210/include/mach/regs-clock.h line 200
Quoted 6 lines
arch/arm/mach-s5pv210/include/mach/regs-clock.h +0
-3@@ -195,9 +195,6 @@ ?#define S5P_OTHERS_RET_UART ? ? ? ? ?(1 << 28) ?#define S5P_OTHERS_USB_SIG_MASK ? ? ? ? ? ? ?(1 << 16) -/* MIPI */ -#define S5P_MIPI_DPHY_EN ? ? ? ? ? ? (3) -Great.
Quoted 4 lines
?/*
S5P_DAC_CONTROL*/
?#defineS5P_DAC_ENABLE? ? ? ? ? ? ? ? ? ? ? (1) ?#defineS5P_DAC_DISABLE? ? ? ? ? ? ? ? ? ? ?(0) --Thanks.
Best regards,
Kgene.
--
Kukjin Kim <[email protected]>, Senior Engineer, SW Solution Development Team, Samsung Electronics Co., Ltd.--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo at vger.kernel.org
More majordomo info at ?http://vger.kernel.org/majordomo-info.html
PATCH 1/4 mach-s5pv210: Add platform definitions for mipi-csis
Quoted 16 lines · Kyungmin Park
Quoted 14 lines · Kukjin Kim
Quoted 13 lines · Sylwester Nawrocki
Added resource definitions for mipi-csis interface, naming changed for consistency with s5pv310 where there are two instances of the device.
Signed-off-by Sylwester Nawrocki <[email protected]>Signed-off-by Kyungmin Park <[email protected]>---
?arch/arm/mach-s5pv210/include/mach/irqs.h ? ? ? | ? ?2 +- ?arch/arm/mach-s5pv210/include/mach/map.h ? ? ? ?| ? ?4 ++++ ?arch/arm/mach-s5pv210/include/mach/regs-clock.h | ? ?5 +----?3 files changed, 6 insertions(+), 5 deletions(-)
Quoted 13 lines
Quoted 5 lines
Quoted 5 lines
arch/arm/mach- renamed from arch/arm/mach-s5pv210/include/mach/irqs.h +0
-0
s5pv210/include/mach/irqs.h
index 119b95f..8b5994c 100644arch/arm/mach-s5pv210/include/mach/irqs.h +0
-0Quoted 8 lines
arch/arm/mach-s5pv210/include/mach/irqs.h line 68
Quoted 6 lines
arch/arm/mach-s5pv210/include/mach/irqs.h +1
-1@@ -65,7 +65,7 @@ ?#define IRQ_HSMMC0 ? ? ? ? ? S5P_IRQ_VIC1(26) ?#define IRQ_HSMMC1 ? ? ? ? ? S5P_IRQ_VIC1(27) ?#define IRQ_HSMMC2 ? ? ? ? ? S5P_IRQ_VIC1(28) -#define IRQ_MIPICSI ? ? ? ? ?S5P_IRQ_VIC1(29) +#define IRQ_MIPICSI0 ? ? ? ? S5P_IRQ_VIC1(29)Firstly don't use directly
IRQ_MIPICSI0which is used in platform
device.
Quoted 12 lines
Quoted 3 lines
Because it can be confused that there would be another MIPICSI such as MIPICSI1.
In that case, just use like following. For example,Hi,
First respect others work.
my impression is that you forced the developers to work as you want.okay who summit this code? If you think name is odd, then you check it before you submitted.
When you commit the code is okay, but other should be considered as yours.
I can't get you :-(
Maybe your talking is to change the name? Why?... When submitted it, used written name, IRQ_MIPICSI in datasheet.
But now, according to Sylwester's patch, used various name for it like MIPICSI, MIPICSIS and so on.
So I suggested just one name in previous my comment.
Quoted 14 lines
Quoted 14 lines
---
(quoted diff) +0
-0@@ -132,5 +132,6 @@?#define
IRQ_LCD_FIFO? ? ? ? ?IRQ_LCD0
?#defineIRQ_LCD_VSYNC? ? ? ? ?IRQ_LCD1
?#defineIRQ_LCD_SYSTEM? ? ? ?IRQ_LCD2
+#defineIRQ_MIPI_CSIS0? ? ? ?IRQ_MIPICSI?#endif /*
ASM_ARCH_IRQS_H*/
---And I'm confused about the name of MIPI-CSI... Hmm...used MIPICSI or
MIPI_CSI, sometimes MIPICSIS orMIPI_CSIS.
Quoted 7 lines
Quoted 3 lines
Maybe the meaning is Camera Serial Interface Slave... So...how about to use just one such as "
IRQ_MIPI_CSIS" and "S5PV210_PA_MIPI_CSIS".I think it's better use the common word, CSI. I can't find CSIS word at googling.
But used it in datasheet. How about FIMC, I think, it depends on usage of datasheet.
Quoted 11 lines
Quoted 11 lines
---
(quoted diff) +1
-1@@ -65,7 +65,7 @@ ?#define IRQ_HSMMC0 ? ? ? ? ? ? S5P_IRQ_VIC1(26) ?#define IRQ_HSMMC1 ? ? ? ? ? ? S5P_IRQ_VIC1(27) ?#define IRQ_HSMMC2 ? ? ? ? ? ? S5P_IRQ_VIC1(28) -#define IRQ_MIPICSI ? ? ? ? ? ?S5P_IRQ_VIC1(29) +#define IRQ_MIPI_CSIS ? ? ? ? ?S5P_IRQ_VIC1(29) ?#define IRQ_MIPIDSI ? ? ? ? ? ?S5P_IRQ_VIC1(30) ?#define IRQ_ONENAND_AUDI ? ? ? S5P_IRQ_VIC1(31)
Quoted 11 lines
Quoted 5 lines
(quoted diff) +0
-0@@ -132,5 +132,6 @@?#define
IRQ_LCD_FIFO? ? ? ? ?IRQ_LCD0
?#defineIRQ_LCD_VSYNC? ? ? ? ?IRQ_LCD1
?#defineIRQ_LCD_SYSTEM? ? ? ?IRQ_LCD2
+#defineIRQ_MIPI_CSIS0? ? ? ?IRQ_MIPI_CSISIn this case, I can't find any good reason since it's first used. as s3c series used the different names compare to s5p series. it's okay make these wrapper.
but it's new one and not used previous time.
I already commented about that.
Shortly, IRQ_MIPI_CSIS0 is used as common name for S5PV210 and S5PV310 in plat-s5p.
And IRQ_MIPI_CSI is used as specific name on S5PV210. So needed it.
Thanks.
Best regards,
Kgene.
--
Kukjin Kim <[email protected]>, Senior Engineer, SW Solution Development Team, Samsung Electronics Co., Ltd.
PATCH 1/4 mach-s5pv210: Add platform definitions for mipi-csis
Quoted 3 lines · Kukjin Kim
Quoted 1 line · Kyungmin Park
One more..
Quoted 7 lines
Quoted 7 lines
Quoted 6 lines
And I'm confused about the name of MIPI-CSI... Hmm...used MIPICSI or
MIPI_CSI, sometimes MIPICSIS orMIPI_CSIS.Maybe the meaning is Camera Serial Interface Slave... So...how about to use just one such as "
IRQ_MIPI_CSIS" and "S5PV210_PA_MIPI_CSIS".
Quoted 6 lines
Quoted 3 lines
I think it's better use the common word, CSI. I can't find CSIS word at googling.
But used it in datasheet. How about FIMC, I think, it depends on usage of datasheet.
However, if required, it can be changed...
I meant to use written name in datasheet is better to us.
Quoted 22 lines
Quoted 11 lines
Quoted 11 lines
---
(quoted diff) +1
-1@@ -65,7 +65,7 @@ ?#define IRQ_HSMMC0 ? ? ? ? ? ? S5P_IRQ_VIC1(26) ?#define IRQ_HSMMC1 ? ? ? ? ? ? S5P_IRQ_VIC1(27) ?#define IRQ_HSMMC2 ? ? ? ? ? ? S5P_IRQ_VIC1(28) -#define IRQ_MIPICSI ? ? ? ? ? ?S5P_IRQ_VIC1(29) +#define IRQ_MIPI_CSIS ? ? ? ? ?S5P_IRQ_VIC1(29) ?#define IRQ_MIPIDSI ? ? ? ? ? ?S5P_IRQ_VIC1(30) ?#define IRQ_ONENAND_AUDI ? ? ? S5P_IRQ_VIC1(31)Quoted 11 lines
Quoted 5 lines
(quoted diff) +0
-0@@ -132,5 +132,6 @@?#define
IRQ_LCD_FIFO? ? ? ? ?IRQ_LCD0
?#defineIRQ_LCD_VSYNC? ? ? ? ?IRQ_LCD1
?#defineIRQ_LCD_SYSTEM? ? ? ?IRQ_LCD2
+#defineIRQ_MIPI_CSIS0? ? ? ?IRQ_MIPI_CSISIn this case, I can't find any good reason since it's first used. as s3c series used the different names compare to s5p series. it's okay make these wrapper.
but it's new one and not used previous time.
Quoted 5 lines
I already commented about that.
Shortly,IRQ_MIPI_CSIS0is used as common name for S5PV210 and S5PV310 in plat-s5p.
AndIRQ_MIPI_CSIis used as specific name on S5PV210. So needed it.
To use IRQ_MIPI_CSIS means just one on S5PV210.
Thanks.
Best regards,
Kgene.
--
Kukjin Kim <[email protected]>, Senior Engineer, SW Solution Development Team, Samsung Electronics Co., Ltd.
PATCH 1/4 mach-s5pv210: Add platform definitions for mipi-csis
In reply to Kyungmin ParkQuoted 54 lines · Kyungmin Park
Quoted 14 lines · Kukjin Kim
Quoted 13 lines · Sylwester Nawrocki
Added resource definitions for mipi-csis interface, naming changed for consistency with s5pv310 where there are two instances of the device.
Signed-off-by Sylwester Nawrocki <[email protected]>Signed-off-by Kyungmin Park <[email protected]>--- arch/arm/mach-s5pv210/include/mach/irqs.h | 2 +- arch/arm/mach-s5pv210/include/mach/map.h | 4 ++++ arch/arm/mach-s5pv210/include/mach/regs-clock.h | 5 +---- 3 files changed, 6 insertions(+), 5 deletions(-)Quoted 16 lines
arch/arm/mach-s5pv210/include/mach/irqs.h line 68
Quoted 11 lines
arch/arm/mach- renamed from arch/arm/mach-s5pv210/include/mach/irqs.h +0
-0
s5pv210/include/mach/irqs.h
index 119b95f..8b5994c 100644arch/arm/mach-s5pv210/include/mach/irqs.h +1
-1@@ -65,7 +65,7 @@#define IRQ_HSMMC0 S5P_IRQ_VIC1(26)#define IRQ_HSMMC1 S5P_IRQ_VIC1(27)#define IRQ_HSMMC2 S5P_IRQ_VIC1(28) -#define IRQ_MIPICSI S5P_IRQ_VIC1(29) +#define IRQ_MIPICSI0 S5P_IRQ_VIC1(29)Firstly don't use directly
IRQ_MIPICSI0which is used in platform device. Because it can be confused that there would be another MIPICSI such as MIPICSI1.
In that case, just use like following. For example,Hi,
First respect others work.
my impression is that you forced the developers to work as you want.okay who summit this code? If you think name is odd, then you check it before you submitted.
When you commit the code is okay, but other should be considered as yours.Quoted 14 lines
---
(quoted diff) +1
-1@@ -132,5 +132,6 @@ #define IRQ_LCD_FIFO IRQ_LCD0 #define IRQ_LCD_VSYNC IRQ_LCD1 #define IRQ_LCD_SYSTEM IRQ_LCD2 +#define IRQ_MIPI_CSIS0 IRQ_MIPICSI #endif /* ASM_ARCH_IRQS_H */ ---And I'm confused about the name of MIPI-CSI... Hmm...used MIPICSI or
MIPI_CSI, sometimes MIPICSIS orMIPI_CSIS.
Quoted 6 lines
Quoted 3 lines
Maybe the meaning is Camera Serial Interface Slave... So...how about to use just one such as "
IRQ_MIPI_CSIS" and "S5PV210_PA_MIPI_CSIS".I think it's better use the common word, CSI. I can't find CSIS word at googling.
Yeah, you are making a good point Kyungmin. I just wanted to make it more human friendly by using CSI instead of CSIS. However I guess we would be better off using exact names from the datasheet.
The worst thing is that the datasheet often lacks an explanation of what some of that cryptic names like MIPI CSIS, FIMC, FIMD, etc. mean.
For those who still don't know:
MIPI CSIS - MIPI Camera Serial Interface Slave
FIMC - Fully Interactive Mobile Camera
FIMD - Fully Interactive Mobile Display
Regards,
Signature · 3 lines
Sylwester Nawrocki Linux Platform Group Samsung Poland R&D Center
PATCH 1/4 mach-s5pv210: Add platform definitions for mipi-csis
In reply to Kukjin KimQuoted 41 lines · Kukjin Kim
Quoted 19 lines · Sylwester Nawrocki
Added resource definitions for mipi-csis interface, naming changed for consistency with s5pv310 where there are two instances of the device.
Signed-off-by Sylwester Nawrocki <[email protected]>Signed-off-by Kyungmin Park <[email protected]>--- arch/arm/mach-s5pv210/include/mach/irqs.h | 2 +- arch/arm/mach-s5pv210/include/mach/map.h | 4 ++++ arch/arm/mach-s5pv210/include/mach/regs-clock.h | 5 +---- 3 files changed, 6 insertions(+), 5 deletions(-)arch/arm/mach- renamed from arch/arm/mach-s5pv210/include/mach/irqs.h +0
-0
s5pv210/include/mach/irqs.h
index 119b95f..8b5994c 100644arch/arm/mach-s5pv210/include/mach/irqs.h line 68
Quoted 5 lines
arch/arm/mach-s5pv210/include/mach/irqs.h +1
-1@@ -65,7 +65,7 @@#define IRQ_HSMMC0 S5P_IRQ_VIC1(26)#define IRQ_HSMMC1 S5P_IRQ_VIC1(27)#define IRQ_HSMMC2 S5P_IRQ_VIC1(28) -#define IRQ_MIPICSI S5P_IRQ_VIC1(29) +#define IRQ_MIPICSI0 S5P_IRQ_VIC1(29)Firstly don't use directly
IRQ_MIPICSI0which is used in platform device. Because it can be confused that there would be another MIPICSI such as MIPICSI1.
In that case, just use like following. For example,---
(quoted diff) +1
-1@@ -132,5 +132,6 @@ #define IRQ_LCD_FIFO IRQ_LCD0 #define IRQ_LCD_VSYNC IRQ_LCD1 #define IRQ_LCD_SYSTEM IRQ_LCD2 +#define IRQ_MIPI_CSIS0 IRQ_MIPICSI #endif /* ASM_ARCH_IRQS_H */ ---
Quoted 2 lines
And I'm confused about the name of MIPI-CSI... Hmm...used MIPICSI or
MIPI_CSI, sometimes MIPICSIS orMIPI_CSIS.
Yes, I agree it still looks a bit messy..
Quoted 16 lines
Maybe the meaning is Camera Serial Interface Slave... So...how about to use just one such as "
IRQ_MIPI_CSIS" and "S5PV210_PA_MIPI_CSIS".---
arch/arm/mach-s5pv210/include/mach/irqs.h +1
-1@@ -65,7 +65,7 @@#define IRQ_HSMMC0 S5P_IRQ_VIC1(26)#define IRQ_HSMMC1 S5P_IRQ_VIC1(27)#define IRQ_HSMMC2 S5P_IRQ_VIC1(28) -#define IRQ_MIPICSI S5P_IRQ_VIC1(29) +#define IRQ_MIPI_CSIS S5P_IRQ_VIC1(29)#define IRQ_MIPIDSI S5P_IRQ_VIC1(30)#define IRQ_ONENAND_AUDI S5P_IRQ_VIC1(31)
arch/arm/mach-s5pv210/include/mach/irqs.h line 135
Quoted 4 lines
arch/arm/mach-s5pv210/include/mach/irqs.h +1
-0@@ -132,5 +132,6 @@#define IRQ_LCD_FIFO IRQ_LCD0#define IRQ_LCD_VSYNC IRQ_LCD1#define IRQ_LCD_SYSTEM IRQ_LCD2 +#define IRQ_MIPI_CSIS0 IRQ_MIPI_CSIS
Ok, agreed. I will incorporate that in next patch version. IRQ_MIPI_CSIS0 for both s5pv210, s5pv310 in dev-csis?.c
Quoted 20 lines
(quoted diff) +0
-1#endif /* ASM_ARCH_IRQS_H */ ---Quoted 10 lines
arch/arm/mach-s5pv210/include/mach/irqs.h +0
-0#define IRQ_MIPIDSI S5P_IRQ_VIC1(30)#define IRQ_ONENAND_AUDI S5P_IRQ_VIC1(31)arch/arm/mach- renamed from arch/arm/mach-s5pv210/include/mach/map.h +0
-0
s5pv210/include/mach/map.h
index 861d7fe..8f376f1 100644arch/arm/mach-s5pv210/include/mach/map.h line 110
Quoted 4 lines
arch/arm/mach-s5pv210/include/mach/map.h +1
-0@@ -107,6 +107,9 @@#define S5PV210_PA_DMC0 (0xF0000000)#define S5PV210_PA_DMC1 (0xF1400000) +/* MIPI CSI */ No need comment.
Quoted 12 lines
arch/arm/mach-s5pv210/include/mach/map.h line 130
Quoted 11 lines
arch/arm/mach-s5pv210/include/mach/map.h +3
-0+#define S5PV210_PA_CSIS 0xFA600000 +/* compatibiltiy defines. */ #define S3C_PA_UART S5PV210_PA_UART#define S3C_PA_HSMMC0 S5PV210_PA_HSMMC(0)@@ -123,6 +126,7 @@#define S5P_PA_FIMC0 S5PV210_PA_FIMC0#define S5P_PA_FIMC1 S5PV210_PA_FIMC1#define S5P_PA_FIMC2 S5PV210_PA_FIMC2 +#define S5P_PA_CSIS0 S5PV210_PA_CSISSame as above.
Ok, I am going to subsitute S5PV210_PA_CSIS with S5PV210_PA_MIPI_CSIS.
Quoted 22 lines
Review
Quoted 4 lines
arch/arm/mach-s5pv210/include/mach/map.h +0
-0#define SAMSUNG_PA_ADC S5PV210_PA_ADC#define SAMSUNG_PA_CFCON S5PV210_PA_CFCON(quoted diff) +0
-0b/arch/arm/mach-
Quoted 17 lines
s5pv210/include/mach/regs-clock.h
index ebaabe0..4c45b74 100644arch/arm/mach-s5pv210/include/mach/regs-clock.h +1
-1@@ -161,7 +161,7 @@#define S5P_MDNIE_SEL S5P_CLKREG(0x7008)#define S5P_MIPI_PHY_CON0 S5P_CLKREG(0x7200)#define S5P_MIPI_PHY_CON1 S5P_CLKREG(0x7204) -#define S5P_MIPI_CONTROL S5P_CLKREG(0xE814) +#define S5P_MIPI_DPHY_CONTROL S5P_CLKREG(0xE814)#define S5P_IDLE_CFG_TL_MASK (3 << 30)#define S5P_IDLE_CFG_TM_MASK (3 << 28)@@ -195,9 +195,6 @@#define S5P_OTHERS_RET_UART (1 << 28)#define S5P_OTHERS_USB_SIG_MASK (1 << 16)
Quoted 10 lines
arch/arm/mach-s5pv210/include/mach/regs-clock.h line 200
Quoted 3 lines
arch/arm/mach-s5pv210/include/mach/regs-clock.h +0
-3-/* MIPI */ -#define S5P_MIPI_DPHY_EN (3) -Great.
Quoted 4 lines
arch/arm/mach-s5pv210/include/mach/regs-clock.h +0
-1/* S5P_DAC_CONTROL */ #define S5P_DAC_ENABLE (1)#define S5P_DAC_DISABLE (0) --
Regards,
Sylwester
Signature · 3 lines
Sylwester Nawrocki Linux Platform Group Samsung Poland R&D Center
PATCH 2/4 mach-s5pv310: Add resource definitions for mipi-csis
In reply to Sylwester NawrockiAdd IRQ and register base address definitions for mipi-csis devices.
--- arch/arm/mach-s5pv310/include/mach/irqs.h | 3 +++ arch/arm/mach-s5pv310/include/mach/map.h | 5 +++++ 2 files changed, 8 insertions(+), 0 deletions(-)
arch/arm/mach-s5pv310/include/mach/irqs.h +3 -0
@@ -83,6 +83,9 @@#define IRQ_HSMMC2 COMBINER_IRQ(29, 2)#define IRQ_HSMMC3 COMBINER_IRQ(29, 3) +#define IRQ_MIPICSI0 COMBINER_IRQ(30, 0) +#define IRQ_MIPICSI1 COMBINER_IRQ(30, 1) +#define IRQ_ONENAND_AUDI COMBINER_IRQ(34, 0)#define IRQ_EINT4 COMBINER_IRQ(37, 0)
arch/arm/mach-s5pv310/include/mach/map.h +5 -0
@@ -56,6 +56,9 @@#define S5PV310_PA_GPIO2 (0x11000000)#define S5PV310_PA_GPIO3 (0x03860000) +#define S5PV310_PA_CSIS0 (0x11880000) +#define S5PV310_PA_CSIS1 (0x11890000) +#define S5PV310_PA_HSMMC (x) (0x12510000 + ((x) * 0x10000))#define S5PV310_PA_SROMC (0x12570000)
@@ -95,5 +98,7 @@#define S3C_PA_IIC7 S5PV310_PA_IIC(7)#define S3C_PA_RTC S5PV310_PA_RTC#define S3C_PA_WDT S5PV310_PA_WATCHDOG +#define S5P_PA_CSIS0 S5PV310_PA_CSIS0 +#define S5P_PA_CSIS1 S5PV310_PA_CSIS1#endif /* __ASM_ARCH_MAP_H */
Signature · 1 line
1.7.1
PATCH 2/4 mach-s5pv310: Add resource definitions for mipi-csis
Quoted 41 lines · Sylwester Nawrocki
Add IRQ and register base address definitions for mipi-csis devices.
Signed-off-by Sylwester Nawrocki <[email protected]>Signed-off-by Kyungmin Park <[email protected]>--- arch/arm/mach-s5pv310/include/mach/irqs.h | 3 +++ arch/arm/mach-s5pv310/include/mach/map.h | 5 +++++ 2 files changed, 8 insertions(+), 0 deletions(-)arch/arm/mach- renamed from arch/arm/mach-s5pv310/include/mach/irqs.h +0
-0
s5pv310/include/mach/irqs.h
index 99e7dad..db63773 100644arch/arm/mach-s5pv310/include/mach/irqs.h +3
-0@@ -83,6 +83,9 @@#define IRQ_HSMMC2 COMBINER_IRQ(29, 2)#define IRQ_HSMMC3 COMBINER_IRQ(29, 3) +#define IRQ_MIPICSI0 COMBINER_IRQ(30, 0) +#define IRQ_MIPICSI1 COMBINER_IRQ(30, 1) +#define IRQ_ONENAND_AUDI COMBINER_IRQ(34, 0)#define IRQ_EINT4 COMBINER_IRQ(37, 0)arch/arm/mach- renamed from arch/arm/mach-s5pv310/include/mach/map.h +0
-0
s5pv310/include/mach/map.h
index 7acf4e7..9905bfe 100644arch/arm/mach-s5pv310/include/mach/map.h +3
-0@@ -56,6 +56,9 @@#define S5PV310_PA_GPIO2 (0x11000000)#define S5PV310_PA_GPIO3 (0x03860000) +#define S5PV310_PA_CSIS0 (0x11880000) +#define S5PV310_PA_CSIS1 (0x11890000) +#define S5PV310_PA_HSMMC (x) (0x12510000 + ((x) * 0x10000))#define S5PV310_PA_SROMC (0x12570000)
arch/arm/mach-s5pv310/include/mach/map.h
Quoted 8 lines
arch/arm/mach-s5pv310/include/mach/map.h +2
-1@@ -95,5 +98,7 @@#define S3C_PA_IIC7 S5PV310_PA_IIC(7)#define S3C_PA_RTC S5PV310_PA_RTC#define S3C_PA_WDT S5PV310_PA_WATCHDOG +#define S5P_PA_CSIS0 S5PV310_PA_CSIS0 +#define S5P_PA_CSIS1 S5PV310_PA_CSIS1#endif /* __ASM_ARCH_MAP_H */ --
Please refer to previous my comment about the naming.
Thanks.
Best regards,
Kgene.
--
Kukjin Kim <[email protected]>, Senior Engineer, SW Solution Development Team, Samsung Electronics Co., Ltd.
PATCH 2/4 mach-s5pv310: Add resource definitions for mipi-csis
Quoted 35 lines · Kukjin Kim
Quoted 34 lines · Sylwester Nawrocki
Add IRQ and register base address definitions for mipi-csis devices.
Signed-off-by Sylwester Nawrocki <[email protected]>Signed-off-by Kyungmin Park <[email protected]>---
?arch/arm/mach-s5pv310/include/mach/irqs.h | ? ?3 +++ ?arch/arm/mach-s5pv310/include/mach/map.h ?| ? ?5 +++++ ?2 files changed, 8 insertions(+), 0 deletions(-)arch/arm/mach- renamed from arch/arm/mach-s5pv310/include/mach/irqs.h +0
-0
s5pv310/include/mach/irqs.h
index 99e7dad..db63773 100644arch/arm/mach-s5pv310/include/mach/irqs.h +3
-0@@ -83,6 +83,9 @@ ?#define IRQ_HSMMC2 ? ? ? ? ? COMBINER_IRQ(29, 2) ?#define IRQ_HSMMC3 ? ? ? ? ? COMBINER_IRQ(29, 3) +#define IRQ_MIPICSI0 ? ? ? ? COMBINER_IRQ(30, 0) +#define IRQ_MIPICSI1 ? ? ? ? COMBINER_IRQ(30, 1) + ?#define IRQ_ONENAND_AUDI ? ? COMBINER_IRQ(34, 0) ?#define IRQ_EINT4 ? ? ? ? ? ?COMBINER_IRQ(37, 0)arch/arm/mach- renamed from arch/arm/mach-s5pv310/include/mach/map.h +0
-0
s5pv310/include/mach/map.h
index 7acf4e7..9905bfe 100644arch/arm/mach-s5pv310/include/mach/map.h +0
-0@@ -56,6 +56,9 @@ ?#define S5PV310_PA_GPIO2 ? ? ? ? ? ? (0x11000000) ?#define S5PV310_PA_GPIO3 ? ? ? ? ? ? (0x03860000)
Quoted 2 lines
arch/arm/mach-s5pv310/include/mach/map.h line 60
Quoted 2 lines
arch/arm/mach-s5pv310/include/mach/map.h +2
-0+#define S5PV310_PA_CSIS0 ? ? ? ? ? ? (0x11880000) +#define S5PV310_PA_CSIS1 ? ? ? ? ? ? (0x11890000)
Let us please not contain constants in brackets.
PATCH 2/4 mach-s5pv310: Add resource definitions for mipi-csis
Quoted 36 lines · Jassi Brar
Quoted 35 lines · Kukjin Kim
Quoted 34 lines · Sylwester Nawrocki
Add IRQ and register base address definitions for mipi-csis devices.
Signed-off-by Sylwester Nawrocki <[email protected]>Signed-off-by Kyungmin Park <[email protected]>---
?arch/arm/mach-s5pv310/include/mach/irqs.h | ? ?3 +++ ?arch/arm/mach-s5pv310/include/mach/map.h ?| ? ?5 +++++ ?2 files changed, 8 insertions(+), 0 deletions(-)arch/arm/mach- renamed from arch/arm/mach-s5pv310/include/mach/irqs.h +0
-0
s5pv310/include/mach/irqs.h
index 99e7dad..db63773 100644arch/arm/mach-s5pv310/include/mach/irqs.h +3
-0@@ -83,6 +83,9 @@ ?#define IRQ_HSMMC2 ? ? ? ? ? COMBINER_IRQ(29, 2) ?#define IRQ_HSMMC3 ? ? ? ? ? COMBINER_IRQ(29, 3) +#define IRQ_MIPICSI0 ? ? ? ? COMBINER_IRQ(30, 0) +#define IRQ_MIPICSI1 ? ? ? ? COMBINER_IRQ(30, 1) + ?#define IRQ_ONENAND_AUDI ? ? COMBINER_IRQ(34, 0) ?#define IRQ_EINT4 ? ? ? ? ? ?COMBINER_IRQ(37, 0)arch/arm/mach- renamed from arch/arm/mach-s5pv310/include/mach/map.h +0
-0
s5pv310/include/mach/map.h
index 7acf4e7..9905bfe 100644arch/arm/mach-s5pv310/include/mach/map.h +0
-0@@ -56,6 +56,9 @@ ?#define S5PV310_PA_GPIO2 ? ? ? ? ? ? (0x11000000) ?#define S5PV310_PA_GPIO3 ? ? ? ? ? ? (0x03860000)
Quoted 4 lines
Quoted 2 lines
arch/arm/mach-s5pv310/include/mach/map.h line 60
Quoted 2 lines
arch/arm/mach-s5pv310/include/mach/map.h +2
-0+#define S5PV310_PA_CSIS0 ? ? ? ? ? ? (0x11880000) +#define S5PV310_PA_CSIS1 ? ? ? ? ? ? (0x11890000)Let us please not contain constants in brackets.
I think consistency is more higher than your comment normally.
if you think these, then make a cleanup first.
Quoted 5 lines
--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo at vger.kernel.org
More majordomo info at ?http://vger.kernel.org/majordomo-info.html
PATCH 2/4 mach-s5pv310: Add resource definitions for mipi-csis
Quoted 11 lines · Kyungmin Park
Quoted 6 lines · Jassi Brar
Review
Quoted 4 lines
Sylwester Nawrocki wrote:
(quoted diff) +2
-0+#define S5PV310_PA_CSIS0 ? ? ? ? ? ? (0x11880000) +#define S5PV310_PA_CSIS1 ? ? ? ? ? ? (0x11890000)Let us please not contain constants in brackets.
I think consistency is more higher than your comment normally.
if you think these, then make a cleanup first.
Bad logic. One shouldn't hold good practice at ransom because of the past bad ones.
PATCH 2/4 mach-s5pv310: Add resource definitions for mipi-csis
In reply to Jassi BrarQuoted 36 lines · Jassi Brar
Quoted 35 lines · Kukjin Kim
Quoted 34 lines · Sylwester Nawrocki
Add IRQ and register base address definitions for mipi-csis devices.
Signed-off-by Sylwester Nawrocki <[email protected]>Signed-off-by Kyungmin Park <[email protected]>--- arch/arm/mach-s5pv310/include/mach/irqs.h | 3 +++ arch/arm/mach-s5pv310/include/mach/map.h | 5 +++++ 2 files changed, 8 insertions(+), 0 deletions(-)arch/arm/mach- renamed from arch/arm/mach-s5pv310/include/mach/irqs.h +0
-0
s5pv310/include/mach/irqs.h
index 99e7dad..db63773 100644arch/arm/mach-s5pv310/include/mach/irqs.h +3
-0@@ -83,6 +83,9 @@#define IRQ_HSMMC2 COMBINER_IRQ(29, 2)#define IRQ_HSMMC3 COMBINER_IRQ(29, 3) +#define IRQ_MIPICSI0 COMBINER_IRQ(30, 0) +#define IRQ_MIPICSI1 COMBINER_IRQ(30, 1) +#define IRQ_ONENAND_AUDI COMBINER_IRQ(34, 0)#define IRQ_EINT4 COMBINER_IRQ(37, 0)arch/arm/mach- renamed from arch/arm/mach-s5pv310/include/mach/map.h +0
-0
s5pv310/include/mach/map.h
index 7acf4e7..9905bfe 100644arch/arm/mach-s5pv310/include/mach/map.h +0
-0@@ -56,6 +56,9 @@#define S5PV310_PA_GPIO2 (0x11000000)#define S5PV310_PA_GPIO3 (0x03860000)
Quoted 5 lines
Quoted 2 lines
arch/arm/mach-s5pv310/include/mach/map.h line 60
Quoted 2 lines
arch/arm/mach-s5pv310/include/mach/map.h +2
-0+#define S5PV310_PA_CSIS0 (0x11880000) +#define S5PV310_PA_CSIS1 (0x11890000)Let us please not contain constants in brackets.
I don't like those brackets too, so I am going to remove them in the next patch version. Unless anyone raises an objection. It is hard to make everyone happy though. Sometimes good coding practice prevails over consistency. However this time it looks like me judgement was wrong ;-)
Thanks,
Signature · 3 lines
Sylwester Nawrocki Linux Platform Group Samsung Poland R&D Center
PATCH 3/4 plat-s5p: Add platform support for MIPI-CSI2 devices
In reply to Sylwester NawrockiThere may be up to 2 MIPI-CSI2 interfaces depending on SoC version.
--- arch/arm/plat-s5p/Kconfig | 10 ++++++++ arch/arm/plat-s5p/Makefile | 2 + arch/arm/plat-s5p/dev-csis0.c | 34 +++++++++++++++++++++++++++++ arch/arm/plat-s5p/dev-csis1.c | 33 ++++++++++++++++++++++++++++ arch/arm/plat-samsung/include/plat/csis.h | 28 +++++++++++++++++++++++ arch/arm/plat-samsung/include/plat/devs.h | 3 ++ 6 files changed, 110 insertions(+), 0 deletions(-) create mode 100644 arch/arm/plat-s5p/dev-csis0.c create mode 100644 arch/arm/plat-s5p/dev-csis1.c create mode 100644 arch/arm/plat-samsung/include/plat/csis.h
arch/arm/plat-s5p/Kconfig +10 -0
@@ -56,3 +56,13 @@ config S5P_DEV_ONENAND bool help Compile in platform device definition for OneNAND controller + +config S5P_DEV_CSIS0 + bool + help + Compile in platform device definitions for MIPI-CSI2 interface 0 + +config S5P_DEV_CSIS1 + bool + help + Compile in platform device definitions for MIPI-CSI2 interface 1
arch/arm/plat-s5p/Makefile +2 -0
@@ -28,3 +28,5 @@ obj-$(CONFIG_S5P_DEV_FIMC0) += dev-fimc0.o obj-$(CONFIG_S5P_DEV_FIMC1) += dev-fimc1.o obj-$(CONFIG_S5P_DEV_FIMC2) += dev-fimc2.o obj-$(CONFIG_S5P_DEV_ONENAND) += dev-onenand.o +obj-$(CONFIG_S5P_DEV_CSIS0) += dev-csis0.o +obj-$(CONFIG_S5P_DEV_CSIS1) += dev-csis1.o
arch/arm/plat-s5p/dev-csis0.c new file +34 -0
@@ -0,0 +1,34 @@ +/* +* Copyright (C) 2010 Samsung Electronics +* +* S5P series device definition for MIPI-CSI device 0 +* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License version 2 as +* published by the Free Software Foundation. +*/ + +#include <linux/kernel.h> +#include <linux/interrupt.h> +#include <linux/platform_device.h> +#include <mach/map.h> + +static struct resource s5p_csis_resource[] = { + [0 ] = { + .start =S5P_PA_CSIS0 , + .end =S5P_PA_CSIS0 +SZ_4K -1 , + .flags =IORESOURCE_MEM , + }, + [1 ] = { + .start =IRQ_MIPICSI0 , + .end =IRQ_MIPICSI0 , + .flags =IORESOURCE_IRQ , + } +}; + +struct platform_device s5p_device_mipi_csis0 = { + .name ="s5p-mipi-csis" , + .id =0 , + .num_resources =2 , + .resource = &s5p_csis_resource[0 ], +};
arch/arm/plat-s5p/dev-csis1.c new file +33 -0
@@ -0,0 +1,33 @@ +/* +* Copyright (C) 2010 Samsung Electronics +* +* S5P series device definition for MIPI-CSI device 1 +* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License version 2 as +* published by the Free Software Foundation. +*/ + +#include <linux/kernel.h> +#include <linux/interrupt.h> +#include <linux/platform_device.h> +#include <mach/map.h> + +static struct resource s5p_csis_resource[] = { + [0 ] = { + .start =S5P_PA_CSIS1 , + .end =S5P_PA_CSIS1 +SZ_4K -1 , + .flags =IORESOURCE_MEM , + }, + [1 ] = { + .start =IRQ_MIPICSI1 , + .end =IRQ_MIPICSI1 , + .flags =IORESOURCE_IRQ , + }, +}; +struct platform_device s5p_device_mipi_csis1 = { + .name ="s5p-mipi-csis" , + .id =1 , + .num_resources =2 , + .resource = &s5p_csis_resource[0 ], +};
arch/arm/plat-samsung/include/plat/csis.h new file +28 -0
@@ -0,0 +1,28 @@ +/* +* Copyright (C) 2010 Samsung Electronics Co., Ltd +* +* S5P series MIPI CSI2 device support +* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License version 2 as +* published by the Free Software Foundation. +*/ + +#ifndef PLAT_CSIS_H_ +#define PLAT_CSIS_H_ __FILE__ + +/** +* struct s3c_platform_csis - default platform data for MIPI CSI2 interface +* @clock_rate: bus clock frequency +* @nlanes: number of MIPI data lanes used +* @alignment: MIPI data alignment in bits +* @hs_settle: HSYNC settle time (see CSIS_DPHYCTRL register description) +*/ +struct s3c_platform_csis { +unsigned long clk_rate; +u8 nlanes; +u8 alignment; +u8 hs_settle; +}; + +#endif /* PLAT_CSIS_H_ */
arch/arm/plat-samsung/include/plat/devs.h +3 -0
@@ -122,6 +122,9 @@ extern struct platform_device s5p_device_fimc0;extern struct platform_device s5p_device_fimc1;extern struct platform_device s5p_device_fimc2; +extern struct platform_device s5p_device_mipi_csis0; +extern struct platform_device s5p_device_mipi_csis1; +/* s3c2440 specific devices */ #ifdef CONFIG_CPU_S3C2440
Signature · 1 line
1.7.1
PATCH 3/4 plat-s5p: Add platform support for MIPI-CSI2 devices
Hi Sylwester,
Quoted 23 lines · Sylwester Nawrocki
arch/arm/plat-s5p/dev-csis0.c new file +17
-0@@ -0,0 +1,34 @@ +/* +* Copyright (C) 2010 Samsung Electronics +* +* S5P series device definition for MIPI-CSI device 0 +* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License version 2 as +* published by the Free Software Foundation. +*/ + +#include <linux/kernel.h> +#include <linux/interrupt.h> +#include <linux/platform_device.h> +#include <mach/map.h> + +static struct resource s5p_csis_resource[] = { + [0 ] = {
arch/arm/plat-s5p/dev-csis0.c line 27
Quoted 10 lines
arch/arm/plat-s5p/dev-csis0.c new file +10
-0+ .start = S5P_PA_CSIS0, + .end = S5P_PA_CSIS0 + SZ_4K - 1, + .flags = IORESOURCE_MEM, + }, + [1] = { + .start = IRQ_MIPICSI0, + .end = IRQ_MIPICSI0, + .flags = IORESOURCE_IRQ, + } +};
Do you really need the [0] and [1] here? These are only needed if you are sparsely initialising an array.
arch/arm/plat-s5p/dev-csis0.c line 32
Quoted 5 lines
arch/arm/plat-s5p/dev-csis0.c new file +5
-0+ +struct platform_device s5p_device_mipi_csis0 = { + .name ="s5p-mipi-csis" , + .id =0 , + .num_resources =2 ,
.num_resources = ARRAY_SIZE(s5p_csis_resource),
arch/arm/plat-s5p/dev-csis0.c line 33
Quoted 1 line
arch/arm/plat-s5p/dev-csis0.c new file +1
-0+ .resource = &s5p_csis_resource[0],
.resource = s5p_csis_resource,
Quoted 29 lines
arch/arm/plat-s5p/dev-csis1.c new file +23
-0@@ -0,0 +1,33 @@ +/* +* Copyright (C) 2010 Samsung Electronics +* +* S5P series device definition for MIPI-CSI device 1 +* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License version 2 as +* published by the Free Software Foundation. +*/ + +#include <linux/kernel.h> +#include <linux/interrupt.h> +#include <linux/platform_device.h> +#include <mach/map.h> + +static struct resource s5p_csis_resource[] = { + [0 ] = { + .start =S5P_PA_CSIS1 , + .end =S5P_PA_CSIS1 +SZ_4K -1 , + .flags =IORESOURCE_MEM , + }, + [1 ] = { + .start =IRQ_MIPICSI1 ,
arch/arm/plat-s5p/dev-csis1.c line 33
Quoted 10 lines
arch/arm/plat-s5p/dev-csis1.c new file +10
-0+ .end = IRQ_MIPICSI1, + .flags = IORESOURCE_IRQ, + }, +}; +struct platform_device s5p_device_mipi_csis1 = { + .name ="s5p-mipi-csis" , + .id =1 , + .num_resources =2 , + .resource = &s5p_csis_resource[0 ], +};
The same goes here as for device 0.
Quoted 12 lines
arch/arm/plat-samsung/include/plat/csis.h new file +6
-0@@ -0,0 +1,28 @@ +/* +* Copyright (C) 2010 Samsung Electronics Co., Ltd +* +* S5P series MIPI CSI2 device support +* +* This program is free software; you can redistribute it and/or modify
arch/arm/plat-samsung/include/plat/csis.h line 16
Quoted 10 lines
arch/arm/plat-samsung/include/plat/csis.h new file +10
-0+* it under the terms of the GNU General Public License version 2 as +* published by the Free Software Foundation. +*/ + +#ifndef PLAT_CSIS_H_ +#define PLAT_CSIS_H_ __FILE__ + +/** +* struct s3c_platform_csis - default platform data for MIPI CSI2 interface +* @clock_rate: bus clock frequency
Should be @clk_rate to match the code below.
arch/arm/plat-samsung/include/plat/csis.h line 28
Quoted 12 lines
arch/arm/plat-samsung/include/plat/csis.h new file +12
-0+* @nlanes: number of MIPI data lanes used +* @alignment: MIPI data alignment in bits +* @hs_settle: HSYNC settle time (see CSIS_DPHYCTRL register description) +*/ +struct s3c_platform_csis { +unsigned long clk_rate; +u8 nlanes; +u8 alignment; +u8 hs_settle; +}; + +#endif /* PLAT_CSIS_H_ */
Jamie
PATCH 3/4 plat-s5p: Add platform support for MIPI-CSI2 devices
Hi Jamie,
Quoted 30 lines · Jamie Iles
Hi Sylwester,
Quoted 27 lines · Sylwester Nawrocki
arch/arm/plat-s5p/dev-csis0.c new file +21
-0@@ -0,0 +1,34 @@ +/* +* Copyright (C) 2010 Samsung Electronics +* +* S5P series device definition for MIPI-CSI device 0 +* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License version 2 as +* published by the Free Software Foundation. +*/ + +#include <linux/kernel.h> +#include <linux/interrupt.h> +#include <linux/platform_device.h> +#include <mach/map.h> + +static struct resource s5p_csis_resource[] = { + [0 ] = { + .start =S5P_PA_CSIS0 , + .end =S5P_PA_CSIS0 +SZ_4K -1 , + .flags =IORESOURCE_MEM , + },
Quoted 8 lines
arch/arm/plat-s5p/dev-csis0.c line 27
Quoted 6 lines
arch/arm/plat-s5p/dev-csis0.c new file +6
-0+ [1 ] = { + .start =IRQ_MIPICSI0 , + .end =IRQ_MIPICSI0 , + .flags =IORESOURCE_IRQ , + } +};Do you really need the [0] and [1] here? These are only needed if you are sparsely initialising an array.
I agree explicit indices are not really needed. I just followed the style of all other resource definitions already there.
I am not quite sure what is the preference of the maintainer, I guess they want all devices to follow same style for consistence.
Thanks,
Sylwester
Signature · 3 lines
Sylwester Nawrocki Linux Platform Group Samsung Poland R&D Center
PATCH 3/4 plat-s5p: Add platform support for MIPI-CSI2 devices
Quoted 2 lines · Sylwester Nawrocki
Quoted 1 line · Jamie Iles
On Thu, Dec 02, 2010 at 05:37:41PM +0100, Sylwester Nawrocki wrote:
[...]
Quoted 15 lines
Quoted 6 lines
Quoted 6 lines
arch/arm/plat-s5p/dev-csis0.c new file +6
-0+static struct resource s5p_csis_resource[] = { + [0 ] = { + .start =S5P_PA_CSIS0 , + .end =S5P_PA_CSIS0 +SZ_4K -1 , + .flags =IORESOURCE_MEM , + },Quoted 8 lines
arch/arm/plat-s5p/dev-csis0.c line 27
Quoted 6 lines
arch/arm/plat-s5p/dev-csis0.c new file +6
-0+ [1 ] = { + .start =IRQ_MIPICSI0 , + .end =IRQ_MIPICSI0 , + .flags =IORESOURCE_IRQ , + } +};Do you really need the [0] and [1] here? These are only needed if you are sparsely initialising an array.
Quoted 4 lines
I agree explicit indices are not really needed. I just followed the style of all other resource definitions already there.
I am not quite sure what is the preference of the maintainer, I guess they want all devices to follow same style for consistence.
Ok, that's fair enough, it just looked a bit odd to me!
Jamie
PATCH 3/4 plat-s5p: Add platform support for MIPI-CSI2 devices
In reply to Sylwester NawrockiQuoted 43 lines · Sylwester Nawrocki
Hi Jamie,
Quoted 30 lines · Jamie Iles
Hi Sylwester,
Quoted 27 lines · Sylwester Nawrocki
arch/arm/plat-s5p/dev-csis0.c new file +21
-0@@ -0,0 +1,34 @@ +/* +* Copyright (C) 2010 Samsung Electronics +* +* S5P series device definition for MIPI-CSI device 0 +* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License version 2 as +* published by the Free Software Foundation. +*/ + +#include <linux/kernel.h> +#include <linux/interrupt.h> +#include <linux/platform_device.h> +#include <mach/map.h> + +static struct resource s5p_csis_resource[] = { + ? ?[0] = { + ? ? ? ? ? ?.start = S5P_PA_CSIS0, + ? ? ? ? ? ?.end ? = S5P_PA_CSIS0 + SZ_4K - 1, + ? ? ? ? ? ?.flags = IORESOURCE_MEM, + ? ?},Quoted 8 lines
arch/arm/plat-s5p/dev-csis0.c line 27
Quoted 6 lines
arch/arm/plat-s5p/dev-csis0.c new file +6
-0+ ? ?[1] = { + ? ? ? ? ? ?.start = IRQ_MIPICSI0, + ? ? ? ? ? ?.end ? = IRQ_MIPICSI0, + ? ? ? ? ? ?.flags = IORESOURCE_IRQ, + ? ?} +};Do you really need the [0] and [1] here? These are only needed if you are sparsely initialising an array.
Quoted 4 lines
I agree explicit indices are not really needed. I just followed the style of all other resource definitions already there.
I am not quite sure what is the preference of the maintainer, I guess they want all devices to follow same style for consistence.
And that style has its origin because explicit indices are as because they stress the fact that
drivers expect a particular resource at a particular index (when we have more than 1
resource of a type).
IMO we should use some macro shared between platform devices and their drivers. Something like -
static struct resource s5p_csis_resource[] = {
[PA_CSIS] = {
.start = S5P_PA_CSIS0,
.end = S5P_PA_CSIS0 + SZ_4K - 1,
.flags = IORESOURCE_MEM,
},
[IRQ_CSIS] = {
.start = IRQ_MIPICSI0,
.end = IRQ_MIPICSI0,
.flags = IORESOURCE_IRQ,
}
};PATCH 3/4 plat-s5p: Add platform support for MIPI-CSI2 devices
Quoted 57 lines · Jassi Brar
Quoted 43 lines · Sylwester Nawrocki
Hi Jamie,
Quoted 30 lines · Jamie Iles
Hi Sylwester,
Quoted 27 lines · Sylwester Nawrocki
arch/arm/plat-s5p/dev-csis0.c new file +21
-0@@ -0,0 +1,34 @@ +/* +* Copyright (C) 2010 Samsung Electronics +* +* S5P series device definition for MIPI-CSI device 0 +* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License version 2 as +* published by the Free Software Foundation. +*/ + +#include <linux/kernel.h> +#include <linux/interrupt.h> +#include <linux/platform_device.h> +#include <mach/map.h> + +static struct resource s5p_csis_resource[] = { + ? ?[0] = { + ? ? ? ? ? ?.start = S5P_PA_CSIS0, + ? ? ? ? ? ?.end ? = S5P_PA_CSIS0 + SZ_4K - 1, + ? ? ? ? ? ?.flags = IORESOURCE_MEM, + ? ?},Quoted 8 lines
arch/arm/plat-s5p/dev-csis0.c line 27
Quoted 6 lines
arch/arm/plat-s5p/dev-csis0.c new file +6
-0+ ? ?[1] = { + ? ? ? ? ? ?.start = IRQ_MIPICSI0, + ? ? ? ? ? ?.end ? = IRQ_MIPICSI0, + ? ? ? ? ? ?.flags = IORESOURCE_IRQ, + ? ?} +};Do you really need the [0] and [1] here? These are only needed if you are sparsely initialising an array.
Quoted 4 lines
I agree explicit indices are not really needed. I just followed the style of all other resource definitions already there.
I am not quite sure what is the preference of the maintainer, I guess they want all devices to follow same style for consistence.And that style has its origin because explicit indices are as because they stress the fact that
drivers expect a particular resource at a particular index (when we have more than 1
resource of a type).
IMO we should use some macro shared between platform devices and their drivers. Something like -
Quoted 12 lines
static struct resource s5p_csis_resource[] = {
[PA_CSIS] = {
.start = S5P_PA_CSIS0,
.end = S5P_PA_CSIS0 + SZ_4K - 1,
.flags = IORESOURCE_MEM,
},
[IRQ_CSIS] = {
.start = IRQ_MIPICSI0,
.end = IRQ_MIPICSI0,
.flags = IORESOURCE_IRQ,
}
};Or you could use the .name field of struct resource and use platform_get_resource_byname() in the driver. The disadvantage would be that this takes up a few more bytes though.
Jamie
PATCH 3/4 plat-s5p: Add platform support for MIPI-CSI2 devices
In reply to Jassi BrarHello,
Quoted 1 line · Jassi Brar
On Fri, Dec 3, 2010 at 2:39 AM, Sylwester Nawrocki
<snip>
Quoted 12 lines
Quoted 4 lines
I agree explicit indices are not really needed. I just followed the style of all other resource definitions already there.
I am not quite sure what is the preference of the maintainer, I guess they want all devices to follow same style for consistence.And that style has its origin because explicit indices are as because they stress the fact that
drivers expect a particular resource at a particular index (when we have more than 1
resource of a type).
IMO we should use some macro shared between platform devices and their drivers. Something like -
Quoted 12 lines
static struct resource s5p_csis_resource[] = {
[PA_CSIS] = {
.start = S5P_PA_CSIS0,
.end = S5P_PA_CSIS0 + SZ_4K - 1,
.flags = IORESOURCE_MEM,
},
[IRQ_CSIS] = {
.start = IRQ_MIPICSI0,
.end = IRQ_MIPICSI0,
.flags = IORESOURCE_IRQ,
}
};This looks like a huge over-engineering for me, especially for the simple device that has only one register area and interrupt.
Best regards
--
Marek Szyprowski
Samsung Poland R&D Center
PATCH 3/4 plat-s5p: Add platform support for MIPI-CSI2 devices
In reply to Sylwester NawrockiQuoted 24 lines · Sylwester Nawrocki
There may be up to 2 MIPI-CSI2 interfaces depending on SoC version.
Signed-off-by Sylwester Nawrocki <[email protected]>Signed-off-by Kyungmin Park <[email protected]>--- arch/arm/plat-s5p/Kconfig | 10 ++++++++ arch/arm/plat-s5p/Makefile | 2 + arch/arm/plat-s5p/dev-csis0.c | 34 +++++++++++++++++++++++++++++ arch/arm/plat-s5p/dev-csis1.c | 33 ++++++++++++++++++++++++++++ arch/arm/plat-samsung/include/plat/csis.h | 28 +++++++++++++++++++++++ arch/arm/plat-samsung/include/plat/devs.h | 3 ++ 6 files changed, 110 insertions(+), 0 deletions(-) create mode 100644 arch/arm/plat-s5p/dev-csis0.c create mode 100644 arch/arm/plat-s5p/dev-csis1.c create mode 100644 arch/arm/plat-samsung/include/plat/csis.harch/arm/plat-s5p/Kconfig +0
-0
arch/arm/plat-s5p/Kconfig config S5P_DEV_ONENAND · line 63
Quoted 8 lines
arch/arm/plat-s5p/Kconfig +5
-0@@ -56,3 +56,13 @@ config S5P_DEV_ONENAND bool help Compile in platform device definition for OneNAND controller + +config S5P_DEV_CSIS0 + bool + help + Compile in platform device definitions for MIPI-CSI2 interface 0
MIPI-CSI2...you mean MIPI-CSI version 2. We _really_ need to separate the version here?
How about just for MIPI-CSIS channel 0 ?
arch/arm/plat-s5p/Kconfig config S5P_DEV_ONENAND · line 68
Quoted 5 lines
arch/arm/plat-s5p/Kconfig +5
-0+ +config S5P_DEV_CSIS1 + bool + help + Compile in platform device definitions for MIPI-CSI2 interface 1
MIPI-CSIS channel 1 ?
Quoted 16 lines
arch/arm/plat-s5p/Makefile +2
-0@@ -28,3 +28,5 @@ obj-$(CONFIG_S5P_DEV_FIMC0) += dev-fimc0.o obj-$(CONFIG_S5P_DEV_FIMC1) += dev-fimc1.o obj-$(CONFIG_S5P_DEV_FIMC2) += dev-fimc2.o obj-$(CONFIG_S5P_DEV_ONENAND) += dev-onenand.o +obj-$(CONFIG_S5P_DEV_CSIS0) += dev-csis0.o +obj-$(CONFIG_S5P_DEV_CSIS1) += dev-csis1.oarch/arm/plat-s5p/dev-csis0.c new file +0
-0
arch/arm/plat-s5p/dev-csis0.c line 4
Quoted 4 lines
arch/arm/plat-s5p/dev-csis0.c new file +4
-0@@ -0,0 +1,34 @@ +/* +* Copyright (C) 2010 Samsung Electronics +* +* S5P series device definition for MIPI-CSI device 0
MIPI-CSIS channel 0
arch/arm/plat-s5p/dev-csis0.c line 16
Quoted 12 lines
arch/arm/plat-s5p/dev-csis0.c new file +12
-0+* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License version 2 as +* published by the Free Software Foundation. +*/ + +#include <linux/kernel.h> +#include <linux/interrupt.h> +#include <linux/platform_device.h> +#include <mach/map.h> + +static struct resource s5p_csis_resource[] = {
Hmm...s5p_mipi_csis0_resource is more helpful even though static.
arch/arm/plat-s5p/dev-csis0.c line 19
Quoted 3 lines
arch/arm/plat-s5p/dev-csis0.c new file +3
-0+ [0] = { + .start = S5P_PA_CSIS0, + .end = S5P_PA_CSIS0 + SZ_4K - 1,
Please refer to previous my comments about the name.
arch/arm/plat-s5p/dev-csis0.c line 24
Quoted 5 lines
arch/arm/plat-s5p/dev-csis0.c new file +5
-0+ .flags = IORESOURCE_MEM, + }, + [1] = { + .start = IRQ_MIPICSI0, + .end = IRQ_MIPICSI0,
Same.
arch/arm/plat-s5p/dev-csis0.c line 32
Quoted 8 lines
arch/arm/plat-s5p/dev-csis0.c new file +8
-0+ .flags = IORESOURCE_IRQ, + } +}; + +struct platform_device s5p_device_mipi_csis0 = { + .name ="s5p-mipi-csis" , + .id =0 , + .num_resources =2 ,
= ARRAY_SIZE(s5p_mipi_csis0_resource),
arch/arm/plat-s5p/dev-csis0.c line 33
Quoted 1 line
arch/arm/plat-s5p/dev-csis0.c new file +1
-0+ .resource = &s5p_csis_resource[0],
= s5p_mipi_csis0_resource,
arch/arm/plat-s5p/dev-csis1.c line 4
Quoted 11 lines
arch/arm/plat-s5p/dev-csis0.c new file +1
-0+};arch/arm/plat-s5p/dev-csis1.c new file +4
-0@@ -0,0 +1,33 @@ +/* +* Copyright (C) 2010 Samsung Electronics +* +* S5P series device definition for MIPI-CSI device 1
MIPI-CSIS channel 1
Quoted 5 lines
arch/arm/plat-s5p/dev-csis1.c new file +5
-0+* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License version 2 as +* published by the Free Software Foundation. +*/
arch/arm/plat-s5p/dev-csis1.c line 19
Quoted 10 lines
arch/arm/plat-s5p/dev-csis1.c new file +10
-0+ +#include <linux/kernel.h> +#include <linux/interrupt.h> +#include <linux/platform_device.h> +#include <mach/map.h> + +static struct resource s5p_csis_resource[] = { + [0 ] = { + .start =S5P_PA_CSIS1 , + .end =S5P_PA_CSIS1 +SZ_4K -1 ,
Name.
arch/arm/plat-s5p/dev-csis1.c line 24
Quoted 5 lines
arch/arm/plat-s5p/dev-csis1.c new file +5
-0+ .flags = IORESOURCE_MEM, + }, + [1] = { + .start = IRQ_MIPICSI1, + .end = IRQ_MIPICSI1,
Name.
arch/arm/plat-s5p/dev-csis1.c line 31
Quoted 7 lines
arch/arm/plat-s5p/dev-csis1.c new file +7
-0+ .flags = IORESOURCE_IRQ, + }, +}; +struct platform_device s5p_device_mipi_csis1 = { + .name ="s5p-mipi-csis" , + .id =1 , + .num_resources = 2,
Same as above.
arch/arm/plat-s5p/dev-csis1.c line 32
Quoted 1 line
arch/arm/plat-s5p/dev-csis1.c new file +1
-0+ .resource = &s5p_csis_resource[0],
Same.
arch/arm/plat-samsung/include/plat/csis.h
Quoted 7 lines
arch/arm/plat-s5p/dev-csis1.c new file +1
-0+};arch/arm/plat- renamed from arch/arm/plat-samsung/include/plat/csis.h +0
-0
samsung/include/plat/csis.h
new file mode 100644
index 0000000..6ea3a40arch/arm/plat-samsung/include/plat/csis.h new file +0
-0
Do you think really needed this for "plat-samsung" not just "plat-s5p"?
Quoted 6 lines
arch/arm/plat-samsung/include/plat/csis.h new file +5
-0@@ -0,0 +1,28 @@ +/* +* Copyright (C) 2010 Samsung Electronics Co., Ltd +* +* S5P series MIPI CSI2 device support +*
arch/arm/plat-samsung/include/plat/csis.h line 15
Quoted 10 lines
arch/arm/plat-samsung/include/plat/csis.h new file +10
-0+* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License version 2 as +* published by the Free Software Foundation. +*/ + +#ifndef PLAT_CSIS_H_ +#define PLAT_CSIS_H_ __FILE__ + +/** +* struct s3c_platform_csis - default platform data for MIPI CSI2
interface
...
arch/arm/plat-samsung/include/plat/csis.h line 16
Quoted 1 line
arch/arm/plat-samsung/include/plat/csis.h new file +1
-0+* @clock_rate: bus clock frequency
clk_rate as Jamie Iles's comment.
arch/arm/plat-samsung/include/plat/csis.h line 17
Quoted 1 line
arch/arm/plat-samsung/include/plat/csis.h new file +1
-0+* @nlanes: number of MIPI data lanes used
How about just "lanes".
arch/arm/plat-samsung/include/plat/csis.h line 19
Quoted 2 lines
arch/arm/plat-samsung/include/plat/csis.h new file +2
-0+* @alignment: MIPI data alignment in bits +* @hs_settle: HSYNC settle time (see CSIS_DPHYCTRL register description)
Actually, not mentioned HS-RX settle time in CSIS_DPHYCTRL register of datasheet.
+ * @hs_settle: HS-RX settle time.
arch/arm/plat-samsung/include/plat/csis.h line 21
Quoted 2 lines
arch/arm/plat-samsung/include/plat/csis.h new file +2
-0+*/ +struct s3c_platform_csis {
s5p_platform_mipi_csis
Quoted 13 lines
arch/arm/plat-samsung/include/plat/csis.h new file +7
-0+unsigned long clk_rate; +u8 nlanes; +u8 alignment; + u8 hs_settle; +}; + +#endif /* PLAT_CSIS_H_ */ arch/arm/plat- renamed from arch/arm/plat-samsung/include/plat/devs.h +0
-0
samsung/include/plat/devs.h
index 2d82a6c..7935a8b 100644
arch/arm/plat-samsung/include/plat/devs.h extern struct platform_device s5p_device_fimc0;
Quoted 10 lines
arch/arm/plat-samsung/include/plat/devs.h +3
-1@@ -122,6 +122,9 @@ extern struct platform_device s5p_device_fimc0;extern struct platform_device s5p_device_fimc1;extern struct platform_device s5p_device_fimc2; +extern struct platform_device s5p_device_mipi_csis0; +extern struct platform_device s5p_device_mipi_csis1; +/* s3c2440 specific devices */ #ifdef CONFIG_CPU_S3C2440 --
Thanks.
Best regards,
Kgene.
--
Kukjin Kim <[email protected]>, Senior Engineer, SW Solution Development Team, Samsung Electronics Co., Ltd.
PATCH 3/4 plat-s5p: Add platform support for MIPI-CSI2 devices
Quoted 20 lines · Kukjin Kim
Quoted 19 lines · Sylwester Nawrocki
There may be up to 2 MIPI-CSI2 interfaces depending on SoC version.
Signed-off-by Sylwester Nawrocki <[email protected]>Signed-off-by Kyungmin Park <[email protected]>--- arch/arm/plat-s5p/Kconfig | 10 ++++++++ arch/arm/plat-s5p/Makefile | 2 + arch/arm/plat-s5p/dev-csis0.c | 34 +++++++++++++++++++++++++++++ arch/arm/plat-s5p/dev-csis1.c | 33 ++++++++++++++++++++++++++++ arch/arm/plat-samsung/include/plat/csis.h | 28 +++++++++++++++++++++++ arch/arm/plat-samsung/include/plat/devs.h | 3 ++ 6 files changed, 110 insertions(+), 0 deletions(-) create mode 100644 arch/arm/plat-s5p/dev-csis0.c create mode 100644 arch/arm/plat-s5p/dev-csis1.c create mode 100644 arch/arm/plat-samsung/include/plat/csis.h
Quoted 16 lines
arch/arm/plat-s5p/Kconfig config S5P_DEV_ONENAND · line 63
Quoted 13 lines
arch/arm/plat-s5p/Kconfig +5
-0@@ -56,3 +56,13 @@ config S5P_DEV_ONENAND bool help Compile in platform device definition for OneNAND controller + +config S5P_DEV_CSIS0 + bool + help + Compile in platform device definitions for MIPI-CSI2 interface 0MIPI-CSI2...you mean MIPI-CSI version 2. We _really_ need to separate the version here?
Yup, version 2. Maybe that was not a best place for such an information..
Quoted 1 line
How about just for MIPI-CSIS channel 0 ?
Ok, will change that, sounds better.
Quoted 23 lines
arch/arm/plat-s5p/Kconfig config S5P_DEV_ONENAND · line 68
Quoted 6 lines
arch/arm/plat-s5p/Kconfig +5
-0+ +config S5P_DEV_CSIS1 + bool + help + Compile in platform device definitions for MIPI-CSI2 interface 1MIPI-CSIS channel 1 ?
Quoted 14 lines
arch/arm/plat-s5p/Makefile +2
-0@@ -28,3 +28,5 @@ obj-$(CONFIG_S5P_DEV_FIMC0) += dev-fimc0.o obj-$(CONFIG_S5P_DEV_FIMC1) += dev-fimc1.o obj-$(CONFIG_S5P_DEV_FIMC2) += dev-fimc2.o obj-$(CONFIG_S5P_DEV_ONENAND) += dev-onenand.o +obj-$(CONFIG_S5P_DEV_CSIS0) += dev-csis0.o +obj-$(CONFIG_S5P_DEV_CSIS1) += dev-csis1.oarch/arm/plat-s5p/dev-csis0.c new file +0
-1--- /dev/null
Quoted 8 lines
arch/arm/plat-s5p/dev-csis0.c line 4
Quoted 6 lines
+++
b/arch/arm/plat-s5p/dev-csis0.carch/arm/plat-s5p/dev-csis0.c new file +4
-0@@ -0,0 +1,34 @@ +/* +* Copyright (C) 2010 Samsung Electronics +* +* S5P series device definition for MIPI-CSI device 0 MIPI-CSIS channel 0
OK.
Quoted 15 lines
arch/arm/plat-s5p/dev-csis0.c line 16
Quoted 13 lines
arch/arm/plat-s5p/dev-csis0.c new file +12
-0+* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License version 2 as +* published by the Free Software Foundation. +*/ + +#include <linux/kernel.h> +#include <linux/interrupt.h> +#include <linux/platform_device.h> +#include <mach/map.h> + +static struct resource s5p_csis_resource[] = {Hmm...s5p_mipi_csis0_resource is more helpful even though static.
I personally hate inserting indexes into variables' name, but will change this.
Quoted 6 lines
arch/arm/plat-s5p/dev-csis0.c line 19
Quoted 4 lines
arch/arm/plat-s5p/dev-csis0.c new file +3
-0+ [0] = { + .start = S5P_PA_CSIS0, + .end = S5P_PA_CSIS0 + SZ_4K - 1,Please refer to previous my comments about the name.
OK, will use S5P_PA_MIPI_CSIS0..
Quoted 8 lines
arch/arm/plat-s5p/dev-csis0.c line 24
Quoted 6 lines
arch/arm/plat-s5p/dev-csis0.c new file +5
-0+ .flags = IORESOURCE_MEM, + }, + [1] = { + .start = IRQ_MIPICSI0, + .end = IRQ_MIPICSI0,Same.
and IRQ_MIPI_CSIS0 here.
Quoted 12 lines
arch/arm/plat-s5p/dev-csis0.c line 32
Quoted 9 lines
arch/arm/plat-s5p/dev-csis0.c new file +8
-0+ .flags = IORESOURCE_IRQ, + } +}; + +struct platform_device s5p_device_mipi_csis0 = { + .name ="s5p-mipi-csis" , + .id =0 , + .num_resources =2 ,=
ARRAY_SIZE(s5p_mipi_csis0_resource),
Quoted 3 lines
arch/arm/plat-s5p/dev-csis0.c line 33
Quoted 1 line
arch/arm/plat-s5p/dev-csis0.c new file +1
-0+ .resource = &s5p_csis_resource[0],=
s5p_mipi_csis0_resource,
OK.
Quoted 14 lines
arch/arm/plat-s5p/dev-csis1.c line 4
Quoted 12 lines
arch/arm/plat-s5p/dev-csis0.c new file +1
-0+};arch/arm/plat-s5p/dev-csis1.c new file +4
-0@@ -0,0 +1,33 @@ +/* +* Copyright (C) 2010 Samsung Electronics +* +* S5P series device definition for MIPI-CSI device 1 MIPI-CSIS channel 1
OK.
Quoted 41 lines
Quoted 6 lines
arch/arm/plat-s5p/dev-csis1.c new file +5
-0+* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License version 2 as +* published by the Free Software Foundation. +*/ arch/arm/plat-s5p/dev-csis1.c line 19
Quoted 10 lines
arch/arm/plat-s5p/dev-csis1.c new file +10
-0+ +#include <linux/kernel.h> +#include <linux/interrupt.h> +#include <linux/platform_device.h> +#include <mach/map.h> + +static struct resource s5p_csis_resource[] = { + [0 ] = { + .start =S5P_PA_CSIS1 , + .end =S5P_PA_CSIS1 +SZ_4K -1 ,Name.
arch/arm/plat-s5p/dev-csis1.c line 24
Quoted 5 lines
arch/arm/plat-s5p/dev-csis1.c new file +5
-0+ .flags = IORESOURCE_MEM, + }, + [1] = { + .start = IRQ_MIPICSI1, + .end = IRQ_MIPICSI1,Name.
arch/arm/plat-s5p/dev-csis1.c line 31
Quoted 7 lines
arch/arm/plat-s5p/dev-csis1.c new file +7
-0+ .flags = IORESOURCE_IRQ, + }, +}; +struct platform_device s5p_device_mipi_csis1 = { + .name ="s5p-mipi-csis" , + .id =1 , + .num_resources = 2,Same as above.
arch/arm/plat-s5p/dev-csis1.c line 32
Quoted 1 line
arch/arm/plat-s5p/dev-csis1.c new file +1
-0+ .resource = &s5p_csis_resource[0],Same.
Quoted 9 lines
arch/arm/plat-samsung/include/plat/csis.h
Quoted 7 lines
arch/arm/plat-s5p/dev-csis1.c new file +1
-0+};arch/arm/plat- renamed from arch/arm/plat-samsung/include/plat/csis.h +0
-0
samsung/include/plat/csis.h
new file mode 100644
index 0000000..6ea3a40arch/arm/plat-samsung/include/plat/csis.h new file +0
-0Do you think really needed this for "plat-samsung" not just "plat-s5p"?
No, in fact I have tried both. Eventually I left it in plat-samsung since I believe we could have a common MIPI CSIS driver for the s3c and s5p SoCs. I have got v4l2_subdev based driver ready and tested on s5pv210 and s5pv310 but have never tried if it works on s3c SoCs. So for now I think it could be better to move csis.h to "plat-s5p" as you suggested.
I am going to incorporate that change in next patch version.
Quoted 19 lines
Quoted 7 lines
arch/arm/plat-samsung/include/plat/csis.h new file +5
-0@@ -0,0 +1,28 @@ +/* +* Copyright (C) 2010 Samsung Electronics Co., Ltd +* +* S5P series MIPI CSI2 device support +* arch/arm/plat-samsung/include/plat/csis.h line 15
Quoted 10 lines
arch/arm/plat-samsung/include/plat/csis.h new file +10
-0+* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License version 2 as +* published by the Free Software Foundation. +*/ + +#ifndef PLAT_CSIS_H_ +#define PLAT_CSIS_H_ __FILE__ + +/** +* struct s3c_platform_csis - default platform data for MIPI CSI2 interface
Quoted 5 lines
...
Quoted 1 line
+ * @clock_rate: bus clock frequency
clk_rateas Jamie Iles's comment.
All right, I missed somehow the comment about the clock yesterday. Thanks Jamie!
Quoted 4 lines
Quoted 2 lines
+ * @nlanes: number of MIPI data lanes used
How about just "lanes".
Ok, I don't mind changing that. It was supposed to mean n(umber of)lanes.
Quoted 6 lines
Quoted 3 lines
+ * @alignment: MIPI data alignment in bits
+ * @hs_settle: HSYNC settle time (seeCSIS_DPHYCTRLregister description)Actually, not mentioned HS-RX settle time in
CSIS_DPHYCTRLregister of datasheet.
Ups, my fault. But... bits 27..31 in CSIS_DPHYCTRL are for HS-RX settle time, aren't they?
The description is not in the datasheet but I believe it *should* be there. I hoped someone updates the datasheet eventually. I have even reported it to one of your colleagues, who helped me in solving the HS-RX settle related issues. Missing details in the specs are real pain during development. It is often impossible to get anything working without a reference code.
Quoted 2 lines
+ * @hs_settle: HS-RX settle time.
Ok, thanks.
Signature · 3 lines
Sylwester Nawrocki Linux Platform Group Samsung Poland R&D Center
PATCH 3/4 plat-s5p: Add platform support for MIPI-CSI2 devices
In reply to Sylwester NawrockiQuoted 42 lines · Sylwester Nawrocki
There may be up to 2 MIPI-CSI2 interfaces depending on SoC version.
Signed-off-by Sylwester Nawrocki <[email protected]>Signed-off-by Kyungmin Park <[email protected]>---
?arch/arm/plat-s5p/Kconfig ? ? ? ? ? ? ? ? | ? 10 ++++++++ ?arch/arm/plat-s5p/Makefile ? ? ? ? ? ? ? ?| ? ?2 + ?arch/arm/plat-s5p/dev-csis0.c ? ? ? ? ? ? | ? 34 +++++++++++++++++++++++++++++ ?arch/arm/plat-s5p/dev-csis1.c ? ? ? ? ? ? | ? 33 ++++++++++++++++++++++++++++ ?arch/arm/plat-samsung/include/plat/csis.h | ? 28 +++++++++++++++++++++++ ?arch/arm/plat-samsung/include/plat/devs.h | ? ?3 ++?6 files changed, 110 insertions(+), 0 deletions(-) ?create mode 100644
arch/arm/plat-s5p/dev-csis0.c?create mode 100644arch/arm/plat-s5p/dev-csis1.c?create mode 100644arch/arm/plat-samsung/include/plat/csis.harch/arm/plat-s5p/Kconfig +0
-0@@ -56,3 +56,13 @@ config S5P_DEV_ONENAND? ? ? ?bool
? ? ? ?help
? ? ? ? ?Compile in platform device definition for OneNAND controllerarch/arm/plat-s5p/Kconfig +10
-0+ +config S5P_DEV_CSIS0 + ? ? ? bool + ? ? ? help + ? ? ? ? Compile in platform device definitions for MIPI-CSI2 interface 0 + +config S5P_DEV_CSIS1 + ? ? ? bool + ? ? ? help + ? ? ? ? Compile in platform device definitions for MIPI-CSI2 interface 1arch/arm/plat-s5p/Makefile +0
-0@@ -28,3 +28,5 @@ obj-$(CONFIG_S5P_DEV_FIMC0) ? += dev-fimc0.o?obj-$(CONFIG_S5P_DEV_FIMC1) ? ?+= dev-fimc1.o
?obj-$(CONFIG_S5P_DEV_FIMC2) ? ?+= dev-fimc2.o
?obj-$(CONFIG_S5P_DEV_ONENAND) ?+= dev-onenand.o
arch/arm/plat-s5p/Makefile
Quoted 2 lines
arch/arm/plat-s5p/Makefile +2
-0+obj-$(CONFIG_S5P_DEV_CSIS0) ? ?+= dev-csis0.o +obj-$(CONFIG_S5P_DEV_CSIS1) ? ?+= dev-csis1.o
When we do have defines for each device, why not have both in one file with each contained in ifdef for it's define ? That will reduce file count.
PATCH 3/4 plat-s5p: Add platform support for MIPI-CSI2 devices
Quoted 41 lines · Jassi Brar
Quoted 39 lines · Sylwester Nawrocki
There may be up to 2 MIPI-CSI2 interfaces depending on SoC version.
Signed-off-by Sylwester Nawrocki <[email protected]>Signed-off-by Kyungmin Park <[email protected]>---
?arch/arm/plat-s5p/Kconfig ? ? ? ? ? ? ? ? | ? 10 ++++++++ ?arch/arm/plat-s5p/Makefile ? ? ? ? ? ? ? ?| ? ?2 + ?arch/arm/plat-s5p/dev-csis0.c ? ? ? ? ? ? | ? 34 +++++++++++++++++++++++++++++ ?arch/arm/plat-s5p/dev-csis1.c ? ? ? ? ? ? | ? 33 ++++++++++++++++++++++++++++ ?arch/arm/plat-samsung/include/plat/csis.h | ? 28 +++++++++++++++++++++++ ?arch/arm/plat-samsung/include/plat/devs.h | ? ?3 ++?6 files changed, 110 insertions(+), 0 deletions(-) ?create mode 100644
arch/arm/plat-s5p/dev-csis0.c?create mode 100644arch/arm/plat-s5p/dev-csis1.c?create mode 100644arch/arm/plat-samsung/include/plat/csis.harch/arm/plat-s5p/Kconfig +0
-0@@ -56,3 +56,13 @@ config S5P_DEV_ONENAND? ? ? ?bool
? ? ? ?help
? ? ? ? ?Compile in platform device definition for OneNAND controllerarch/arm/plat-s5p/Kconfig +10
-0+ +config S5P_DEV_CSIS0 + ? ? ? bool + ? ? ? help + ? ? ? ? Compile in platform device definitions for MIPI-CSI2 interface 0 + +config S5P_DEV_CSIS1 + ? ? ? bool + ? ? ? help + ? ? ? ? Compile in platform device definitions for MIPI-CSI2 interface 1arch/arm/plat-s5p/Makefile +0
-0@@ -28,3 +28,5 @@ obj-$(CONFIG_S5P_DEV_FIMC0) ? += dev-fimc0.o
Quoted 8 lines
arch/arm/plat-s5p/Makefile
Quoted 5 lines
?obj-$(CONFIG_S5P_DEV_FIMC1) ? ?+= dev-fimc1.o
?obj-$(CONFIG_S5P_DEV_FIMC2) ? ?+= dev-fimc2.o
?obj-$(CONFIG_S5P_DEV_ONENAND) ?+= dev-onenand.oarch/arm/plat-s5p/Makefile +2
-0+obj-$(CONFIG_S5P_DEV_CSIS0) ? ?+= dev-csis0.o +obj-$(CONFIG_S5P_DEV_CSIS1) ? ?+= dev-csis1.oWhen we do have defines for each device, why not have both in one file with each contained in ifdef for it's define ? That will reduce file count.
To Jassi,
Please make a conclusion from LSI first, I'm confused, I insisted it as you, but kgene rejected it.
Quoted 5 lines
--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo at vger.kernel.org
More majordomo info at ?http://vger.kernel.org/majordomo-info.html
PATCH 4/4 mach-s5pv210: Add MIPI-CSI DPHY clock definition
In reply to Sylwester NawrockiMIPI DPHY control register requires special handling since it is shared between CSI (camera serial interface) and DSI (display serial interface). By creating this clock a serialized interface is provided for mipi-csi and mipi-dsi drivers, so DPHYs may be safely controlled by both drivers. Similarly dsim_dphy clock could be added for mipi-dsim.
---
I am not quite sure about "csis_dphy" clock, perhaps power domain handling code would better place for MIPI DPHY control.
--- arch/arm/mach-s5pv210/clock.c | 25 +++++++++++++++++++++++++ 1 files changed, 25 insertions(+), 0 deletions(-)
arch/arm/mach-s5pv210/clock.c +25 -0
@@ -185,6 +185,19 @@ static int s5pv210_clk_mask1_ctrl(struct clk *clk, int enable)return s5p_gatectrl (S5P_CLK_SRC_MASK1 , clk, enable); } +static int s5pv210_clk_mipi_dphy_ctrl (struct clk *clk,int enable) +{ +return s5p_gatectrl (S5P_MIPI_DPHY_CONTROL , clk, enable); +} + +/* The common parent clock for mipi-csi/dsi clocks. */ +static struct clk clk_vp_mipi_dphy = { + .name ="vpclk_csis_dphy" , + .id =-1 , + .enable = s5pv210_clk_mipi_dphy_ctrl, + .ctrlbit = (1 <<0 ), +}; +static struct clk clk_sclk_hdmi27m = { .name ="sclk_hdmi27m" , .id =-1 ,
@@ -323,6 +336,18 @@ static struct clk init_clocks_disable[] = { .enable = s5pv210_clk_ip0_ctrl, .ctrlbit = (1 << 4), }, { + .name = "csis", + .id = -1, + .parent = &clk_pclk_dsys.clk, + .enable = s5pv210_clk_ip0_ctrl, + .ctrlbit = (1 << 31), + }, { + .name = "csis_dphy", + .id = -1, + .parent = &clk_vp_mipi_dphy, + .enable = s5pv210_clk_mipi_dphy_ctrl, + .ctrlbit = (1 << 1), + }, { .name = "rot", .id = -1, .parent = &clk_hclk_dsys.clk,
Signature · 1 line
1.7.1
cover ARM: S5P: Add platform support for MIPI-CSI2 devices
In reply to Sylwester NawrockiQuoted 3 lines · Sylwester Nawrocki
Hello,
Hi :-)
Quoted 1 line
the following patch series adds S5P platform support for MIPI-CSI2
devices.
Quoted 2 lines
It has been rebased onto next-samsung branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung.git
It would be more helpful to me to use the 'for-next' next time.
Quoted 6 lines
[PATCH 1/4] mach-s5pv210: Add platform definitions for mipi-csis [PATCH 2/4] mach-s5pv310: Add resource definitions for mipi-csis [PATCH 3/4] plat-s5p: Add platform support for MIPI-CSI2 devices [PATCH 4/4] mach-s5pv210: Add MIPI-CSI DPHY clock definition
And used following commit title in others...
ARM: S5PV210: xxx
ARM: S5P: xxx
Thanks.
Best regards,
Kgene.
--
Kukjin Kim <[email protected]>, Senior Engineer, SW Solution Development Team, Samsung Electronics Co., Ltd.
cover ARM: S5P: Add platform support for MIPI-CSI2 devices
Hi Kukjin,
Quoted 4 lines · Kukjin Kim
Quoted 3 lines · Sylwester Nawrocki
Hello,
Quoted 8 lines
Hi :-)
Quoted 1 line
the following patch series adds S5P platform support for MIPI-CSI2
devices.
Quoted 2 lines
It has been rebased onto next-samsung branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung.gitIt would be more helpful to me to use the 'for-next' next time.
OK, thank you for the hint. I'll keep that in mind or will be asking in advance if possible.
Quoted 11 lines
Quoted 6 lines
[PATCH 1/4] mach-s5pv210: Add platform definitions for mipi-csis [PATCH 2/4] mach-s5pv310: Add resource definitions for mipi-csis [PATCH 3/4] plat-s5p: Add platform support for MIPI-CSI2 devices [PATCH 4/4] mach-s5pv210: Add MIPI-CSI DPHY clock definition
And used following commit title in others...
ARM: S5PV210: xxx
ARM: S5P: xxx
Ok, will stick to that.
Thanks,
Sylwester
Signature · 3 lines
Sylwester Nawrocki Linux Platform Group Samsung Poland R&D Center