Linux Audio

Check our new training course

Loading...
v5.4
  1// SPDX-License-Identifier: GPL-2.0-or-later
  2/*
  3 * at91-kizboxmini.dts - Device Tree file for Overkiz Kizbox mini board
  4 *
  5 * Copyright (C) 2014 Gaël PORTAY <g.portay@overkiz.com>
 
 
  6 */
  7/dts-v1/;
  8#include "at91sam9g25.dtsi"
  9#include <dt-bindings/pwm/pwm.h>
 10
 11/ {
 12	model = "Overkiz Kizbox mini";
 13	compatible = "overkiz,kizboxmini", "atmel,at91sam9g25", "atmel,at91sam9x5", "atmel,at91sam9";
 14
 15	chosen {
 16		bootargs = "ubi.mtd=ubi";
 17		stdout-path = &dbgu;
 18	};
 19
 20	memory {
 21		reg = <0x20000000 0x8000000>;
 22	};
 23
 24	clocks {
 25		slow_xtal {
 26			clock-frequency = <32768>;
 27		};
 28
 29		main_xtal {
 30			clock-frequency = <12000000>;
 31		};
 32	};
 33
 34	ahb {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 35		nand0: nand@40000000 {
 36			nand-bus-width = <8>;
 37			nand-ecc-mode = "hw";
 38			atmel,has-pmecc;
 39			atmel,pmecc-cap = <4>;
 40			atmel,pmecc-sector-size = <512>;
 41			nand-on-flash-bbt;
 42			status = "okay";
 
 
 
 
 
 
 
 
 
 
 43		};
 44	};
 45
 46	gpio_keys {
 47		compatible = "gpio-keys";
 48		#address-cells = <1>;
 49		#size-cells = <0>;
 50
 51		prog {
 52			label = "PB_PROG";
 53			gpios = <&pioC 17 GPIO_ACTIVE_LOW>;
 54			linux,code = <0x102>;
 55			wakeup-source;
 56		};
 57
 58		reset {
 59			label = "PB_RST";
 60			gpios = <&pioC 16 GPIO_ACTIVE_LOW>;
 61			linux,code = <0x100>;
 62			wakeup-source;
 63		};
 64	};
 65
 66	pwm_leds {
 67		compatible = "pwm-leds";
 68
 69		green {
 70			label = "pwm:green:user";
 71			pwms = <&pwm0 0 10000000 0>;
 72			max-brightness = <255>;
 73			linux,default-trigger = "default-on";
 74		};
 75
 76		red {
 77			label = "pwm:red:user";
 78			pwms = <&pwm0 1 10000000 0>;
 79			max-brightness = <255>;
 80			linux,default-trigger = "default-on";
 81		};
 82	};
 83};
 84
 85&dbgu {
 86	status = "okay";
 87};
 88
 89&ebi {
 90	pinctrl-0 = <&pinctrl_ebi_addr_nand
 91		     &pinctrl_ebi_data_0_7>;
 92	pinctrl-names = "default";
 93	status = "okay";
 94
 95	nand-controller {
 96		pinctrl-0 = <&pinctrl_nand_oe_we
 97			     &pinctrl_nand_cs
 98			     &pinctrl_nand_rb>;
 99		pinctrl-names = "default";
100		status = "okay";
101
102		nand@3 {
103			reg = <0x3 0x0 0x800000>;
104			rb-gpios = <&pioD 5 GPIO_ACTIVE_HIGH>;
105			cs-gpios = <&pioD 4 GPIO_ACTIVE_HIGH>;
106			nand-bus-width = <8>;
107			nand-ecc-mode = "hw";
108			nand-ecc-strength = <4>;
109			nand-ecc-step-size = <512>;
110			nand-on-flash-bbt;
111			label = "atmel_nand";
112
113			partitions {
114				compatible = "fixed-partitions";
115				#address-cells = <1>;
116				#size-cells = <1>;
117
118				bootstrap@0 {
119					label = "bootstrap";
120					reg = <0x0 0x20000>;
121				};
122
123				ubi@20000 {
124					label = "ubi";
125					reg = <0x20000 0x7fe0000>;
126				};
127			};
128		};
129	};
130};
131
132&macb0 {
133	phy-mode = "rmii";
134	status = "okay";
135};
136
137&pwm0 {
138	pinctrl-names = "default";
139	pinctrl-0 = <&pinctrl_pwm0_pwm0_1
140		     &pinctrl_pwm0_pwm1_1>;
141	status = "okay";
142};
143
144&tcb0 {
145	timer@0 {
146		compatible = "atmel,tcb-timer";
147		reg = <0>;
148	};
149
150	timer@1 {
151		compatible = "atmel,tcb-timer";
152		reg = <1>;
153	};
154};
155
156&usart0 {
157	status = "okay";
158};
159
160&usb0 {
161	num-ports = <1>;
162	status = "okay";
163};
164
165&usb1 {
166	status = "okay";
167};
168
169&watchdog {
170	status = "okay";
171};
v4.10.11
 
  1/*
  2 * at91-kizboxmini.dts - Device Tree file for Overkiz Kizbox mini 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 "at91sam9g25.dtsi"
 10#include <dt-bindings/pwm/pwm.h>
 11
 12/ {
 13	model = "Overkiz Kizbox mini";
 14	compatible = "overkiz,kizboxmini", "atmel,at91sam9g25", "atmel,at91sam9x5", "atmel,at91sam9";
 15
 16	chosen {
 17		bootargs = "ubi.mtd=ubi";
 18		stdout-path = &dbgu;
 19	};
 20
 21	memory {
 22		reg = <0x20000000 0x8000000>;
 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			usart0: serial@f801c000 {
 38				status = "okay";
 39			};
 40
 41			macb0: ethernet@f802c000 {
 42				phy-mode = "rmii";
 43				status = "okay";
 44			};
 45
 46			pwm0: pwm@f8034000 {
 47				pinctrl-names = "default";
 48				pinctrl-0 = <&pinctrl_pwm0_pwm0_1
 49					     &pinctrl_pwm0_pwm1_1>;
 50				status = "okay";
 51			};
 52
 53			dbgu: serial@fffff200 {
 54				status = "okay";
 55			};
 56
 57			watchdog@fffffe40 {
 58				status = "okay";
 59			};
 60		};
 61
 62		usb0: ohci@00600000 {
 63			num-ports = <1>;
 64			status = "okay";
 65		};
 66
 67		usb1: ehci@00700000 {
 68			status = "okay";
 69		};
 70
 71		nand0: nand@40000000 {
 72			nand-bus-width = <8>;
 73			nand-ecc-mode = "hw";
 74			atmel,has-pmecc;
 75			atmel,pmecc-cap = <4>;
 76			atmel,pmecc-sector-size = <512>;
 77			nand-on-flash-bbt;
 78			status = "okay";
 79
 80			bootstrap@0 {
 81				label = "bootstrap";
 82				reg = <0x0 0x20000>;
 83			};
 84
 85			ubi@20000 {
 86				label = "ubi";
 87				reg = <0x20000 0x7fe0000>;
 88			};
 89		};
 90	};
 91
 92	gpio_keys {
 93		compatible = "gpio-keys";
 94		#address-cells = <1>;
 95		#size-cells = <0>;
 96
 97		prog {
 98			label = "PB_PROG";
 99			gpios = <&pioC 17 GPIO_ACTIVE_LOW>;
100			linux,code = <0x102>;
101			wakeup-source;
102		};
103
104		reset {
105			label = "PB_RST";
106			gpios = <&pioC 16 GPIO_ACTIVE_LOW>;
107			linux,code = <0x100>;
108			wakeup-source;
109		};
110	};
111
112	pwm_leds {
113		compatible = "pwm-leds";
114
115		green {
116			label = "pwm:green:user";
117			pwms = <&pwm0 0 10000000 0>;
118			max-brightness = <255>;
119			linux,default-trigger = "default-on";
120		};
121
122		red {
123			label = "pwm:red:user";
124			pwms = <&pwm0 1 10000000 0>;
125			max-brightness = <255>;
126			linux,default-trigger = "default-on";
127		};
128	};
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
129};