lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20160519200013.GM2890@piout.net>
Date:	Thu, 19 May 2016 22:00:13 +0200
From:	Alexandre Belloni <alexandre.belloni@...e-electrons.com>
To:	Nicolas Ferre <nicolas.ferre@...el.com>
Cc:	linux-arm-kernel@...ts.infradead.org,
	Boris BREZILLON <boris.brezillon@...e-electrons.com>,
	linux-kernel@...r.kernel.org,
	Jean-Christophe PLAGNIOL-VILLARD <plagnioj@...osoft.com>
Subject: Re: [PATCH] ARM: dts: at91: add at91sam9260ek board DT

On 19/05/2016 at 14:54:22 +0200, Nicolas Ferre wrote :
> Add Device Tree source file for at91sam9260ek board. This official Atmel
> Evaluation Kit is designed around a SoC based on a ARM 926 core the
> at91sam9260.
> 
> The board is also added to the dts Makefile.
> 
> Signed-off-by: Nicolas Ferre <nicolas.ferre@...el.com>
Acked-by: Alexandre Belloni <alexandre.belloni@...e-electrons.com>

> ---
> Hi,
> 
> This DTS file was sitting in my kernel tree for a long time... So, revived and
> updated, here it is as I'm sure it can be useful. Even if the board itself is
> pretty old.
> 
> Bye,
> 
>  arch/arm/boot/dts/Makefile          |   1 +
>  arch/arm/boot/dts/at91sam9260ek.dts | 211 ++++++++++++++++++++++++++++++++++++
>  2 files changed, 212 insertions(+)
>  create mode 100644 arch/arm/boot/dts/at91sam9260ek.dts
> 
> diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
> index 8f9f1c2ac96b..6893415a53a3 100644
> --- a/arch/arm/boot/dts/Makefile
> +++ b/arch/arm/boot/dts/Makefile
> @@ -17,6 +17,7 @@ dtb-$(CONFIG_SOC_SAM_V4_V5) += \
>  	evk-pro3.dtb \
>  	tny_a9260.dtb \
>  	usb_a9260.dtb \
> +	at91sam9260ek.dtb \
>  	at91sam9261ek.dtb \
>  	at91sam9263ek.dtb \
>  	tny_a9263.dtb \
> diff --git a/arch/arm/boot/dts/at91sam9260ek.dts b/arch/arm/boot/dts/at91sam9260ek.dts
> new file mode 100644
> index 000000000000..43875d18808f
> --- /dev/null
> +++ b/arch/arm/boot/dts/at91sam9260ek.dts
> @@ -0,0 +1,211 @@
> +/*
> + * Device Tree file for Atmel at91sam9260 Evaluation Kit
> + *
> + *  Copyright (C) 2016 Atmel,
> + *		  2016 Nicolas Ferre <nicolas.ferre@...el.com>
> + *
> + * This file is dual-licensed: you can use it either under the terms
> + * of the GPL or the X11 license, at your option. Note that this dual
> + * licensing only applies to this file, and not this project as a
> + * whole.
> + *
> + *  a) This file is free software; you can redistribute it and/or
> + *     modify it under the terms of the GNU General Public License as
> + *     published by the Free Software Foundation; either version 2 of the
> + *     License, or (at your option) any later version.
> + *
> + *     This file is distributed in the hope that it will be useful,
> + *     but WITHOUT ANY WARRANTY; without even the implied warranty of
> + *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
> + *     GNU General Public License for more details.
> + *
> + * Or, alternatively,
> + *
> + *  b) Permission is hereby granted, free of charge, to any person
> + *     obtaining a copy of this software and associated documentation
> + *     files (the "Software"), to deal in the Software without
> + *     restriction, including without limitation the rights to use,
> + *     copy, modify, merge, publish, distribute, sublicense, and/or
> + *     sell copies of the Software, and to permit persons to whom the
> + *     Software is furnished to do so, subject to the following
> + *     conditions:
> + *
> + *     The above copyright notice and this permission notice shall be
> + *     included in all copies or substantial portions of the Software.
> + *
> + *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
> + *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
> + *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
> + *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
> + *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
> + *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
> + *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
> + *     OTHER DEALINGS IN THE SOFTWARE.
> + */
> +/dts-v1/;
> +#include "at91sam9260.dtsi"
> +
> +/ {
> +	model = "Atmel at91sam9260ek";
> +	compatible = "atmel,at91sam9260ek", "atmel,at91sam9260", "atmel,at91sam9";
> +
> +	chosen {
> +		stdout-path = &dbgu;
> +	};
> +
> +	memory {
> +		reg = <0x20000000 0x4000000>;
> +	};
> +
> +	clocks {
> +		slow_xtal {
> +			clock-frequency = <32768>;
> +		};
> +
> +		main_xtal {
> +			clock-frequency = <18432000>;
> +		};
> +	};
> +
> +	ahb {
> +		apb {
> +			usb1: gadget@...a4000 {
> +				atmel,vbus-gpio = <&pioC 5 GPIO_ACTIVE_HIGH>;
> +				status = "okay";
> +			};
> +
> +			mmc0: mmc@...a8000 {
> +				pinctrl-0 = <
> +					&pinctrl_board_mmc0_slot1
> +					&pinctrl_mmc0_clk
> +					&pinctrl_mmc0_slot1_cmd_dat0
> +					&pinctrl_mmc0_slot1_dat1_3>;
> +				status = "okay";
> +				slot@1 {
> +					reg = <1>;
> +					bus-width = <4>;
> +					cd-gpios = <&pioC 9 GPIO_ACTIVE_HIGH>;
> +				};
> +			};
> +
> +			usart0: serial@...b0000 {
> +				pinctrl-0 =
> +					<&pinctrl_usart0
> +					 &pinctrl_usart0_rts
> +					 &pinctrl_usart0_cts
> +					 &pinctrl_usart0_dtr_dsr
> +					 &pinctrl_usart0_dcd
> +					 &pinctrl_usart0_ri>;
> +				status = "okay";
> +			};
> +
> +			usart1: serial@...b4000 {
> +				status = "okay";
> +			};
> +
> +			ssc0: ssc@...bc000 {
> +				status = "okay";
> +				pinctrl-0 = <&pinctrl_ssc0_tx>;
> +			};
> +
> +			macb0: ethernet@...c4000 {
> +				phy-mode = "rmii";
> +				status = "okay";
> +			};
> +
> +			spi0: spi@...c8000 {
> +				cs-gpios = <0>, <&pioC 11 0>, <0>, <0>;
> +				mtd_dataflash@0 {
> +					compatible = "atmel,at45", "atmel,dataflash";
> +					spi-max-frequency = <50000000>;
> +					reg = <1>;
> +				};
> +			};
> +
> +			dbgu: serial@...ff200 {
> +				status = "okay";
> +			};
> +
> +			pinctrl@...ff400 {
> +				board {
> +					pinctrl_board_mmc0_slot1: mmc0_slot1-board {
> +						atmel,pins =
> +							<AT91_PIOC 9 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>;
> +					};
> +				};
> +			};
> +
> +			shdwc@...ffd10 {
> +				atmel,wakeup-counter = <10>;
> +				atmel,wakeup-rtt-timer;
> +			};
> +
> +			rtc@...ffd20 {
> +				atmel,rtt-rtc-time-reg = <&gpbr 0x0>;
> +				status = "okay";
> +			};
> +
> +			watchdog@...ffd40 {
> +				status = "okay";
> +			};
> +
> +			gpbr: syscon@...ffd50 {
> +				status = "okay";
> +			};
> +		};
> +
> +		usb0: ohci@...00000 {
> +			num-ports = <2>;
> +			status = "okay";
> +		};
> +
> +		nand0: nand@...00000 {
> +			nand-bus-width = <8>;
> +			nand-ecc-mode = "soft";
> +			nand-on-flash-bbt;
> +			status = "okay";
> +		};
> +	};
> +
> +	gpio_keys {
> +		compatible = "gpio-keys";
> +
> +		btn3 {
> +			label = "Button 3";
> +			gpios = <&pioA 30 GPIO_ACTIVE_LOW>;
> +			linux,code = <0x103>;
> +			gpio-key,wakeup;
> +		};
> +
> +		btn4 {
> +			label = "Button 4";
> +			gpios = <&pioA 31 GPIO_ACTIVE_LOW>;
> +			linux,code = <0x104>;
> +			gpio-key,wakeup;
> +		};
> +	};
> +
> +	i2c@0 {
> +		status = "okay";
> +
> +		24c512@50 {
> +			compatible = "24c512";
> +			reg = <0x50>;
> +		};
> +	};
> +
> +	leds {
> +		compatible = "gpio-leds";
> +
> +		ds1 {
> +			label = "ds1";
> +			gpios = <&pioA 9 GPIO_ACTIVE_HIGH>;
> +			linux,default-trigger = "heartbeat";
> +		};
> +
> +		ds5 {
> +			label = "ds5";
> +			gpios = <&pioA 6 GPIO_ACTIVE_LOW>;
> +		};
> +	};
> +};
> -- 
> 2.1.3
> 

-- 
Alexandre Belloni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ