GNU Linux-libre 4.19.264-gnu1
[releases.git] / arch / arm / boot / dts / omap3-n9.dts
1 /*
2  * omap3-n9.dts - Device Tree file for Nokia N9
3  *
4  * Written by: Aaro Koskinen <aaro.koskinen@iki.fi>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License version 2 as
8  * published by the Free Software Foundation.
9  */
10
11 /dts-v1/;
12
13 #include "omap3-n950-n9.dtsi"
14 #include <dt-bindings/input/input.h>
15
16 / {
17         model = "Nokia N9";
18         compatible = "nokia,omap3-n9", "ti,omap36xx", "ti,omap3";
19 };
20
21 &i2c2 {
22         smia_1: camera@10 {
23                 compatible = "nokia,smia";
24                 reg = <0x10>;
25                 /* No reset gpio */
26                 vana-supply = <&vaux3>;
27                 clocks = <&isp 0>;
28                 clock-frequency = <9600000>;
29                 nokia,nvm-size = <(16 * 64)>;
30                 flash-leds = <&as3645a_flash &as3645a_indicator>;
31                 port {
32                         smia_1_1: endpoint {
33                                 link-frequencies = /bits/ 64 <199200000 210000000 499200000>;
34                                 clock-lanes = <0>;
35                                 data-lanes = <1 2>;
36                                 remote-endpoint = <&csi2a_ep>;
37                         };
38                 };
39         };
40 };
41
42 &i2c3 {
43         ak8975@f {
44                 compatible = "asahi-kasei,ak8975";
45                 reg = <0x0f>;
46         };
47 };
48
49 &isp {
50         vdd-csiphy1-supply = <&vaux2>;
51         vdd-csiphy2-supply = <&vaux2>;
52         ports {
53                 port@2 {
54                         reg = <2>;
55                         csi2a_ep: endpoint {
56                                 remote-endpoint = <&smia_1_1>;
57                                 clock-lanes = <2>;
58                                 data-lanes = <1 3>;
59                                 crc = <1>;
60                                 lane-polarities = <1 1 1>;
61                         };
62                 };
63         };
64 };
65
66 &modem {
67         compatible = "nokia,n9-modem";
68 };
69
70 &lis302 {
71         st,axis-x = <1>;    /* LIS3_DEV_X */
72         st,axis-y = <(-2)>; /* LIS3_INV_DEV_Y */
73         st,axis-z = <(-3)>; /* LIS3_INV_DEV_Z */
74
75         st,min-limit-x = <(-46)>;
76         st,min-limit-y = <3>;
77         st,min-limit-z = <3>;
78
79         st,max-limit-x = <(-3)>;
80         st,max-limit-y = <46>;
81         st,max-limit-z = <46>;
82 };
83
84 &twl_keypad {
85         linux,keymap = < MATRIX_KEY(6, 8, KEY_VOLUMEUP)
86                          MATRIX_KEY(7, 8, KEY_VOLUMEDOWN)
87                          >;
88 };