at91-kizbox.dts (3394B)
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@20000000 { 22 reg = <0x20000000 0x2000000>; 23 }; 24 25 clocks { 26 main_xtal { 27 clock-frequency = <18432000>; 28 }; 29 }; 30 31 gpio_keys { 32 compatible = "gpio-keys"; 33 #address-cells = <1>; 34 #size-cells = <0>; 35 36 reset { 37 label = "PB_RST"; 38 gpios = <&pioB 30 GPIO_ACTIVE_HIGH>; 39 linux,code = <0x100>; 40 wakeup-source; 41 }; 42 43 user { 44 label = "PB_USER"; 45 gpios = <&pioB 31 GPIO_ACTIVE_HIGH>; 46 linux,code = <0x101>; 47 wakeup-source; 48 }; 49 }; 50 51 led-controller { 52 compatible = "pwm-leds"; 53 54 led-1 { 55 label = "pwm:green:network"; 56 pwms = <&tcb1_pwm1 0 10000000 PWM_POLARITY_INVERTED>; 57 max-brightness = <255>; 58 linux,default-trigger = "default-on"; 59 }; 60 61 led-2 { 62 label = "pwm:red:network"; 63 pwms = <&tcb1_pwm2 0 10000000 PWM_POLARITY_INVERTED>; 64 max-brightness = <255>; 65 linux,default-trigger = "default-on"; 66 }; 67 68 led-3 { 69 label = "pwm:green:user"; 70 pwms = <&tcb1_pwm0 0 10000000 PWM_POLARITY_INVERTED>; 71 max-brightness = <255>; 72 linux,default-trigger = "default-on"; 73 }; 74 75 led-4 { 76 label = "pwm:red:user"; 77 pwms = <&tcb1_pwm0 1 10000000 PWM_POLARITY_INVERTED>; 78 max-brightness = <255>; 79 linux,default-trigger = "default-on"; 80 }; 81 }; 82}; 83 84&tcb0 { 85 timer@0 { 86 compatible = "atmel,tcb-timer"; 87 reg = <0>, <1>; 88 }; 89 90 timer@2 { 91 compatible = "atmel,tcb-timer"; 92 reg = <2>; 93 }; 94}; 95 96&tcb1 { 97 tcb1_pwm0: pwm@0 { 98 compatible = "atmel,tcb-pwm"; 99 reg = <0>; 100 #pwm-cells = <3>; 101 pinctrl-names = "default"; 102 pinctrl-0 = <&pinctrl_tcb1_tioa0 &pinctrl_tcb1_tiob0>; 103 }; 104 105 tcb1_pwm1: pwm@1 { 106 compatible = "atmel,tcb-pwm"; 107 reg = <1>; 108 #pwm-cells = <3>; 109 pinctrl-names = "default"; 110 pinctrl-0 = <&pinctrl_tcb1_tioa1>; 111 }; 112 113 tcb1_pwm2: pwm@2 { 114 compatible = "atmel,tcb-pwm"; 115 reg = <2>; 116 #pwm-cells = <3>; 117 pinctrl-names = "default"; 118 pinctrl-0 = <&pinctrl_tcb1_tioa2>; 119 }; 120}; 121 122&ebi { 123 status = "okay"; 124}; 125 126&nand_controller { 127 status = "okay"; 128 pinctrl-0 = <&pinctrl_nand_cs &pinctrl_nand_rb>; 129 pinctrl-names = "default"; 130 131 nand@3 { 132 reg = <0x3 0x0 0x800000>; 133 rb-gpios = <&pioC 13 GPIO_ACTIVE_HIGH>; 134 cs-gpios = <&pioC 14 GPIO_ACTIVE_HIGH>; 135 nand-bus-width = <8>; 136 nand-ecc-mode = "soft"; 137 nand-on-flash-bbt; 138 label = "atmel_nand"; 139 140 partitions { 141 compatible = "fixed-partitions"; 142 #address-cells = <1>; 143 #size-cells = <1>; 144 145 bootstrap@0 { 146 label = "bootstrap"; 147 reg = <0x0 0x20000>; 148 }; 149 150 ubi@20000 { 151 label = "ubi"; 152 reg = <0x20000 0x7fe0000>; 153 }; 154 }; 155 }; 156}; 157 158&macb0 { 159 phy-mode = "mii"; 160 pinctrl-0 = <&pinctrl_macb_rmii 161 &pinctrl_macb_rmii_mii_alt>; 162 status = "okay"; 163}; 164 165&usart3 { 166 status = "okay"; 167}; 168 169&dbgu { 170 status = "okay"; 171}; 172 173&watchdog { 174 timeout-sec = <15>; 175 atmel,max-heartbeat-sec = <16>; 176 atmel,min-heartbeat-sec = <0>; 177 status = "okay"; 178}; 179 180&usb0 { 181 num-ports = <1>; 182 status = "okay"; 183}; 184 185&i2c_gpio0 { 186 status = "okay"; 187 188 rtc: pcf8563@51 { 189 compatible = "nxp,pcf8563"; 190 reg = <0x51>; 191 }; 192};