1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-or-later 2*f126890aSEmmanuel Vadot/* 3*f126890aSEmmanuel Vadot * at91sam9m10g45ek.dts - Device Tree file for AT91SAM9M10G45-EK board 4*f126890aSEmmanuel Vadot * 5*f126890aSEmmanuel Vadot * Copyright (C) 2011 Atmel, 6*f126890aSEmmanuel Vadot * 2011 Nicolas Ferre <nicolas.ferre@atmel.com> 7*f126890aSEmmanuel Vadot */ 8*f126890aSEmmanuel Vadot/dts-v1/; 9*f126890aSEmmanuel Vadot#include "at91sam9g45.dtsi" 10*f126890aSEmmanuel Vadot#include <dt-bindings/pwm/pwm.h> 11*f126890aSEmmanuel Vadot 12*f126890aSEmmanuel Vadot/ { 13*f126890aSEmmanuel Vadot model = "Atmel AT91SAM9M10G45-EK"; 14*f126890aSEmmanuel Vadot compatible = "atmel,at91sam9m10g45ek", "atmel,at91sam9g45", "atmel,at91sam9"; 15*f126890aSEmmanuel Vadot 16*f126890aSEmmanuel Vadot chosen { 17*f126890aSEmmanuel Vadot bootargs = "mem=64M root=/dev/mtdblock1 rw rootfstype=jffs2"; 18*f126890aSEmmanuel Vadot stdout-path = "serial0:115200n8"; 19*f126890aSEmmanuel Vadot }; 20*f126890aSEmmanuel Vadot 21*f126890aSEmmanuel Vadot memory@70000000 { 22*f126890aSEmmanuel Vadot reg = <0x70000000 0x4000000>; 23*f126890aSEmmanuel Vadot }; 24*f126890aSEmmanuel Vadot 25*f126890aSEmmanuel Vadot clocks { 26*f126890aSEmmanuel Vadot slow_xtal { 27*f126890aSEmmanuel Vadot clock-frequency = <32768>; 28*f126890aSEmmanuel Vadot }; 29*f126890aSEmmanuel Vadot 30*f126890aSEmmanuel Vadot main_xtal { 31*f126890aSEmmanuel Vadot clock-frequency = <12000000>; 32*f126890aSEmmanuel Vadot }; 33*f126890aSEmmanuel Vadot }; 34*f126890aSEmmanuel Vadot 35*f126890aSEmmanuel Vadot ahb { 36*f126890aSEmmanuel Vadot apb { 37*f126890aSEmmanuel Vadot dbgu: serial@ffffee00 { 38*f126890aSEmmanuel Vadot status = "okay"; 39*f126890aSEmmanuel Vadot }; 40*f126890aSEmmanuel Vadot 41*f126890aSEmmanuel Vadot tcb0: timer@fff7c000 { 42*f126890aSEmmanuel Vadot timer@0 { 43*f126890aSEmmanuel Vadot compatible = "atmel,tcb-timer"; 44*f126890aSEmmanuel Vadot reg = <0>, <1>; 45*f126890aSEmmanuel Vadot }; 46*f126890aSEmmanuel Vadot 47*f126890aSEmmanuel Vadot timer@2 { 48*f126890aSEmmanuel Vadot compatible = "atmel,tcb-timer"; 49*f126890aSEmmanuel Vadot reg = <2>; 50*f126890aSEmmanuel Vadot }; 51*f126890aSEmmanuel Vadot }; 52*f126890aSEmmanuel Vadot 53*f126890aSEmmanuel Vadot usart1: serial@fff90000 { 54*f126890aSEmmanuel Vadot pinctrl-0 = 55*f126890aSEmmanuel Vadot <&pinctrl_usart1 56*f126890aSEmmanuel Vadot &pinctrl_usart1_rts 57*f126890aSEmmanuel Vadot &pinctrl_usart1_cts>; 58*f126890aSEmmanuel Vadot status = "okay"; 59*f126890aSEmmanuel Vadot }; 60*f126890aSEmmanuel Vadot 61*f126890aSEmmanuel Vadot macb0: ethernet@fffbc000 { 62*f126890aSEmmanuel Vadot phy-mode = "rmii"; 63*f126890aSEmmanuel Vadot status = "okay"; 64*f126890aSEmmanuel Vadot }; 65*f126890aSEmmanuel Vadot 66*f126890aSEmmanuel Vadot i2c0: i2c@fff84000 { 67*f126890aSEmmanuel Vadot status = "okay"; 68*f126890aSEmmanuel Vadot ov2640: camera@30 { 69*f126890aSEmmanuel Vadot compatible = "ovti,ov2640"; 70*f126890aSEmmanuel Vadot reg = <0x30>; 71*f126890aSEmmanuel Vadot pinctrl-names = "default"; 72*f126890aSEmmanuel Vadot pinctrl-0 = <&pinctrl_pck1_as_isi_mck &pinctrl_sensor_power &pinctrl_sensor_reset>; 73*f126890aSEmmanuel Vadot resetb-gpios = <&pioD 12 GPIO_ACTIVE_LOW>; 74*f126890aSEmmanuel Vadot pwdn-gpios = <&pioD 13 GPIO_ACTIVE_HIGH>; 75*f126890aSEmmanuel Vadot clocks = <&pmc PMC_TYPE_SYSTEM 9>; 76*f126890aSEmmanuel Vadot clock-names = "xvclk"; 77*f126890aSEmmanuel Vadot assigned-clocks = <&pmc PMC_TYPE_SYSTEM 9>; 78*f126890aSEmmanuel Vadot assigned-clock-rates = <25000000>; 79*f126890aSEmmanuel Vadot 80*f126890aSEmmanuel Vadot port { 81*f126890aSEmmanuel Vadot ov2640_0: endpoint { 82*f126890aSEmmanuel Vadot remote-endpoint = <&isi_0>; 83*f126890aSEmmanuel Vadot bus-width = <8>; 84*f126890aSEmmanuel Vadot }; 85*f126890aSEmmanuel Vadot }; 86*f126890aSEmmanuel Vadot }; 87*f126890aSEmmanuel Vadot }; 88*f126890aSEmmanuel Vadot 89*f126890aSEmmanuel Vadot i2c1: i2c@fff88000 { 90*f126890aSEmmanuel Vadot status = "okay"; 91*f126890aSEmmanuel Vadot }; 92*f126890aSEmmanuel Vadot 93*f126890aSEmmanuel Vadot watchdog@fffffd40 { 94*f126890aSEmmanuel Vadot status = "okay"; 95*f126890aSEmmanuel Vadot }; 96*f126890aSEmmanuel Vadot 97*f126890aSEmmanuel Vadot mmc0: mmc@fff80000 { 98*f126890aSEmmanuel Vadot pinctrl-0 = < 99*f126890aSEmmanuel Vadot &pinctrl_board_mmc0 100*f126890aSEmmanuel Vadot &pinctrl_mmc0_slot0_clk_cmd_dat0 101*f126890aSEmmanuel Vadot &pinctrl_mmc0_slot0_dat1_3>; 102*f126890aSEmmanuel Vadot pinctrl-names = "default"; 103*f126890aSEmmanuel Vadot status = "okay"; 104*f126890aSEmmanuel Vadot slot@0 { 105*f126890aSEmmanuel Vadot reg = <0>; 106*f126890aSEmmanuel Vadot bus-width = <4>; 107*f126890aSEmmanuel Vadot cd-gpios = <&pioD 10 GPIO_ACTIVE_HIGH>; 108*f126890aSEmmanuel Vadot }; 109*f126890aSEmmanuel Vadot }; 110*f126890aSEmmanuel Vadot 111*f126890aSEmmanuel Vadot mmc1: mmc@fffd0000 { 112*f126890aSEmmanuel Vadot pinctrl-0 = < 113*f126890aSEmmanuel Vadot &pinctrl_board_mmc1 114*f126890aSEmmanuel Vadot &pinctrl_mmc1_slot0_clk_cmd_dat0 115*f126890aSEmmanuel Vadot &pinctrl_mmc1_slot0_dat1_3>; 116*f126890aSEmmanuel Vadot pinctrl-names = "default"; 117*f126890aSEmmanuel Vadot status = "okay"; 118*f126890aSEmmanuel Vadot slot@0 { 119*f126890aSEmmanuel Vadot reg = <0>; 120*f126890aSEmmanuel Vadot bus-width = <4>; 121*f126890aSEmmanuel Vadot cd-gpios = <&pioD 11 GPIO_ACTIVE_HIGH>; 122*f126890aSEmmanuel Vadot wp-gpios = <&pioD 29 GPIO_ACTIVE_HIGH>; 123*f126890aSEmmanuel Vadot }; 124*f126890aSEmmanuel Vadot }; 125*f126890aSEmmanuel Vadot 126*f126890aSEmmanuel Vadot pinctrl@fffff200 { 127*f126890aSEmmanuel Vadot camera_sensor { 128*f126890aSEmmanuel Vadot pinctrl_pck1_as_isi_mck: pck1_as_isi_mck-0 { 129*f126890aSEmmanuel Vadot atmel,pins = 130*f126890aSEmmanuel Vadot <AT91_PIOB 31 AT91_PERIPH_B AT91_PINCTRL_NONE>; 131*f126890aSEmmanuel Vadot }; 132*f126890aSEmmanuel Vadot 133*f126890aSEmmanuel Vadot pinctrl_sensor_reset: sensor_reset-0 { 134*f126890aSEmmanuel Vadot atmel,pins = 135*f126890aSEmmanuel Vadot <AT91_PIOD 12 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>; 136*f126890aSEmmanuel Vadot }; 137*f126890aSEmmanuel Vadot 138*f126890aSEmmanuel Vadot pinctrl_sensor_power: sensor_power-0 { 139*f126890aSEmmanuel Vadot atmel,pins = 140*f126890aSEmmanuel Vadot <AT91_PIOD 13 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>; 141*f126890aSEmmanuel Vadot }; 142*f126890aSEmmanuel Vadot }; 143*f126890aSEmmanuel Vadot mmc0 { 144*f126890aSEmmanuel Vadot pinctrl_board_mmc0: mmc0-board { 145*f126890aSEmmanuel Vadot atmel,pins = 146*f126890aSEmmanuel Vadot <AT91_PIOD 10 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; /* PD10 gpio CD pin pull up and deglitch */ 147*f126890aSEmmanuel Vadot }; 148*f126890aSEmmanuel Vadot }; 149*f126890aSEmmanuel Vadot 150*f126890aSEmmanuel Vadot mmc1 { 151*f126890aSEmmanuel Vadot pinctrl_board_mmc1: mmc1-board { 152*f126890aSEmmanuel Vadot atmel,pins = 153*f126890aSEmmanuel Vadot <AT91_PIOD 11 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH /* PD11 gpio CD pin pull up and deglitch */ 154*f126890aSEmmanuel Vadot AT91_PIOD 29 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP>; /* PD29 gpio WP pin pull up */ 155*f126890aSEmmanuel Vadot }; 156*f126890aSEmmanuel Vadot }; 157*f126890aSEmmanuel Vadot 158*f126890aSEmmanuel Vadot pwm0 { 159*f126890aSEmmanuel Vadot pinctrl_pwm_leds: pwm-led { 160*f126890aSEmmanuel Vadot atmel,pins = 161*f126890aSEmmanuel Vadot <AT91_PIOD 0 AT91_PERIPH_B AT91_PINCTRL_PULL_UP /* PD0 periph B */ 162*f126890aSEmmanuel Vadot AT91_PIOD 31 AT91_PERIPH_B AT91_PINCTRL_PULL_UP>; /* PD31 periph B */ 163*f126890aSEmmanuel Vadot }; 164*f126890aSEmmanuel Vadot }; 165*f126890aSEmmanuel Vadot }; 166*f126890aSEmmanuel Vadot 167*f126890aSEmmanuel Vadot spi0: spi@fffa4000 { 168*f126890aSEmmanuel Vadot status = "okay"; 169*f126890aSEmmanuel Vadot cs-gpios = <&pioB 3 0>, <0>, <0>, <0>; 170*f126890aSEmmanuel Vadot flash@0 { 171*f126890aSEmmanuel Vadot compatible = "atmel,at45", "atmel,dataflash"; 172*f126890aSEmmanuel Vadot spi-max-frequency = <13000000>; 173*f126890aSEmmanuel Vadot reg = <0>; 174*f126890aSEmmanuel Vadot }; 175*f126890aSEmmanuel Vadot }; 176*f126890aSEmmanuel Vadot 177*f126890aSEmmanuel Vadot usb2: gadget@fff78000 { 178*f126890aSEmmanuel Vadot atmel,vbus-gpio = <&pioB 19 GPIO_ACTIVE_HIGH>; 179*f126890aSEmmanuel Vadot status = "okay"; 180*f126890aSEmmanuel Vadot }; 181*f126890aSEmmanuel Vadot 182*f126890aSEmmanuel Vadot ac97: sound@fffac000 { 183*f126890aSEmmanuel Vadot status = "okay"; 184*f126890aSEmmanuel Vadot }; 185*f126890aSEmmanuel Vadot 186*f126890aSEmmanuel Vadot adc0: adc@fffb0000 { 187*f126890aSEmmanuel Vadot pinctrl-names = "default"; 188*f126890aSEmmanuel Vadot pinctrl-0 = < 189*f126890aSEmmanuel Vadot &pinctrl_adc0_ad0 190*f126890aSEmmanuel Vadot &pinctrl_adc0_ad1 191*f126890aSEmmanuel Vadot &pinctrl_adc0_ad2 192*f126890aSEmmanuel Vadot &pinctrl_adc0_ad3 193*f126890aSEmmanuel Vadot &pinctrl_adc0_ad4 194*f126890aSEmmanuel Vadot &pinctrl_adc0_ad5 195*f126890aSEmmanuel Vadot &pinctrl_adc0_ad6 196*f126890aSEmmanuel Vadot &pinctrl_adc0_ad7>; 197*f126890aSEmmanuel Vadot atmel,adc-ts-wires = <4>; 198*f126890aSEmmanuel Vadot status = "okay"; 199*f126890aSEmmanuel Vadot }; 200*f126890aSEmmanuel Vadot 201*f126890aSEmmanuel Vadot isi@fffb4000 { 202*f126890aSEmmanuel Vadot pinctrl-names = "default"; 203*f126890aSEmmanuel Vadot pinctrl-0 = <&pinctrl_isi_data_0_7>; 204*f126890aSEmmanuel Vadot status = "okay"; 205*f126890aSEmmanuel Vadot port { 206*f126890aSEmmanuel Vadot isi_0: endpoint { 207*f126890aSEmmanuel Vadot remote-endpoint = <&ov2640_0>; 208*f126890aSEmmanuel Vadot bus-width = <8>; 209*f126890aSEmmanuel Vadot vsync-active = <1>; 210*f126890aSEmmanuel Vadot hsync-active = <1>; 211*f126890aSEmmanuel Vadot }; 212*f126890aSEmmanuel Vadot }; 213*f126890aSEmmanuel Vadot }; 214*f126890aSEmmanuel Vadot 215*f126890aSEmmanuel Vadot pwm0: pwm@fffb8000 { 216*f126890aSEmmanuel Vadot status = "okay"; 217*f126890aSEmmanuel Vadot 218*f126890aSEmmanuel Vadot pinctrl-names = "default"; 219*f126890aSEmmanuel Vadot pinctrl-0 = <&pinctrl_pwm_leds>; 220*f126890aSEmmanuel Vadot }; 221*f126890aSEmmanuel Vadot 222*f126890aSEmmanuel Vadot rtc@fffffd20 { 223*f126890aSEmmanuel Vadot atmel,rtt-rtc-time-reg = <&gpbr 0x0>; 224*f126890aSEmmanuel Vadot status = "okay"; 225*f126890aSEmmanuel Vadot }; 226*f126890aSEmmanuel Vadot 227*f126890aSEmmanuel Vadot gpbr: syscon@fffffd60 { 228*f126890aSEmmanuel Vadot status = "okay"; 229*f126890aSEmmanuel Vadot }; 230*f126890aSEmmanuel Vadot 231*f126890aSEmmanuel Vadot rtc@fffffdb0 { 232*f126890aSEmmanuel Vadot status = "okay"; 233*f126890aSEmmanuel Vadot }; 234*f126890aSEmmanuel Vadot }; 235*f126890aSEmmanuel Vadot 236*f126890aSEmmanuel Vadot fb0: fb@500000 { 237*f126890aSEmmanuel Vadot display = <&display0>; 238*f126890aSEmmanuel Vadot status = "okay"; 239*f126890aSEmmanuel Vadot 240*f126890aSEmmanuel Vadot display0: panel { 241*f126890aSEmmanuel Vadot bits-per-pixel = <32>; 242*f126890aSEmmanuel Vadot atmel,lcdcon-backlight; 243*f126890aSEmmanuel Vadot atmel,dmacon = <0x1>; 244*f126890aSEmmanuel Vadot atmel,lcdcon2 = <0x80008002>; 245*f126890aSEmmanuel Vadot atmel,guard-time = <9>; 246*f126890aSEmmanuel Vadot atmel,lcd-wiring-mode = "RGB"; 247*f126890aSEmmanuel Vadot 248*f126890aSEmmanuel Vadot display-timings { 249*f126890aSEmmanuel Vadot native-mode = <&timing0>; 250*f126890aSEmmanuel Vadot timing0: timing0 { 251*f126890aSEmmanuel Vadot clock-frequency = <9000000>; 252*f126890aSEmmanuel Vadot hactive = <480>; 253*f126890aSEmmanuel Vadot vactive = <272>; 254*f126890aSEmmanuel Vadot hback-porch = <1>; 255*f126890aSEmmanuel Vadot hfront-porch = <1>; 256*f126890aSEmmanuel Vadot vback-porch = <40>; 257*f126890aSEmmanuel Vadot vfront-porch = <1>; 258*f126890aSEmmanuel Vadot hsync-len = <45>; 259*f126890aSEmmanuel Vadot vsync-len = <1>; 260*f126890aSEmmanuel Vadot }; 261*f126890aSEmmanuel Vadot }; 262*f126890aSEmmanuel Vadot }; 263*f126890aSEmmanuel Vadot }; 264*f126890aSEmmanuel Vadot 265*f126890aSEmmanuel Vadot ebi: ebi@10000000 { 266*f126890aSEmmanuel Vadot status = "okay"; 267*f126890aSEmmanuel Vadot 268*f126890aSEmmanuel Vadot nand_controller: nand-controller { 269*f126890aSEmmanuel Vadot status = "okay"; 270*f126890aSEmmanuel Vadot pinctrl-0 = <&pinctrl_nand_cs &pinctrl_nand_rb>; 271*f126890aSEmmanuel Vadot pinctrl-names = "default"; 272*f126890aSEmmanuel Vadot 273*f126890aSEmmanuel Vadot nand@3 { 274*f126890aSEmmanuel Vadot reg = <0x3 0x0 0x800000>; 275*f126890aSEmmanuel Vadot rb-gpios = <&pioC 8 GPIO_ACTIVE_HIGH>; 276*f126890aSEmmanuel Vadot cs-gpios = <&pioC 14 GPIO_ACTIVE_HIGH>; 277*f126890aSEmmanuel Vadot nand-bus-width = <8>; 278*f126890aSEmmanuel Vadot nand-ecc-mode = "soft"; 279*f126890aSEmmanuel Vadot nand-on-flash-bbt; 280*f126890aSEmmanuel Vadot label = "atmel_nand"; 281*f126890aSEmmanuel Vadot 282*f126890aSEmmanuel Vadot partitions { 283*f126890aSEmmanuel Vadot compatible = "fixed-partitions"; 284*f126890aSEmmanuel Vadot #address-cells = <1>; 285*f126890aSEmmanuel Vadot #size-cells = <1>; 286*f126890aSEmmanuel Vadot 287*f126890aSEmmanuel Vadot boot@0 { 288*f126890aSEmmanuel Vadot label = "bootstrap/uboot/kernel"; 289*f126890aSEmmanuel Vadot reg = <0x0 0x400000>; 290*f126890aSEmmanuel Vadot }; 291*f126890aSEmmanuel Vadot 292*f126890aSEmmanuel Vadot rootfs@400000 { 293*f126890aSEmmanuel Vadot label = "rootfs"; 294*f126890aSEmmanuel Vadot reg = <0x400000 0x3C00000>; 295*f126890aSEmmanuel Vadot }; 296*f126890aSEmmanuel Vadot 297*f126890aSEmmanuel Vadot data@4000000 { 298*f126890aSEmmanuel Vadot label = "data"; 299*f126890aSEmmanuel Vadot reg = <0x4000000 0xC000000>; 300*f126890aSEmmanuel Vadot }; 301*f126890aSEmmanuel Vadot }; 302*f126890aSEmmanuel Vadot }; 303*f126890aSEmmanuel Vadot }; 304*f126890aSEmmanuel Vadot }; 305*f126890aSEmmanuel Vadot 306*f126890aSEmmanuel Vadot usb0: ohci@700000 { 307*f126890aSEmmanuel Vadot status = "okay"; 308*f126890aSEmmanuel Vadot num-ports = <2>; 309*f126890aSEmmanuel Vadot atmel,vbus-gpio = <&pioD 1 GPIO_ACTIVE_LOW 310*f126890aSEmmanuel Vadot &pioD 3 GPIO_ACTIVE_LOW>; 311*f126890aSEmmanuel Vadot }; 312*f126890aSEmmanuel Vadot 313*f126890aSEmmanuel Vadot usb1: ehci@800000 { 314*f126890aSEmmanuel Vadot status = "okay"; 315*f126890aSEmmanuel Vadot }; 316*f126890aSEmmanuel Vadot }; 317*f126890aSEmmanuel Vadot 318*f126890aSEmmanuel Vadot led-controller-1 { 319*f126890aSEmmanuel Vadot compatible = "gpio-leds"; 320*f126890aSEmmanuel Vadot 321*f126890aSEmmanuel Vadot led-1 { 322*f126890aSEmmanuel Vadot label = "d8"; 323*f126890aSEmmanuel Vadot gpios = <&pioD 30 GPIO_ACTIVE_HIGH>; 324*f126890aSEmmanuel Vadot linux,default-trigger = "heartbeat"; 325*f126890aSEmmanuel Vadot }; 326*f126890aSEmmanuel Vadot }; 327*f126890aSEmmanuel Vadot 328*f126890aSEmmanuel Vadot led-controller-2 { 329*f126890aSEmmanuel Vadot compatible = "pwm-leds"; 330*f126890aSEmmanuel Vadot 331*f126890aSEmmanuel Vadot led-2 { 332*f126890aSEmmanuel Vadot label = "d6"; 333*f126890aSEmmanuel Vadot pwms = <&pwm0 3 5000 PWM_POLARITY_INVERTED>; 334*f126890aSEmmanuel Vadot max-brightness = <255>; 335*f126890aSEmmanuel Vadot linux,default-trigger = "nand-disk"; 336*f126890aSEmmanuel Vadot }; 337*f126890aSEmmanuel Vadot 338*f126890aSEmmanuel Vadot led-3 { 339*f126890aSEmmanuel Vadot label = "d7"; 340*f126890aSEmmanuel Vadot pwms = <&pwm0 1 5000 PWM_POLARITY_INVERTED>; 341*f126890aSEmmanuel Vadot max-brightness = <255>; 342*f126890aSEmmanuel Vadot linux,default-trigger = "mmc0"; 343*f126890aSEmmanuel Vadot }; 344*f126890aSEmmanuel Vadot }; 345*f126890aSEmmanuel Vadot 346*f126890aSEmmanuel Vadot gpio-keys { 347*f126890aSEmmanuel Vadot compatible = "gpio-keys"; 348*f126890aSEmmanuel Vadot 349*f126890aSEmmanuel Vadot button-left-click { 350*f126890aSEmmanuel Vadot label = "left_click"; 351*f126890aSEmmanuel Vadot gpios = <&pioB 6 GPIO_ACTIVE_LOW>; 352*f126890aSEmmanuel Vadot linux,code = <272>; 353*f126890aSEmmanuel Vadot wakeup-source; 354*f126890aSEmmanuel Vadot }; 355*f126890aSEmmanuel Vadot 356*f126890aSEmmanuel Vadot button-right-click { 357*f126890aSEmmanuel Vadot label = "right_click"; 358*f126890aSEmmanuel Vadot gpios = <&pioB 7 GPIO_ACTIVE_LOW>; 359*f126890aSEmmanuel Vadot linux,code = <273>; 360*f126890aSEmmanuel Vadot wakeup-source; 361*f126890aSEmmanuel Vadot }; 362*f126890aSEmmanuel Vadot 363*f126890aSEmmanuel Vadot button-left { 364*f126890aSEmmanuel Vadot label = "Joystick Left"; 365*f126890aSEmmanuel Vadot gpios = <&pioB 14 GPIO_ACTIVE_LOW>; 366*f126890aSEmmanuel Vadot linux,code = <105>; 367*f126890aSEmmanuel Vadot }; 368*f126890aSEmmanuel Vadot 369*f126890aSEmmanuel Vadot button-right { 370*f126890aSEmmanuel Vadot label = "Joystick Right"; 371*f126890aSEmmanuel Vadot gpios = <&pioB 15 GPIO_ACTIVE_LOW>; 372*f126890aSEmmanuel Vadot linux,code = <106>; 373*f126890aSEmmanuel Vadot }; 374*f126890aSEmmanuel Vadot 375*f126890aSEmmanuel Vadot button-up { 376*f126890aSEmmanuel Vadot label = "Joystick Up"; 377*f126890aSEmmanuel Vadot gpios = <&pioB 16 GPIO_ACTIVE_LOW>; 378*f126890aSEmmanuel Vadot linux,code = <103>; 379*f126890aSEmmanuel Vadot }; 380*f126890aSEmmanuel Vadot 381*f126890aSEmmanuel Vadot button-down { 382*f126890aSEmmanuel Vadot label = "Joystick Down"; 383*f126890aSEmmanuel Vadot gpios = <&pioB 17 GPIO_ACTIVE_LOW>; 384*f126890aSEmmanuel Vadot linux,code = <108>; 385*f126890aSEmmanuel Vadot }; 386*f126890aSEmmanuel Vadot 387*f126890aSEmmanuel Vadot button-enter { 388*f126890aSEmmanuel Vadot label = "Joystick Press"; 389*f126890aSEmmanuel Vadot gpios = <&pioB 18 GPIO_ACTIVE_LOW>; 390*f126890aSEmmanuel Vadot linux,code = <28>; 391*f126890aSEmmanuel Vadot }; 392*f126890aSEmmanuel Vadot }; 393*f126890aSEmmanuel Vadot}; 394