1 // SPDX-License-Identifier: GPL-2.0+
3 * at91-nattis-2-natte-2.dts - Device Tree file for the Linea/Nattis board
5 * Copyright (C) 2017 Axentia Technologies AB
7 * Author: Peter Rosin <peda@axentia.se>
10 #include "at91-linea.dtsi"
11 #include "sama5d3_lcd.dtsi"
12 #include "at91-natte.dtsi"
15 model = "Axentia Linea-Nattis v2 Natte v2";
16 compatible = "axentia,nattis-2", "axentia,natte-2", "axentia,linea",
17 "atmel,sama5d31", "atmel,sama5d3", "atmel,sama5";
20 compatible = "gpio-keys";
26 gpios = <&pioB 27 GPIO_ACTIVE_LOW>;
30 panel_reg: panel-regulator {
31 compatible = "regulator-fixed";
32 regulator-name = "panel-VCC";
33 regulator-min-microvolt = <3300000>;
34 regulator-max-microvolt = <3300000>;
37 bl_reg: backlight-regulator {
38 compatible = "regulator-fixed";
39 regulator-name = "panel-VDD";
40 regulator-min-microvolt = <12000000>;
41 regulator-max-microvolt = <12000000>;
45 compatible = "pwm-backlight";
46 pwms = <&hlcdc_pwm 0 100000 0>;
48 brightness-levels = < 0 1 2 3 4 5 6 7 8 9
49 10 11 12 13 14 15 16 17 18 19
50 20 21 22 23 24 25 26 27 28 29
51 30 31 32 33 34 35 36 37 38 39
52 40 41 42 43 44 45 46 47 48 49
53 50 51 52 53 54 55 56 57 58 59
54 60 61 62 63 64 65 66 67 68 69
55 70 71 72 73 74 75 76 77 78 79
56 80 81 82 83 84 85 86 87 88 89
57 90 91 92 93 94 95 96 97 98 99
59 default-brightness-level = <40>;
61 power-supply = <&bl_reg>;
62 enable-gpios = <&pioA 20 GPIO_ACTIVE_HIGH>;
63 pinctrl-names = "default";
64 pinctrl-0 = <&pinctrl_blon>;
68 compatible = "sharp,lq150x1lg11", "panel-lvds";
70 backlight = <&panel_bl>;
71 power-supply = <&panel_reg>;
76 data-mapping = "jeida-18";
79 // 1024x768 @ 60Hz (typical)
80 clock-frequency = <50000000 65000000 80000000>;
83 hfront-porch = <48 88 88>;
84 hback-porch = <96 168 168>;
85 hsync-len = <32 64 64>;
86 vsync-len = <3 13 74>;
87 vfront-porch = <3 13 74>;
88 vback-porch = <3 12 74>;
92 panel_input: endpoint {
93 remote-endpoint = <&lvds_encoder_output>;
99 compatible = "ti,ds90c185", "lvds-encoder";
101 pinctrl-names = "default";
102 pinctrl-0 = <&pinctrl_lvds_prlud0 &pinctrl_lvds_hipow0>;
105 #address-cells = <1>;
111 lvds_encoder_input: endpoint {
112 remote-endpoint = <&hlcdc_output>;
119 lvds_encoder_output: endpoint {
120 remote-endpoint = <&panel_input>;
127 compatible = "simple-audio-card";
129 simple-audio-card,name = "nattis-tfa9879";
130 simple-audio-card,format = "i2s";
131 simple-audio-card,bitclock-master = <&cpu_dai>;
132 simple-audio-card,frame-master = <&cpu_dai>;
133 simple-audio-card,widgets = "Line", "Line Out Jack";
134 simple-audio-card,routing = "Line Out Jack", "LINEOUT";
136 cpu_dai: simple-audio-card,cpu {
140 simple-audio-card,codec {
148 pinctrl_usba_vbus: usba_vbus {
149 atmel,pins = <AT91_PIOD 28 AT91_PERIPH_GPIO
150 AT91_PINCTRL_DEGLITCH>;
153 pinctrl_mmc0_cd: mmc0_cd {
154 atmel,pins = <AT91_PIOD 5 AT91_PERIPH_GPIO
155 AT91_PINCTRL_PULL_UP_DEGLITCH>;
158 pinctrl_lvds_prlud0: lvds_prlud0 {
159 atmel,pins = <AT91_PIOA 21 AT91_PERIPH_GPIO
160 (AT91_PINCTRL_OUTPUT |
161 AT91_PINCTRL_OUTPUT_VAL(0))>;
164 pinctrl_lvds_hipow0: lvds_hipow0 {
165 atmel,pins = <AT91_PIOA 23 AT91_PERIPH_GPIO
166 (AT91_PINCTRL_OUTPUT |
167 AT91_PINCTRL_OUTPUT_VAL(0))>;
171 atmel,pins = <AT91_PIOA 20 AT91_PERIPH_GPIO
172 (AT91_PINCTRL_OUTPUT |
173 AT91_PINCTRL_OUTPUT_VAL(0))>;
185 clock-frequency = <100000>;
188 compatible = "nxp,se97b", "jedec,jc-42.4-temp";
190 smbus-timeout-disable;
194 compatible = "nxp,se97b", "atmel,24c02";
200 compatible = "nxp,tfa9879";
202 #sound-dai-cells = <0>;
209 atmel,clk-from-rk-pin;
210 #sound-dai-cells = <0>;
216 hlcdc-display-controller {
217 pinctrl-names = "default";
218 pinctrl-0 = <&pinctrl_lcd_base &pinctrl_lcd_rgb565>;
221 hlcdc_output: endpoint {
222 remote-endpoint = <&lvds_encoder_input>;
232 pinctrl-0 = <&pinctrl_mmc0_clk_cmd_dat0
239 cd-gpios = <&pioD 5 GPIO_ACTIVE_HIGH>;
247 pinctrl-names = "default";
248 pinctrl-0 = <&pinctrl_usart0>;
254 compatible = "fixed-partitions";
255 #address-cells = <1>;
259 label = "at91bootstrap";
265 reg = <0x40000 0x60000>;
269 label = "bareboxenv";
270 reg = <0xc0000 0x40000>;
274 label = "bareboxenv2";
275 reg = <0x100000 0x40000>;
280 reg = <0x180000 0x20000>;
285 reg = <0x200000 0x500000>;
290 reg = <0x800000 0x1f800000>;
304 atmel,vbus-gpio = <&pioD 28 GPIO_ACTIVE_HIGH>;
305 pinctrl-names = "default";
306 pinctrl-0 = <&pinctrl_usba_vbus>;