From patchwork Mon Jan 9 08:45:28 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Rosin X-Patchwork-Id: 9504185 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 2D5C260757 for ; Mon, 9 Jan 2017 08:47:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1B2A42845D for ; Mon, 9 Jan 2017 08:47:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0F0B928466; Mon, 9 Jan 2017 08:47:13 +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 5F3E82845D for ; Mon, 9 Jan 2017 08:47:12 +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 1cQVbh-0002pc-Cr; Mon, 09 Jan 2017 08:47:09 +0000 Received: from mail-ve1eur01on0122.outbound.protection.outlook.com ([104.47.1.122] helo=EUR01-VE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cQVbS-0002Co-1J for linux-arm-kernel@lists.infradead.org; Mon, 09 Jan 2017 08:46:56 +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=kA20aAsyOFydDebG5itNLtxnDS3k9wJmhnqmujmRA/o=; b=GqukGPMEJiJxOxZ6+XPpgL6+PG30MhzjC0xFLq3yUk3ZEsDXLG1z3QFgj85Tqq8s6UVvqAYNp4DqlSniX/7BFzglV1oXeekqPg9T8xBRgxdvYxBIVSC9ASp/Sr8GWPdE1WVe2IQM68o+/b0MURTGUzKNJR1F+zAXOHP6nJBxk5E= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=peda@axentia.se; Received: from localhost.localdomain (217.210.101.82) by AM5PR0201MB2308.eurprd02.prod.outlook.com (10.169.243.7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.829.7; Mon, 9 Jan 2017 08:46:38 +0000 From: Peter Rosin To: linux-kernel@vger.kernel.org Subject: [PATCH v4 1/2] ARM: dts: at91: add devicetree for the Axentia TSE-850 Date: Mon, 9 Jan 2017 09:45:28 +0100 Message-Id: <1483951529-11738-2-git-send-email-peda@axentia.se> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1483951529-11738-1-git-send-email-peda@axentia.se> References: <1483951529-11738-1-git-send-email-peda@axentia.se> MIME-Version: 1.0 X-Originating-IP: [217.210.101.82] X-ClientProxiedBy: AM5PR0402CA0008.eurprd04.prod.outlook.com (10.175.37.18) To AM5PR0201MB2308.eurprd02.prod.outlook.com (10.169.243.7) X-MS-Office365-Filtering-Correlation-Id: c7f9f1ea-e8c4-4ec7-aed0-08d4386c071b X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:AM5PR0201MB2308; X-Microsoft-Exchange-Diagnostics: 1; AM5PR0201MB2308; 3:egQEcxU5NeeR0MRbUjOlKaPk66D+hztL9KfwAoLk4OFvmXiCgCq2eATQT8hTgYRBucke8wBJcwk1tsVWyMel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IDbLX30jYTPhZ82KZN0c/RcgycdKkugF8cyBYMi9zB8XgZls+H3xu5kFSm/p2DD0j8gb6FdlGeTt6aXtvDbZY2cMVUez8mrlMmsftJeICV4irRim/RmPY4KAeQCqX0kM77E9PDEOXbX7xEiE3MCzlxxqyj+B9iaSaYLbKoo5FAGG7m1QFO05ZZmL3aNGKfb5QZG7os3jv+wTUrzB1uK/9d095/+WbrqLuklbItzt0RevUg3mxYJwPiiVy3gSkncNrqNxhIXoybiFrCst91bcG7iSw0KLtBpS6Dav+YhgBgQNE0MobL2K4VMACaPb6ioJ9BDDJsXmd/S+d4qWVec/F8e9F10xnLotKcX4yOIDB0BBzyojulXgYe0Xl2LiJ1Zs1myd9AoJpq48PzN40Ji+NRHLQ+5AWEACmGqdiZ6ukqiV0NFQdW6V3KZZYb0v5imMJOi7zPJV0vtX+bicGnjVNlC0psAgdGLAhKrYGLcocRwYZ6ZjDluJh33JDotSVktgbfqsj8MfPVD12XOtDgQZLBwH1Y8s6U95c6iVGgioMN1Atn8XdUsmvnC 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)(20161123562025)(20161123555025)(20161123564025)(20161123560025)(6072148); SRVR:AM5PR0201MB2308; BCL:0; PCL:0; RULEID:; SRVR:AM5PR0201MB2308; X-Forefront-PRVS: 0182DBBB05 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6069001)(6009001)(7916002)(39450400003)(189002)(199003)(6486002)(6506006)(86362001)(48376002)(575784001)(50466002)(42186005)(4326007)(36756003)(92566002)(189998001)(2906002)(50226002)(97736004)(81156014)(81166006)(68736007)(5003940100001)(74482002)(66066001)(6116002)(8676002)(25786008)(76176999)(3846002)(50986999)(2950100002)(33646002)(6666003)(5660300001)(105586002)(6916009)(7736002)(47776003)(54906002)(6512007)(110136003)(2361001)(101416001)(106356001)(2351001)(38730400001)(305945005)(42262002); DIR:OUT; SFP:1102; SCL:1; SRVR:AM5PR0201MB2308; 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; AM5PR0201MB2308; 23:j1kLCiIHltRVFtAWLRmKYXNyJ/D2uvoqGG2N5ns?= =?us-ascii?Q?yDPWBCYKS/EYiQLcOqshLcVjTzL5Yzp6gSe5NZov8z3PksceFzAucSgruFyW?= =?us-ascii?Q?zMFuw4+PsXXTUH8Z0u/caZoxCldIV231vkraJJICX0NuUWkyd6yrOTM02LV3?= =?us-ascii?Q?AQy4zs0IpJWE6Pfi8os9czGYNHkoGiY6rv+gDgeC/QscKXSGWz9FvyKvYige?= =?us-ascii?Q?1eKQKWzbyziDdDXk7GpWoes7JsERBOjgjja2ebx3VD1C+vWjsiGsb1EQiATo?= =?us-ascii?Q?nHvmAqk/wUQtn+gajvBNiMIYydjZ7y75S3lpsQjMZLNwp9FPss66a2P+5gUo?= =?us-ascii?Q?3P5WDeUTllSWXQdgpCvpyxGwLlVEpGQpGHT7+zUQ7cFxC2AbPkx4PXr9FFWg?= =?us-ascii?Q?RpcpkFpzuaQEa1QxTSWkTfZJ1cX49g3E4jTU8Og+KrH9K73Pyh3HL5Qe3t9v?= =?us-ascii?Q?jvQkpAPaW/MCkI7kTfjUKW/r252D7/exD4bm+yrMGCPLUHkZw+UJLjjfYM8L?= =?us-ascii?Q?5jS5NkpsHnbGoVZ3xH0YohNxQ+44NhynpiaBvuiZAOaYq1tDhdTHXqjA1tcJ?= =?us-ascii?Q?zieOZBSR6e/vPgx0mZftEiTxj3j0XC0zAKG6cfSCzGYzierkp4AWMQadUh77?= =?us-ascii?Q?HNOGaXK1RUr99KQKsDcxlmVmUM4MZZFvv/kK3IZLXbPLx2jWXJ1pdVNTedQ8?= =?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Gh+DQXpqKp4/L3//2B634c3ABFoQ49th5UoG198pnIa5uRozSFhQRyhlmWgnzw+I=; 5:exTJqus6iwtr1Nh2raaSv7gF3Jh45s3yzWuQtREt51fj04t+YVf2fGuD6PpvPDD512TMUIaloLxHm6LaNj9ncWy/u7HJXZ3yuIu5t/m7nODTb29Ij3nEPYKvXWis2jT1ITitOgnG2sQQce5Hw24Zo+uEJcOV0t+1R9Nl5Gt3Fmk=; 24:U5oKl9OC8OOrlJNBcudWOkjzMsAy14pnEsrCWFuacWVTODGfzwqhJ+WNg0hb8zNpnM+G6Z23x0mhw91YReOpbwvSv5+qju4Qaqdquigu8Po= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM5PR0201MB2308; 7:8kY3JqQLg74vsy0wFUdWTSodxyq2gN7NWtUKPJ94a3kSSamRSwXDIQBISMO1YRuTloIKHv16uiFy1cHzgllzDt8cfTMB6P+8gcY2PxnqaKAHDdPGq9PZRYE5e6yrQgF9pLrRtt5j4eJl2Oh01FYUtbrHxXWTUaAAABFUv1kRIfHW3lfvnEvcvMDGF5J7Syz8K7VHOZWVP1nQMPgP9/yADbO1p4fZDLdBkLK7F7S4DDx3TxCG/k1xs3ycNTTMig6fjCDHz60D6/rvQ3lP7m/C+9/FlH+b3Ym1Ko3FYAD8Dak0XglSX4PcE7LzfQVdftb4T+a/OlU/IAPF79OuCAHGuZ7l54odiWpyl9xyl0BBahLRZ6620t/z+gqyGAmLcQF4LyxD0KhEfwGVAl/ndT9ZFwi9PgsBZuwAhscUZ3n2sW/1jsubLSGeVg8Q09cbHo0psopu/oURztd7Za6+0aZ7Ig== X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jan 2017 08:46:38.4182 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0201MB2308 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170109_004654_428327_782373D3 X-CRM114-Status: GOOD ( 15.78 ) 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 Signed-off-by: Peter Rosin Acked-by: Rob Herring --- 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..20d982153a45 --- /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 0x20000000>; + }; +}; + +&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 */ +};