Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 /*
0003  * Samsung's S3C6410 based Mini6410 board device tree source
0004  *
0005  * Copyright (c) 2013 Tomasz Figa <tomasz.figa@gmail.com>
0006  *
0007  * Device tree source file for FriendlyARM Mini6410 board which is based on
0008  * Samsung's S3C6410 SoC.
0009  */
0010 
0011 /dts-v1/;
0012 
0013 #include <dt-bindings/gpio/gpio.h>
0014 #include <dt-bindings/interrupt-controller/irq.h>
0015 
0016 #include "s3c6410.dtsi"
0017 
0018 / {
0019         model = "FriendlyARM Mini6410 board based on S3C6410";
0020         compatible = "friendlyarm,mini6410", "samsung,s3c6410";
0021 
0022         memory@50000000 {
0023                 device_type = "memory";
0024                 reg = <0x50000000 0x10000000>;
0025         };
0026 
0027         chosen {
0028                 bootargs = "console=ttySAC0,115200n8 earlyprintk rootwait root=/dev/mmcblk0p1";
0029         };
0030 
0031         fin_pll: oscillator-0 {
0032                 compatible = "fixed-clock";
0033                 clock-frequency = <12000000>;
0034                 clock-output-names = "fin_pll";
0035                 #clock-cells = <0>;
0036         };
0037 
0038         xusbxti: oscillator-1 {
0039                 compatible = "fixed-clock";
0040                 clock-output-names = "xusbxti";
0041                 clock-frequency = <48000000>;
0042                 #clock-cells = <0>;
0043         };
0044 
0045         srom-cs1-bus@18000000 {
0046                 compatible = "simple-bus";
0047                 #address-cells = <1>;
0048                 #size-cells = <1>;
0049                 reg = <0x18000000 0x8000000>;
0050                 ranges;
0051 
0052                 ethernet@18000000 {
0053                         compatible = "davicom,dm9000";
0054                         reg = <0x18000000 0x2 0x18000004 0x2>;
0055                         interrupt-parent = <&gpn>;
0056                         interrupts = <7 IRQ_TYPE_LEVEL_HIGH>;
0057                         davicom,no-eeprom;
0058                 };
0059         };
0060 
0061         gpio-keys {
0062                 compatible = "gpio-keys";
0063                 pinctrl-names = "default";
0064                 pinctrl-0 = <&gpio_keys>;
0065                 autorepeat;
0066 
0067                 button-k1 {
0068                         label = "K1";
0069                         gpios = <&gpn 0 GPIO_ACTIVE_LOW>;
0070                         linux,code = <2>;
0071                         debounce-interval = <20>;
0072                 };
0073 
0074                 button-k2 {
0075                         label = "K2";
0076                         gpios = <&gpn 1 GPIO_ACTIVE_LOW>;
0077                         linux,code = <3>;
0078                         debounce-interval = <20>;
0079                 };
0080 
0081                 button-k3 {
0082                         label = "K3";
0083                         gpios = <&gpn 2 GPIO_ACTIVE_LOW>;
0084                         linux,code = <4>;
0085                         debounce-interval = <20>;
0086                 };
0087 
0088                 button-k4 {
0089                         label = "K4";
0090                         gpios = <&gpn 3 GPIO_ACTIVE_LOW>;
0091                         linux,code = <5>;
0092                         debounce-interval = <20>;
0093                 };
0094 
0095                 button-k5 {
0096                         label = "K5";
0097                         gpios = <&gpn 4 GPIO_ACTIVE_LOW>;
0098                         linux,code = <6>;
0099                         debounce-interval = <20>;
0100                 };
0101 
0102                 button-k6 {
0103                         label = "K6";
0104                         gpios = <&gpn 5 GPIO_ACTIVE_LOW>;
0105                         linux,code = <7>;
0106                         debounce-interval = <20>;
0107                 };
0108 
0109                 button-k7 {
0110                         label = "K7";
0111                         gpios = <&gpl 11 GPIO_ACTIVE_LOW>;
0112                         linux,code = <8>;
0113                         debounce-interval = <20>;
0114                 };
0115 
0116                 button-k8 {
0117                         label = "K8";
0118                         gpios = <&gpl 12 GPIO_ACTIVE_LOW>;
0119                         linux,code = <9>;
0120                         debounce-interval = <20>;
0121                 };
0122         };
0123 
0124         leds {
0125                 compatible = "gpio-leds";
0126                 pinctrl-names = "default";
0127                 pinctrl-0 = <&gpio_leds>;
0128 
0129                 led-1 {
0130                         label = "LED1";
0131                         gpios = <&gpk 4 GPIO_ACTIVE_LOW>;
0132                         linux,default-trigger = "heartbeat";
0133                 };
0134 
0135                 led-2 {
0136                         label = "LED2";
0137                         gpios = <&gpk 5 GPIO_ACTIVE_LOW>;
0138                         linux,default-trigger = "mmc0";
0139                 };
0140 
0141                 led-3 {
0142                         label = "LED3";
0143                         gpios = <&gpk 6 GPIO_ACTIVE_LOW>;
0144                 };
0145 
0146                 led-4 {
0147                         label = "LED4";
0148                         gpios = <&gpk 7 GPIO_ACTIVE_LOW>;
0149                 };
0150         };
0151 
0152         buzzer {
0153                 compatible = "pwm-beeper";
0154                 pwms = <&pwm 0 1000000 0>;
0155                 pinctrl-names = "default";
0156                 pinctrl-0 = <&pwm0_out>;
0157         };
0158 };
0159 
0160 &clocks {
0161         clocks = <&fin_pll>;
0162 };
0163 
0164 &sdhci0 {
0165         pinctrl-names = "default";
0166         pinctrl-0 = <&sd0_clk>, <&sd0_cmd>, <&sd0_cd>, <&sd0_bus4>;
0167         bus-width = <4>;
0168         status = "okay";
0169 };
0170 
0171 &uart0 {
0172         pinctrl-names = "default";
0173         pinctrl-0 = <&uart0_data>;
0174         status = "okay";
0175 };
0176 
0177 &uart1 {
0178         pinctrl-names = "default";
0179         pinctrl-0 = <&uart1_data>, <&uart1_fctl>;
0180         status = "okay";
0181 };
0182 
0183 &uart2 {
0184         pinctrl-names = "default";
0185         pinctrl-0 = <&uart2_data>;
0186         status = "okay";
0187 };
0188 
0189 &uart3 {
0190         pinctrl-names = "default";
0191         pinctrl-0 = <&uart3_data>;
0192         status = "okay";
0193 };
0194 
0195 &pinctrl0 {
0196         gpio_leds: gpio-leds-pins {
0197                 samsung,pins = "gpk-4", "gpk-5", "gpk-6", "gpk-7";
0198                 samsung,pin-pud = <S3C64XX_PIN_PULL_NONE>;
0199         };
0200 
0201         gpio_keys: gpio-keys-pins {
0202                 samsung,pins = "gpn-0", "gpn-1", "gpn-2", "gpn-3",
0203                                 "gpn-4", "gpn-5", "gpl-11", "gpl-12";
0204                 samsung,pin-pud = <S3C64XX_PIN_PULL_NONE>;
0205         };
0206 };
0207 
0208 &i2c0 {
0209         pinctrl-names = "default";
0210         pinctrl-0 = <&i2c0_bus>;
0211         status = "okay";
0212 
0213         eeprom@50 {
0214                 compatible = "atmel,24c08";
0215                 reg = <0x50>;
0216                 pagesize = <16>;
0217         };
0218 };