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 { |
Alexandre Belloni | d738989 | 2014-06-18 21:05:05 +0200 | [diff] [blame] | 27 | main_xtal { |
| 28 | clock-frequency = <18432000>; |
| 29 | }; |
Boris BREZILLON | df82674 | 2012-04-20 14:37:50 +0200 | [diff] [blame] | 30 | }; |
| 31 | |
| 32 | ahb { |
| 33 | apb { |
Boris BREZILLON | df82674 | 2012-04-20 14:37:50 +0200 | [diff] [blame] | 34 | macb0: ethernet@fffc4000 { |
| 35 | phy-mode = "mii"; |
Boris BREZILLON | b45c998 | 2012-12-13 14:03:08 +0000 | [diff] [blame] | 36 | pinctrl-0 = <&pinctrl_macb_rmii |
| 37 | &pinctrl_macb_rmii_mii_alt>; |
Boris BREZILLON | df82674 | 2012-04-20 14:37:50 +0200 | [diff] [blame] | 38 | status = "okay"; |
| 39 | }; |
| 40 | |
Gaël PORTAY | e9942d1 | 2015-04-30 09:33:34 +0200 | [diff] [blame] | 41 | usart3: serial@fffd0000 { |
| 42 | status = "okay"; |
| 43 | }; |
| 44 | |
Gaël PORTAY | 49668b0 | 2015-04-30 09:33:33 +0200 | [diff] [blame] | 45 | dbgu: serial@fffff200 { |
| 46 | status = "okay"; |
| 47 | }; |
| 48 | |
Boris BREZILLON | 705b675 | 2013-10-04 09:24:15 +0200 | [diff] [blame] | 49 | watchdog@fffffd40 { |
| 50 | timeout-sec = <15>; |
| 51 | atmel,max-heartbeat-sec = <16>; |
| 52 | atmel,min-heartbeat-sec = <0>; |
| 53 | status = "okay"; |
| 54 | }; |
Boris BREZILLON | df82674 | 2012-04-20 14:37:50 +0200 | [diff] [blame] | 55 | }; |
| 56 | |
Gaël PORTAY | 49668b0 | 2015-04-30 09:33:33 +0200 | [diff] [blame] | 57 | usb0: ohci@00500000 { |
| 58 | num-ports = <1>; |
| 59 | status = "okay"; |
| 60 | }; |
| 61 | |
Boris BREZILLON | df82674 | 2012-04-20 14:37:50 +0200 | [diff] [blame] | 62 | nand0: nand@40000000 { |
| 63 | nand-bus-width = <8>; |
| 64 | nand-ecc-mode = "soft"; |
| 65 | status = "okay"; |
| 66 | |
Gaël PORTAY | ea68584 | 2015-04-30 09:33:37 +0200 | [diff] [blame] | 67 | bootstrap@0 { |
| 68 | label = "bootstrap"; |
| 69 | reg = <0x0 0x20000>; |
Boris BREZILLON | df82674 | 2012-04-20 14:37:50 +0200 | [diff] [blame] | 70 | }; |
| 71 | |
Gaël PORTAY | ea68584 | 2015-04-30 09:33:37 +0200 | [diff] [blame] | 72 | ubi@20000 { |
Boris BREZILLON | df82674 | 2012-04-20 14:37:50 +0200 | [diff] [blame] | 73 | label = "ubi"; |
Gaël PORTAY | ea68584 | 2015-04-30 09:33:37 +0200 | [diff] [blame] | 74 | reg = <0x20000 0x7fe0000>; |
Boris BREZILLON | df82674 | 2012-04-20 14:37:50 +0200 | [diff] [blame] | 75 | }; |
Gaël PORTAY | 49668b0 | 2015-04-30 09:33:33 +0200 | [diff] [blame] | 76 | }; |
| 77 | }; |
Boris BREZILLON | df82674 | 2012-04-20 14:37:50 +0200 | [diff] [blame] | 78 | |
Gaël PORTAY | 49668b0 | 2015-04-30 09:33:33 +0200 | [diff] [blame] | 79 | gpio_keys { |
| 80 | compatible = "gpio-keys"; |
| 81 | #address-cells = <1>; |
| 82 | #size-cells = <0>; |
| 83 | |
| 84 | reset { |
Gaël PORTAY | d1b063a | 2015-04-30 09:33:35 +0200 | [diff] [blame] | 85 | label = "PB_RST"; |
| 86 | gpios = <&pioB 30 GPIO_ACTIVE_HIGH>; |
Gaël PORTAY | 49668b0 | 2015-04-30 09:33:33 +0200 | [diff] [blame] | 87 | linux,code = <0x100>; |
Sudeep Holla | 67ae8b9 | 2015-10-21 11:10:07 +0100 | [diff] [blame] | 88 | wakeup-source; |
Boris BREZILLON | df82674 | 2012-04-20 14:37:50 +0200 | [diff] [blame] | 89 | }; |
| 90 | |
Gaël PORTAY | d1b063a | 2015-04-30 09:33:35 +0200 | [diff] [blame] | 91 | user { |
| 92 | label = "PB_USER"; |
| 93 | gpios = <&pioB 31 GPIO_ACTIVE_HIGH>; |
Gaël PORTAY | 49668b0 | 2015-04-30 09:33:33 +0200 | [diff] [blame] | 94 | linux,code = <0x101>; |
Sudeep Holla | 67ae8b9 | 2015-10-21 11:10:07 +0100 | [diff] [blame] | 95 | wakeup-source; |
Boris BREZILLON | df82674 | 2012-04-20 14:37:50 +0200 | [diff] [blame] | 96 | }; |
| 97 | }; |
| 98 | |
| 99 | i2c@0 { |
| 100 | status = "okay"; |
| 101 | |
Gaël PORTAY | 49668b0 | 2015-04-30 09:33:33 +0200 | [diff] [blame] | 102 | rtc: pcf8563@51 { |
Boris BREZILLON | df82674 | 2012-04-20 14:37:50 +0200 | [diff] [blame] | 103 | compatible = "nxp,pcf8563"; |
| 104 | reg = <0x51>; |
| 105 | }; |
Boris BREZILLON | df82674 | 2012-04-20 14:37:50 +0200 | [diff] [blame] | 106 | }; |
| 107 | |
Gaël PORTAY | 4a225be | 2015-04-30 09:33:36 +0200 | [diff] [blame] | 108 | pwm_leds { |
| 109 | compatible = "pwm-leds"; |
Boris BREZILLON | df82674 | 2012-04-20 14:37:50 +0200 | [diff] [blame] | 110 | |
Gaël PORTAY | 4a225be | 2015-04-30 09:33:36 +0200 | [diff] [blame] | 111 | network_green { |
| 112 | label = "pwm:green:network"; |
| 113 | pwms = <&tcb_pwm 2 10000000 PWM_POLARITY_INVERTED>; |
| 114 | max-brightness = <255>; |
| 115 | linux,default-trigger = "default-on"; |
Boris BREZILLON | df82674 | 2012-04-20 14:37:50 +0200 | [diff] [blame] | 116 | }; |
| 117 | |
Gaël PORTAY | 4a225be | 2015-04-30 09:33:36 +0200 | [diff] [blame] | 118 | network_red { |
| 119 | label = "pwm:red:network"; |
Gaël PORTAY | 87835a4 | 2015-06-03 11:44:23 +0200 | [diff] [blame] | 120 | pwms = <&tcb_pwm 4 10000000 PWM_POLARITY_INVERTED>; |
Gaël PORTAY | 4a225be | 2015-04-30 09:33:36 +0200 | [diff] [blame] | 121 | max-brightness = <255>; |
| 122 | linux,default-trigger = "default-on"; |
Boris BREZILLON | df82674 | 2012-04-20 14:37:50 +0200 | [diff] [blame] | 123 | }; |
| 124 | |
Gaël PORTAY | 4a225be | 2015-04-30 09:33:36 +0200 | [diff] [blame] | 125 | user_green { |
| 126 | label = "pwm:green:user"; |
| 127 | pwms = <&tcb_pwm 0 10000000 PWM_POLARITY_INVERTED>; |
| 128 | max-brightness = <255>; |
| 129 | linux,default-trigger = "default-on"; |
Boris BREZILLON | df82674 | 2012-04-20 14:37:50 +0200 | [diff] [blame] | 130 | }; |
| 131 | |
Gaël PORTAY | 4a225be | 2015-04-30 09:33:36 +0200 | [diff] [blame] | 132 | user_red { |
| 133 | label = "pwm:red:user"; |
| 134 | pwms = <&tcb_pwm 1 10000000 PWM_POLARITY_INVERTED>; |
| 135 | max-brightness = <255>; |
| 136 | linux,default-trigger = "default-on"; |
Boris BREZILLON | df82674 | 2012-04-20 14:37:50 +0200 | [diff] [blame] | 137 | }; |
| 138 | }; |
Gaël PORTAY | 4a225be | 2015-04-30 09:33:36 +0200 | [diff] [blame] | 139 | |
| 140 | tcb_pwm: pwm { |
| 141 | compatible = "atmel,tcb-pwm"; |
| 142 | #pwm-cells = <3>; |
| 143 | tc-block = <1>; |
| 144 | pinctrl-names = "default"; |
| 145 | pinctrl-0 = <&pinctrl_tcb1_tioa0 |
| 146 | &pinctrl_tcb1_tioa1 |
| 147 | &pinctrl_tcb1_tioa2 |
| 148 | &pinctrl_tcb1_tiob0>; |
| 149 | }; |
Jean-Christophe PLAGNIOL-VILLARD | 6db64d2 | 2013-05-15 01:21:50 +0800 | [diff] [blame] | 150 | }; |