1 // SPDX-License-Identifier: GPL-2.0-only 1 // SPDX-License-Identifier: GPL-2.0-only 2 /* 2 /* 3 * pm9g45.dts - Device Tree file for Ronetix p 3 * pm9g45.dts - Device Tree file for Ronetix pm9g45 board 4 * 4 * 5 * Copyright (C) 2012 Jean-Christophe PLAGNIO< 5 * Copyright (C) 2012 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> 6 */ 6 */ 7 /dts-v1/; 7 /dts-v1/; 8 #include "at91sam9g45.dtsi" 8 #include "at91sam9g45.dtsi" 9 9 10 / { 10 / { 11 model = "Ronetix pm9g45"; 11 model = "Ronetix pm9g45"; 12 compatible = "ronetix,pm9g45", "atmel, 12 compatible = "ronetix,pm9g45", "atmel,at91sam9g45", "atmel,at91sam9"; 13 13 14 chosen { 14 chosen { 15 bootargs = "console=ttyS0,1152 15 bootargs = "console=ttyS0,115200"; 16 }; 16 }; 17 17 18 memory@70000000 { 18 memory@70000000 { 19 reg = <0x70000000 0x8000000>; 19 reg = <0x70000000 0x8000000>; 20 }; 20 }; 21 21 22 clocks { 22 clocks { 23 slow_xtal { 23 slow_xtal { 24 clock-frequency = <32768 24 clock-frequency = <32768>; 25 }; 25 }; 26 26 27 main_xtal { 27 main_xtal { 28 clock-frequency = <12000 28 clock-frequency = <12000000>; 29 }; 29 }; 30 }; 30 }; 31 31 32 ahb { 32 ahb { 33 apb { 33 apb { 34 dbgu: serial@ffffee00 34 dbgu: serial@ffffee00 { 35 status = "okay 35 status = "okay"; 36 }; 36 }; 37 37 38 pinctrl@fffff200 { 38 pinctrl@fffff200 { 39 nand { 39 nand { 40 pinctr 40 pinctrl_nand_rb: nand-rb-0 { 41 41 atmel,pins = 42 42 <AT91_PIOD 3 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP>; 43 }; 43 }; 44 }; 44 }; 45 45 46 mmc { 46 mmc { 47 pinctr 47 pinctrl_board_mmc: mmc0-board { 48 48 atmel,pins = 49 49 <AT91_PIOD 6 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; /* PD6 gpio CD pin pull_up and deglitch */ 50 }; 50 }; 51 }; 51 }; 52 }; 52 }; 53 53 54 tcb0: timer@fff7c000 { 54 tcb0: timer@fff7c000 { 55 timer@0 { 55 timer@0 { 56 compat 56 compatible = "atmel,tcb-timer"; 57 reg = 57 reg = <0>, <1>; 58 }; 58 }; 59 59 60 timer@2 { 60 timer@2 { 61 compat 61 compatible = "atmel,tcb-timer"; 62 reg = 62 reg = <2>; 63 }; 63 }; 64 }; 64 }; 65 65 66 mmc0: mmc@fff80000 { 66 mmc0: mmc@fff80000 { 67 pinctrl-0 = < 67 pinctrl-0 = < 68 &pinct 68 &pinctrl_board_mmc 69 &pinct 69 &pinctrl_mmc0_slot0_clk_cmd_dat0 70 &pinct 70 &pinctrl_mmc0_slot0_dat1_3>; 71 pinctrl-names 71 pinctrl-names = "default"; 72 status = "okay 72 status = "okay"; 73 slot@0 { 73 slot@0 { 74 reg = 74 reg = <0>; 75 bus-wi 75 bus-width = <4>; 76 cd-gpi 76 cd-gpios = <&pioD 6 GPIO_ACTIVE_HIGH>; 77 }; 77 }; 78 }; 78 }; 79 79 80 macb0: ethernet@fffbc0 80 macb0: ethernet@fffbc000 { 81 phy-mode = "rm 81 phy-mode = "rmii"; 82 status = "okay 82 status = "okay"; 83 }; 83 }; 84 }; 84 }; 85 85 86 ebi: ebi@10000000 { 86 ebi: ebi@10000000 { 87 status = "okay"; 87 status = "okay"; 88 88 89 nand_controller: nand- 89 nand_controller: nand-controller { 90 status = "okay 90 status = "okay"; 91 pinctrl-0 = <& 91 pinctrl-0 = <&pinctrl_nand_cs &pinctrl_nand_rb>; 92 pinctrl-names 92 pinctrl-names = "default"; 93 93 94 nand@3 { 94 nand@3 { 95 reg = 95 reg = <0x3 0x0 0x800000>; 96 rb-gpi 96 rb-gpios = <&pioD 3 GPIO_ACTIVE_HIGH>; 97 cs-gpi 97 cs-gpios = <&pioC 14 GPIO_ACTIVE_HIGH>; 98 nand-b 98 nand-bus-width = <8>; 99 nand-e 99 nand-ecc-mode = "soft"; 100 nand-o 100 nand-on-flash-bbt; 101 label 101 label = "atmel_nand"; 102 102 103 partit 103 partitions { 104 104 compatible = "fixed-partitions"; 105 105 #address-cells = <1>; 106 106 #size-cells = <1>; 107 107 108 108 at91bootstrap@0 { 109 109 label = "at91bootstrap"; 110 110 reg = <0x0 0x20000>; 111 111 }; 112 112 113 113 barebox@20000 { 114 114 label = "barebox"; 115 115 reg = <0x20000 0x40000>; 116 116 }; 117 117 118 118 bareboxenv@60000 { 119 119 label = "bareboxenv"; 120 120 reg = <0x60000 0x1A0000>; 121 121 }; 122 122 123 123 kernel@200000 { 124 124 label = "bareboxenv2"; 125 125 reg = <0x200000 0x300000>; 126 126 }; 127 127 128 128 kernel@500000 { 129 129 label = "root"; 130 130 reg = <0x500000 0x400000>; 131 131 }; 132 132 133 133 data@900000 { 134 134 label = "data"; 135 135 reg = <0x900000 0x8340000>; 136 136 }; 137 }; 137 }; 138 }; 138 }; 139 }; 139 }; 140 }; 140 }; 141 141 142 usb0: ohci@700000 { 142 usb0: ohci@700000 { 143 status = "okay"; 143 status = "okay"; 144 num-ports = <2>; 144 num-ports = <2>; 145 }; 145 }; 146 146 147 usb1: ehci@800000 { 147 usb1: ehci@800000 { 148 status = "okay"; 148 status = "okay"; 149 }; 149 }; 150 }; 150 }; 151 151 152 leds { 152 leds { 153 compatible = "gpio-leds"; 153 compatible = "gpio-leds"; 154 154 155 led0 { 155 led0 { 156 label = "led0"; 156 label = "led0"; 157 gpios = <&pioD 0 GPIO_ 157 gpios = <&pioD 0 GPIO_ACTIVE_LOW>; 158 linux,default-trigger 158 linux,default-trigger = "nand-disk"; 159 }; 159 }; 160 160 161 led1 { 161 led1 { 162 label = "led1"; 162 label = "led1"; 163 gpios = <&pioD 31 GPIO 163 gpios = <&pioD 31 GPIO_ACTIVE_HIGH>; 164 linux,default-trigger 164 linux,default-trigger = "heartbeat"; 165 }; 165 }; 166 }; 166 }; 167 167 168 gpio_keys { 168 gpio_keys { 169 compatible = "gpio-keys"; 169 compatible = "gpio-keys"; 170 #address-cells = <1>; 170 #address-cells = <1>; 171 #size-cells = <0>; 171 #size-cells = <0>; 172 172 173 right { 173 right { 174 label = "SW4"; 174 label = "SW4"; 175 gpios = <&pioE 7 GPIO_ 175 gpios = <&pioE 7 GPIO_ACTIVE_LOW>; 176 linux,code = <106>; 176 linux,code = <106>; 177 }; 177 }; 178 178 179 up { 179 up { 180 label = "SW3"; 180 label = "SW3"; 181 gpios = <&pioE 8 GPIO_ 181 gpios = <&pioE 8 GPIO_ACTIVE_LOW>; 182 linux,code = <103>; 182 linux,code = <103>; 183 }; 183 }; 184 }; 184 }; 185 }; 185 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.