| 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/; | 
|  | 9 | /include/ "at91sam9g20.dtsi" | 
|  | 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 | }; | 
|  | 33 | }; | 
|  | 34 |  | 
|  | 35 | ahb { | 
|  | 36 | apb { | 
|  | 37 | dbgu: serial@fffff200 { | 
|  | 38 | status = "okay"; | 
|  | 39 | }; | 
|  | 40 |  | 
|  | 41 | usart0: serial@fffb0000 { | 
|  | 42 | status = "okay"; | 
|  | 43 | }; | 
|  | 44 |  | 
|  | 45 | usart1: serial@fffb4000 { | 
|  | 46 | status = "okay"; | 
|  | 47 | }; | 
|  | 48 |  | 
|  | 49 | macb0: ethernet@fffc4000 { | 
|  | 50 | phy-mode = "mii"; | 
|  | 51 | status = "okay"; | 
|  | 52 | }; | 
|  | 53 |  | 
|  | 54 | }; | 
|  | 55 |  | 
|  | 56 | nand0: nand@40000000 { | 
|  | 57 | nand-bus-width = <8>; | 
|  | 58 | nand-ecc-mode = "soft"; | 
|  | 59 | status = "okay"; | 
|  | 60 |  | 
|  | 61 | bootloaderkernel@0 { | 
|  | 62 | label = "bootloader-kernel"; | 
|  | 63 | reg = <0x0 0xc0000>; | 
|  | 64 | }; | 
|  | 65 |  | 
|  | 66 | ubi@c0000 { | 
|  | 67 | label = "ubi"; | 
|  | 68 | reg = <0xc0000 0x7f40000>; | 
|  | 69 | }; | 
|  | 70 |  | 
|  | 71 | }; | 
|  | 72 |  | 
|  | 73 | usb0: ohci@00500000 { | 
|  | 74 | num-ports = <1>; | 
|  | 75 | status = "okay"; | 
|  | 76 | }; | 
|  | 77 | }; | 
|  | 78 |  | 
|  | 79 | i2c@0 { | 
|  | 80 | status = "okay"; | 
|  | 81 |  | 
|  | 82 | pcf8563@51 { | 
|  | 83 | /* nxp pcf8563 rtc */ | 
|  | 84 | compatible = "nxp,pcf8563"; | 
|  | 85 | reg = <0x51>; | 
|  | 86 | }; | 
|  | 87 |  | 
|  | 88 | }; | 
|  | 89 |  | 
|  | 90 | leds { | 
|  | 91 | compatible = "gpio-leds"; | 
|  | 92 |  | 
|  | 93 | led1g { | 
|  | 94 | label = "led1:green"; | 
|  | 95 | gpios = <&pioB 0 1>; | 
|  | 96 | linux,default-trigger = "none"; | 
|  | 97 | }; | 
|  | 98 |  | 
|  | 99 | led1r { | 
|  | 100 | label = "led1:red"; | 
|  | 101 | gpios = <&pioB 1 1>; | 
|  | 102 | linux,default-trigger = "none"; | 
|  | 103 | }; | 
|  | 104 |  | 
|  | 105 | led2g { | 
|  | 106 | label = "led2:green"; | 
|  | 107 | gpios = <&pioB 2 1>; | 
|  | 108 | linux,default-trigger = "none"; | 
|  | 109 | default-state = "on"; | 
|  | 110 | }; | 
|  | 111 |  | 
|  | 112 | led2r { | 
|  | 113 | label = "led2:red"; | 
|  | 114 | gpios = <&pioB 3 1>; | 
|  | 115 | linux,default-trigger = "none"; | 
|  | 116 | }; | 
|  | 117 | }; | 
|  | 118 |  | 
|  | 119 | gpio_keys { | 
|  | 120 | compatible = "gpio-keys"; | 
|  | 121 | #address-cells = <1>; | 
|  | 122 | #size-cells = <0>; | 
|  | 123 |  | 
|  | 124 | reset { | 
|  | 125 | label = "reset"; | 
|  | 126 | gpios = <&pioB 30 1>; | 
|  | 127 | linux,code = <0x100>; | 
|  | 128 | gpio-key,wakeup; | 
|  | 129 | }; | 
|  | 130 |  | 
|  | 131 | mode { | 
|  | 132 | label = "mode"; | 
|  | 133 | gpios = <&pioB 31 1>; | 
|  | 134 | linux,code = <0x101>; | 
|  | 135 | gpio-key,wakeup; | 
|  | 136 | }; | 
|  | 137 | }; | 
|  | 138 | }; |