Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0-or-later
0002 /*
0003  * DTS file for SPEAr320 Evaluation Baord
0004  *
0005  * Copyright 2012 Shiraz Hashim <shiraz.linux.kernel@gmail.com>
0006  */
0007 
0008 /dts-v1/;
0009 /include/ "spear320.dtsi"
0010 
0011 / {
0012         model = "ST SPEAr320 HMI Board";
0013         compatible = "st,spear320-hmi", "st,spear320";
0014         #address-cells = <1>;
0015         #size-cells = <1>;
0016 
0017         memory {
0018                 reg = <0 0x40000000>;
0019         };
0020 
0021         ahb {
0022                 pinmux@b3000000 {
0023                         st,pinmux-mode = <4>;
0024                         pinctrl-names = "default";
0025                         pinctrl-0 = <&state_default>;
0026 
0027                         state_default: pinmux {
0028                                 i2c0 {
0029                                         st,pins = "i2c0_grp";
0030                                         st,function = "i2c0";
0031                                 };
0032                                 ssp0 {
0033                                         st,pins = "ssp0_grp";
0034                                         st,function = "ssp0";
0035                                 };
0036                                 uart0 {
0037                                         st,pins = "uart0_grp";
0038                                         st,function = "uart0";
0039                                 };
0040                                 clcd {
0041                                         st,pins = "clcd_grp";
0042                                         st,function = "clcd";
0043                                 };
0044                                 fsmc {
0045                                         st,pins = "fsmc_8bit_grp";
0046                                         st,function = "fsmc";
0047                                 };
0048                                 sdhci {
0049                                         st,pins = "sdhci_cd_12_grp";
0050                                         st,function = "sdhci";
0051                                 };
0052                                 i2s {
0053                                         st,pins = "i2s_grp";
0054                                         st,function = "i2s";
0055                                 };
0056                                 uart1 {
0057                                         st,pins = "uart1_grp";
0058                                         st,function = "uart1";
0059                                 };
0060                                 uart2 {
0061                                         st,pins = "uart2_grp";
0062                                         st,function = "uart2";
0063                                 };
0064                                 can0 {
0065                                         st,pins = "can0_grp";
0066                                         st,function = "can0";
0067                                 };
0068                                 can1 {
0069                                         st,pins = "can1_grp";
0070                                         st,function = "can1";
0071                                 };
0072                                 mii0_1 {
0073                                         st,pins = "rmii0_1_grp";
0074                                         st,function = "mii0_1";
0075                                 };
0076                                 pwm0_1 {
0077                                         st,pins = "pwm0_1_pin_37_38_grp";
0078                                         st,function = "pwm0_1";
0079                                 };
0080                                 pwm2 {
0081                                         st,pins = "pwm2_pin_34_grp";
0082                                         st,function = "pwm2";
0083                                 };
0084                         };
0085                 };
0086 
0087                 clcd@90000000 {
0088                         status = "okay";
0089                 };
0090 
0091                 dma@fc400000 {
0092                         status = "okay";
0093                 };
0094 
0095                 ehci@e1800000 {
0096                         status = "okay";
0097                 };
0098 
0099                 fsmc: flash@4c000000 {
0100                         status = "okay";
0101 
0102                         partition@0 {
0103                                 label = "xloader";
0104                                 reg = <0x0 0x80000>;
0105                         };
0106                         partition@80000 {
0107                                 label = "u-boot";
0108                                 reg = <0x80000 0x140000>;
0109                         };
0110                         partition@1C0000 {
0111                                 label = "environment";
0112                                 reg = <0x1C0000 0x40000>;
0113                         };
0114                         partition@200000 {
0115                                 label = "dtb";
0116                                 reg = <0x200000 0x40000>;
0117                         };
0118                         partition@240000 {
0119                                 label = "linux";
0120                                 reg = <0x240000 0xC00000>;
0121                         };
0122                         partition@E40000 {
0123                                 label = "rootfs";
0124                                 reg = <0xE40000 0x0>;
0125                         };
0126                 };
0127 
0128                 gpio_keys {
0129                         compatible = "gpio-keys";
0130                         #address-cells = <1>;
0131                         #size-cells = <0>;
0132 
0133                         button@1 {
0134                                 label = "user button 1";
0135                                 linux,code = <0x100>;
0136                                 gpios = <&stmpegpio 3 0x4>;
0137                                 debounce-interval = <20>;
0138                                 wakeup-source;
0139                         };
0140 
0141                         button@2 {
0142                                 label = "user button 2";
0143                                 linux,code = <0x200>;
0144                                 gpios = <&stmpegpio 2 0x4>;
0145                                 debounce-interval = <20>;
0146                                 wakeup-source;
0147                         };
0148                 };
0149 
0150                 ohci@e1900000 {
0151                         status = "okay";
0152                 };
0153 
0154                 ohci@e2100000 {
0155                         status = "okay";
0156                 };
0157 
0158                 pwm: pwm@a8000000 {
0159                         status = "okay";
0160                 };
0161 
0162                 sdhci@70000000 {
0163                         power-gpio = <&gpiopinctrl 50 1>;
0164                         power_always_enb;
0165                         status = "okay";
0166                 };
0167 
0168                 smi: flash@fc000000 {
0169                         status = "okay";
0170                         clock-rate = <50000000>;
0171 
0172                         flash@f8000000 {
0173                                 #address-cells = <1>;
0174                                 #size-cells = <1>;
0175                                 reg = <0xf8000000 0x800000>;
0176                                 st,smi-fast-mode;
0177 
0178                                 partition@0 {
0179                                         label = "xloader";
0180                                         reg = <0x0 0x10000>;
0181                                 };
0182                                 partition@10000 {
0183                                         label = "u-boot";
0184                                         reg = <0x10000 0x50000>;
0185                                 };
0186                                 partition@60000 {
0187                                         label = "environment";
0188                                         reg = <0x60000 0x10000>;
0189                                 };
0190                                 partition@70000 {
0191                                         label = "dtb";
0192                                         reg = <0x70000 0x10000>;
0193                                 };
0194                                 partition@80000 {
0195                                         label = "linux";
0196                                         reg = <0x80000 0x310000>;
0197                                 };
0198                                 partition@390000 {
0199                                         label = "rootfs";
0200                                         reg = <0x390000 0x0>;
0201                                 };
0202                         };
0203                 };
0204 
0205                 spi0: spi@d0100000 {
0206                         status = "okay";
0207                 };
0208 
0209                 spi1: spi@a5000000 {
0210                         status = "okay";
0211                 };
0212 
0213                 spi2: spi@a6000000 {
0214                         status = "okay";
0215                 };
0216 
0217                 usbd@e1100000 {
0218                         status = "okay";
0219                 };
0220 
0221                 apb {
0222                         gpio0: gpio@fc980000 {
0223                                status = "okay";
0224                         };
0225 
0226                         gpio@b3000000 {
0227                                 status = "okay";
0228                         };
0229 
0230                         i2c0: i2c@d0180000 {
0231                                 status = "okay";
0232 
0233                                 stmpe811@41 {
0234                                         compatible = "st,stmpe811";
0235                                         #address-cells = <1>;
0236                                         #size-cells = <0>;
0237                                         reg = <0x41>;
0238                                         irq-gpios = <&gpiopinctrl 29 0x4>;
0239                                         id = <0>;
0240                                         blocks = <0x5>;
0241                                         irq-trigger = <0x1>;
0242 
0243                                         stmpegpio: stmpe-gpio {
0244                                                 compatible = "stmpe,gpio";
0245                                                 reg = <0>;
0246                                                 gpio-controller;
0247                                                 #gpio-cells = <2>;
0248                                                 gpio,norequest-mask = <0xF3>;
0249                                         };
0250 
0251                                         stmpe610-ts {
0252                                                 compatible = "stmpe,ts";
0253                                                 reg = <0>;
0254                                                 ts,sample-time = <4>;
0255                                                 ts,mod-12b = <1>;
0256                                                 ts,ref-sel = <0>;
0257                                                 ts,adc-freq = <1>;
0258                                                 ts,ave-ctrl = <1>;
0259                                                 ts,touch-det-delay = <3>;
0260                                                 ts,settling = <4>;
0261                                                 ts,fraction-z = <7>;
0262                                                 ts,i-drive = <1>;
0263                                         };
0264                                 };
0265                         };
0266 
0267                         i2c1: i2c@a7000000 {
0268                                status = "okay";
0269                         };
0270 
0271                         rtc@fc900000 {
0272                                status = "okay";
0273                         };
0274 
0275                         serial@d0000000 {
0276                                status = "okay";
0277                                 pinctrl-names = "default";
0278                                 pinctrl-0 = <>;
0279                         };
0280 
0281                         serial@a3000000 {
0282                                status = "okay";
0283                                 pinctrl-names = "default";
0284                                 pinctrl-0 = <>;
0285                         };
0286 
0287                         serial@a4000000 {
0288                                status = "okay";
0289                                 pinctrl-names = "default";
0290                                 pinctrl-0 = <>;
0291                         };
0292 
0293                         wdt@fc880000 {
0294                                status = "okay";
0295                         };
0296                 };
0297         };
0298 };