Linux Audio

Check our new training course

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