From patchwork Tue Jan 10 13:18:33 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Rosin X-Patchwork-Id: 9507163 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1519D601EA for ; Tue, 10 Jan 2017 13:20:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 04FA227E63 for ; Tue, 10 Jan 2017 13:20:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EC26528553; Tue, 10 Jan 2017 13:20:41 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 55E6F27E63 for ; Tue, 10 Jan 2017 13:20:41 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cQwLb-0006QJ-LA; Tue, 10 Jan 2017 13:20:19 +0000 Received: from mail-db5eur01on0107.outbound.protection.outlook.com ([104.47.2.107] helo=EUR01-DB5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cQwLE-0004dj-Sd for linux-arm-kernel@lists.infradead.org; Tue, 10 Jan 2017 13:19:59 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axentiatech.onmicrosoft.com; s=selector1-axentia-se; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=s4kdyGgezofAVQc15XabAa3DGs8rU2o+QgonAz4+/Rs=; b=EERB+J4PE08zyLx2x3+bIpSpJGyCK8z2NM5cjpVTcO0zaF/NjQAJAJzi9CjkM8pbcBDFTtbcko04kGfEaiFoVOExtsarpltHx1A8P9IxtmO2wfE9xolC4v62kIdqdttZc5Er5saS22OYjuCzQKpOVpjF7Dj+1nAKAZuLinnruU4= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=peda@axentia.se; Received: from localhost.localdomain (217.210.101.82) by VI1PR0201MB2318.eurprd02.prod.outlook.com (10.168.63.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.829.7; Tue, 10 Jan 2017 13:19:36 +0000 From: Peter Rosin To: linux-kernel@vger.kernel.org Subject: [PATCH v6 1/2] ARM: dts: at91: add devicetree for the Axentia TSE-850 Date: Tue, 10 Jan 2017 14:18:33 +0100 Message-Id: <1484054314-6244-2-git-send-email-peda@axentia.se> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1484054314-6244-1-git-send-email-peda@axentia.se> References: <1484054314-6244-1-git-send-email-peda@axentia.se> MIME-Version: 1.0 X-Originating-IP: [217.210.101.82] X-ClientProxiedBy: DB5PR08CA0034.eurprd08.prod.outlook.com (10.163.102.172) To VI1PR0201MB2318.eurprd02.prod.outlook.com (10.168.63.20) X-MS-Office365-Filtering-Correlation-Id: 937c6b07-6c00-4cb2-bb8e-08d4395b5434 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:VI1PR0201MB2318; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0201MB2318; 3:vUDDRcth0WDsNJHtYtYcnyy6Izt3GY6C9HKBTUu1r3Ijt6v8QQhqRD9SWgnACqTN2RMsBSANdBvWi1iPedqF2SZKpQ57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qtp/t1u1fDdKt8tkVFz6CVfk/OQInJaH/syHPk0HaoEUrjKCA4fknaaD22R1u0r1MNqEsh4O1Z6kwKS/y7vpSoDoMwb0Wcv7NVy2I5f1uis9tNtJtoOX7YczlLce7sgTaJ3QjEYfI1jVgqCfsWc2DB5D3Rz/i+YwanDB5mGrqSYXp71zomjhpgS9T1cH9k1+hj7KJOKhPvdca8NGOa8NDWqNwx1znzinLEEp7YNWjVxpH2UlSYiQkp4M9dO2nDXQLDyE2HWe+S/wZklSSxi1So1d0yQzmYjXvIiX9W+rWL/wRCS609Bih5vpe7Ze5NZu0iXJJaMJDUftGbnldh2ffwf56hebSHSyqCBSJ8bChOikEa1eArMfbXNxWo/pnSEGBZmfpFpXGZ3l5mAC4pJAI+H1aRCi6aXF+gSY25pQX2TdC20vbJhxcNLugQevgkHwu5F4wyzGvHQ5cZFj3Gp8vvvVOklXgwQt+ykiOUf1sDnc0NCQ1do3gAMFyDkVQfPzmE9XKAk5b/tec3ZIPIj0k5NG8g== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(258649278758335); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6041248)(20161123560025)(20161123558021)(20161123555025)(20161123562025)(20161123564025)(6072148); SRVR:VI1PR0201MB2318; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0201MB2318; X-Forefront-PRVS: 01834E39B7 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6069001)(6009001)(7916002)(39450400003)(189002)(199003)(54906002)(305945005)(81166006)(50226002)(47776003)(50466002)(81156014)(74482002)(36756003)(5003940100001)(92566002)(6116002)(33646002)(575784001)(2906002)(48376002)(4326007)(8676002)(3846002)(66066001)(2361001)(110136003)(101416001)(6916009)(2950100002)(2351001)(6666003)(42186005)(106356001)(50986999)(105586002)(6486002)(86362001)(25786008)(7736002)(97736004)(5660300001)(6512007)(189998001)(6506006)(68736007)(38730400001)(76176999)(42262002); DIR:OUT; SFP:1102; SCL:1; SRVR:VI1PR0201MB2318; H:localhost.localdomain; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: axentia.se does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR0201MB2318; 23:W1Qr0k4A47xHsCwk7t31kB6B1EOZ8mZKuROriMM?= =?us-ascii?Q?kvNa70bgbh35592GdReniSfZjzW8wI+McWSAzEM7wcVscCE09bOhnGfMwdAO?= =?us-ascii?Q?mwgBsbQrfQBEHvPkpnxANLwGBPBodWxApBC0rS46oYtnIPFi5T48paEuAze0?= =?us-ascii?Q?TlHr76Anc1a4zd5iJRMtnecW444t1rk2brHJbwJpqB3CGmh8El+tSjCqxLvo?= =?us-ascii?Q?GQApRQ4dG4FGEFo3Rk8msZNf7eqh7YiQv5n8IjP2Y+OHb+tSfkgl94y2CxTn?= =?us-ascii?Q?Lhxlg7bcYLnralW+bEakOezXhBETkG0Ti3uPyaVYdLUbg85yyTJBVgGWs04O?= =?us-ascii?Q?Orj4ZGS4dmQ4teCwbRCwres0o3B2ZOp5tjiWWewtPhnDEMcGRbYSYQ6aVfFk?= =?us-ascii?Q?KwjXbTonhvD/WFWVCixdDRBCv5dmpv5U/lLh5v6C88STmVHrvuVvhyHvMBmC?= =?us-ascii?Q?IltB0KkkvaLv8qAGTJaPiSiLY1qNhfqQ/Ya8BkIs6DBrqrCy3Nn42IBBRark?= =?us-ascii?Q?BRXuJr5J9xq+cxR+4+fli18T4A2dJLPvez7nH/4Fc46+fXW+ZKO5X3oCpQ5b?= =?us-ascii?Q?fq42+I18TIbaxjwru9nlYFsPWeq0bYOkAzVSmIfoiColPsqDkzjCqgh0+WWz?= =?us-ascii?Q?F8BpJTACbSMwWvCMdMq8q2rvWbmd0bu6vVmoj9rjx2kDViqm2RP2K/b9+Hbe?= =?us-ascii?Q?IL320suQPjQv8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n9VTlEXLsbTK6fUy+YaRsd4sVF7MVtLKD1+OE=; 5:blRLKxsa6+Kf00frA2YMsfkzpAmzbqq/3wgDpfelYg2MhLvdtA2j8bRgLxEMlys2SR2d/DWqkx7ZrJ3U/TV5mf7wSzjHf0XmYxfw7jezEShIMJa/Xm2N/DMfqmXZx1uZ1dqnUvc5TbudhOV+WkFOWikLiMmhZvl757GH83VYO9s=; 24:JdlO0fRwHiTj59uz39gEdVttVMhqYumZA178q78Y9bjrCo+G28kWqYlCC1HcN+Tjys+u+FERnk087Zhsju9jDecqcMWGaWtmMg471hXW4Ag= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; VI1PR0201MB2318; 7:DNI6N2e9kpqfZAaUF9BZFh/P85pjTvzJ/b2Wb+q2xzlZLXXuvhPRCHWjpO71l09i/tjCNupegm2WUpnFeYmRH7Bj2+GQeN7zgBwz9mq+B6T1IQqACPIEAaHpSWmYj9rfUJcMu3XLhlRSdevXMOKllD17z1hbLVOgkFRiXIRD4ZaxF1Y2XHFc5mqueFMRsbtPnb/ZNwS1ngsTCuKWEcPvGH0esNs1M3G/96NNZx3sbmwcorr2xyL2bKRxy7a0mcFMo1Qqvhp56Qssp+aws7ejBkoock2qIxUecL1SEdavnnafYlHu4tj2Zn2KBaXQ6T4HurBGP3DXKO1QSeCWt8z3wnS2GxkBGAJBSX9pQcf0NTuC+nMCRa3wYhiAHiDt/6D8oHm3HHwAw59ObJOpgvKQREyWF2lFMSYYjjWSL3GrF7YVTusXWA1MupA1ODOuk7w2i4mBBqN8nHqrv4OFUkZNdw== X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jan 2017 13:19:36.8088 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0201MB2318 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170110_051957_131776_051176BE X-CRM114-Status: GOOD ( 16.35 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, Nicolas Ferre , Russell King , Rob Herring , Alexandre Belloni , Jean-Christophe Plagniol-Villard , Peter Rosin , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The Axentia TSE-850 is a SAMA5D3-based device designed to generate FM subcarrier signals. Acked-by: Rob Herring Signed-off-by: Peter Rosin --- Documentation/devicetree/bindings/arm/axentia.txt | 19 ++ MAINTAINERS | 8 + arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/at91-linea.dtsi | 49 ++++ arch/arm/boot/dts/at91-tse850-3.dts | 274 ++++++++++++++++++++++ 5 files changed, 351 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/axentia.txt create mode 100644 arch/arm/boot/dts/at91-linea.dtsi create mode 100644 arch/arm/boot/dts/at91-tse850-3.dts diff --git a/Documentation/devicetree/bindings/arm/axentia.txt b/Documentation/devicetree/bindings/arm/axentia.txt new file mode 100644 index 000000000000..ea3fb96ae465 --- /dev/null +++ b/Documentation/devicetree/bindings/arm/axentia.txt @@ -0,0 +1,19 @@ +Device tree bindings for Axentia ARM devices +============================================ + +Linea CPU module +---------------- + +Required root node properties: +compatible = "axentia,linea", + "atmel,sama5d31", "atmel,sama5d3", "atmel,sama5"; +and following the rules from atmel-at91.txt for a sama5d31 SoC. + + +TSE-850 v3 board +---------------- + +Required root node properties: +compatible = "axentia,tse850v3", "axentia,linea", + "atmel,sama5d31", "atmel,sama5d3", "atmel,sama5"; +and following the rules from above for the axentia,linea CPU module. diff --git a/MAINTAINERS b/MAINTAINERS index 97b78cc5aa51..5c2ea6e9cd7f 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2346,6 +2346,14 @@ S: Maintained F: Documentation/devicetree/bindings/sound/axentia,* F: sound/soc/atmel/tse850-pcm5142.c +AXENTIA ARM DEVICES +M: Peter Rosin +L: linux-arm-kernel@lists.infradead.org (moderated for non-subscribers) +S: Maintained +F: Documentation/devicetree/bindings/arm/axentia.txt +F: arch/arm/boot/dts/at91-linea.dtsi +F: arch/arm/boot/dts/at91-tse850-3.dts + AZ6007 DVB DRIVER M: Mauro Carvalho Chehab M: Mauro Carvalho Chehab diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 9a7375c388a8..7632849866de 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -48,6 +48,7 @@ dtb-$(CONFIG_SOC_SAM_V7) += \ at91-kizbox2.dtb \ at91-sama5d2_xplained.dtb \ at91-sama5d3_xplained.dtb \ + at91-tse850-3.dtb \ sama5d31ek.dtb \ sama5d33ek.dtb \ sama5d34ek.dtb \ diff --git a/arch/arm/boot/dts/at91-linea.dtsi b/arch/arm/boot/dts/at91-linea.dtsi new file mode 100644 index 000000000000..0721c8472509 --- /dev/null +++ b/arch/arm/boot/dts/at91-linea.dtsi @@ -0,0 +1,49 @@ +/* + * at91-linea.dtsi - Device Tree Include file for the Axentia Linea Module. + * + * Copyright (C) 2017 Axentia Technologies AB + * + * Author: Peter Rosin + * + * Licensed under GPLv2 or later. + */ + +#include "sama5d31.dtsi" + +/ { + compatible = "axentia,linea", + "atmel,sama5d31", "atmel,sama5d3", "atmel,sama5"; + + memory { + reg = <0x20000000 0x4000000>; + }; +}; + +&slow_xtal { + clock-frequency = <32768>; +}; + +&main_xtal { + clock-frequency = <12000000>; +}; + +&i2c0 { + status = "okay"; + + eeprom@51 { + compatible = "st,24c64"; + reg = <0x51>; + pagesize = <32>; + }; +}; + +&nand0 { + status = "okay"; + + nand-bus-width = <8>; + nand-ecc-mode = "hw"; + atmel,has-pmecc; + atmel,pmecc-cap = <4>; + atmel,pmecc-sector-size = <512>; + nand-on-flash-bbt; +}; diff --git a/arch/arm/boot/dts/at91-tse850-3.dts b/arch/arm/boot/dts/at91-tse850-3.dts new file mode 100644 index 000000000000..669a2c6bdefc --- /dev/null +++ b/arch/arm/boot/dts/at91-tse850-3.dts @@ -0,0 +1,274 @@ +/* + * at91-tse850-3.dts - Device Tree file for the Axentia TSE-850 3.0 board + * + * Copyright (C) 2017 Axentia Technologies AB + * + * Author: Peter Rosin + * + * Licensed under GPLv2 or later. + */ +/dts-v1/; +#include +#include "at91-linea.dtsi" + +/ { + model = "Axentia TSE-850 3.0"; + compatible = "axentia,tse850v3", "axentia,linea", + "atmel,sama5d31", "atmel,sama5d3", "atmel,sama5"; + + ahb { + apb { + pinctrl@fffff200 { + tse850 { + pinctrl_usba_vbus: usba-vbus { + atmel,pins = + ; + }; + }; + }; + + watchdog@fffffe40 { + status = "okay"; + }; + }; + }; + + sck: oscillator { + compatible = "fixed-clock"; + + #clock-cells = <0>; + clock-frequency = <16000000>; + clock-output-names = "sck"; + }; + + reg_3v3: regulator { + compatible = "regulator-fixed"; + + regulator-name = "3v3-supply"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + }; + + ana: reg-ana { + compatible = "pwm-regulator"; + + regulator-name = "ANA"; + + pwms = <&pwm0 2 1000 PWM_POLARITY_INVERTED>; + pwm-dutycycle-unit = <1000>; + pwm-dutycycle-range = <100 1000>; + + regulator-min-microvolt = <2000000>; + regulator-max-microvolt = <20000000>; + regulator-ramp-delay = <1000>; + }; + + sound { + compatible = "axentia,tse850-pcm5142"; + + axentia,cpu-dai = <&ssc0>; + axentia,audio-codec = <&pcm5142>; + + axentia,add-gpios = <&pioA 8 GPIO_ACTIVE_LOW>; + axentia,loop1-gpios = <&pioA 10 GPIO_ACTIVE_LOW>; + axentia,loop2-gpios = <&pioA 11 GPIO_ACTIVE_LOW>; + + axentia,ana-supply = <&ana>; + }; + + dac: dpot-dac { + compatible = "dpot-dac"; + vref-supply = <®_3v3>; + io-channels = <&dpot 0>; + io-channel-names = "dpot"; + #io-channel-cells = <1>; + }; + + envelope-detector { + compatible = "axentia,tse850-envelope-detector"; + io-channels = <&dac 0>; + io-channel-names = "dac"; + + interrupt-parent = <&pioA>; + interrupts = <3 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "comp"; + }; + + leds { + compatible = "gpio-leds"; + + ch1-red { + label = "ch-1:red"; + gpios = <&pioA 23 GPIO_ACTIVE_LOW>; + }; + ch1-green { + label = "ch-1:green"; + gpios = <&pioA 22 GPIO_ACTIVE_LOW>; + }; + ch2-red { + label = "ch-2:red"; + gpios = <&pioA 21 GPIO_ACTIVE_LOW>; + }; + ch2-green { + label = "ch-2:green"; + gpios = <&pioA 20 GPIO_ACTIVE_LOW>; + }; + data-red { + label = "data:red"; + gpios = <&pioA 19 GPIO_ACTIVE_LOW>; + }; + data-green { + label = "data:green"; + gpios = <&pioA 18 GPIO_ACTIVE_LOW>; + }; + alarm-red { + label = "alarm:red"; + gpios = <&pioA 17 GPIO_ACTIVE_LOW>; + }; + alarm-green { + label = "alarm:green"; + gpios = <&pioA 16 GPIO_ACTIVE_LOW>; + }; + }; +}; + +&nand0 { + at91bootstrap@0 { + label = "at91bootstrap"; + reg = <0x0 0x40000>; + }; + + barebox@40000 { + label = "bootloader"; + reg = <0x40000 0x60000>; + }; + + bareboxenv@c0000 { + label = "bareboxenv"; + reg = <0xc0000 0x40000>; + }; + + bareboxenv2@100000 { + label = "bareboxenv2"; + reg = <0x100000 0x40000>; + }; + + oftree@180000 { + label = "oftree"; + reg = <0x180000 0x20000>; + }; + + kernel@200000 { + label = "kernel"; + reg = <0x200000 0x500000>; + }; + + rootfs@800000 { + label = "rootfs"; + reg = <0x800000 0x0f800000>; + }; + + ovlfs@10000000 { + label = "ovlfs"; + reg = <0x10000000 0x10000000>; + }; +}; + +&ssc0 { + #sound-dai-cells = <0>; + + status = "okay"; +}; + +&i2c0 { + status = "okay"; + + jc42@18 { + compatible = "nxp,se97b", "jedec,jc-42.4-temp"; + reg = <0x18>; + }; + + dpot: mcp4651-104@28 { + compatible = "microchip,mcp4651-104"; + reg = <0x28>; + #io-channel-cells = <1>; + }; + + pcm5142: pcm5142@4c { + compatible = "ti,pcm5142"; + + reg = <0x4c>; + + AVDD-supply = <®_3v3>; + DVDD-supply = <®_3v3>; + CPVDD-supply = <®_3v3>; + + clocks = <&sck>; + + pll-in = <3>; + pll-out = <6>; + }; + + eeprom@50 { + compatible = "nxp,24c02"; + reg = <0x50>; + pagesize = <16>; + }; +}; + +&usart0 { + status = "okay"; + + atmel,use-dma-rx; +}; + +&pwm0 { + status = "okay"; + + pinctrl-0 = <&pinctrl_pwm0_pwml2_1>; + pinctrl-names = "default"; +}; + +&macb1 { + status = "okay"; + + phy-mode = "rgmii"; + + #address-cells = <1>; + #size-cells = <0>; + + phy0: ethernet-phy@3 { + reg = <3>; + + interrupt-parent = <&pioE>; + interrupts = <31 IRQ_TYPE_EDGE_FALLING>; + }; +}; + +&usb0 { + status = "okay"; + + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usba_vbus>; + atmel,vbus-gpio = <&pioC 31 GPIO_ACTIVE_HIGH>; +}; + +&usb1 { + status = "okay"; + + num-ports = <1>; + atmel,vbus-gpio = <&pioD 29 GPIO_ACTIVE_HIGH>; + atmel,oc-gpio = <&pioC 15 GPIO_ACTIVE_LOW>; +}; + +&usb2 { + status = "okay"; +}; + +&dbgu { + status = "okay"; + + dmas = <0>, <0>; /* Do not use DMA for dbgu */ +};