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