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