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