diff options
author | Josh Wu <josh.wu@atmel.com> | 2015-02-12 03:06:24 -0500 |
---|---|---|
committer | Nicolas Ferre <nicolas.ferre@atmel.com> | 2015-03-04 12:36:08 -0500 |
commit | 436ea603c3779699f50ee0ff61c4d733496c2560 (patch) | |
tree | 59a3fa12f2407719b669f14a08cf6241c5f24167 /arch/arm/boot/dts/at91sam9x5ek.dtsi | |
parent | 7f9acb109318ddf8bf5139804b065f137cbf8b47 (diff) |
ARM: at91: at91sam9x5ek/dts: add ov2640 support
Add the camera sensor ov2640 dt support. And connect sensor to isi node
as well.
Signed-off-by: Josh Wu <josh.wu@atmel.com>
Acked-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Diffstat (limited to 'arch/arm/boot/dts/at91sam9x5ek.dtsi')
-rw-r--r-- | arch/arm/boot/dts/at91sam9x5ek.dtsi | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/at91sam9x5ek.dtsi b/arch/arm/boot/dts/at91sam9x5ek.dtsi index bd16bd360272..cc83a37a7311 100644 --- a/arch/arm/boot/dts/at91sam9x5ek.dtsi +++ b/arch/arm/boot/dts/at91sam9x5ek.dtsi | |||
@@ -59,6 +59,16 @@ | |||
59 | status = "okay"; | 59 | status = "okay"; |
60 | }; | 60 | }; |
61 | 61 | ||
62 | isi: isi@f8048000 { | ||
63 | status = "disabled"; | ||
64 | port { | ||
65 | isi_0: endpoint@0 { | ||
66 | remote-endpoint = <&ov2640_0>; | ||
67 | bus-width = <8>; | ||
68 | }; | ||
69 | }; | ||
70 | }; | ||
71 | |||
62 | i2c0: i2c@f8010000 { | 72 | i2c0: i2c@f8010000 { |
63 | status = "okay"; | 73 | status = "okay"; |
64 | 74 | ||
@@ -66,9 +76,47 @@ | |||
66 | compatible = "wm8731"; | 76 | compatible = "wm8731"; |
67 | reg = <0x1a>; | 77 | reg = <0x1a>; |
68 | }; | 78 | }; |
79 | |||
80 | ov2640: camera@0x30 { | ||
81 | compatible = "ovti,ov2640"; | ||
82 | reg = <0x30>; | ||
83 | pinctrl-names = "default"; | ||
84 | pinctrl-0 = <&pinctrl_pck0_as_isi_mck &pinctrl_sensor_power &pinctrl_sensor_reset>; | ||
85 | resetb-gpios = <&pioA 7 GPIO_ACTIVE_LOW>; | ||
86 | pwdn-gpios = <&pioA 13 GPIO_ACTIVE_HIGH>; | ||
87 | clocks = <&pck0>; | ||
88 | clock-names = "xvclk"; | ||
89 | assigned-clocks = <&pck0>; | ||
90 | assigned-clock-rates = <25000000>; | ||
91 | status = "disabled"; | ||
92 | |||
93 | port { | ||
94 | ov2640_0: endpoint { | ||
95 | remote-endpoint = <&isi_0>; | ||
96 | bus-width = <8>; | ||
97 | }; | ||
98 | }; | ||
99 | }; | ||
69 | }; | 100 | }; |
70 | 101 | ||
71 | pinctrl@fffff400 { | 102 | pinctrl@fffff400 { |
103 | camera_sensor { | ||
104 | pinctrl_pck0_as_isi_mck: pck0_as_isi_mck-0 { | ||
105 | atmel,pins = | ||
106 | <AT91_PIOC 15 AT91_PERIPH_C AT91_PINCTRL_NONE>; /* ISI_MCK */ | ||
107 | }; | ||
108 | |||
109 | pinctrl_sensor_power: sensor_power-0 { | ||
110 | atmel,pins = | ||
111 | <AT91_PIOA 13 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>; | ||
112 | }; | ||
113 | |||
114 | pinctrl_sensor_reset: sensor_reset-0 { | ||
115 | atmel,pins = | ||
116 | <AT91_PIOA 7 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>; | ||
117 | }; | ||
118 | }; | ||
119 | |||
72 | mmc0 { | 120 | mmc0 { |
73 | pinctrl_board_mmc0: mmc0-board { | 121 | pinctrl_board_mmc0: mmc0-board { |
74 | atmel,pins = | 122 | atmel,pins = |