From patchwork Tue Jan 10 08:08:51 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Rosin X-Patchwork-Id: 9506701 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 59E5D601EA for ; Tue, 10 Jan 2017 08:10:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4D249282DC for ; Tue, 10 Jan 2017 08:10:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 405F02823D; Tue, 10 Jan 2017 08:10:33 +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 9E8822823D for ; Tue, 10 Jan 2017 08:10:32 +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 1cQrVl-00055R-Jt; Tue, 10 Jan 2017 08:10:29 +0000 Received: from mail-he1eur01on0117.outbound.protection.outlook.com ([104.47.0.117] helo=EUR01-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cQrVX-0003KP-Dn for linux-arm-kernel@lists.infradead.org; Tue, 10 Jan 2017 08:10:18 +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=WLtuV3WAZtBcyZnr7EVP6tuWb4qnLQ2oStxmHu7DaT0=; b=RLvpBQ7ge4iACXSLqHdq9zrZhpZuGtL3MJmoMsIt7c9kViLOxmKWPsrlJejLIIsZXgH5FBvjtmPkUuzwGLa5qV/cx3ylhJ1iQKMZXZgIQ4NSYpYeJov7uI91wyu7qezsPe3qnoaAyyXu9E9crMEFFHG4j3YHhF0R8XEHy5PgkZM= 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 08:10:07 +0000 From: Peter Rosin To: linux-kernel@vger.kernel.org Subject: [PATCH v5 1/2] ARM: dts: at91: add devicetree for the Axentia TSE-850 Date: Tue, 10 Jan 2017 09:08:51 +0100 Message-Id: <1484035732-31635-2-git-send-email-peda@axentia.se> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1484035732-31635-1-git-send-email-peda@axentia.se> References: <1484035732-31635-1-git-send-email-peda@axentia.se> MIME-Version: 1.0 X-Originating-IP: [217.210.101.82] X-ClientProxiedBy: AM4P190CA0010.EURP190.PROD.OUTLOOK.COM (10.172.213.148) To VI1PR0201MB2318.eurprd02.prod.outlook.com (10.168.63.20) X-MS-Office365-Filtering-Correlation-Id: 56347f12-ee74-46e8-313b-08d43930178d X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:VI1PR0201MB2318; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0201MB2318; 3:k0Q+FrXEfUBQDEzDrj/Ue66XnbjLEAeSHex078uR9LRDynhjrnk6/YGhmWDsYotGas50hvPYVN9OFr2qcTjNKg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PRPVCisfASaOzFDAF+f5kCgCwqqd0XieDHoxar7UuNYpRN0QMYbqRbsFuNXiubV3f7ZH3XOYtyfNJhDTYyWXZqSJoWMtLfTphq3eODm8RhgW2AyJI1NPMzLcbzeNaJr/ar2G1VeEnkfWSVYwk6XSyqWAbmZXyxVFtJH4gU2Gk5fZvObLtgn1ZzP/qTNCL61DQtrDVMt91PB9mxnyXBZPo0zYD11iJ99ZOXcqJaCk6zjkwj48Z1d6yUijXmupcz7JCwvWwDepkvVx4rziA6IrD2Er8gD5IhnGYMZeq0NKEd5SlysdKmrBpoqOxQt5dVVQ9IPACVmBM5srmGP9Ob66O9sOlcoUrEL12IoSnJEagMcVVjY5Y0JlSS1O67UuLx8LX6u8/26bBsbh9G6oaw9fi8xu8UbOFgioMEjQB+G0cBRtSkdJDaODl7EzMOYb4841cCcBC+s5SWPUL2OwNGnsqtZ/pATjoHZ5zn+7s01l4rsOhs+Bb5g59xMFTLW0H0l06O+NGG1o95HQja7THiuXAYaTh8vrU1zDkr6g== 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)(50226002)(81166006)(54906002)(47776003)(305945005)(50466002)(81156014)(74482002)(36756003)(5003940100001)(6116002)(92566002)(575784001)(33646002)(2906002)(48376002)(4326007)(8676002)(3846002)(66066001)(105586002)(2361001)(110136003)(101416001)(6916009)(2351001)(2950100002)(6666003)(42186005)(106356001)(50986999)(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:8+QTHyc8JKu+bxolHghPcrAY3YCjoB8BGbZIdnC?= =?us-ascii?Q?Mec0bWPjFz+2LB/JRSv5TCzrRFI6AU6K1kwv/NI4YS520+bqvwGh1vP3PUiO?= =?us-ascii?Q?CWgFnlyL5cq27Rwb/lvdyouxyF9IVZBiPLpmprQvVFiZm2GhBPP1ALWfo5e/?= =?us-ascii?Q?JQ3mGR+PMpnnsc5MdBbRm3ivR2yFRsKQR34iUBS4SU8/AqqRKWHWipOFM7I5?= =?us-ascii?Q?JIY1YeQdHwucT2DcfE11DuqV5AzGnc6LgT76hP9WVXt8/hoC4OG55oaDI5pF?= =?us-ascii?Q?AEayN9xWoE+Hg/TN3GBCaxkdPyV3T1Be/Zi0uYx/uKo4lJbZ93Bx9mRGpLNc?= =?us-ascii?Q?1xEks+xGORBRvNkrnjaJygD+1nSG7IW8UKImKKhc76Z9b2z/tX8EcwhWAlNa?= =?us-ascii?Q?JYS19btEAsRVWbm+bwAP4bcok2vh/8OdgaFnmq9m5omsimahSd1IzGiIc93O?= =?us-ascii?Q?psA/9cqN7PUiuZGnjzGITYaeSFSmABQMm29fb4WarpybmxCuN5vfXsQ/Ze9R?= =?us-ascii?Q?c09tIczThkzZuNMOMo8afCvubhyqSEyE2m78f8gb7xT9tS0zzXSRXNJvjHQ3?= =?us-ascii?Q?W/OxwJoVuij0UJsTmh+NGJQCJS4Nj28QKO49fdesqPImFFYWa0YzY6Z5RZfM?= =?us-ascii?Q?tXSMe7pbdv5cyPUl8Y3cYYtc750Mt54eZw+inHyjxEoTzMGv/7eor3WtZfN1?= =?us-ascii?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aW/d7VJWugDjxs2qGH6/jYD0df5ZK8vbZsy7lYtuSTFA9mlkVG0mQ96XzHyjPdP0/ar2q+GYUxayxss=; 5:5MIHntCnThmrfQgcuuGJZYSL7G9Rucho9A2QKyKP6y6ZRNrYqfrK3YtVCDUXXrqJ/C3c78WUKEKAJzsqhNhJ6dS7zGjLQgIMBDs9sMYGrB7CPD09yvlyP5E6hRuv5U/DMsaB+hsfL0t+iNGYHnox+g==; 24:5aU/QJBFF6lEP9KzNI2uS4g8cMQUJAeCo76YGa3N9TZU39HPiauFslkr5wV8qh61MMUFgaLVBw1Py3DQy0MBp0d3Is9HbYel6IA/tY5BWUA= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; VI1PR0201MB2318; 7:aaan1P90Il22PgG3ujX8zO9SLgyd2pm36HmUZllbeA7TkECp55tPm33O+d5vOcX9wd3F/6+7xaqFx3PlPlzMir596nkETONNCibplv33Z8GSSV2b9RX5ZMJg8B9VFrAUjsQWZwDJS9excSnpcnsDsR6X0mrfatftBvBsc/BGl8Io19fBS3L6gbsfBzpsHLghDH4U16iRspeC/6UZCyUFtzQeIyAgDV6+p/PyDR+zdoF/8OUC/w9Nc5EIT5C7o0jtnCkIym966JrEaaj8mCu1apPtXrmBZRjpytS1jGNaxALXlosPQCKJkdwr6+Uo+UuriP3uTl1gYG/HvAzJ5fLg+0QSHW0bJj4Oep7I+7iNBmunbhkTWVAIDpAuPj8ghPIWcVMCX4XxiLeejsJNTDK5sxOntf9vROvBaTMNCSZvqqiqiC12yI0kNo2Gm46lzhvTW+unIoV/ULxfbrEJ003+ag== X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jan 2017 08:10:07.1445 (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_001015_703316_6B2BFD14 X-CRM114-Status: GOOD ( 16.06 ) 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 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 | 53 +++++ arch/arm/boot/dts/at91-tse850-3.dts | 274 ++++++++++++++++++++++ 5 files changed, 355 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..646feb0daa81 --- /dev/null +++ b/arch/arm/boot/dts/at91-linea.dtsi @@ -0,0 +1,53 @@ +/* + * 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>; +}; + +&main { + 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 */ +};