0001 // SPDX-License-Identifier: GPL-2.0-only
0002 /*
0003 * pm9g45.dts - Device Tree file for Ronetix pm9g45 board
0004 *
0005 * Copyright (C) 2012 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
0006 */
0007 /dts-v1/;
0008 #include "at91sam9g45.dtsi"
0009
0010 / {
0011 model = "Ronetix pm9g45";
0012 compatible = "ronetix,pm9g45", "atmel,at91sam9g45", "atmel,at91sam9";
0013
0014 chosen {
0015 bootargs = "console=ttyS0,115200";
0016 };
0017
0018 memory@70000000 {
0019 reg = <0x70000000 0x8000000>;
0020 };
0021
0022 clocks {
0023 slow_xtal {
0024 clock-frequency = <32768>;
0025 };
0026
0027 main_xtal {
0028 clock-frequency = <12000000>;
0029 };
0030 };
0031
0032 ahb {
0033 apb {
0034 dbgu: serial@ffffee00 {
0035 status = "okay";
0036 };
0037
0038 pinctrl@fffff200 {
0039 nand {
0040 pinctrl_nand_rb: nand-rb-0 {
0041 atmel,pins =
0042 <AT91_PIOD 3 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP>;
0043 };
0044 };
0045
0046 mmc {
0047 pinctrl_board_mmc: mmc0-board {
0048 atmel,pins =
0049 <AT91_PIOD 6 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; /* PD6 gpio CD pin pull_up and deglitch */
0050 };
0051 };
0052 };
0053
0054 tcb0: timer@fff7c000 {
0055 timer@0 {
0056 compatible = "atmel,tcb-timer";
0057 reg = <0>, <1>;
0058 };
0059
0060 timer@2 {
0061 compatible = "atmel,tcb-timer";
0062 reg = <2>;
0063 };
0064 };
0065
0066 mmc0: mmc@fff80000 {
0067 pinctrl-0 = <
0068 &pinctrl_board_mmc
0069 &pinctrl_mmc0_slot0_clk_cmd_dat0
0070 &pinctrl_mmc0_slot0_dat1_3>;
0071 pinctrl-names = "default";
0072 status = "okay";
0073 slot@0 {
0074 reg = <0>;
0075 bus-width = <4>;
0076 cd-gpios = <&pioD 6 GPIO_ACTIVE_HIGH>;
0077 };
0078 };
0079
0080 macb0: ethernet@fffbc000 {
0081 phy-mode = "rmii";
0082 status = "okay";
0083 };
0084 };
0085
0086 ebi: ebi@10000000 {
0087 status = "okay";
0088
0089 nand_controller: nand-controller {
0090 status = "okay";
0091 pinctrl-0 = <&pinctrl_nand_cs &pinctrl_nand_rb>;
0092 pinctrl-names = "default";
0093
0094 nand@3 {
0095 reg = <0x3 0x0 0x800000>;
0096 rb-gpios = <&pioD 3 GPIO_ACTIVE_HIGH>;
0097 cs-gpios = <&pioC 14 GPIO_ACTIVE_HIGH>;
0098 nand-bus-width = <8>;
0099 nand-ecc-mode = "soft";
0100 nand-on-flash-bbt;
0101 label = "atmel_nand";
0102
0103 partitions {
0104 compatible = "fixed-partitions";
0105 #address-cells = <1>;
0106 #size-cells = <1>;
0107
0108 at91bootstrap@0 {
0109 label = "at91bootstrap";
0110 reg = <0x0 0x20000>;
0111 };
0112
0113 barebox@20000 {
0114 label = "barebox";
0115 reg = <0x20000 0x40000>;
0116 };
0117
0118 bareboxenv@60000 {
0119 label = "bareboxenv";
0120 reg = <0x60000 0x1A0000>;
0121 };
0122
0123 kernel@200000 {
0124 label = "bareboxenv2";
0125 reg = <0x200000 0x300000>;
0126 };
0127
0128 kernel@500000 {
0129 label = "root";
0130 reg = <0x500000 0x400000>;
0131 };
0132
0133 data@900000 {
0134 label = "data";
0135 reg = <0x900000 0x8340000>;
0136 };
0137 };
0138 };
0139 };
0140 };
0141
0142 usb0: ohci@700000 {
0143 status = "okay";
0144 num-ports = <2>;
0145 };
0146
0147 usb1: ehci@800000 {
0148 status = "okay";
0149 };
0150 };
0151
0152 leds {
0153 compatible = "gpio-leds";
0154
0155 led0 {
0156 label = "led0";
0157 gpios = <&pioD 0 GPIO_ACTIVE_LOW>;
0158 linux,default-trigger = "nand-disk";
0159 };
0160
0161 led1 {
0162 label = "led1";
0163 gpios = <&pioD 31 GPIO_ACTIVE_HIGH>;
0164 linux,default-trigger = "heartbeat";
0165 };
0166 };
0167
0168 gpio_keys {
0169 compatible = "gpio-keys";
0170 #address-cells = <1>;
0171 #size-cells = <0>;
0172
0173 right {
0174 label = "SW4";
0175 gpios = <&pioE 7 GPIO_ACTIVE_LOW>;
0176 linux,code = <106>;
0177 };
0178
0179 up {
0180 label = "SW3";
0181 gpios = <&pioE 8 GPIO_ACTIVE_LOW>;
0182 linux,code = <103>;
0183 };
0184 };
0185 };