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