xref: /freebsd/sys/contrib/device-tree/src/arm/ti/omap/omap3-n9.dts (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-only
2*f126890aSEmmanuel Vadot/*
3*f126890aSEmmanuel Vadot * omap3-n9.dts - Device Tree file for Nokia N9
4*f126890aSEmmanuel Vadot *
5*f126890aSEmmanuel Vadot * Written by: Aaro Koskinen <aaro.koskinen@iki.fi>
6*f126890aSEmmanuel Vadot */
7*f126890aSEmmanuel Vadot
8*f126890aSEmmanuel Vadot/dts-v1/;
9*f126890aSEmmanuel Vadot
10*f126890aSEmmanuel Vadot#include "omap3-n950-n9.dtsi"
11*f126890aSEmmanuel Vadot#include <dt-bindings/input/input.h>
12*f126890aSEmmanuel Vadot
13*f126890aSEmmanuel Vadot/ {
14*f126890aSEmmanuel Vadot	model = "Nokia N9";
15*f126890aSEmmanuel Vadot	compatible = "nokia,omap3-n9", "ti,omap3630", "ti,omap3";
16*f126890aSEmmanuel Vadot};
17*f126890aSEmmanuel Vadot
18*f126890aSEmmanuel Vadot&i2c2 {
19*f126890aSEmmanuel Vadot	smia_1: camera@10 {
20*f126890aSEmmanuel Vadot		compatible = "nokia,smia";
21*f126890aSEmmanuel Vadot		reg = <0x10>;
22*f126890aSEmmanuel Vadot		/* No reset gpio */
23*f126890aSEmmanuel Vadot		vana-supply = <&vaux3>;
24*f126890aSEmmanuel Vadot		clocks = <&isp 0>;
25*f126890aSEmmanuel Vadot		clock-frequency = <9600000>;
26*f126890aSEmmanuel Vadot		flash-leds = <&as3645a_flash &as3645a_indicator>;
27*f126890aSEmmanuel Vadot		port {
28*f126890aSEmmanuel Vadot			smia_1_1: endpoint {
29*f126890aSEmmanuel Vadot				link-frequencies = /bits/ 64 <199200000 210000000 499200000>;
30*f126890aSEmmanuel Vadot				clock-lanes = <0>;
31*f126890aSEmmanuel Vadot				data-lanes = <1 2>;
32*f126890aSEmmanuel Vadot				remote-endpoint = <&csi2a_ep>;
33*f126890aSEmmanuel Vadot			};
34*f126890aSEmmanuel Vadot		};
35*f126890aSEmmanuel Vadot	};
36*f126890aSEmmanuel Vadot};
37*f126890aSEmmanuel Vadot
38*f126890aSEmmanuel Vadot&i2c3 {
39*f126890aSEmmanuel Vadot	ak8975@f {
40*f126890aSEmmanuel Vadot		compatible = "asahi-kasei,ak8975";
41*f126890aSEmmanuel Vadot		reg = <0x0f>;
42*f126890aSEmmanuel Vadot	};
43*f126890aSEmmanuel Vadot};
44*f126890aSEmmanuel Vadot
45*f126890aSEmmanuel Vadot&isp {
46*f126890aSEmmanuel Vadot	vdd-csiphy1-supply = <&vaux2>;
47*f126890aSEmmanuel Vadot	vdd-csiphy2-supply = <&vaux2>;
48*f126890aSEmmanuel Vadot	ports {
49*f126890aSEmmanuel Vadot		port@2 {
50*f126890aSEmmanuel Vadot			reg = <2>;
51*f126890aSEmmanuel Vadot			csi2a_ep: endpoint {
52*f126890aSEmmanuel Vadot				remote-endpoint = <&smia_1_1>;
53*f126890aSEmmanuel Vadot				clock-lanes = <2>;
54*f126890aSEmmanuel Vadot				data-lanes = <1 3>;
55*f126890aSEmmanuel Vadot				crc = <1>;
56*f126890aSEmmanuel Vadot				lane-polarities = <1 1 1>;
57*f126890aSEmmanuel Vadot			};
58*f126890aSEmmanuel Vadot		};
59*f126890aSEmmanuel Vadot	};
60*f126890aSEmmanuel Vadot};
61*f126890aSEmmanuel Vadot
62*f126890aSEmmanuel Vadot&modem {
63*f126890aSEmmanuel Vadot	compatible = "nokia,n9-modem";
64*f126890aSEmmanuel Vadot};
65*f126890aSEmmanuel Vadot
66*f126890aSEmmanuel Vadot&lis302 {
67*f126890aSEmmanuel Vadot	st,axis-x = <1>;    /* LIS3_DEV_X */
68*f126890aSEmmanuel Vadot	st,axis-y = <(-2)>; /* LIS3_INV_DEV_Y */
69*f126890aSEmmanuel Vadot	st,axis-z = <(-3)>; /* LIS3_INV_DEV_Z */
70*f126890aSEmmanuel Vadot
71*f126890aSEmmanuel Vadot	st,min-limit-x = <(-46)>;
72*f126890aSEmmanuel Vadot	st,min-limit-y = <3>;
73*f126890aSEmmanuel Vadot	st,min-limit-z = <3>;
74*f126890aSEmmanuel Vadot
75*f126890aSEmmanuel Vadot	st,max-limit-x = <(-3)>;
76*f126890aSEmmanuel Vadot	st,max-limit-y = <46>;
77*f126890aSEmmanuel Vadot	st,max-limit-z = <46>;
78*f126890aSEmmanuel Vadot};
79*f126890aSEmmanuel Vadot
80*f126890aSEmmanuel Vadot&twl_keypad {
81*f126890aSEmmanuel Vadot	linux,keymap = < MATRIX_KEY(6, 8, KEY_VOLUMEUP)
82*f126890aSEmmanuel Vadot			 MATRIX_KEY(7, 8, KEY_VOLUMEDOWN)
83*f126890aSEmmanuel Vadot			 >;
84*f126890aSEmmanuel Vadot};
85