From patchwork Mon Dec 4 13:57:08 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Rosin X-Patchwork-Id: 10090541 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 0E8E26056E for ; Mon, 4 Dec 2017 14:37:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 08DC528D62 for ; Mon, 4 Dec 2017 14:37:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F1A2528D6A; Mon, 4 Dec 2017 14:37:05 +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.2 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_MED autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id C47A728D64 for ; Mon, 4 Dec 2017 14:37:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=TXfN4G9LfU+RaQwMzLFPRcpSxJ+iCpNAGyH6ERg8xms=; b=HC9hhvnA9MTRGA yiCC+fzHatGM2C4vyd9teuoYUPN2eCmPi7H9w7eZ+DUmqHHmXAtCl+76DgJh0hLjCiaHULkceUkhA bTa7j62fbfdB3xcGKfRatGNVesHtVmnpQuZTHaxKjgUV3UjPfk+HO8AXftORFrroFjBqd1tHmG9UG Q98qFAMPCVzwLI04z7SIKAaNEUoY8kI1kvjj/kPT2nUmSyxmx/90CEKsHXh1a90jhq7eFAfte0iep VhhKSrdlqE+HW6rAPeXcxrCDeUmu50oA5ZKjZUi0eKjF3T4AKuenztS3ZbiolltkHHieIITFRec4d guw22hjkBeerBVYCrKvg==; 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 1eLrrj-0001DF-Ez; Mon, 04 Dec 2017 14:37:03 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eLrpT-0005oP-D6 for linux-arm-kernel@bombadil.infradead.org; Mon, 04 Dec 2017 14:34:43 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Type:MIME-Version:Message-Id: Date:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=/VNO4PdqfNLzTb6jBtAzkOduiW84okLSjsUtTHPyY6c=; b=yAApU+VkAkXqnfaaaYSS2ig9tC LCFTlMdZrO22RNTLD+GxAkohoktP5avjWseqayrwb1vfJBhJzNu6tkJTTbpufRj5VfvrU+mkdqZ6i rAPBQ15oE8ae26XDqIv/LUL1yqxcZcRPt2/VOtks5CdHRLupLX3JkFM2/420WNCOYJtS3Gq6FM4kO 9+QzYskW6qsZp1rCAcSt+masaj7JW27Uy6KiU9B2RTQbqwnpMYUU/iDINlSrrZ9v1sS3jd9B9DRWE 7dRZK5R+tnN3zVqKkgZgI3/egB/25U1zb6XdEE0XgNnJMQyi5oSU7yXJphoOe6adO76EGV7js5vaG eB5gR+Cw==; Received: from mail-ve1eur01on0120.outbound.protection.outlook.com ([104.47.1.120] helo=EUR01-VE1-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eLrFh-00017U-8B for linux-arm-kernel@lists.infradead.org; Mon, 04 Dec 2017 13:57:49 +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=/VNO4PdqfNLzTb6jBtAzkOduiW84okLSjsUtTHPyY6c=; b=g7DC79N9/SXdMsHzGaCy1h+/nFMrfeYwtydOav/II4d4eTGaQ92kLNCrVd7vnXqbqF9oq3VRbKxtAVwvW6KJpydRVd/3+z/0tZakn290CJUbVgDNHwe7NsvJ7DtMy/Gj9qqduYZ7esM4rvYoN4tmWHwVC9oIBrvX5InTVcNoRg8= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=peda@axentia.se; Received: from orc.pedanet (85.226.244.23) by DB6PR0202MB2551.eurprd02.prod.outlook.com (2603:10a6:4:1b::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.282.5; Mon, 4 Dec 2017 13:57:17 +0000 From: Peter Rosin To: linux-kernel@vger.kernel.org Subject: [PATCH v2] ARM: dts: at91: add devicetree for the Axentia Nattis with Natte power Date: Mon, 4 Dec 2017 14:57:08 +0100 Message-Id: <20171204135708.8234-1-peda@axentia.se> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 X-Originating-IP: [85.226.244.23] X-ClientProxiedBy: VI1PR0502CA0006.eurprd05.prod.outlook.com (2603:10a6:803:1::19) To DB6PR0202MB2551.eurprd02.prod.outlook.com (2603:10a6:4:1b::9) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0adf6235-3047-4747-4981-08d53b1eeea9 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4602075)(4603075)(4627115)(201702281549075)(5600026)(4604075)(2017052603286); SRVR:DB6PR0202MB2551; X-Microsoft-Exchange-Diagnostics: 1; DB6PR0202MB2551; 3:ciMx3aYc1r2/vKClgDUtjtEu8yXvS7utHywXPBn9t6UUUyeqkDGAWDX6GXxG6ShCuOOgKe4bsNgf9I1Jvfnxh/yBt/NmHvfIh98kSi5rjvuRj/wp8f2TcOs/89Woauw4OOwdPX8ljUnh4nPhbFpoIu852JWuQI4mQDVlWTy2bGFJyzoIWu0Keg6eF4mhCyryY5INefAeIrXZVRl5p6Is/Wy31eA6lsQlRococMhZYvrf1347rAh5t/JQ5eNGmCob; 25:tuMjOVqBOhxrG7w/4VPzWw/9T2SVWNZqzFLmtNsL/azhk925wUmw2KJmXmCAedpa2Q3uCujoYXG7lFVqPCrOBD8ZKKhuPpAARReuDNtLdBec84cpXPosYV2ucF/ny3Jrjryh7UvOnlmP+lMbTMxiYy16PrnMVghMbCV0O9+oF7yiSxcENfpvuz4MyYkRk1/OzUZ+Fcd8L7oj20FAm+zcabeNpS8bz3PXeK3NVNzpDPK/eY5XGTKmBxAqTMvVjh5XBwtNDpHEU8YXuRtKl02wzLoSDteMOyljCKzds81kfjnSMU2ydRkAZdThY1N4RWmGNvN5feGaDzWSTJe6LKo1kg==; 31:OfVVXfw+fqujMCFFzl8hxbNzHjquIiSL/OCVg7DMczLnLh8feQctRdTyjwV87iN0RNfdgpGw/uPUneQZmfxGefo6rjdQfj7dpKve/5oGRbM1995e+6Myj1pDLK+1ThQv+zbDTMKz0jrEFamJyZSRLnKCDPEG8P66wk4ZSv4JZQsLD4U9WvJiQnGG3DkjcQfjn//I4ea1WoTHVpA+FE7tlKlxsap92lz5mCl33MYtXu8= X-MS-TrafficTypeDiagnostic: DB6PR0202MB2551: X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(258649278758335); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(2401047)(8121501046)(5005006)(10201501046)(3231022)(3002001)(93006095)(93001095)(6041248)(20161123555025)(2016111802025)(20161123562025)(20161123560025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(6043046)(6072148)(201708071742011); SRVR:DB6PR0202MB2551; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:DB6PR0202MB2551; X-Microsoft-Exchange-Diagnostics: 1; DB6PR0202MB2551; 4:nAlO5WlENgzmOQMEC5u9n9YsJHig3YIP9BQ5Y5hA5LKDX5RbZrr0qXTt09Z2AnbPDSwI4wm9VCo6okLHeFI0FFUXhr7vsFYxJmXb4MJgcNn/l8TtmF07NX7mPDK+DrKkp+MfrReiEKSDvcP4RSHWfZJvnpzz4wGuHHol0VOkGDRRyUObic4ufX21fTN6jfInW3nr4rhFKezImSDJNogWkItQFyYmwUlxNs5yJTdIH+epr9YIQ/LNpT1lsuljPwuYjongrPO5Ak0LzPgt6ienvAQEFJGYRKNq+3xXuWyZeDz3OBwLHHB9KCVpeS/9cWEv X-Forefront-PRVS: 051158ECBB X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6009001)(39830400002)(376002)(366004)(346002)(199003)(189002)(4326008)(101416001)(6486002)(6506006)(25786009)(575784001)(86362001)(2361001)(50226002)(68736007)(2351001)(8936002)(5660300001)(6306002)(53936002)(105586002)(106356001)(6512007)(2906002)(8676002)(1076002)(81166006)(81156014)(6116002)(3846002)(47776003)(316002)(97736004)(16586007)(51416003)(189998001)(7736002)(305945005)(52116002)(6666003)(16526018)(54906003)(6916009)(966005)(66066001)(478600001)(36756003)(48376002)(50466002)(74482002)(33646002)(42262002); DIR:OUT; SFP:1102; SCL:1; SRVR:DB6PR0202MB2551; H:orc.pedanet; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX: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; DB6PR0202MB2551; 23:TYgdxeEC3N/cJRF7IeaeTyZujwcc1DPJaEI0755?= =?us-ascii?Q?ujk95wLWTIxEtOErHvPYHs0P1NEhwVfysCfgbD1azMa7laoU1LPMnkCpI1mZ?= =?us-ascii?Q?rg119WLFhKP04/rMpzqKiG9PYP8Qt7DX0AAQPQBv8zinf4iZpYv6RJQ0OEPU?= =?us-ascii?Q?X4N4gH0bl68xn3rSlmGu6ZRvoJIkLdursogOkZrEOirwO9VfeVesZ7J6P+Cg?= =?us-ascii?Q?8I08lnGil9aEtTSLj9H8GDMTAin7vtC5arprwlC5P8mk5kdYMJZrEuMpdnj7?= =?us-ascii?Q?YjOBjf6hIn0Vyv6dSUTrV8BPrlNsJmJF67NgPiLqHp7nODmuwrF2IgSRasKo?= =?us-ascii?Q?A64WbOaE5DM3W9KZuA/lJGCLNZdJ40lEAtAPDrLhLcE3IwzXEkljRSObEcjQ?= =?us-ascii?Q?tDIGKjpW5zE6Y7EV5vmgE7CRuAFgWhih9gKbB/wNFlgTuODyr2U0HiQuuPPe?= =?us-ascii?Q?Nzxq0190L7aI5Q11l6L5GZggMSQZKd+gG2TL4OptDkEOK8KL/IZbtjYqGpvQ?= =?us-ascii?Q?955zsBjxXCT0IfRuaZ8uuPM1QohHAWJMl0wIujyCA8fyIoiAuc2lmp13WaXR?= =?us-ascii?Q?CHaWvEBxHIBC87FeU5KLomIyehi0vdCTghiVDYyWQW8ed9pLtsnRRs8MOuM1?= =?us-ascii?Q?oCmH+ZpXXYGL21kUMSyCg3zh1f5hoXeW3ZVyhn+TGvI2kczqOvFNoGveyE/1?= =?us-ascii?Q?idZeNij66yjZikEBrAg+eS1GPIRuKyFbP7k3jiBJ9Lm3dn4E7DeM6bHtZ5El?= =?us-ascii?Q?WEhAxlia7hbRB6VhG3Xav7+jSzRSN2Aln8Y6kijoGsDxVRSsthEFb1Tk00P5?= =?us-ascii?Q?N4OyMju4mqBPd6CuDxHSGmJ5rDrSW6C6kRHIRA4uc4jXUb31hU+R6bk8Eeaq?= =?us-ascii?Q?0TIgv4/ilWuV6JLSnM6CM/kCduvd+vcgVu0HOYEJQwLB1LmHzQa/0RH44dap?= =?us-ascii?Q?KUlAxw0mycVynwQ/qWkpx9lB7YiKPu1YYPxIu8gnKeApokbTjo9onfv0ccCC?= =?us-ascii?Q?BcQGcCGbF5jUT+D6DMEGt9Fod3cYeWU0Ym5a37KbpdlFwsV5YPOYj+UsHDJG?= =?us-ascii?Q?Mv8ICKDba/xQ+KLECNcDq0D7diLgT1KhxYWgv5cCN/y6sZq/wuPiOZnMHE66?= =?us-ascii?Q?qgWRm/mxNIz3RYYisCtMKyphcG3pOshhDep9TADpg0VqQlhw8DfyIb60wwia?= =?us-ascii?Q?pI4ZQd8TdKSN4l+6rt8CwsXjJFWKHQT5MH70caD4KqPMPRfxkbsi/YLgxvA?= =?us-ascii?Q?=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; DB6PR0202MB2551; 6:kep21bUhVCITKDi8zMp5D/doNXAnjQmM+NUGzY3Oe0NNr/pgCIeZGIR/B2IjioHUeQFBU2bsQ/yVZj+0kDM5Y84xOrtysHiOSnfVzoPZq76sWb2H5lX6rD8rEWJNPrVc/8p7uhLPZg5JB9X0vZlYqH7CsgxFpheaUlqbX7bFHrdoU06HwZwHZ+gUPS+Zk6WFBO92eP2JPNVCkOGYJF/mnxWxhPqldsl+bhegMOFvrAO/25T4kIg3VOOejuTG8BJzVsixZZsj1SJpbDd0fDL9psNe5/+Zd87hZ4/a8UvqX/TvZP2wEExzHD9PYNi8OhfTgtgx51i+5bn7Gq0hWhcpLfKnVHXfnRXJnzlMLbcRGhU=; 5:bFdVT36LG8v1g1tTgWnC6cZXgqUWBLmOdENP0liwCtYSn4VoM5QQxsKElfdfKV5e2OHYZGp+JRPFBCj96oGw+MDX7uoQfmEMD74ktKH3an8/PhFs1q3CTF2Y2M4KXThRFFM2uJqHsZ39M3KQiA2prNIfeWnmdyzAfD/YvF6DF9I=; 24:XzT4OT8YhTdh+B9HEJCJE943Rn5w7WkNSEJU10bcBBAR+o0OSyfdWWK2rt+gwiuxNdI8nSGGwW1abHI6KidhBOgq4c//bPQcFqZX8egptSw=; 7:ydTw9gyqj0G3rd5/kyFwMoGetEHMWO3TjafWiHSWNJfgcywDGjqUviyxvB/hk9MYw3fYtsJXKFPDeX+qsZbMkWdMn5mInD2KsrLv2pB+bcgcNr1elkX4PsqWgfUOaL/Onh98V1WgzAnBmZlGnLokd+SXuDxyH5c5onLTzAyBLiCq/9tEulAZtsQHsDsXL8jk59EG/63KeZZIPRVTzQRfliNhTj3J9USG5EP/t2xQSpiIaj+a2uFKrazwbShA4xTG SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Dec 2017 13:57:17.3328 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0adf6235-3047-4747-4981-08d53b1eeea9 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4ee68585-03e1-4785-942a-df9c1871a234 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0202MB2551 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, Russell King , Rob Herring , Alexandre Belloni , 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 Nattis is a device designed for presenting departures for public transport systems. The Natte helper board provides power and features a battery of battery chargers. Signed-off-by: Peter Rosin --- This was part of a two-patch series, but the first patch in that series was redundant, so I dropped it (there was a dt binding recently added for the tfa9879 amplifier that I had not noticed). Changes since v1: https://lkml.org/lkml/2017/12/1/844 - removed chip-ids from before the @-sign instead naming the nodes for the function, e.g sx1502q@20 -> ioexp@20 - added #sound-dai-cells to the amplifier node - switch to SPDX license tags Cheers, Peter Documentation/devicetree/bindings/arm/axentia.txt | 9 + MAINTAINERS | 2 + arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/at91-natte.dtsi | 244 ++++++++++++++++++++ arch/arm/boot/dts/at91-nattis-2-natte-2.dts | 258 ++++++++++++++++++++++ 5 files changed, 514 insertions(+) create mode 100644 arch/arm/boot/dts/at91-natte.dtsi create mode 100644 arch/arm/boot/dts/at91-nattis-2-natte-2.dts diff --git a/Documentation/devicetree/bindings/arm/axentia.txt b/Documentation/devicetree/bindings/arm/axentia.txt index ea3fb96ae465..de58f2463880 100644 --- a/Documentation/devicetree/bindings/arm/axentia.txt +++ b/Documentation/devicetree/bindings/arm/axentia.txt @@ -10,6 +10,15 @@ compatible = "axentia,linea", and following the rules from atmel-at91.txt for a sama5d31 SoC. +Nattis v2 board with Natte v2 power board +----------------------------------------- + +Required root node properties: +compatible = "axentia,nattis-2", "axentia,natte-2", "axentia,linea", + "atmel,sama5d31", "atmel,sama5d3", "atmel,sama5"; +and following the rules from above for the axentia,linea CPU module. + + TSE-850 v3 board ---------------- diff --git a/MAINTAINERS b/MAINTAINERS index d4fdcb12616c..ec8a33f7cb01 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2500,6 +2500,8 @@ 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-natte.dtsi +F: arch/arm/boot/dts/at91-nattis-2-natte-2.dts F: arch/arm/boot/dts/at91-tse850-3.dts AXENTIA ASOC DRIVERS diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index d0381e9caf21..d62ee6f0271d 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -47,6 +47,7 @@ dtb-$(CONFIG_SOC_AT91SAM9) += \ at91sam9x35ek.dtb dtb-$(CONFIG_SOC_SAM_V7) += \ at91-kizbox2.dtb \ + at91-nattis-2-natte-2.dtb \ at91-sama5d27_som1_ek.dtb \ at91-sama5d2_xplained.dtb \ at91-sama5d3_xplained.dtb \ diff --git a/arch/arm/boot/dts/at91-natte.dtsi b/arch/arm/boot/dts/at91-natte.dtsi new file mode 100644 index 000000000000..49f0a0c46cde --- /dev/null +++ b/arch/arm/boot/dts/at91-natte.dtsi @@ -0,0 +1,244 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * at91-natte.dts - Device Tree include file for the Natte board + * + * Copyright (C) 2017 Axentia Technologies AB + * + * Author: Peter Rosin + */ + +/ { + mux: mux-controller { + compatible = "gpio-mux"; + #mux-control-cells = <0>; + + mux-gpios = <&ioexp 0 GPIO_ACTIVE_HIGH>, + <&ioexp 1 GPIO_ACTIVE_HIGH>, + <&ioexp 2 GPIO_ACTIVE_HIGH>; + }; + + batntc-mux { + compatible = "io-channel-mux"; + io-channels = <&adc 5>; + io-channel-names = "parent"; + mux-controls = <&mux>; + + channels = + "batntc0", "batntc1", "batntc2", "batntc3", + "batntc4", "batntc5", "batntc6", "batntc7"; + }; + + batv-mux { + compatible = "io-channel-mux"; + io-channels = <&adc 6>; + io-channel-names = "parent"; + mux-controls = <&mux>; + + channels = + "batv0", "batv1", "batv2", "batv3", + "batv4", "batv5", "batv6", "batv7"; + }; + + iout-mux { + compatible = "io-channel-mux"; + io-channels = <&adc 7>; + io-channel-names = "parent"; + mux-controls = <&mux>; + + channels = + "iout0", "iout1", "iout2", "iout3", + "iout4", "iout5", "iout6", "iout7"; + }; + + i2c-mux { + compatible = "i2c-mux"; + mux-locked; + i2c-parent = <&i2c0>; + mux-controls = <&mux>; + + #address-cells = <1>; + #size-cells = <0>; + + i2c@0 { + reg = <0>; + #address-cells = <1>; + #size-cells = <0>; + + charger@9 { + compatible = "ti,bq24735"; + reg = <0x9>; + + ti,charge-current = <2000>; + ti,charge-voltage = <16800>; + + poll-interval = <20000>; + }; + }; + + i2c@1 { + reg = <1>; + #address-cells = <1>; + #size-cells = <0>; + + charger@9 { + compatible = "ti,bq24735"; + reg = <0x9>; + + ti,charge-current = <2000>; + ti,charge-voltage = <16800>; + + poll-interval = <20000>; + }; + }; + + i2c@2 { + reg = <2>; + #address-cells = <1>; + #size-cells = <0>; + + charger@9 { + compatible = "ti,bq24735"; + reg = <0x9>; + + ti,charge-current = <2000>; + ti,charge-voltage = <16800>; + + poll-interval = <20000>; + }; + }; + + i2c@3 { + reg = <3>; + #address-cells = <1>; + #size-cells = <0>; + + charger@9 { + compatible = "ti,bq24735"; + reg = <0x9>; + + ti,charge-current = <2000>; + ti,charge-voltage = <16800>; + + poll-interval = <20000>; + }; + }; + + i2c@4 { + reg = <4>; + #address-cells = <1>; + #size-cells = <0>; + + charger@9 { + compatible = "ti,bq24735"; + reg = <0x9>; + + ti,charge-current = <2000>; + ti,charge-voltage = <16800>; + + poll-interval = <20000>; + }; + }; + + i2c@5 { + reg = <5>; + #address-cells = <1>; + #size-cells = <0>; + + charger@9 { + compatible = "ti,bq24735"; + reg = <0x9>; + + ti,charge-current = <2000>; + ti,charge-voltage = <16800>; + + poll-interval = <20000>; + }; + }; + + i2c@6 { + reg = <6>; + #address-cells = <1>; + #size-cells = <0>; + + charger@9 { + compatible = "ti,bq24735"; + reg = <0x9>; + + ti,charge-current = <2000>; + ti,charge-voltage = <16800>; + + poll-interval = <20000>; + }; + }; + + i2c@7 { + reg = <7>; + #address-cells = <1>; + #size-cells = <0>; + + charger@9 { + compatible = "ti,bq24735"; + reg = <0x9>; + + ti,charge-current = <2000>; + ti,charge-voltage = <16800>; + + poll-interval = <20000>; + }; + }; + }; +}; + +&i2c0 { + status = "okay"; + + ioexp: ioexp@20 { + #gpio-cells = <2>; + compatible = "semtech,sx1502q"; + reg = <0x20>; + + gpio-controller; + ngpios = <8>; + + pinctrl-names = "default"; + pinctrl-0 = <&gpio3_cfg_pins>; + + gpio3_cfg_pins: gpio3_cfg { + pins = "gpio3"; + bias-pull-up; + }; + }; + + adc: adc@48 { + compatible = "ti,ads1015"; + reg = <0x48>; + #io-channel-cells = <1>; + + #address-cells = <1>; + #size-cells = <0>; + + channel@4 { + reg = <4>; + ti,gain = <2>; + ti,datarate = <4>; + }; + + channel@5 { + reg = <5>; + ti,gain = <2>; + ti,datarate = <4>; + }; + + channel@6 { + reg = <6>; + ti,gain = <1>; + ti,datarate = <4>; + }; + + channel@7 { + reg = <7>; + ti,gain = <3>; + ti,datarate = <4>; + }; + }; +}; diff --git a/arch/arm/boot/dts/at91-nattis-2-natte-2.dts b/arch/arm/boot/dts/at91-nattis-2-natte-2.dts new file mode 100644 index 000000000000..3ea1d26e1c68 --- /dev/null +++ b/arch/arm/boot/dts/at91-nattis-2-natte-2.dts @@ -0,0 +1,258 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * at91-nattis-2-natte-2.dts - Device Tree file for the Linea/Nattis board + * + * Copyright (C) 2017 Axentia Technologies AB + * + * Author: Peter Rosin + */ +/dts-v1/; +#include "at91-linea.dtsi" +#include "sama5d3_lcd.dtsi" +#include "at91-natte.dtsi" + +/ { + model = "Axentia Linea-Nattis v2 Natte v2"; + compatible = "axentia,nattis-2", "axentia,natte-2", "axentia,linea", + "atmel,sama5d31", "atmel,sama5d3", "atmel,sama5"; + + ahb { + apb { + pinctrl@fffff200 { + nattis { + pinctrl_usba_vbus: usba_vbus { + atmel,pins = + ; + }; + + pinctrl_mmc0_cd: mmc0_cd { + atmel,pins = + ; + }; + + pinctrl_lcd_prlud0: lcd_prlud0 { + atmel,pins = + ; + }; + + pinctrl_lcd_hipow0: lcd_hipow0 { + atmel,pins = + ; + }; + }; + }; + + watchdog@fffffe40 { + status = "okay"; + }; + }; + }; + + gpio-keys { + compatible = "gpio-keys"; + + wakeup { + label = "Wakeup"; + linux,code = <10>; + gpio-key,wakeup; + gpios = <&pioB 27 GPIO_ACTIVE_LOW>; + }; + }; + + panel_reg: panel-regulator { + compatible = "regulator-fixed"; + regulator-name = "panel-VCC"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + }; + + bl_reg: backlight-regulator { + compatible = "regulator-fixed"; + regulator-name = "panel-VDD"; + regulator-min-microvolt = <12000000>; + regulator-max-microvolt = <12000000>; + }; + + panel_bl: backlight { + compatible = "pwm-backlight"; + pwms = <&hlcdc_pwm 0 100000 0>; + + brightness-levels = < 0 1 2 3 4 5 6 7 8 9 + 10 11 12 13 14 15 16 17 18 19 + 20 21 22 23 24 25 26 27 28 29 + 30 31 32 33 34 35 36 37 38 39 + 40 41 42 43 44 45 46 47 48 49 + 50 51 52 53 54 55 56 57 58 59 + 60 61 62 63 64 65 66 67 68 69 + 70 71 72 73 74 75 76 77 78 79 + 80 81 82 83 84 85 86 87 88 89 + 90 91 92 93 94 95 96 97 98 99 + 100>; + default-brightness-level = <40>; + + power-supply = <&bl_reg>; + enable-gpios = <&pioA 20 GPIO_ACTIVE_HIGH>; + }; + + panel: panel { + compatible = "sharp,lq150x1lg11"; + backlight = <&panel_bl>; + power-supply = <&panel_reg>; + + port { + panel_input: endpoint { + remote-endpoint = <&hlcdc_panel_output>; + }; + }; + }; + + sound { + compatible = "simple-audio-card"; + + simple-audio-card,name = "nattis-tfa9879"; + simple-audio-card,format = "i2s"; + simple-audio-card,bitclock-master = <&cpu_dai>; + simple-audio-card,frame-master = <&cpu_dai>; + simple-audio-card,widgets = "Line", "Line Out Jack"; + simple-audio-card,routing = "Line Out Jack", "LINEOUT"; + + cpu_dai: simple-audio-card,cpu { + sound-dai = <&ssc0>; + }; + + simple-audio-card,codec { + sound-dai = <&>; + }; + }; +}; + +&i2c0 { + status = "okay"; + + clock-frequency = <100000>; + + temp@18 { + compatible = "nxp,se97b", "jedec,jc-42.4-temp"; + reg = <0x18>; + smbus-timeout-disable; + }; + + eeprom@50 { + compatible = "nxp,24c02"; + reg = <0x50>; + pagesize = <16>; + }; + + amp: amplifier@6c { + compatible = "nxp,tfa9879"; + reg = <0x6c>; + #sound-dai-cells = <0>; + }; +}; + +&ssc0 { + status = "okay"; + + atmel,clk-from-rk-pin; + #sound-dai-cells = <0>; +}; + +&hlcdc { + status = "okay"; + + hlcdc-display-controller { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_lcd_base + &pinctrl_lcd_rgb565 + &pinctrl_lcd_prlud0 + &pinctrl_lcd_hipow0>; + + port@0 { + hlcdc_panel_output: endpoint { + remote-endpoint = <&panel_input>; + }; + }; + }; +}; + +&mmc0 { + status = "okay"; + + pinctrl-0 = <&pinctrl_mmc0_clk_cmd_dat0 + &pinctrl_mmc0_dat1_3 + &pinctrl_mmc0_cd>; + + slot@0 { + reg = <0>; + bus-width = <4>; + cd-gpios = <&pioD 5 GPIO_ACTIVE_HIGH>; + }; +}; + +&usart0 { + status = "okay"; + + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usart0>; + atmel,use-dma-rx; +}; + +&nand { + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + at91bootstrap@0 { + label = "at91bootstrap"; + reg = <0x0 0x40000>; + }; + + bootloader@40000 { + label = "bootloader"; + reg = <0x40000 0x80000>; + }; + + bootloaderenv@c0000 { + label = "bootloader env"; + reg = <0xc0000 0xc0000>; + }; + + dtb@180000 { + label = "device tree"; + reg = <0x180000 0x80000>; + }; + + kernel@200000 { + label = "kernel"; + reg = <0x200000 0x600000>; + }; + + rootfs@800000 { + label = "rootfs"; + reg = <0x800000 0x0f800000>; + }; + }; +}; + +&dbgu { + status = "okay"; + + atmel,use-dma-rx; +}; + +&usb0 { + status = "okay"; + + atmel,vbus-gpio = <&pioD 28 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usba_vbus>; +};