Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1739463ybg; Sat, 19 Oct 2019 01:27:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqx8Zm1GsJkam1wCQFqgKWszCb5eAqS7RPRj5vW/U8+mXN3WqeofdwZ8A2dTensxwZOYEPup X-Received: by 2002:a17:906:160f:: with SMTP id m15mr12074215ejd.217.1571473669171; Sat, 19 Oct 2019 01:27:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571473669; cv=none; d=google.com; s=arc-20160816; b=yWR4sDUSCxC136DkAbyShMovjITBHhHZmRTDW5+bUr78m89pRF2liZ1iyKKx9WhbsI SjpBxjS/PQbWqEbhasNfyTJVVh/FEDqepk2SqJFGP34MDywtGfc/2ke1iWVgiVEosUM1 sXWuF0hkwrXRrHG2ey3i1tPGx3i+Ny6aXnn1EWEc67o73HSjU7g2sgqidFcRtd30hkyh jT97Tq7KZb0eSTyYU6va1zM9dHdxUPJlnZMSuJgzd+EMj2q2PqFWx6nYK1J9JX3Ja6BY nXsuaOHXoEEbQvobV9s9/XZEwthnrjpSfxumuOBzsDXr48vOc9Q/dENiMaSFNsZAB4d1 o+Fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=5UiDCAHz6qMUDHHKYnHwAF5H+4IvZVf2M2MbnX4S3cI=; b=h0AiBQX1ImK4wheWDDrpgDB8lWXM1OI7MlQU5TKL8gNsm/AawNDNJI6RcSoZB4Dmo/ i8cjw0l9MYLBpaieC6K4H+wBkU3gLAV8NddTDNiv+f1wRte8Rbod3AYo8yE6H3mMi9LW buiGEOvcdBcAs3bZGKWwX2ypOMX3VWlITPwIm9jZAHu+3e0JkpRlN5g5C1UVV6ZP8jU4 s/oF04CuRlwy7hhinLK//AhCwCeTgEhtKjfe/d+Ph9tNq2OM96pgXfknKa246sXfOABO 3+MibDapzqJBCAmNA19vFpxssRutH8HvVmJXhCgH+xXgceQtqcG1+T96LYU6pa9nAUlh FV4g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g12si5083420ejf.121.2019.10.19.01.27.26; Sat, 19 Oct 2019 01:27:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2408322AbfJROHy (ORCPT + 99 others); Fri, 18 Oct 2019 10:07:54 -0400 Received: from relay12.mail.gandi.net ([217.70.178.232]:39319 "EHLO relay12.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2410336AbfJROHv (ORCPT ); Fri, 18 Oct 2019 10:07:51 -0400 Received: from localhost (aclermont-ferrand-651-1-259-53.w86-207.abo.wanadoo.fr [86.207.98.53]) (Authenticated sender: kamel.bouhara@bootlin.com) by relay12.mail.gandi.net (Postfix) with ESMTPSA id 04AF920000A; Fri, 18 Oct 2019 14:07:48 +0000 (UTC) From: Kamel Bouhara To: Rob Herring , Nicolas Ferre , Alexandre Belloni , Ludovic Desroches , linux-arm-kernel@lists.infradead.org Cc: Thomas Petazzoni , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Kamel Bouhara , =?UTF-8?q?K=C3=A9vin=20RAYMOND?= , Mickael GARDET Subject: [PATCH 2/2] ARM: at91: add support for SmartKiz board Date: Fri, 18 Oct 2019 16:06:58 +0200 Message-Id: <20191018140658.31703-3-kamel.bouhara@bootlin.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191018140658.31703-1-kamel.bouhara@bootlin.com> References: <20191018140658.31703-1-kamel.bouhara@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add the devicetree for the Overkiz's SmartKiz board. Signed-off-by: Kamel Bouhara Signed-off-by: Kévin RAYMOND Signed-off-by: Mickael GARDET --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/at91-smartkiz.dts | 112 ++++++++++++++++++++++++++++ 2 files changed, 113 insertions(+) create mode 100644 arch/arm/boot/dts/at91-smartkiz.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 6b3a65f3f6f8..12a6b8c6b27e 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -40,6 +40,7 @@ dtb-$(CONFIG_SOC_AT91SAM9) += \ at91-kizboxmini.dtb \ at91-kizboxmini-mb.dtb \ at91-kizboxmini-rd.dtb \ + at91-smartkiz.dtb \ at91-wb45n.dtb \ at91sam9g15ek.dtb \ at91sam9g25ek.dtb \ diff --git a/arch/arm/boot/dts/at91-smartkiz.dts b/arch/arm/boot/dts/at91-smartkiz.dts new file mode 100644 index 000000000000..dae7e7b68462 --- /dev/null +++ b/arch/arm/boot/dts/at91-smartkiz.dts @@ -0,0 +1,112 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (C) 2017-2018 Overkiz SAS + * Author: Mickael Gardet + * Kévin Raymond + * Dorian Rocipon + */ +/dts-v1/; +#include "at91-kizboxmini_common.dtsi" + +/ { + model = "Overkiz SmartKiz"; + compatible = "overkiz,smartkiz", "atmel,at91sam9g25", + "atmel,at91sam9x5", "atmel,at91sam9"; + + clocks { + slow_xtal { + clock-frequency = <32768>; + }; + adc_op_clk { + status = "okay"; + }; + }; + + aliases { + serial5 = &uart0; + }; + + pio_keys { + hk_reset { + label = "HK_RESET"; + gpios = <&pioC 13 GPIO_ACTIVE_HIGH>; + }; + + power_rf { + label = "POWER_RF"; + gpios = <&pioA 20 GPIO_ACTIVE_HIGH>; + }; + + power_wifi { + label = "POWER_WIFI"; + gpios = <&pioA 21 GPIO_ACTIVE_HIGH>; + }; + }; +}; + +&pinctrl { + i2c1 { + pinctrl_i2c1: i2c1-0 { + atmel,pins = + ; + }; + }; + + adc0 { + pinctrl_adc0_ad0: adc0_ad0-0 { + /* pull-up disable */ + atmel,pins = ; + }; + pinctrl_adc0_ad5: adc0_ad5-0 { + /* pull-up disable */ + atmel,pins = ; + }; + pinctrl_adc0_ad6: adc0_ad6-0 { + /* pull-up disable */ + atmel,pins = ; + }; + pinctrl_adc0_ad11: adc0_ad11-0 { + /* pull-up disable */ + atmel,pins = ; + }; + }; +}; + +&i2c1 { + dmas = <0>, <0>; + pinctrl-0 = <&pinctrl_i2c1>; + status = "disabled"; +}; + +&macb0 { + status = "disabled"; +}; + +&rtc { + status = "okay"; +}; + +&leds { + blue { + status = "okay"; + }; +}; + +&adc0 { + atmel,adc-vref = <2500>; + pinctrl-names = "default"; + pinctrl-0 = < + &pinctrl_adc0_ad0 + &pinctrl_adc0_ad5 + &pinctrl_adc0_ad6 + &pinctrl_adc0_ad11 + >; + atmel,adc-channels-used = <0x0861>; + status = "okay"; +}; + +&uart0 { + status = "okay"; +}; + -- 2.23.0