From patchwork Wed Nov 30 12:48:21 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Rosin X-Patchwork-Id: 9454305 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 2233660585 for ; Wed, 30 Nov 2016 12:51:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2121B282EC for ; Wed, 30 Nov 2016 12:51:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 158F9283BA; Wed, 30 Nov 2016 12:51:00 +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=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 56C722833B for ; Wed, 30 Nov 2016 12:50:58 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1cC4KB-0006q1-KD; Wed, 30 Nov 2016 12:49:23 +0000 Received: from mail-ve1eur01on0091.outbound.protection.outlook.com ([104.47.1.91] helo=EUR01-VE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1cC4Jo-0006eJ-N7 for linux-arm-kernel@lists.infradead.org; Wed, 30 Nov 2016 12:49:02 +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=w4jem6ZIXqLm9l8h18S3eh8yrlKgMDHymoqsDlGMllg=; b=gi7NWHN8Qtj97u+HT91sT793TQKTg6VXtQiMwT3bXqJAZ00UNN8nROKZaEpKbZ3ZN35m1VQGuMu4s0kYjudzCUF2PBLkFM0/kNv98I4KOlazGuLab1T+jusXfL//4V4gYrURSUBdqR7Iz5JaBJ8GTv/JV3VKhjcldqbgbk3m7A0= 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.747.13; Wed, 30 Nov 2016 12:48:39 +0000 From: Peter Rosin To: Subject: [PATCH v3 1/2] ARM: dts: add devicetree for the Axentia TSE-850 Date: Wed, 30 Nov 2016 13:48:21 +0100 Message-ID: <1480510102-24587-2-git-send-email-peda@axentia.se> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1480510102-24587-1-git-send-email-peda@axentia.se> References: <1480510102-24587-1-git-send-email-peda@axentia.se> MIME-Version: 1.0 X-Originating-IP: [217.210.101.82] X-ClientProxiedBy: HE1PR0202CA0029.eurprd02.prod.outlook.com (10.171.89.143) To AM5PR0201MB2308.eurprd02.prod.outlook.com (10.169.243.7) X-MS-Office365-Filtering-Correlation-Id: e2eb5a3f-71df-4cb8-39f2-08d4191f35d8 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:AM5PR0201MB2308; X-Microsoft-Exchange-Diagnostics: 1; AM5PR0201MB2308; 3:ZWyornaQRD1QVLb6aeX0PUbdaIB4X9gvZMg5qVO6FEO06IlYrw6V273zqRXR+HwV01CVlzH9S6LjRbjpqTrj/gWwAkTFih3iSq/4AGz/3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3g8kczcAqpSFdIQEgZoF/sC6dLV092vzLDeZOqM0+XrFLDQz3QRGExGaFzuipIKv/3qeHb3MjagxVtPrBl+tvTTUd+OjHNacBrtD94LxNixiYL2plYibbX66cy838X4HZvo+5c5KQvO80hUV7LHDCgmR8bdfI/wpOd9qxUwH/gzZcbeBsmXDAqQ77ZpuhRUaVd9GSLDCtaMG7B/b36Jq6cYUKbDXcyf5N+tOY+bO7dIYw== 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)(8121501046)(5005006)(3002001)(10201501046)(6041248)(20161123560025)(20161123555025)(20161123564025)(2016111802025)(20161123562025)(6043046)(6072148); SRVR:AM5PR0201MB2308; BCL:0; PCL:0; RULEID:; SRVR:AM5PR0201MB2308; X-Microsoft-Exchange-Diagnostics: 1; AM5PR0201MB2308; 4:NQrh61ORV8lokuXI8SXcHjXvIJj2STKks9bkiQBnQYZxsj9xn1//uveNR6V0kkOIVdayqKMsuvLDTu1jJJF5UCnBvqKNXbfJq0C3OGCN//HeYb8J7SiBCp/xRtJig+5dZIQj2Lc5GXDQGgIU+S7nsWYm7h/TLquxjlN4Rlo8pLEyS5WEHox7aU6u1NhiJUeOZvtPprnBYho9ZPkhvZbsYRaJu0z9d8Szwl1l8KDv+5wzCLANy21U4FqoyiVlTqOIEbgzEtXHFLvDL27elCii0+kXEvndQQ0VF/Z377dZBzvEnv0RkCquZ8350SGW3cxM+B2Xh9Gs3OUeaAgyGZzsqDSj9ED+hSFgZZIxkaXd+wlvXCXnBLxmri5EKD2d6TWdLZsW5BAy8WEXtMPhHkFVyZ8v/silw4cQ77Rzx0SSu7QcAusvhzeSrZUQzzzpAB0eTpm0Ccm2rYdEEl5Jsx0NXr7tYQPV30KRjLaYXRBtZLt5O+R/8E/Oo8n1UsiwY1IhejH7Nfc4/7Mk0+j00pK7MPHtcho09uxA2ykt+ww8hCBLSRZMwANL3elZScaooVA871lbswEA1OdnKOunkBo8/Llf0cUg16NxPdqb+EEJXhSRyIMH9wGjiTAM4GQJNq2PfGCqYmcdcz9fB/Ye0e2/zkVsrHMkL3zi2BKoMCUIsZo= X-Forefront-PRVS: 0142F22657 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6009001)(6069001)(7916002)(189002)(199003)(8676002)(74482002)(39410400001)(39450400002)(106356001)(86362001)(42186005)(50466002)(105586002)(101416001)(6666003)(48376002)(6486002)(733004)(575784001)(189998001)(2950100002)(36756003)(50986999)(97736004)(81166006)(76176999)(81156014)(5003940100001)(92566002)(6116002)(7736002)(2351001)(6916009)(4326007)(66066001)(5660300001)(2906002)(50226002)(110136003)(305945005)(47776003)(38730400001)(7846002)(3846002)(68736007)(33646002)(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:ZbrH3ARWZbHnSp1pS1BZwm9nQDOb/x6J9k3MJZc?= =?us-ascii?Q?mZvBKPYDwZJcSsZsdH1dp0CkQthnYpVmj+K/PN+biGw4AVjDAwGzfEx2jmYL?= =?us-ascii?Q?f3JjTjvvG7cH1O2cZA4aG4RLji14DRQv4Zh+HPiwYfAXYiY9q9crxlqozb3s?= =?us-ascii?Q?k0h+dwjt8ClAAVlPX0kknpaB++T82H90aD3s7NSLTbvg/NaXhPtnqerN80BD?= =?us-ascii?Q?N3B1D8kEtfXeXb1593BPLqUkJP80QdZo6Dj0e0DnGkKV6PUF80PuHR5ZwFif?= =?us-ascii?Q?MMyTF01MZDDFjAeRG5aLOjeYBPu0F7G34UxyjBPYKW7jKjEw1H7ljtNNRCSs?= =?us-ascii?Q?IzGxyk41wwbvklfe3k/XzCkNUTM0yKswp4irczxmxtv9t7EE7zNIOFGNjfuj?= =?us-ascii?Q?c12yb7t7k/wwlfV5pWJRebXLtTjKnt/Be+/vIo/qFXmm/7lt7XRNqYwdXOPV?= =?us-ascii?Q?AmzbxL4Xs4HcKV7TmuJq3vJGnnwsHpYOg7yO5ux0Drzd+D5mBbPvPpPDDmtR?= =?us-ascii?Q?7klav8uOS/fbAzs61vh+w6k07+dSlpY2Gwn2moRakHqwxvcSlPXkkbYphffX?= =?us-ascii?Q?eGWIGQXJllm0riv2+kZfZ8xYRH9zPGczoBbMNDUlhqbwsBeCRBNNEJTGiOKp?= =?us-ascii?Q?ZgSinTyt9KqiKWIFadzO4dCLcDYOWExPjDv8F4rsjHl1vFdxdky7Qeb4Nvyy?= =?us-ascii?Q?JmwbKwBYl8o59KjhyxEHDd8NRaO+NTUptkNm4GBhyHIucRoI4fGwLP9FuTTE?= =?us-ascii?Q?icB0A0AWB+1Zu6+SqndXpOjJUZZwpptZzW+RD7pfZeja1p97UW8T3zBND5Dx?= =?us-ascii?Q?cRMgAF5gM54VDF1hFqGRJT4RfcfSaYeKlcobbrWk/Z72esHAFUgd12vzJ1py?= =?us-ascii?Q?4OFLLkihBpZ0vd804NSxzpzv7vK3hyQUua2SP1UdNYNoNicTi1cyAjOzpGB3?= =?us-ascii?Q?nu0S9Dv0HsszFYV9u2sv4yqzjSYJvYuNDne2tyaOBBBfZhP/NFjiOMqaJdhL?= =?us-ascii?Q?sMALrZ1ORq5qyfrIwnB7BrrYsapzpzRtryrT1SfawIxR3xrG2CTvZmvDoxV4?= =?us-ascii?Q?iFY5ymAHqWkR+NdfcajlVu8X4PDr3wAJf2417VkE/IfacN0SxzcdIMldwDVx?= =?us-ascii?Q?9OivHSrhrF3/37IxJbDYXCiprxhAhwfIXh3aXqiQUXNq88x6BlVF+LIHdkOC?= =?us-ascii?Q?KCOI4O+iwdew3A4M=3D?= X-Microsoft-Exchange-Diagnostics: 1; AM5PR0201MB2308; 6:4vlqmkcZqQ3A6vo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NjLwfQI7TTRCq2V6Z5kF+aU1s3//3vrnACDWHbF0CjZcbBp2aisjwMf88VCwatoZYn+zL1Y+nJ67Jm+nA1iz9Su66TTKPxgIXQGN9cEr5uLdEwVfBHG9+u9BOlYfp4IlTpEePT3KmANsj80hDhbBxOVDWX3oQ2vtwXsZ2CgBhpUmqFzA0YeAdKx6jtoUcZo2+pkTMDICz9X+PjHHLyoNrjVfaauA0+Z1Zg== X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Nov 2016 12:48:39.5318 (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-20161130_044901_160393_0CBAC741 X-CRM114-Status: GOOD ( 14.56 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, Russell King , Rob Herring , 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 --- Documentation/devicetree/bindings/arm/axentia.txt | 19 ++ MAINTAINERS | 7 + arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/axentia-linea.dtsi | 53 +++++ arch/arm/boot/dts/axentia-tse850-3.dts | 276 ++++++++++++++++++++++ 5 files changed, 356 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/axentia.txt create mode 100644 arch/arm/boot/dts/axentia-linea.dtsi create mode 100644 arch/arm/boot/dts/axentia-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 130e927824b5..9dfe877f47e0 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2339,6 +2339,13 @@ 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/axentia-* + 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 58a3024f7edc..8ca735b82891 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 \ + axentia-tse850-3.dtb \ sama5d31ek.dtb \ sama5d33ek.dtb \ sama5d34ek.dtb \ diff --git a/arch/arm/boot/dts/axentia-linea.dtsi b/arch/arm/boot/dts/axentia-linea.dtsi new file mode 100644 index 000000000000..5a47d847149c --- /dev/null +++ b/arch/arm/boot/dts/axentia-linea.dtsi @@ -0,0 +1,53 @@ +/* + * axentia-linea.dtsi - Device Tree Include file for the Axentia Linea Module. + * + * Copyright (C) 2016 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/axentia-tse850-3.dts b/arch/arm/boot/dts/axentia-tse850-3.dts new file mode 100644 index 000000000000..4e7c8bea2873 --- /dev/null +++ b/arch/arm/boot/dts/axentia-tse850-3.dts @@ -0,0 +1,276 @@ +/* + * axentia-tse850-3.dts - Device Tree file for the Axentia TSE-850 3.0 board + * + * Copyright (C) 2016 Axentia Technologies AB + * + * Author: Peter Rosin + * + * Licensed under GPLv2 or later. + */ +/dts-v1/; +#include +#include "axentia-linea.dtsi" + +/ { + model = "Axentia TSE-850 3.0"; + compatible = "axentia,tse850v3", "axentia,linea", + "atmel,sama5d31", "atmel,sama5d3", "atmel,sama5"; + + chosen { + bootargs = "console=ttyS0,115200 rootfstype=ubifs ubi.mtd=5 root=ubi0:rootfs"; + }; + + 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,ssc-controller = <&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 { + 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 */ +};