Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0+
0002 /*
0003  * at91-nattis-2-natte-2.dts - Device Tree file for the Linea/Nattis board
0004  *
0005  * Copyright (C) 2017 Axentia Technologies AB
0006  *
0007  * Author: Peter Rosin <peda@axentia.se>
0008  */
0009 /dts-v1/;
0010 #include "at91-linea.dtsi"
0011 #include "at91-natte.dtsi"
0012 
0013 / {
0014         model = "Axentia Linea-Nattis v2 Natte v2";
0015         compatible = "axentia,nattis-2", "axentia,natte-2", "axentia,linea",
0016                      "atmel,sama5d31", "atmel,sama5d3", "atmel,sama5";
0017 
0018         gpio-keys {
0019                 compatible = "gpio-keys";
0020 
0021                 key-wakeup {
0022                         label = "Wakeup";
0023                         linux,code = <10>;
0024                         wakeup-source;
0025                         gpios = <&pioB 27 GPIO_ACTIVE_LOW>;
0026                 };
0027         };
0028 
0029         panel_reg: panel-regulator {
0030                 compatible = "regulator-fixed";
0031                 regulator-name = "panel-VCC";
0032                 regulator-min-microvolt = <3300000>;
0033                 regulator-max-microvolt = <3300000>;
0034         };
0035 
0036         bl_reg: backlight-regulator {
0037                 compatible = "regulator-fixed";
0038                 regulator-name = "panel-VDD";
0039                 regulator-min-microvolt = <12000000>;
0040                 regulator-max-microvolt = <12000000>;
0041         };
0042 
0043         panel_bl: backlight {
0044                 compatible = "pwm-backlight";
0045                 pwms = <&hlcdc_pwm 0 100000 0>;
0046 
0047                 brightness-levels = < 0  1  2  3  4  5  6  7  8  9
0048                                      10 11 12 13 14 15 16 17 18 19
0049                                      20 21 22 23 24 25 26 27 28 29
0050                                      30 31 32 33 34 35 36 37 38 39
0051                                      40 41 42 43 44 45 46 47 48 49
0052                                      50 51 52 53 54 55 56 57 58 59
0053                                      60 61 62 63 64 65 66 67 68 69
0054                                      70 71 72 73 74 75 76 77 78 79
0055                                      80 81 82 83 84 85 86 87 88 89
0056                                      90 91 92 93 94 95 96 97 98 99
0057                                     100>;
0058                 default-brightness-level = <40>;
0059 
0060                 power-supply = <&bl_reg>;
0061                 enable-gpios = <&pioA 20 GPIO_ACTIVE_HIGH>;
0062                 pinctrl-names = "default";
0063                 pinctrl-0 = <&pinctrl_blon>;
0064         };
0065 
0066         panel: panel {
0067                 compatible = "sharp,lq150x1lg11", "panel-lvds";
0068 
0069                 backlight = <&panel_bl>;
0070                 power-supply = <&panel_reg>;
0071 
0072                 width-mm = <304>;
0073                 height-mm = <228>;
0074 
0075                 data-mapping = "jeida-18";
0076 
0077                 panel-timing {
0078                         // 1024x768 @ 60Hz (typical)
0079                         clock-frequency = <50000000 65000000 80000000>;
0080                         hactive = <1024>;
0081                         vactive = <768>;
0082                         hfront-porch = <48 88 88>;
0083                         hback-porch = <96 168 168>;
0084                         hsync-len = <32 64 64>;
0085                         vsync-len = <3 13 74>;
0086                         vfront-porch = <3 13 74>;
0087                         vback-porch = <3 12 74>;
0088                 };
0089 
0090                 port {
0091                         panel_input: endpoint {
0092                                 remote-endpoint = <&lvds_encoder_output>;
0093                         };
0094                 };
0095         };
0096 
0097         lvds-encoder {
0098                 compatible = "ti,ds90c185", "lvds-encoder";
0099 
0100                 pinctrl-names = "default";
0101                 pinctrl-0 = <&pinctrl_lvds_prlud0 &pinctrl_lvds_hipow0>;
0102 
0103                 ports {
0104                         #address-cells = <1>;
0105                         #size-cells = <0>;
0106 
0107                         port@0 {
0108                                 reg = <0>;
0109 
0110                                 lvds_encoder_input: endpoint {
0111                                         remote-endpoint = <&hlcdc_output>;
0112                                 };
0113                         };
0114 
0115                         port@1 {
0116                                 reg = <1>;
0117 
0118                                 lvds_encoder_output: endpoint {
0119                                         remote-endpoint = <&panel_input>;
0120                                 };
0121                         };
0122                 };
0123         };
0124 
0125         sound {
0126                 compatible = "simple-audio-card";
0127 
0128                 simple-audio-card,name = "nattis-tfa9879";
0129                 simple-audio-card,format = "i2s";
0130                 simple-audio-card,bitclock-master = <&cpu_dai>;
0131                 simple-audio-card,frame-master = <&cpu_dai>;
0132                 simple-audio-card,widgets = "Line", "Line Out Jack";
0133                 simple-audio-card,routing = "Line Out Jack", "LINEOUT";
0134 
0135                 cpu_dai: simple-audio-card,cpu {
0136                         sound-dai = <&ssc0>;
0137                 };
0138 
0139                 simple-audio-card,codec {
0140                         sound-dai = <&amp>;
0141                 };
0142         };
0143 };
0144 
0145 &pinctrl {
0146         nattis {
0147                 pinctrl_usba_vbus: usba_vbus {
0148                         atmel,pins = <AT91_PIOD 28 AT91_PERIPH_GPIO
0149                                       AT91_PINCTRL_DEGLITCH>;
0150                 };
0151 
0152                 pinctrl_mmc0_cd: mmc0_cd {
0153                         atmel,pins = <AT91_PIOD  5 AT91_PERIPH_GPIO
0154                                       AT91_PINCTRL_PULL_UP_DEGLITCH>;
0155                 };
0156 
0157                 pinctrl_lvds_prlud0: lvds_prlud0 {
0158                         atmel,pins = <AT91_PIOA 21 AT91_PERIPH_GPIO
0159                                       (AT91_PINCTRL_OUTPUT |
0160                                        AT91_PINCTRL_OUTPUT_VAL(0))>;
0161                 };
0162 
0163                 pinctrl_lvds_hipow0: lvds_hipow0 {
0164                         atmel,pins = <AT91_PIOA 23 AT91_PERIPH_GPIO
0165                                       (AT91_PINCTRL_OUTPUT |
0166                                        AT91_PINCTRL_OUTPUT_VAL(0))>;
0167                 };
0168 
0169                 pinctrl_blon: blon {
0170                         atmel,pins = <AT91_PIOA 20 AT91_PERIPH_GPIO
0171                                       (AT91_PINCTRL_OUTPUT |
0172                                        AT91_PINCTRL_OUTPUT_VAL(0))>;
0173                 };
0174         };
0175 };
0176 
0177 &watchdog {
0178         status = "okay";
0179 };
0180 
0181 &i2c0 {
0182         status = "okay";
0183 
0184         clock-frequency = <100000>;
0185 
0186         temp@18 {
0187                 compatible = "nxp,se97b", "jedec,jc-42.4-temp";
0188                 reg = <0x18>;
0189                 smbus-timeout-disable;
0190         };
0191 
0192         eeprom@50 {
0193                 compatible = "nxp,se97b", "atmel,24c02";
0194                 reg = <0x50>;
0195                 pagesize = <16>;
0196         };
0197 
0198         amp: amplifier@6c {
0199                  compatible = "nxp,tfa9879";
0200                  reg = <0x6c>;
0201                  #sound-dai-cells = <0>;
0202         };
0203 };
0204 
0205 &ssc0 {
0206         status = "okay";
0207 
0208         atmel,clk-from-rk-pin;
0209         #sound-dai-cells = <0>;
0210 };
0211 
0212 &hlcdc {
0213         status = "okay";
0214 
0215         hlcdc-display-controller {
0216                 pinctrl-names = "default";
0217                 pinctrl-0 = <&pinctrl_lcd_base &pinctrl_lcd_rgb565>;
0218 
0219                 port@0 {
0220                         hlcdc_output: endpoint {
0221                                 remote-endpoint = <&lvds_encoder_input>;
0222                                 bus-width = <16>;
0223                         };
0224                 };
0225         };
0226 };
0227 
0228 &mmc0 {
0229         status = "okay";
0230 
0231         pinctrl-0 = <&pinctrl_mmc0_clk_cmd_dat0
0232                      &pinctrl_mmc0_dat1_3
0233                      &pinctrl_mmc0_cd>;
0234 
0235         slot@0 {
0236                 reg = <0>;
0237                 bus-width = <4>;
0238                 cd-gpios = <&pioD 5 GPIO_ACTIVE_HIGH>;
0239                 cd-inverted;
0240         };
0241 };
0242 
0243 &usart0 {
0244         status = "okay";
0245 
0246         pinctrl-names = "default";
0247         pinctrl-0 = <&pinctrl_usart0>;
0248         atmel,use-dma-rx;
0249 };
0250 
0251 &nand {
0252         partitions {
0253                 compatible = "fixed-partitions";
0254                 #address-cells = <1>;
0255                 #size-cells = <1>;
0256 
0257                 at91bootstrap@0 {
0258                         label = "at91bootstrap";
0259                         reg = <0x0 0x40000>;
0260                 };
0261 
0262                 barebox@40000 {
0263                         label = "barebox";
0264                         reg = <0x40000 0x60000>;
0265                 };
0266 
0267                 bareboxenv@c0000 {
0268                         label = "bareboxenv";
0269                         reg = <0xc0000 0x40000>;
0270                 };
0271 
0272                 bareboxenv2@100000 {
0273                         label = "bareboxenv2";
0274                         reg = <0x100000 0x40000>;
0275                 };
0276 
0277                 oftree@180000 {
0278                         label = "oftree";
0279                         reg = <0x180000 0x20000>;
0280                 };
0281 
0282                 kernel@200000 {
0283                         label = "kernel";
0284                         reg = <0x200000 0x500000>;
0285                 };
0286 
0287                 rootfs@800000 {
0288                         label = "rootfs";
0289                         reg = <0x800000 0x1f800000>;
0290                 };
0291         };
0292 };
0293 
0294 &dbgu {
0295         status = "okay";
0296 
0297         atmel,use-dma-rx;
0298 };
0299 
0300 &usb0 {
0301         status = "okay";
0302 
0303         atmel,vbus-gpio = <&pioD 28 GPIO_ACTIVE_HIGH>;
0304         pinctrl-names = "default";
0305         pinctrl-0 = <&pinctrl_usba_vbus>;
0306 };