Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 /*
0003  * at91-kizbox2_common.dtsi - Device Tree Include file for
0004  * Overkiz Kizbox 2 family SoC
0005  *
0006  * Copyright (C) 2014-2018 Overkiz SAS
0007  *
0008  * Authors: Antoine Aubert <a.aubert@overkiz.com>
0009  *          Gaël Portay <g.portay@overkiz.com>
0010  *          Kévin Raymond <k.raymond@overkiz.com>
0011  */
0012 #include "sama5d31.dtsi"
0013 
0014 / {
0015         chosen {
0016                 bootargs = "ubi.mtd=ubi";
0017                 stdout-path = &dbgu;
0018         };
0019 
0020         memory@20000000 {
0021                 reg = <0x20000000 0x10000000>;
0022         };
0023 
0024         clocks {
0025                 slow_xtal {
0026                         clock-frequency = <32768>;
0027                 };
0028 
0029                 main_xtal {
0030                         clock-frequency = <12000000>;
0031                 };
0032         };
0033 
0034         gpio-keys {
0035                 compatible = "gpio-keys";
0036 
0037                 button-prog {
0038                         label = "PB_PROG";
0039                         gpios = <&pioE 27 GPIO_ACTIVE_LOW>;
0040                         linux,code = <0x102>;
0041                         wakeup-source;
0042                 };
0043 
0044                 button-reset {
0045                         label = "PB_RST";
0046                         gpios = <&pioE 29 GPIO_ACTIVE_LOW>;
0047                         linux,code = <0x100>;
0048                         wakeup-source;
0049                 };
0050 
0051                 button-user {
0052                         label = "PB_USER";
0053                         gpios = <&pioE 31 GPIO_ACTIVE_HIGH>;
0054                         linux,code = <0x101>;
0055                         wakeup-source;
0056                 };
0057         };
0058 
0059         led-controller {
0060                 compatible = "pwm-leds";
0061 
0062                 led-1 {
0063                         label = "pwm:blue:user";
0064                         pwms = <&pwm0 2 10000000 0>;
0065                         max-brightness = <255>;
0066                         linux,default-trigger = "none";
0067                 };
0068 
0069                 led-2 {
0070                         label = "pwm:green:user";
0071                         pwms = <&pwm0 1 10000000 0>;
0072                         max-brightness = <255>;
0073                         linux,default-trigger = "default-on";
0074                 };
0075 
0076                 led-3 {
0077                         label = "pwm:red:user";
0078                         pwms = <&pwm0 0 10000000 0>;
0079                         max-brightness = <255>;
0080                         linux,default-trigger = "default-on";
0081                 };
0082         };
0083 };
0084 
0085 &i2c1 {
0086         status = "okay";
0087 
0088         pmic: act8865@5b {
0089                 compatible = "active-semi,act8865";
0090                 reg = <0x5b>;
0091                 status = "okay";
0092 
0093                 regulators {
0094                         vcc_1v8_reg: DCDC_REG1 {
0095                                 regulator-name = "VCC_1V8";
0096                                 regulator-min-microvolt = <1800000>;
0097                                 regulator-max-microvolt = <1800000>;
0098                                 regulator-always-on;
0099                         };
0100 
0101                         vcc_1v2_reg: DCDC_REG2 {
0102                                 regulator-name = "VCC_1V2";
0103                                 regulator-min-microvolt = <1200000>;
0104                                 regulator-max-microvolt = <1200000>;
0105                                 regulator-always-on;
0106                         };
0107 
0108                         vcc_3v3_reg: DCDC_REG3 {
0109                                 regulator-name = "VCC_3V3";
0110                                 regulator-min-microvolt = <3300000>;
0111                                 regulator-max-microvolt = <3300000>;
0112                                 regulator-always-on;
0113                         };
0114 
0115                         vddfuse_reg: LDO_REG1 {
0116                                 regulator-name = "FUSE_2V5";
0117                                 regulator-min-microvolt = <2500000>;
0118                                 regulator-max-microvolt = <2500000>;
0119                         };
0120 
0121                         vddana_reg: LDO_REG2 {
0122                                 regulator-name = "VDDANA";
0123                                 regulator-min-microvolt = <3300000>;
0124                                 regulator-max-microvolt = <3300000>;
0125                                 regulator-always-on;
0126                         };
0127 
0128                         vled_reg: LDO_REG3 {
0129                                 regulator-name = "VLED";
0130                                 regulator-min-microvolt = <3300000>;
0131                                 regulator-max-microvolt = <3300000>;
0132                                 regulator-always-on;
0133                         };
0134 
0135                         v3v8_rf_reg: LDO_REG4 {
0136                                 regulator-name = "V3V8_RF";
0137                                 regulator-min-microvolt = <3800000>;
0138                                 regulator-max-microvolt = <3800000>;
0139                                 regulator-always-on;
0140                         };
0141                 };
0142         };
0143 };
0144 
0145 &usart0 {
0146         atmel,use-dma-rx;
0147         atmel,use-dma-tx;
0148         status = "disabled";
0149 };
0150 
0151 &usart1 {
0152         atmel,use-dma-rx;
0153         atmel,use-dma-tx;
0154         status = "disabled";
0155 };
0156 
0157 &usart2 {
0158         atmel,use-dma-rx;
0159         atmel,use-dma-tx;
0160         status = "disabled";
0161 };
0162 
0163 &pwm0 {
0164         pinctrl-names = "default";
0165         pinctrl-0 = <&pinctrl_pwm0_pwmh0_1
0166                      &pinctrl_pwm0_pwmh1_1
0167                      &pinctrl_pwm0_pwmh2_0>;
0168         status = "okay";
0169 };
0170 
0171 &adc0 {
0172         atmel,adc-vref = <3333>;
0173         status = "okay";
0174 };
0175 
0176 &macb1 {
0177         phy-mode = "rmii";
0178         status = "okay";
0179 };
0180 
0181 &dbgu {
0182         status = "okay";
0183 };
0184 
0185 &watchdog {
0186         status = "okay";
0187 };
0188 
0189 &ebi {
0190         pinctrl-0 = <&pinctrl_ebi_nand_addr>;
0191         pinctrl-names = "default";
0192         status = "okay";
0193 };
0194 
0195 &nand_controller {
0196         status = "okay";
0197 
0198         nand@3 {
0199                 reg = <0x3 0x0 0x2>;
0200                 atmel,rb = <0>;
0201                 nand-bus-width = <8>;
0202                 nand-ecc-mode = "hw";
0203                 nand-ecc-strength = <4>;
0204                 nand-ecc-step-size = <512>;
0205                 nand-on-flash-bbt;
0206                 label = "atmel_nand";
0207 
0208                 partitions {
0209                         compatible = "fixed-partitions";
0210                         #address-cells = <1>;
0211                         #size-cells = <1>;
0212 
0213                         bootstrap@0 {
0214                                 label = "bootstrap";
0215                                 reg = <0x0 0x20000>;
0216                         };
0217 
0218                         ubi@20000 {
0219                                 label = "ubi";
0220                                 reg = <0x20000 0x7fe0000>;
0221                         };
0222                 };
0223         };
0224 };
0225 
0226 &usb1 {
0227         status = "okay";
0228 };
0229 
0230 &usb2 {
0231         status = "okay";
0232 };
0233 
0234 /* WMBUS (inverted with IO in the latest schematic) */
0235 &pinctrl_usart0 {
0236         atmel,pins =
0237                 <AT91_PIOD 17 AT91_PERIPH_A AT91_PINCTRL_NONE
0238                  AT91_PIOD 18 AT91_PERIPH_A AT91_PINCTRL_PULL_UP
0239                  AT91_PIOE 2 AT91_PERIPH_GPIO AT91_PINCTRL_MULTI_DRIVE>;
0240 };
0241 
0242 /* RTS */
0243 &pinctrl_usart1 {
0244         atmel,pins =
0245                 <AT91_PIOB 28 AT91_PERIPH_A AT91_PINCTRL_NONE
0246                  AT91_PIOB 29 AT91_PERIPH_A AT91_PINCTRL_PULL_UP
0247                  AT91_PIOE 7 AT91_PERIPH_GPIO AT91_PINCTRL_MULTI_DRIVE>;
0248 };
0249 
0250 /* IO (inverted with WMBUS in the latest schematic) */
0251 &pinctrl_usart2 {
0252         atmel,pins =
0253                 <AT91_PIOE 25 AT91_PERIPH_B AT91_PINCTRL_NONE
0254                  AT91_PIOE 26 AT91_PERIPH_B AT91_PINCTRL_PULL_UP
0255                  AT91_PIOE 8 AT91_PERIPH_GPIO AT91_PINCTRL_MULTI_DRIVE>;
0256 };