1f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0 2f126890aSEmmanuel Vadot/* 3f126890aSEmmanuel Vadot * Samsung's S3C6410 based Mini6410 board device tree source 4f126890aSEmmanuel Vadot * 5f126890aSEmmanuel Vadot * Copyright (c) 2013 Tomasz Figa <tomasz.figa@gmail.com> 6f126890aSEmmanuel Vadot * 7f126890aSEmmanuel Vadot * Device tree source file for FriendlyARM Mini6410 board which is based on 8f126890aSEmmanuel Vadot * Samsung's S3C6410 SoC. 9f126890aSEmmanuel Vadot */ 10f126890aSEmmanuel Vadot 11f126890aSEmmanuel Vadot/dts-v1/; 12f126890aSEmmanuel Vadot 13f126890aSEmmanuel Vadot#include <dt-bindings/gpio/gpio.h> 14f126890aSEmmanuel Vadot#include <dt-bindings/interrupt-controller/irq.h> 15f126890aSEmmanuel Vadot 16f126890aSEmmanuel Vadot#include "s3c6410.dtsi" 17f126890aSEmmanuel Vadot 18f126890aSEmmanuel Vadot/ { 19f126890aSEmmanuel Vadot model = "FriendlyARM Mini6410 board based on S3C6410"; 20f126890aSEmmanuel Vadot compatible = "friendlyarm,mini6410", "samsung,s3c6410"; 21f126890aSEmmanuel Vadot 22f126890aSEmmanuel Vadot memory@50000000 { 23f126890aSEmmanuel Vadot device_type = "memory"; 24f126890aSEmmanuel Vadot reg = <0x50000000 0x10000000>; 25f126890aSEmmanuel Vadot }; 26f126890aSEmmanuel Vadot 27f126890aSEmmanuel Vadot chosen { 28f126890aSEmmanuel Vadot bootargs = "console=ttySAC0,115200n8 earlyprintk rootwait root=/dev/mmcblk0p1"; 29f126890aSEmmanuel Vadot }; 30f126890aSEmmanuel Vadot 31f126890aSEmmanuel Vadot fin_pll: oscillator-0 { 32f126890aSEmmanuel Vadot compatible = "fixed-clock"; 33f126890aSEmmanuel Vadot clock-frequency = <12000000>; 34f126890aSEmmanuel Vadot clock-output-names = "fin_pll"; 35f126890aSEmmanuel Vadot #clock-cells = <0>; 36f126890aSEmmanuel Vadot }; 37f126890aSEmmanuel Vadot 38f126890aSEmmanuel Vadot xusbxti: oscillator-1 { 39f126890aSEmmanuel Vadot compatible = "fixed-clock"; 40f126890aSEmmanuel Vadot clock-output-names = "xusbxti"; 41f126890aSEmmanuel Vadot clock-frequency = <48000000>; 42f126890aSEmmanuel Vadot #clock-cells = <0>; 43f126890aSEmmanuel Vadot }; 44f126890aSEmmanuel Vadot 45f126890aSEmmanuel Vadot srom-cs1-bus@18000000 { 46f126890aSEmmanuel Vadot compatible = "simple-bus"; 47f126890aSEmmanuel Vadot #address-cells = <1>; 48f126890aSEmmanuel Vadot #size-cells = <1>; 49f126890aSEmmanuel Vadot reg = <0x18000000 0x8000000>; 50f126890aSEmmanuel Vadot ranges; 51f126890aSEmmanuel Vadot 52f126890aSEmmanuel Vadot ethernet@18000000 { 53f126890aSEmmanuel Vadot compatible = "davicom,dm9000"; 54*aa1a8ff2SEmmanuel Vadot reg = <0x18000000 0x2>, <0x18000004 0x2>; 55f126890aSEmmanuel Vadot interrupt-parent = <&gpn>; 56f126890aSEmmanuel Vadot interrupts = <7 IRQ_TYPE_LEVEL_HIGH>; 57f126890aSEmmanuel Vadot davicom,no-eeprom; 58f126890aSEmmanuel Vadot }; 59f126890aSEmmanuel Vadot }; 60f126890aSEmmanuel Vadot 61f126890aSEmmanuel Vadot gpio-keys { 62f126890aSEmmanuel Vadot compatible = "gpio-keys"; 63f126890aSEmmanuel Vadot pinctrl-names = "default"; 64f126890aSEmmanuel Vadot pinctrl-0 = <&gpio_keys>; 65f126890aSEmmanuel Vadot autorepeat; 66f126890aSEmmanuel Vadot 67f126890aSEmmanuel Vadot button-k1 { 68f126890aSEmmanuel Vadot label = "K1"; 69f126890aSEmmanuel Vadot gpios = <&gpn 0 GPIO_ACTIVE_LOW>; 70f126890aSEmmanuel Vadot linux,code = <2>; 71f126890aSEmmanuel Vadot debounce-interval = <20>; 72f126890aSEmmanuel Vadot }; 73f126890aSEmmanuel Vadot 74f126890aSEmmanuel Vadot button-k2 { 75f126890aSEmmanuel Vadot label = "K2"; 76f126890aSEmmanuel Vadot gpios = <&gpn 1 GPIO_ACTIVE_LOW>; 77f126890aSEmmanuel Vadot linux,code = <3>; 78f126890aSEmmanuel Vadot debounce-interval = <20>; 79f126890aSEmmanuel Vadot }; 80f126890aSEmmanuel Vadot 81f126890aSEmmanuel Vadot button-k3 { 82f126890aSEmmanuel Vadot label = "K3"; 83f126890aSEmmanuel Vadot gpios = <&gpn 2 GPIO_ACTIVE_LOW>; 84f126890aSEmmanuel Vadot linux,code = <4>; 85f126890aSEmmanuel Vadot debounce-interval = <20>; 86f126890aSEmmanuel Vadot }; 87f126890aSEmmanuel Vadot 88f126890aSEmmanuel Vadot button-k4 { 89f126890aSEmmanuel Vadot label = "K4"; 90f126890aSEmmanuel Vadot gpios = <&gpn 3 GPIO_ACTIVE_LOW>; 91f126890aSEmmanuel Vadot linux,code = <5>; 92f126890aSEmmanuel Vadot debounce-interval = <20>; 93f126890aSEmmanuel Vadot }; 94f126890aSEmmanuel Vadot 95f126890aSEmmanuel Vadot button-k5 { 96f126890aSEmmanuel Vadot label = "K5"; 97f126890aSEmmanuel Vadot gpios = <&gpn 4 GPIO_ACTIVE_LOW>; 98f126890aSEmmanuel Vadot linux,code = <6>; 99f126890aSEmmanuel Vadot debounce-interval = <20>; 100f126890aSEmmanuel Vadot }; 101f126890aSEmmanuel Vadot 102f126890aSEmmanuel Vadot button-k6 { 103f126890aSEmmanuel Vadot label = "K6"; 104f126890aSEmmanuel Vadot gpios = <&gpn 5 GPIO_ACTIVE_LOW>; 105f126890aSEmmanuel Vadot linux,code = <7>; 106f126890aSEmmanuel Vadot debounce-interval = <20>; 107f126890aSEmmanuel Vadot }; 108f126890aSEmmanuel Vadot 109f126890aSEmmanuel Vadot button-k7 { 110f126890aSEmmanuel Vadot label = "K7"; 111f126890aSEmmanuel Vadot gpios = <&gpl 11 GPIO_ACTIVE_LOW>; 112f126890aSEmmanuel Vadot linux,code = <8>; 113f126890aSEmmanuel Vadot debounce-interval = <20>; 114f126890aSEmmanuel Vadot }; 115f126890aSEmmanuel Vadot 116f126890aSEmmanuel Vadot button-k8 { 117f126890aSEmmanuel Vadot label = "K8"; 118f126890aSEmmanuel Vadot gpios = <&gpl 12 GPIO_ACTIVE_LOW>; 119f126890aSEmmanuel Vadot linux,code = <9>; 120f126890aSEmmanuel Vadot debounce-interval = <20>; 121f126890aSEmmanuel Vadot }; 122f126890aSEmmanuel Vadot }; 123f126890aSEmmanuel Vadot 124f126890aSEmmanuel Vadot leds { 125f126890aSEmmanuel Vadot compatible = "gpio-leds"; 126f126890aSEmmanuel Vadot pinctrl-names = "default"; 127f126890aSEmmanuel Vadot pinctrl-0 = <&gpio_leds>; 128f126890aSEmmanuel Vadot 129f126890aSEmmanuel Vadot led-1 { 130f126890aSEmmanuel Vadot label = "LED1"; 131f126890aSEmmanuel Vadot gpios = <&gpk 4 GPIO_ACTIVE_LOW>; 132f126890aSEmmanuel Vadot linux,default-trigger = "heartbeat"; 133f126890aSEmmanuel Vadot }; 134f126890aSEmmanuel Vadot 135f126890aSEmmanuel Vadot led-2 { 136f126890aSEmmanuel Vadot label = "LED2"; 137f126890aSEmmanuel Vadot gpios = <&gpk 5 GPIO_ACTIVE_LOW>; 138f126890aSEmmanuel Vadot linux,default-trigger = "mmc0"; 139f126890aSEmmanuel Vadot }; 140f126890aSEmmanuel Vadot 141f126890aSEmmanuel Vadot led-3 { 142f126890aSEmmanuel Vadot label = "LED3"; 143f126890aSEmmanuel Vadot gpios = <&gpk 6 GPIO_ACTIVE_LOW>; 144f126890aSEmmanuel Vadot }; 145f126890aSEmmanuel Vadot 146f126890aSEmmanuel Vadot led-4 { 147f126890aSEmmanuel Vadot label = "LED4"; 148f126890aSEmmanuel Vadot gpios = <&gpk 7 GPIO_ACTIVE_LOW>; 149f126890aSEmmanuel Vadot }; 150f126890aSEmmanuel Vadot }; 151f126890aSEmmanuel Vadot 152f126890aSEmmanuel Vadot buzzer { 153f126890aSEmmanuel Vadot compatible = "pwm-beeper"; 154f126890aSEmmanuel Vadot pwms = <&pwm 0 1000000 0>; 155f126890aSEmmanuel Vadot pinctrl-names = "default"; 156f126890aSEmmanuel Vadot pinctrl-0 = <&pwm0_out>; 157f126890aSEmmanuel Vadot }; 158f126890aSEmmanuel Vadot}; 159f126890aSEmmanuel Vadot 160f126890aSEmmanuel Vadot&clocks { 161f126890aSEmmanuel Vadot clocks = <&fin_pll>; 162f126890aSEmmanuel Vadot}; 163f126890aSEmmanuel Vadot 164f126890aSEmmanuel Vadot&sdhci0 { 165f126890aSEmmanuel Vadot pinctrl-names = "default"; 166f126890aSEmmanuel Vadot pinctrl-0 = <&sd0_clk>, <&sd0_cmd>, <&sd0_cd>, <&sd0_bus4>; 167f126890aSEmmanuel Vadot bus-width = <4>; 168f126890aSEmmanuel Vadot status = "okay"; 169f126890aSEmmanuel Vadot}; 170f126890aSEmmanuel Vadot 171f126890aSEmmanuel Vadot&uart0 { 172f126890aSEmmanuel Vadot pinctrl-names = "default"; 173f126890aSEmmanuel Vadot pinctrl-0 = <&uart0_data>; 174f126890aSEmmanuel Vadot status = "okay"; 175f126890aSEmmanuel Vadot}; 176f126890aSEmmanuel Vadot 177f126890aSEmmanuel Vadot&uart1 { 178f126890aSEmmanuel Vadot pinctrl-names = "default"; 179f126890aSEmmanuel Vadot pinctrl-0 = <&uart1_data>, <&uart1_fctl>; 180f126890aSEmmanuel Vadot status = "okay"; 181f126890aSEmmanuel Vadot}; 182f126890aSEmmanuel Vadot 183f126890aSEmmanuel Vadot&uart2 { 184f126890aSEmmanuel Vadot pinctrl-names = "default"; 185f126890aSEmmanuel Vadot pinctrl-0 = <&uart2_data>; 186f126890aSEmmanuel Vadot status = "okay"; 187f126890aSEmmanuel Vadot}; 188f126890aSEmmanuel Vadot 189f126890aSEmmanuel Vadot&uart3 { 190f126890aSEmmanuel Vadot pinctrl-names = "default"; 191f126890aSEmmanuel Vadot pinctrl-0 = <&uart3_data>; 192f126890aSEmmanuel Vadot status = "okay"; 193f126890aSEmmanuel Vadot}; 194f126890aSEmmanuel Vadot 195f126890aSEmmanuel Vadot&pinctrl0 { 196f126890aSEmmanuel Vadot gpio_leds: gpio-leds-pins { 197f126890aSEmmanuel Vadot samsung,pins = "gpk-4", "gpk-5", "gpk-6", "gpk-7"; 198f126890aSEmmanuel Vadot samsung,pin-pud = <S3C64XX_PIN_PULL_NONE>; 199f126890aSEmmanuel Vadot }; 200f126890aSEmmanuel Vadot 201f126890aSEmmanuel Vadot gpio_keys: gpio-keys-pins { 202f126890aSEmmanuel Vadot samsung,pins = "gpn-0", "gpn-1", "gpn-2", "gpn-3", 203f126890aSEmmanuel Vadot "gpn-4", "gpn-5", "gpl-11", "gpl-12"; 204f126890aSEmmanuel Vadot samsung,pin-pud = <S3C64XX_PIN_PULL_NONE>; 205f126890aSEmmanuel Vadot }; 206f126890aSEmmanuel Vadot}; 207f126890aSEmmanuel Vadot 208f126890aSEmmanuel Vadot&i2c0 { 209f126890aSEmmanuel Vadot pinctrl-names = "default"; 210f126890aSEmmanuel Vadot pinctrl-0 = <&i2c0_bus>; 211f126890aSEmmanuel Vadot status = "okay"; 212f126890aSEmmanuel Vadot 213f126890aSEmmanuel Vadot eeprom@50 { 214f126890aSEmmanuel Vadot compatible = "atmel,24c08"; 215f126890aSEmmanuel Vadot reg = <0x50>; 216f126890aSEmmanuel Vadot pagesize = <16>; 217f126890aSEmmanuel Vadot }; 218f126890aSEmmanuel Vadot}; 219