Boris BREZILLON | df82674 | 2012-04-20 14:37:50 +0200 | [diff] [blame] | 1 | /* |
Gaël PORTAY | d8b1834 | 2015-04-30 09:33:32 +0200 | [diff] [blame] | 2 | * at91-kizbox.dts - Device Tree file for Overkiz Kizbox board |
Boris BREZILLON | df82674 | 2012-04-20 14:37:50 +0200 | [diff] [blame] | 3 | * |
Gaël PORTAY | 49668b0 | 2015-04-30 09:33:33 +0200 | [diff] [blame] | 4 | * Copyright (C) 2012-2014 Boris BREZILLON <b.brezillon@overkiz.com> |
| 5 | * 2014-2015 Gaël PORTAY <g.portay@overkiz.com> |
Boris BREZILLON | df82674 | 2012-04-20 14:37:50 +0200 | [diff] [blame] | 6 | * |
Gaël PORTAY | 49668b0 | 2015-04-30 09:33:33 +0200 | [diff] [blame] | 7 | * Licensed under GPLv2 or later. |
Boris BREZILLON | df82674 | 2012-04-20 14:37:50 +0200 | [diff] [blame] | 8 | */ |
| 9 | /dts-v1/; |
Jean-Christophe PLAGNIOL-VILLARD | 6db64d2 | 2013-05-15 01:21:50 +0800 | [diff] [blame] | 10 | #include "at91sam9g20.dtsi" |
Gaël PORTAY | 4a225be | 2015-04-30 09:33:36 +0200 | [diff] [blame] | 11 | #include <dt-bindings/pwm/pwm.h> |
Boris BREZILLON | df82674 | 2012-04-20 14:37:50 +0200 | [diff] [blame] | 12 | |
| 13 | / { |
Gaël PORTAY | 49668b0 | 2015-04-30 09:33:33 +0200 | [diff] [blame] | 14 | model = "Overkiz Kizbox"; |
Boris BREZILLON | df82674 | 2012-04-20 14:37:50 +0200 | [diff] [blame] | 15 | compatible = "overkiz,kizbox", "atmel,at91sam9g20", "atmel,at91sam9"; |
| 16 | |
| 17 | chosen { |
Gaël PORTAY | 81104f6 | 2015-04-30 09:33:38 +0200 | [diff] [blame] | 18 | bootargs = "ubi.mtd=ubi"; |
Alexandre Belloni | 7e5883b | 2015-06-03 14:24:05 +0200 | [diff] [blame] | 19 | stdout-path = &dbgu; |
Boris BREZILLON | df82674 | 2012-04-20 14:37:50 +0200 | [diff] [blame] | 20 | }; |
| 21 | |
| 22 | memory { |
| 23 | reg = <0x20000000 0x2000000>; |
| 24 | }; |
| 25 | |
| 26 | clocks { |
| 27 | #address-cells = <1>; |
| 28 | #size-cells = <1>; |
| 29 | ranges; |
| 30 | |
| 31 | main_clock: clock@0 { |
| 32 | compatible = "atmel,osc", "fixed-clock"; |
| 33 | clock-frequency = <18432000>; |
| 34 | }; |
Alexandre Belloni | d738989 | 2014-06-18 21:05:05 +0200 | [diff] [blame] | 35 | |
| 36 | main_xtal { |
| 37 | clock-frequency = <18432000>; |
| 38 | }; |
Boris BREZILLON | df82674 | 2012-04-20 14:37:50 +0200 | [diff] [blame] | 39 | }; |
| 40 | |
| 41 | ahb { |
| 42 | apb { |
Boris BREZILLON | df82674 | 2012-04-20 14:37:50 +0200 | [diff] [blame] | 43 | macb0: ethernet@fffc4000 { |
| 44 | phy-mode = "mii"; |
Boris BREZILLON | b45c998 | 2012-12-13 14:03:08 +0000 | [diff] [blame] | 45 | pinctrl-0 = <&pinctrl_macb_rmii |
| 46 | &pinctrl_macb_rmii_mii_alt>; |
Boris BREZILLON | df82674 | 2012-04-20 14:37:50 +0200 | [diff] [blame] | 47 | status = "okay"; |
| 48 | }; |
| 49 | |
Gaël PORTAY | e9942d1 | 2015-04-30 09:33:34 +0200 | [diff] [blame] | 50 | usart3: serial@fffd0000 { |
| 51 | status = "okay"; |
| 52 | }; |
| 53 | |
Gaël PORTAY | 49668b0 | 2015-04-30 09:33:33 +0200 | [diff] [blame] | 54 | dbgu: serial@fffff200 { |
| 55 | status = "okay"; |
| 56 | }; |
| 57 | |
Boris BREZILLON | 705b675 | 2013-10-04 09:24:15 +0200 | [diff] [blame] | 58 | watchdog@fffffd40 { |
| 59 | timeout-sec = <15>; |
| 60 | atmel,max-heartbeat-sec = <16>; |
| 61 | atmel,min-heartbeat-sec = <0>; |
| 62 | status = "okay"; |
| 63 | }; |
Boris BREZILLON | df82674 | 2012-04-20 14:37:50 +0200 | [diff] [blame] | 64 | }; |
| 65 | |
Gaël PORTAY | 49668b0 | 2015-04-30 09:33:33 +0200 | [diff] [blame] | 66 | usb0: ohci@00500000 { |
| 67 | num-ports = <1>; |
| 68 | status = "okay"; |
| 69 | }; |
| 70 | |
Boris BREZILLON | df82674 | 2012-04-20 14:37:50 +0200 | [diff] [blame] | 71 | nand0: nand@40000000 { |
| 72 | nand-bus-width = <8>; |
| 73 | nand-ecc-mode = "soft"; |
| 74 | status = "okay"; |
| 75 | |
Gaël PORTAY | ea68584 | 2015-04-30 09:33:37 +0200 | [diff] [blame] | 76 | bootstrap@0 { |
| 77 | label = "bootstrap"; |
| 78 | reg = <0x0 0x20000>; |
Boris BREZILLON | df82674 | 2012-04-20 14:37:50 +0200 | [diff] [blame] | 79 | }; |
| 80 | |
Gaël PORTAY | ea68584 | 2015-04-30 09:33:37 +0200 | [diff] [blame] | 81 | ubi@20000 { |
Boris BREZILLON | df82674 | 2012-04-20 14:37:50 +0200 | [diff] [blame] | 82 | label = "ubi"; |
Gaël PORTAY | ea68584 | 2015-04-30 09:33:37 +0200 | [diff] [blame] | 83 | reg = <0x20000 0x7fe0000>; |
Boris BREZILLON | df82674 | 2012-04-20 14:37:50 +0200 | [diff] [blame] | 84 | }; |
Gaël PORTAY | 49668b0 | 2015-04-30 09:33:33 +0200 | [diff] [blame] | 85 | }; |
| 86 | }; |
Boris BREZILLON | df82674 | 2012-04-20 14:37:50 +0200 | [diff] [blame] | 87 | |
Gaël PORTAY | 49668b0 | 2015-04-30 09:33:33 +0200 | [diff] [blame] | 88 | gpio_keys { |
| 89 | compatible = "gpio-keys"; |
| 90 | #address-cells = <1>; |
| 91 | #size-cells = <0>; |
| 92 | |
| 93 | reset { |
Gaël PORTAY | d1b063a | 2015-04-30 09:33:35 +0200 | [diff] [blame] | 94 | label = "PB_RST"; |
| 95 | gpios = <&pioB 30 GPIO_ACTIVE_HIGH>; |
Gaël PORTAY | 49668b0 | 2015-04-30 09:33:33 +0200 | [diff] [blame] | 96 | linux,code = <0x100>; |
| 97 | gpio-key,wakeup; |
Boris BREZILLON | df82674 | 2012-04-20 14:37:50 +0200 | [diff] [blame] | 98 | }; |
| 99 | |
Gaël PORTAY | d1b063a | 2015-04-30 09:33:35 +0200 | [diff] [blame] | 100 | user { |
| 101 | label = "PB_USER"; |
| 102 | gpios = <&pioB 31 GPIO_ACTIVE_HIGH>; |
Gaël PORTAY | 49668b0 | 2015-04-30 09:33:33 +0200 | [diff] [blame] | 103 | linux,code = <0x101>; |
| 104 | gpio-key,wakeup; |
Boris BREZILLON | df82674 | 2012-04-20 14:37:50 +0200 | [diff] [blame] | 105 | }; |
| 106 | }; |
| 107 | |
| 108 | i2c@0 { |
| 109 | status = "okay"; |
| 110 | |
Gaël PORTAY | 49668b0 | 2015-04-30 09:33:33 +0200 | [diff] [blame] | 111 | rtc: pcf8563@51 { |
Boris BREZILLON | df82674 | 2012-04-20 14:37:50 +0200 | [diff] [blame] | 112 | compatible = "nxp,pcf8563"; |
| 113 | reg = <0x51>; |
| 114 | }; |
Boris BREZILLON | df82674 | 2012-04-20 14:37:50 +0200 | [diff] [blame] | 115 | }; |
| 116 | |
Gaël PORTAY | 4a225be | 2015-04-30 09:33:36 +0200 | [diff] [blame] | 117 | pwm_leds { |
| 118 | compatible = "pwm-leds"; |
Boris BREZILLON | df82674 | 2012-04-20 14:37:50 +0200 | [diff] [blame] | 119 | |
Gaël PORTAY | 4a225be | 2015-04-30 09:33:36 +0200 | [diff] [blame] | 120 | network_green { |
| 121 | label = "pwm:green:network"; |
| 122 | pwms = <&tcb_pwm 2 10000000 PWM_POLARITY_INVERTED>; |
| 123 | max-brightness = <255>; |
| 124 | linux,default-trigger = "default-on"; |
Boris BREZILLON | df82674 | 2012-04-20 14:37:50 +0200 | [diff] [blame] | 125 | }; |
| 126 | |
Gaël PORTAY | 4a225be | 2015-04-30 09:33:36 +0200 | [diff] [blame] | 127 | network_red { |
| 128 | label = "pwm:red:network"; |
Gaël PORTAY | 87835a4 | 2015-06-03 11:44:23 +0200 | [diff] [blame] | 129 | pwms = <&tcb_pwm 4 10000000 PWM_POLARITY_INVERTED>; |
Gaël PORTAY | 4a225be | 2015-04-30 09:33:36 +0200 | [diff] [blame] | 130 | max-brightness = <255>; |
| 131 | linux,default-trigger = "default-on"; |
Boris BREZILLON | df82674 | 2012-04-20 14:37:50 +0200 | [diff] [blame] | 132 | }; |
| 133 | |
Gaël PORTAY | 4a225be | 2015-04-30 09:33:36 +0200 | [diff] [blame] | 134 | user_green { |
| 135 | label = "pwm:green:user"; |
| 136 | pwms = <&tcb_pwm 0 10000000 PWM_POLARITY_INVERTED>; |
| 137 | max-brightness = <255>; |
| 138 | linux,default-trigger = "default-on"; |
Boris BREZILLON | df82674 | 2012-04-20 14:37:50 +0200 | [diff] [blame] | 139 | }; |
| 140 | |
Gaël PORTAY | 4a225be | 2015-04-30 09:33:36 +0200 | [diff] [blame] | 141 | user_red { |
| 142 | label = "pwm:red:user"; |
| 143 | pwms = <&tcb_pwm 1 10000000 PWM_POLARITY_INVERTED>; |
| 144 | max-brightness = <255>; |
| 145 | linux,default-trigger = "default-on"; |
Boris BREZILLON | df82674 | 2012-04-20 14:37:50 +0200 | [diff] [blame] | 146 | }; |
| 147 | }; |
Gaël PORTAY | 4a225be | 2015-04-30 09:33:36 +0200 | [diff] [blame] | 148 | |
| 149 | tcb_pwm: pwm { |
| 150 | compatible = "atmel,tcb-pwm"; |
| 151 | #pwm-cells = <3>; |
| 152 | tc-block = <1>; |
| 153 | pinctrl-names = "default"; |
| 154 | pinctrl-0 = <&pinctrl_tcb1_tioa0 |
| 155 | &pinctrl_tcb1_tioa1 |
| 156 | &pinctrl_tcb1_tioa2 |
| 157 | &pinctrl_tcb1_tiob0>; |
| 158 | }; |
Jean-Christophe PLAGNIOL-VILLARD | 6db64d2 | 2013-05-15 01:21:50 +0800 | [diff] [blame] | 159 | }; |