Gaël PORTAY | 13afc4a | 2015-05-04 17:59:57 +0200 | [diff] [blame] | 1 | /* |
| 2 | * at91-kizbox2.dts - Device Tree file for Overkiz Kizbox 2 board |
| 3 | * |
| 4 | * Copyright (C) 2014 Gaël PORTAY <g.portay@overkiz.com> |
| 5 | * |
| 6 | * Licensed under GPLv2 or later. |
| 7 | */ |
| 8 | /dts-v1/; |
| 9 | #include "sama5d31.dtsi" |
| 10 | #include <dt-bindings/pwm/pwm.h> |
| 11 | |
| 12 | / { |
| 13 | model = "Overkiz Kizbox 2"; |
| 14 | compatible = "overkiz,kizbox2", "atmel,sama5d31", "atmel,sama5d3", "atmel,sama5"; |
| 15 | |
| 16 | chosen { |
| 17 | bootargs = "ubi.mtd=ubi"; |
Alexandre Belloni | 7e5883b | 2015-06-03 14:24:05 +0200 | [diff] [blame] | 18 | stdout-path = &dbgu; |
Gaël PORTAY | 13afc4a | 2015-05-04 17:59:57 +0200 | [diff] [blame] | 19 | }; |
| 20 | |
| 21 | memory { |
| 22 | reg = <0x20000000 0x10000000>; |
| 23 | }; |
| 24 | |
| 25 | clocks { |
| 26 | slow_xtal { |
| 27 | clock-frequency = <32768>; |
| 28 | }; |
| 29 | |
| 30 | main_xtal { |
| 31 | clock-frequency = <12000000>; |
| 32 | }; |
| 33 | }; |
| 34 | |
| 35 | ahb { |
| 36 | apb { |
| 37 | i2c1: i2c@f0018000 { |
| 38 | status = "okay"; |
| 39 | |
| 40 | pmic: act8865@5b { |
| 41 | compatible = "active-semi,act8865"; |
| 42 | reg = <0x5b>; |
| 43 | status = "okay"; |
| 44 | |
| 45 | regulators { |
| 46 | vcc_1v8_reg: DCDC_REG1 { |
| 47 | regulator-name = "VCC_1V8"; |
| 48 | regulator-min-microvolt = <1800000>; |
| 49 | regulator-max-microvolt = <1800000>; |
| 50 | regulator-always-on; |
| 51 | }; |
| 52 | |
| 53 | vcc_1v2_reg: DCDC_REG2 { |
| 54 | regulator-name = "VCC_1V2"; |
| 55 | regulator-min-microvolt = <1200000>; |
| 56 | regulator-max-microvolt = <1200000>; |
| 57 | regulator-always-on; |
| 58 | }; |
| 59 | |
| 60 | vcc_3v3_reg: DCDC_REG3 { |
| 61 | regulator-name = "VCC_3V3"; |
| 62 | regulator-min-microvolt = <3300000>; |
| 63 | regulator-max-microvolt = <3300000>; |
| 64 | regulator-always-on; |
| 65 | }; |
| 66 | |
| 67 | vddfuse_reg: LDO_REG1 { |
| 68 | regulator-name = "FUSE_2V5"; |
| 69 | regulator-min-microvolt = <2500000>; |
| 70 | regulator-max-microvolt = <2500000>; |
| 71 | }; |
| 72 | |
| 73 | vddana_reg: LDO_REG2 { |
| 74 | regulator-name = "VDDANA"; |
| 75 | regulator-min-microvolt = <3300000>; |
| 76 | regulator-max-microvolt = <3300000>; |
| 77 | regulator-always-on; |
| 78 | }; |
| 79 | |
| 80 | vled_reg: LDO_REG3 { |
| 81 | regulator-name = "VLED"; |
| 82 | regulator-min-microvolt = <3300000>; |
| 83 | regulator-max-microvolt = <3300000>; |
| 84 | regulator-always-on; |
| 85 | }; |
| 86 | |
| 87 | v3v8_rf_reg: LDO_REG4 { |
| 88 | regulator-name = "V3V8_RF"; |
| 89 | regulator-min-microvolt = <3800000>; |
| 90 | regulator-max-microvolt = <3800000>; |
| 91 | regulator-always-on; |
| 92 | }; |
| 93 | }; |
| 94 | }; |
| 95 | }; |
| 96 | |
| 97 | usart0: serial@f001c000 { |
| 98 | status = "okay"; |
| 99 | }; |
| 100 | |
| 101 | usart1: serial@f0020000 { |
| 102 | status = "okay"; |
| 103 | }; |
| 104 | |
| 105 | pwm0: pwm@f002c000 { |
| 106 | pinctrl-names = "default"; |
| 107 | pinctrl-0 = <&pinctrl_pwm0_pwmh0_1 |
| 108 | &pinctrl_pwm0_pwmh1_1 |
| 109 | &pinctrl_pwm0_pwmh2_0>; |
| 110 | status = "okay"; |
| 111 | }; |
| 112 | |
| 113 | adc0: adc@f8018000 { |
| 114 | atmel,adc-vref = <3333>; |
| 115 | status = "okay"; |
| 116 | }; |
| 117 | |
| 118 | usart2: serial@f8020000 { |
| 119 | status = "okay"; |
| 120 | }; |
| 121 | |
| 122 | macb1: ethernet@f802c000 { |
| 123 | phy-mode = "rmii"; |
| 124 | status = "okay"; |
| 125 | }; |
| 126 | |
| 127 | dbgu: serial@ffffee00 { |
| 128 | status = "okay"; |
| 129 | }; |
| 130 | |
| 131 | watchdog@fffffe40 { |
| 132 | status = "okay"; |
| 133 | }; |
| 134 | }; |
| 135 | |
Rob Herring | 8dccafa | 2017-10-13 12:54:51 -0500 | [diff] [blame] | 136 | usb1: ohci@600000 { |
Gaël PORTAY | 13afc4a | 2015-05-04 17:59:57 +0200 | [diff] [blame] | 137 | status = "okay"; |
| 138 | }; |
| 139 | |
Rob Herring | 8dccafa | 2017-10-13 12:54:51 -0500 | [diff] [blame] | 140 | usb2: ehci@700000 { |
Gaël PORTAY | 13afc4a | 2015-05-04 17:59:57 +0200 | [diff] [blame] | 141 | status = "okay"; |
| 142 | }; |
| 143 | |
Boris Brezillon | 1004a29 | 2017-05-30 11:20:53 +0200 | [diff] [blame] | 144 | ebi: ebi@10000000 { |
| 145 | pinctrl-0 = <&pinctrl_ebi_nand_addr>; |
| 146 | pinctrl-names = "default"; |
Gaël PORTAY | 13afc4a | 2015-05-04 17:59:57 +0200 | [diff] [blame] | 147 | status = "okay"; |
| 148 | |
Boris Brezillon | 1004a29 | 2017-05-30 11:20:53 +0200 | [diff] [blame] | 149 | nand_controller: nand-controller { |
| 150 | status = "okay"; |
Gaël PORTAY | 13afc4a | 2015-05-04 17:59:57 +0200 | [diff] [blame] | 151 | |
Boris Brezillon | 1004a29 | 2017-05-30 11:20:53 +0200 | [diff] [blame] | 152 | nand@3 { |
| 153 | reg = <0x3 0x0 0x2>; |
| 154 | atmel,rb = <0>; |
| 155 | nand-bus-width = <8>; |
| 156 | nand-ecc-mode = "hw"; |
| 157 | nand-ecc-strength = <4>; |
| 158 | nand-ecc-step-size = <512>; |
| 159 | nand-on-flash-bbt; |
| 160 | label = "atmel_nand"; |
| 161 | |
| 162 | partitions { |
| 163 | compatible = "fixed-partitions"; |
| 164 | #address-cells = <1>; |
| 165 | #size-cells = <1>; |
| 166 | |
| 167 | bootstrap@0 { |
| 168 | label = "bootstrap"; |
| 169 | reg = <0x0 0x20000>; |
| 170 | }; |
| 171 | |
| 172 | ubi@20000 { |
| 173 | label = "ubi"; |
| 174 | reg = <0x20000 0x7fe0000>; |
| 175 | }; |
| 176 | }; |
| 177 | }; |
Gaël PORTAY | 13afc4a | 2015-05-04 17:59:57 +0200 | [diff] [blame] | 178 | }; |
| 179 | }; |
| 180 | }; |
| 181 | |
| 182 | gpio_keys { |
| 183 | compatible = "gpio-keys"; |
| 184 | #address-cells = <1>; |
| 185 | #size-cells = <0>; |
| 186 | |
| 187 | prog { |
| 188 | label = "PB_PROG"; |
| 189 | gpios = <&pioE 27 GPIO_ACTIVE_LOW>; |
| 190 | linux,code = <0x102>; |
Sudeep Holla | 67ae8b9 | 2015-10-21 11:10:07 +0100 | [diff] [blame] | 191 | wakeup-source; |
Gaël PORTAY | 13afc4a | 2015-05-04 17:59:57 +0200 | [diff] [blame] | 192 | }; |
| 193 | |
| 194 | reset { |
| 195 | label = "PB_RST"; |
| 196 | gpios = <&pioE 29 GPIO_ACTIVE_LOW>; |
| 197 | linux,code = <0x100>; |
Sudeep Holla | 67ae8b9 | 2015-10-21 11:10:07 +0100 | [diff] [blame] | 198 | wakeup-source; |
Gaël PORTAY | 13afc4a | 2015-05-04 17:59:57 +0200 | [diff] [blame] | 199 | }; |
| 200 | |
| 201 | user { |
| 202 | label = "PB_USER"; |
| 203 | gpios = <&pioE 31 GPIO_ACTIVE_HIGH>; |
| 204 | linux,code = <0x101>; |
Sudeep Holla | 67ae8b9 | 2015-10-21 11:10:07 +0100 | [diff] [blame] | 205 | wakeup-source; |
Gaël PORTAY | 13afc4a | 2015-05-04 17:59:57 +0200 | [diff] [blame] | 206 | }; |
| 207 | }; |
| 208 | |
| 209 | pwm_leds { |
| 210 | compatible = "pwm-leds"; |
| 211 | |
| 212 | blue { |
| 213 | label = "pwm:blue:user"; |
| 214 | pwms = <&pwm0 2 10000000 0>; |
| 215 | max-brightness = <255>; |
| 216 | linux,default-trigger = "default-on"; |
| 217 | }; |
| 218 | |
| 219 | green { |
| 220 | label = "pwm:green:user"; |
| 221 | pwms = <&pwm0 1 10000000 0>; |
| 222 | max-brightness = <255>; |
| 223 | linux,default-trigger = "default-on"; |
| 224 | }; |
| 225 | |
| 226 | red { |
| 227 | label = "pwm:red:user"; |
| 228 | pwms = <&pwm0 0 10000000 0>; |
| 229 | max-brightness = <255>; |
| 230 | linux,default-trigger = "default-on"; |
| 231 | }; |
| 232 | }; |
| 233 | }; |