Boris BREZILLON | df82674 | 2012-04-20 14:37:50 +0200 | [diff] [blame] | 1 | /* |
| 2 | * kizbox.dts - Device Tree file for Overkiz Kizbox board |
| 3 | * |
| 4 | * Copyright (C) 2012 Boris BREZILLON <linux-arm@overkiz.com> |
| 5 | * |
| 6 | * Licensed under GPLv2. |
| 7 | */ |
| 8 | /dts-v1/; |
Jean-Christophe PLAGNIOL-VILLARD | 6db64d2 | 2013-05-15 01:21:50 +0800 | [diff] [blame] | 9 | #include "at91sam9g20.dtsi" |
Boris BREZILLON | df82674 | 2012-04-20 14:37:50 +0200 | [diff] [blame] | 10 | |
| 11 | / { |
| 12 | |
| 13 | model = "Overkiz kizbox"; |
| 14 | compatible = "overkiz,kizbox", "atmel,at91sam9g20", "atmel,at91sam9"; |
| 15 | |
| 16 | chosen { |
| 17 | bootargs = "panic=5 ubi.mtd=1 rootfstype=ubifs root=ubi0:root"; |
| 18 | }; |
| 19 | |
| 20 | memory { |
| 21 | reg = <0x20000000 0x2000000>; |
| 22 | }; |
| 23 | |
| 24 | clocks { |
| 25 | #address-cells = <1>; |
| 26 | #size-cells = <1>; |
| 27 | ranges; |
| 28 | |
| 29 | main_clock: clock@0 { |
| 30 | compatible = "atmel,osc", "fixed-clock"; |
| 31 | clock-frequency = <18432000>; |
| 32 | }; |
Alexandre Belloni | d738989 | 2014-06-18 21:05:05 +0200 | [diff] [blame] | 33 | |
| 34 | main_xtal { |
| 35 | clock-frequency = <18432000>; |
| 36 | }; |
Boris BREZILLON | df82674 | 2012-04-20 14:37:50 +0200 | [diff] [blame] | 37 | }; |
| 38 | |
| 39 | ahb { |
| 40 | apb { |
| 41 | dbgu: serial@fffff200 { |
| 42 | status = "okay"; |
| 43 | }; |
| 44 | |
| 45 | usart0: serial@fffb0000 { |
| 46 | status = "okay"; |
| 47 | }; |
| 48 | |
| 49 | usart1: serial@fffb4000 { |
| 50 | status = "okay"; |
| 51 | }; |
| 52 | |
| 53 | macb0: ethernet@fffc4000 { |
| 54 | phy-mode = "mii"; |
Boris BREZILLON | b45c998 | 2012-12-13 14:03:08 +0000 | [diff] [blame] | 55 | pinctrl-0 = <&pinctrl_macb_rmii |
| 56 | &pinctrl_macb_rmii_mii_alt>; |
Boris BREZILLON | df82674 | 2012-04-20 14:37:50 +0200 | [diff] [blame] | 57 | status = "okay"; |
| 58 | }; |
| 59 | |
Boris BREZILLON | 705b675 | 2013-10-04 09:24:15 +0200 | [diff] [blame] | 60 | watchdog@fffffd40 { |
| 61 | timeout-sec = <15>; |
| 62 | atmel,max-heartbeat-sec = <16>; |
| 63 | atmel,min-heartbeat-sec = <0>; |
| 64 | status = "okay"; |
| 65 | }; |
Boris BREZILLON | df82674 | 2012-04-20 14:37:50 +0200 | [diff] [blame] | 66 | }; |
| 67 | |
| 68 | nand0: nand@40000000 { |
| 69 | nand-bus-width = <8>; |
| 70 | nand-ecc-mode = "soft"; |
| 71 | status = "okay"; |
| 72 | |
| 73 | bootloaderkernel@0 { |
| 74 | label = "bootloader-kernel"; |
| 75 | reg = <0x0 0xc0000>; |
| 76 | }; |
| 77 | |
| 78 | ubi@c0000 { |
| 79 | label = "ubi"; |
| 80 | reg = <0xc0000 0x7f40000>; |
| 81 | }; |
| 82 | |
| 83 | }; |
| 84 | |
| 85 | usb0: ohci@00500000 { |
| 86 | num-ports = <1>; |
| 87 | status = "okay"; |
| 88 | }; |
| 89 | }; |
| 90 | |
| 91 | i2c@0 { |
| 92 | status = "okay"; |
| 93 | |
| 94 | pcf8563@51 { |
| 95 | /* nxp pcf8563 rtc */ |
| 96 | compatible = "nxp,pcf8563"; |
| 97 | reg = <0x51>; |
| 98 | }; |
| 99 | |
| 100 | }; |
| 101 | |
| 102 | leds { |
| 103 | compatible = "gpio-leds"; |
| 104 | |
| 105 | led1g { |
| 106 | label = "led1:green"; |
Jean-Christophe PLAGNIOL-VILLARD | 92f8629 | 2013-04-24 08:34:25 +0800 | [diff] [blame] | 107 | gpios = <&pioB 0 GPIO_ACTIVE_LOW>; |
Boris BREZILLON | df82674 | 2012-04-20 14:37:50 +0200 | [diff] [blame] | 108 | linux,default-trigger = "none"; |
| 109 | }; |
| 110 | |
| 111 | led1r { |
| 112 | label = "led1:red"; |
Jean-Christophe PLAGNIOL-VILLARD | 92f8629 | 2013-04-24 08:34:25 +0800 | [diff] [blame] | 113 | gpios = <&pioB 1 GPIO_ACTIVE_LOW>; |
Boris BREZILLON | df82674 | 2012-04-20 14:37:50 +0200 | [diff] [blame] | 114 | linux,default-trigger = "none"; |
| 115 | }; |
| 116 | |
| 117 | led2g { |
| 118 | label = "led2:green"; |
Jean-Christophe PLAGNIOL-VILLARD | 92f8629 | 2013-04-24 08:34:25 +0800 | [diff] [blame] | 119 | gpios = <&pioB 2 GPIO_ACTIVE_LOW>; |
Boris BREZILLON | df82674 | 2012-04-20 14:37:50 +0200 | [diff] [blame] | 120 | linux,default-trigger = "none"; |
| 121 | default-state = "on"; |
| 122 | }; |
| 123 | |
| 124 | led2r { |
| 125 | label = "led2:red"; |
Jean-Christophe PLAGNIOL-VILLARD | 92f8629 | 2013-04-24 08:34:25 +0800 | [diff] [blame] | 126 | gpios = <&pioB 3 GPIO_ACTIVE_LOW>; |
Boris BREZILLON | df82674 | 2012-04-20 14:37:50 +0200 | [diff] [blame] | 127 | linux,default-trigger = "none"; |
| 128 | }; |
| 129 | }; |
| 130 | |
| 131 | gpio_keys { |
| 132 | compatible = "gpio-keys"; |
| 133 | #address-cells = <1>; |
| 134 | #size-cells = <0>; |
| 135 | |
| 136 | reset { |
| 137 | label = "reset"; |
Jean-Christophe PLAGNIOL-VILLARD | 92f8629 | 2013-04-24 08:34:25 +0800 | [diff] [blame] | 138 | gpios = <&pioB 30 GPIO_ACTIVE_LOW>; |
Boris BREZILLON | df82674 | 2012-04-20 14:37:50 +0200 | [diff] [blame] | 139 | linux,code = <0x100>; |
| 140 | gpio-key,wakeup; |
| 141 | }; |
| 142 | |
| 143 | mode { |
| 144 | label = "mode"; |
Jean-Christophe PLAGNIOL-VILLARD | 92f8629 | 2013-04-24 08:34:25 +0800 | [diff] [blame] | 145 | gpios = <&pioB 31 GPIO_ACTIVE_LOW>; |
Boris BREZILLON | df82674 | 2012-04-20 14:37:50 +0200 | [diff] [blame] | 146 | linux,code = <0x101>; |
| 147 | gpio-key,wakeup; |
| 148 | }; |
| 149 | }; |
Jean-Christophe PLAGNIOL-VILLARD | 6db64d2 | 2013-05-15 01:21:50 +0800 | [diff] [blame] | 150 | }; |