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";
23 pinctrl_usba_vbus: usba_vbus {
27 AT91_PINCTRL_DEGLITCH>;
30 pinctrl_mmc0_cd: mmc0_cd {
34 AT91_PINCTRL_PULL_UP_DEGLITCH>;
37 pinctrl_lcd_prlud0: lcd_prlud0 {
41 (AT91_PINCTRL_OUTPUT |
42 AT91_PINCTRL_OUTPUT_VAL(0))>;
45 pinctrl_lcd_hipow0: lcd_hipow0 {
49 (AT91_PINCTRL_OUTPUT |
50 AT91_PINCTRL_OUTPUT_VAL(0))>;
62 compatible = "gpio-keys";
68 gpios = <&pioB 27 GPIO_ACTIVE_LOW>;
72 panel_reg: panel-regulator {
73 compatible = "regulator-fixed";
74 regulator-name = "panel-VCC";
75 regulator-min-microvolt = <3300000>;
76 regulator-max-microvolt = <3300000>;
79 bl_reg: backlight-regulator {
80 compatible = "regulator-fixed";
81 regulator-name = "panel-VDD";
82 regulator-min-microvolt = <12000000>;
83 regulator-max-microvolt = <12000000>;
87 compatible = "pwm-backlight";
88 pwms = <&hlcdc_pwm 0 100000 0>;
90 brightness-levels = < 0 1 2 3 4 5 6 7 8 9
91 10 11 12 13 14 15 16 17 18 19
92 20 21 22 23 24 25 26 27 28 29
93 30 31 32 33 34 35 36 37 38 39
94 40 41 42 43 44 45 46 47 48 49
95 50 51 52 53 54 55 56 57 58 59
96 60 61 62 63 64 65 66 67 68 69
97 70 71 72 73 74 75 76 77 78 79
98 80 81 82 83 84 85 86 87 88 89
99 90 91 92 93 94 95 96 97 98 99
101 default-brightness-level = <40>;
103 power-supply = <&bl_reg>;
104 enable-gpios = <&pioA 20 GPIO_ACTIVE_HIGH>;
108 compatible = "sharp,lq150x1lg11";
109 backlight = <&panel_bl>;
110 power-supply = <&panel_reg>;
113 panel_input: endpoint {
114 remote-endpoint = <&lvds_encoder_output>;
120 compatible = "lvds-encoder";
123 #address-cells = <1>;
129 lvds_encoder_input: endpoint {
130 remote-endpoint = <&hlcdc_output>;
137 lvds_encoder_output: endpoint {
138 remote-endpoint = <&panel_input>;
145 compatible = "simple-audio-card";
147 simple-audio-card,name = "nattis-tfa9879";
148 simple-audio-card,format = "i2s";
149 simple-audio-card,bitclock-master = <&cpu_dai>;
150 simple-audio-card,frame-master = <&cpu_dai>;
151 simple-audio-card,widgets = "Line", "Line Out Jack";
152 simple-audio-card,routing = "Line Out Jack", "LINEOUT";
154 cpu_dai: simple-audio-card,cpu {
158 simple-audio-card,codec {
167 clock-frequency = <100000>;
170 compatible = "nxp,se97b", "jedec,jc-42.4-temp";
172 smbus-timeout-disable;
176 compatible = "nxp,se97b", "atmel,24c02";
182 compatible = "nxp,tfa9879";
184 #sound-dai-cells = <0>;
191 atmel,clk-from-rk-pin;
192 #sound-dai-cells = <0>;
198 hlcdc-display-controller {
199 pinctrl-names = "default";
200 pinctrl-0 = <&pinctrl_lcd_base
203 &pinctrl_lcd_hipow0>;
206 hlcdc_output: endpoint {
207 remote-endpoint = <&lvds_encoder_input>;
216 pinctrl-0 = <&pinctrl_mmc0_clk_cmd_dat0
223 cd-gpios = <&pioD 5 GPIO_ACTIVE_HIGH>;
231 pinctrl-names = "default";
232 pinctrl-0 = <&pinctrl_usart0>;
238 compatible = "fixed-partitions";
239 #address-cells = <1>;
243 label = "at91bootstrap";
249 reg = <0x40000 0x60000>;
253 label = "bareboxenv";
254 reg = <0xc0000 0x40000>;
258 label = "bareboxenv2";
259 reg = <0x100000 0x40000>;
264 reg = <0x180000 0x20000>;
269 reg = <0x200000 0x500000>;
274 reg = <0x800000 0x1f800000>;
288 atmel,vbus-gpio = <&pioD 28 GPIO_ACTIVE_HIGH>;
289 pinctrl-names = "default";
290 pinctrl-0 = <&pinctrl_usba_vbus>;