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 | }; |
| 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"; |
Boris BREZILLON | b45c998 | 2012-12-13 14:03:08 +0000 | [diff] [blame] | 51 | pinctrl-0 = <&pinctrl_macb_rmii |
| 52 | &pinctrl_macb_rmii_mii_alt>; |
Boris BREZILLON | df82674 | 2012-04-20 14:37:50 +0200 | [diff] [blame] | 53 | status = "okay"; |
| 54 | }; |
| 55 | |
| 56 | }; |
| 57 | |
| 58 | nand0: nand@40000000 { |
| 59 | nand-bus-width = <8>; |
| 60 | nand-ecc-mode = "soft"; |
| 61 | status = "okay"; |
| 62 | |
| 63 | bootloaderkernel@0 { |
| 64 | label = "bootloader-kernel"; |
| 65 | reg = <0x0 0xc0000>; |
| 66 | }; |
| 67 | |
| 68 | ubi@c0000 { |
| 69 | label = "ubi"; |
| 70 | reg = <0xc0000 0x7f40000>; |
| 71 | }; |
| 72 | |
| 73 | }; |
| 74 | |
| 75 | usb0: ohci@00500000 { |
| 76 | num-ports = <1>; |
| 77 | status = "okay"; |
| 78 | }; |
| 79 | }; |
| 80 | |
| 81 | i2c@0 { |
| 82 | status = "okay"; |
| 83 | |
| 84 | pcf8563@51 { |
| 85 | /* nxp pcf8563 rtc */ |
| 86 | compatible = "nxp,pcf8563"; |
| 87 | reg = <0x51>; |
| 88 | }; |
| 89 | |
| 90 | }; |
| 91 | |
| 92 | leds { |
| 93 | compatible = "gpio-leds"; |
| 94 | |
| 95 | led1g { |
| 96 | label = "led1:green"; |
Jean-Christophe PLAGNIOL-VILLARD | 92f8629 | 2013-04-24 08:34:25 +0800 | [diff] [blame] | 97 | gpios = <&pioB 0 GPIO_ACTIVE_LOW>; |
Boris BREZILLON | df82674 | 2012-04-20 14:37:50 +0200 | [diff] [blame] | 98 | linux,default-trigger = "none"; |
| 99 | }; |
| 100 | |
| 101 | led1r { |
| 102 | label = "led1:red"; |
Jean-Christophe PLAGNIOL-VILLARD | 92f8629 | 2013-04-24 08:34:25 +0800 | [diff] [blame] | 103 | gpios = <&pioB 1 GPIO_ACTIVE_LOW>; |
Boris BREZILLON | df82674 | 2012-04-20 14:37:50 +0200 | [diff] [blame] | 104 | linux,default-trigger = "none"; |
| 105 | }; |
| 106 | |
| 107 | led2g { |
| 108 | label = "led2:green"; |
Jean-Christophe PLAGNIOL-VILLARD | 92f8629 | 2013-04-24 08:34:25 +0800 | [diff] [blame] | 109 | gpios = <&pioB 2 GPIO_ACTIVE_LOW>; |
Boris BREZILLON | df82674 | 2012-04-20 14:37:50 +0200 | [diff] [blame] | 110 | linux,default-trigger = "none"; |
| 111 | default-state = "on"; |
| 112 | }; |
| 113 | |
| 114 | led2r { |
| 115 | label = "led2:red"; |
Jean-Christophe PLAGNIOL-VILLARD | 92f8629 | 2013-04-24 08:34:25 +0800 | [diff] [blame] | 116 | gpios = <&pioB 3 GPIO_ACTIVE_LOW>; |
Boris BREZILLON | df82674 | 2012-04-20 14:37:50 +0200 | [diff] [blame] | 117 | linux,default-trigger = "none"; |
| 118 | }; |
| 119 | }; |
| 120 | |
| 121 | gpio_keys { |
| 122 | compatible = "gpio-keys"; |
| 123 | #address-cells = <1>; |
| 124 | #size-cells = <0>; |
| 125 | |
| 126 | reset { |
| 127 | label = "reset"; |
Jean-Christophe PLAGNIOL-VILLARD | 92f8629 | 2013-04-24 08:34:25 +0800 | [diff] [blame] | 128 | gpios = <&pioB 30 GPIO_ACTIVE_LOW>; |
Boris BREZILLON | df82674 | 2012-04-20 14:37:50 +0200 | [diff] [blame] | 129 | linux,code = <0x100>; |
| 130 | gpio-key,wakeup; |
| 131 | }; |
| 132 | |
| 133 | mode { |
| 134 | label = "mode"; |
Jean-Christophe PLAGNIOL-VILLARD | 92f8629 | 2013-04-24 08:34:25 +0800 | [diff] [blame] | 135 | gpios = <&pioB 31 GPIO_ACTIVE_LOW>; |
Boris BREZILLON | df82674 | 2012-04-20 14:37:50 +0200 | [diff] [blame] | 136 | linux,code = <0x101>; |
| 137 | gpio-key,wakeup; |
| 138 | }; |
| 139 | }; |
Jean-Christophe PLAGNIOL-VILLARD | 6db64d2 | 2013-05-15 01:21:50 +0800 | [diff] [blame] | 140 | }; |