1 // SPDX-License-Identifier: GPL-2.0-or-later 1 // SPDX-License-Identifier: GPL-2.0-or-later 2 /* 2 /* 3 * at91-kizbox.dts - Device Tree file for Over 3 * at91-kizbox.dts - Device Tree file for Overkiz Kizbox board 4 * 4 * 5 * Copyright (C) 2012-2014 Boris BREZILLON <b.b 5 * Copyright (C) 2012-2014 Boris BREZILLON <b.brezillon@overkiz.com> 6 * 2014-2015 Gaël PORTAY <g.port 6 * 2014-2015 Gaël PORTAY <g.portay@overkiz.com> 7 */ 7 */ 8 /dts-v1/; 8 /dts-v1/; 9 #include "at91sam9g20.dtsi" 9 #include "at91sam9g20.dtsi" 10 #include <dt-bindings/pwm/pwm.h> 10 #include <dt-bindings/pwm/pwm.h> 11 11 12 / { 12 / { 13 model = "Overkiz Kizbox"; 13 model = "Overkiz Kizbox"; 14 compatible = "overkiz,kizbox", "atmel, 14 compatible = "overkiz,kizbox", "atmel,at91sam9g20", "atmel,at91sam9"; 15 15 16 chosen { 16 chosen { 17 bootargs = "ubi.mtd=ubi"; 17 bootargs = "ubi.mtd=ubi"; 18 stdout-path = &dbgu; 18 stdout-path = &dbgu; 19 }; 19 }; 20 20 21 memory@20000000 { 21 memory@20000000 { 22 reg = <0x20000000 0x2000000>; 22 reg = <0x20000000 0x2000000>; 23 }; 23 }; 24 24 25 clocks { 25 clocks { 26 main_xtal { 26 main_xtal { 27 clock-frequency = <184 27 clock-frequency = <18432000>; 28 }; 28 }; 29 }; 29 }; 30 30 31 gpio-keys { 31 gpio-keys { 32 compatible = "gpio-keys"; 32 compatible = "gpio-keys"; 33 33 34 button-reset { 34 button-reset { 35 label = "PB_RST"; 35 label = "PB_RST"; 36 gpios = <&pioB 30 GPIO 36 gpios = <&pioB 30 GPIO_ACTIVE_HIGH>; 37 linux,code = <0x100>; 37 linux,code = <0x100>; 38 wakeup-source; 38 wakeup-source; 39 }; 39 }; 40 40 41 button-user { 41 button-user { 42 label = "PB_USER"; 42 label = "PB_USER"; 43 gpios = <&pioB 31 GPIO 43 gpios = <&pioB 31 GPIO_ACTIVE_HIGH>; 44 linux,code = <0x101>; 44 linux,code = <0x101>; 45 wakeup-source; 45 wakeup-source; 46 }; 46 }; 47 }; 47 }; 48 48 49 led-controller { 49 led-controller { 50 compatible = "pwm-leds"; 50 compatible = "pwm-leds"; 51 51 52 led-1 { 52 led-1 { 53 label = "pwm:green:net 53 label = "pwm:green:network"; 54 pwms = <&tcb1_pwm1 0 1 54 pwms = <&tcb1_pwm1 0 10000000 PWM_POLARITY_INVERTED>; 55 max-brightness = <255> 55 max-brightness = <255>; 56 linux,default-trigger 56 linux,default-trigger = "default-on"; 57 }; 57 }; 58 58 59 led-2 { 59 led-2 { 60 label = "pwm:red:netwo 60 label = "pwm:red:network"; 61 pwms = <&tcb1_pwm2 0 1 61 pwms = <&tcb1_pwm2 0 10000000 PWM_POLARITY_INVERTED>; 62 max-brightness = <255> 62 max-brightness = <255>; 63 linux,default-trigger 63 linux,default-trigger = "default-on"; 64 }; 64 }; 65 65 66 led-3 { 66 led-3 { 67 label = "pwm:green:use 67 label = "pwm:green:user"; 68 pwms = <&tcb1_pwm0 0 1 68 pwms = <&tcb1_pwm0 0 10000000 PWM_POLARITY_INVERTED>; 69 max-brightness = <255> 69 max-brightness = <255>; 70 linux,default-trigger 70 linux,default-trigger = "default-on"; 71 }; 71 }; 72 72 73 led-4 { 73 led-4 { 74 label = "pwm:red:user" 74 label = "pwm:red:user"; 75 pwms = <&tcb1_pwm0 1 1 75 pwms = <&tcb1_pwm0 1 10000000 PWM_POLARITY_INVERTED>; 76 max-brightness = <255> 76 max-brightness = <255>; 77 linux,default-trigger 77 linux,default-trigger = "default-on"; 78 }; 78 }; 79 }; 79 }; 80 }; 80 }; 81 81 82 &tcb0 { 82 &tcb0 { 83 timer@0 { 83 timer@0 { 84 compatible = "atmel,tcb-timer" 84 compatible = "atmel,tcb-timer"; 85 reg = <0>, <1>; 85 reg = <0>, <1>; 86 }; 86 }; 87 87 88 timer@2 { 88 timer@2 { 89 compatible = "atmel,tcb-timer" 89 compatible = "atmel,tcb-timer"; 90 reg = <2>; 90 reg = <2>; 91 }; 91 }; 92 }; 92 }; 93 93 94 &tcb1 { 94 &tcb1 { 95 tcb1_pwm0: pwm@0 { 95 tcb1_pwm0: pwm@0 { 96 compatible = "atmel,tcb-pwm"; 96 compatible = "atmel,tcb-pwm"; 97 reg = <0>; 97 reg = <0>; 98 #pwm-cells = <3>; 98 #pwm-cells = <3>; 99 pinctrl-names = "default"; 99 pinctrl-names = "default"; 100 pinctrl-0 = <&pinctrl_tcb1_tio 100 pinctrl-0 = <&pinctrl_tcb1_tioa0 &pinctrl_tcb1_tiob0>; 101 }; 101 }; 102 102 103 tcb1_pwm1: pwm@1 { 103 tcb1_pwm1: pwm@1 { 104 compatible = "atmel,tcb-pwm"; 104 compatible = "atmel,tcb-pwm"; 105 reg = <1>; 105 reg = <1>; 106 #pwm-cells = <3>; 106 #pwm-cells = <3>; 107 pinctrl-names = "default"; 107 pinctrl-names = "default"; 108 pinctrl-0 = <&pinctrl_tcb1_tio 108 pinctrl-0 = <&pinctrl_tcb1_tioa1>; 109 }; 109 }; 110 110 111 tcb1_pwm2: pwm@2 { 111 tcb1_pwm2: pwm@2 { 112 compatible = "atmel,tcb-pwm"; 112 compatible = "atmel,tcb-pwm"; 113 reg = <2>; 113 reg = <2>; 114 #pwm-cells = <3>; 114 #pwm-cells = <3>; 115 pinctrl-names = "default"; 115 pinctrl-names = "default"; 116 pinctrl-0 = <&pinctrl_tcb1_tio 116 pinctrl-0 = <&pinctrl_tcb1_tioa2>; 117 }; 117 }; 118 }; 118 }; 119 119 120 &ebi { 120 &ebi { 121 status = "okay"; 121 status = "okay"; 122 }; 122 }; 123 123 124 &nand_controller { 124 &nand_controller { 125 status = "okay"; 125 status = "okay"; 126 pinctrl-0 = <&pinctrl_nand_cs &pinctrl 126 pinctrl-0 = <&pinctrl_nand_cs &pinctrl_nand_rb>; 127 pinctrl-names = "default"; 127 pinctrl-names = "default"; 128 128 129 nand@3 { 129 nand@3 { 130 reg = <0x3 0x0 0x800000>; 130 reg = <0x3 0x0 0x800000>; 131 rb-gpios = <&pioC 13 GPIO_ACTI 131 rb-gpios = <&pioC 13 GPIO_ACTIVE_HIGH>; 132 cs-gpios = <&pioC 14 GPIO_ACTI 132 cs-gpios = <&pioC 14 GPIO_ACTIVE_HIGH>; 133 nand-bus-width = <8>; 133 nand-bus-width = <8>; 134 nand-ecc-mode = "soft"; 134 nand-ecc-mode = "soft"; 135 nand-on-flash-bbt; 135 nand-on-flash-bbt; 136 label = "atmel_nand"; 136 label = "atmel_nand"; 137 137 138 partitions { 138 partitions { 139 compatible = "fixed-pa 139 compatible = "fixed-partitions"; 140 #address-cells = <1>; 140 #address-cells = <1>; 141 #size-cells = <1>; 141 #size-cells = <1>; 142 142 143 bootstrap@0 { 143 bootstrap@0 { 144 label = "boots 144 label = "bootstrap"; 145 reg = <0x0 0x2 145 reg = <0x0 0x20000>; 146 }; 146 }; 147 147 148 ubi@20000 { 148 ubi@20000 { 149 label = "ubi"; 149 label = "ubi"; 150 reg = <0x20000 150 reg = <0x20000 0x7fe0000>; 151 }; 151 }; 152 }; 152 }; 153 }; 153 }; 154 }; 154 }; 155 155 156 &macb0 { 156 &macb0 { 157 phy-mode = "mii"; 157 phy-mode = "mii"; 158 pinctrl-0 = <&pinctrl_macb_rmii 158 pinctrl-0 = <&pinctrl_macb_rmii 159 &pinctrl_macb_rmii_mii_al 159 &pinctrl_macb_rmii_mii_alt>; 160 status = "okay"; 160 status = "okay"; 161 }; 161 }; 162 162 163 &usart3 { 163 &usart3 { 164 status = "okay"; 164 status = "okay"; 165 }; 165 }; 166 166 167 &dbgu { 167 &dbgu { 168 status = "okay"; 168 status = "okay"; 169 }; 169 }; 170 170 171 &watchdog { 171 &watchdog { 172 timeout-sec = <15>; 172 timeout-sec = <15>; 173 atmel,max-heartbeat-sec = <16>; 173 atmel,max-heartbeat-sec = <16>; 174 atmel,min-heartbeat-sec = <0>; 174 atmel,min-heartbeat-sec = <0>; 175 status = "okay"; 175 status = "okay"; 176 }; 176 }; 177 177 178 &usb0 { 178 &usb0 { 179 num-ports = <1>; 179 num-ports = <1>; 180 status = "okay"; 180 status = "okay"; 181 }; 181 }; 182 182 183 &i2c_gpio0 { 183 &i2c_gpio0 { 184 status = "okay"; 184 status = "okay"; 185 185 186 rtc: pcf8563@51 { 186 rtc: pcf8563@51 { 187 compatible = "nxp,pcf8563"; 187 compatible = "nxp,pcf8563"; 188 reg = <0x51>; 188 reg = <0x51>; 189 }; 189 }; 190 }; 190 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.