From patchwork Thu Jun 14 08:51:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ben Whitten X-Patchwork-Id: 10463649 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 94C3D601F9 for ; Thu, 14 Jun 2018 08:52:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 84F742889E for ; Thu, 14 Jun 2018 08:52:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 789BB2899C; Thu, 14 Jun 2018 08:52:54 +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=-2.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, MAILING_LIST_MULTI autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.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 01BD92889E for ; Thu, 14 Jun 2018 08:52:54 +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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: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=/hbOo2u9uY5J53Q7GBf8lYuyg9jEVWIfV9DVuY3TNS0=; b=iqx 7sytjhBIhA8Wm4sKn5CasQ4+VUjbD3AOJc5ZVhG1yf4fitkUVTmz2rFJOU3+yR8ZPCqawlePum+8S lhMEoPNqBjkyL161LgwiNz8q8/w5BdwDMvR8U5HU/JHiYElUdWlsJ+fJCnG9gx2jHjiSGP687rE1O nJ7qp+uSwGMPm1IdMp2OpK9HRIVtTrhBFLoVZL1vgCXNZrHC+GsC3hr18/kq1Awz+xX6dNKhV5c0r XSjwtSIez8NTp8pE4IPofEjfisyK8Ge+t2jP6XhqMlreTvR41+d9VptUMKQQSFKF8LaMWT6/hnyis COoUor+nPG13OTSSgQ54vOjUpMxuCwQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fTNzp-0005Fv-6l; Thu, 14 Jun 2018 08:52:45 +0000 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fTNzk-0005E1-SF for linux-arm-kernel@lists.infradead.org; Thu, 14 Jun 2018 08:52:42 +0000 Received: by mail-wm0-x242.google.com with SMTP id n5-v6so10350816wmc.5 for ; Thu, 14 Jun 2018 01:52:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id; bh=f/+ni1yiQWA9KpaF63Sq0/30LM25q1FUtFjX2o4cK6k=; b=AlTF5R2MCY6X7zIvvSQD00wKN8Am3f/CZXpsf9rn987nNjL3HiBko8yOPPOP6N04Gy 6kg+FzFsVheS6V9yfz9wvFl8LOyeom/+H/UAWsrSkZCNlBMPe+BKdQVU+FNaZorHbvTH foirvgq8dCYQtSPm7SdCaEMw24gzYhNrv/oL/p3c/l72ED+KyEum7Qf38qUjzQdsLGCx lTywuRZgJipistazNWvigrFLljz4fE50Zu3RzDbBBjNtrzR1DlgGX/WKqP16QiGPS6Bz aFdyILrnjjws4XxVqTDhcxLE+NjOIcxNZH4mGl4ZGg6vh/t9xFpoKLKiGpJbwPu3XPhu CV3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=f/+ni1yiQWA9KpaF63Sq0/30LM25q1FUtFjX2o4cK6k=; b=Cj6k0v1iIeUFomO7uAkAfe+0VCx8kLZpTC3r3EcoCkhNcEnKGB8Go1ydswq01JIhGm CQWJv6/Wj8a+K03fnKdDtyQ/2krFHmIvV7Mv9BhZdnAOPejyM+fn14qeasfRpDD/v3tZ jyuKDX3fh4r/lO7RO2WKsJWg57l3iibqZmnAn/r6CMv0hneLVWzg83NyPdbUGeEIsNdd 8GEozScajJK8DRJk8UGhshHOvt3oem06de4a8WVkeZ6AtIK9T0NvkP2kRVfTzVYVf/pn UW/XjTKexEoJoHNFlir5vVejtwpWjtnVUKT++0s3OAlfRfUFd7lXU3M3UnqVP4m9OgKl UhYw== X-Gm-Message-State: APt69E3LMHS5yi7y7n9kClO04Bq3q1cV0x52V7MQ3PmdWf2oZmmzJaSp 7RTWzf/CWWJJFZEEiRcTH6s= X-Google-Smtp-Source: ADUXVKKYrgHhlWGca8MMF9i7E+5lVMiPpNc1+egHqcscs3hcdB54Jp/P5m9C1RVmMip6zM81jxAM9Q== X-Received: by 2002:a1c:6fce:: with SMTP id c75-v6mr1055789wmi.83.1528966348661; Thu, 14 Jun 2018 01:52:28 -0700 (PDT) Received: from Sarah.lan (83-167-250-20.static.masterinter.net. [83.167.250.20]) by smtp.gmail.com with ESMTPSA id 72-v6sm5452204wrb.22.2018.06.14.01.52.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 14 Jun 2018 01:52:27 -0700 (PDT) From: Ben Whitten X-Google-Original-From: Ben Whitten To: devicetree@vger.kernel.org Subject: [PATCH 1/4] arm: dts: add support for Laird WB45N cpu module and DVK Date: Thu, 14 Jun 2018 09:51:54 +0100 Message-Id: <1528966340-23216-1-git-send-email-ben.whitten@lairdtech.com> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180614_015240_958900_DD0797BB X-CRM114-Status: GOOD ( 15.85 ) 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 , Alexandre Belloni , Ben Whitten , linux-kernel@vger.kernel.org, Rob Herring , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 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: Ben Whitten --- arch/arm/boot/dts/Makefile | 3 +- arch/arm/boot/dts/at91-wb45n.dts | 66 +++++++++++++++ arch/arm/boot/dts/at91-wb45n.dtsi | 169 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 237 insertions(+), 1 deletion(-) create mode 100644 arch/arm/boot/dts/at91-wb45n.dts create mode 100644 arch/arm/boot/dts/at91-wb45n.dtsi diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 7e24249..1ee94ee 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -42,7 +42,8 @@ dtb-$(CONFIG_SOC_AT91SAM9) += \ at91sam9g25ek.dtb \ at91sam9g35ek.dtb \ at91sam9x25ek.dtb \ - at91sam9x35ek.dtb + at91sam9x35ek.dtb \ + at91-wb45n.dtb dtb-$(CONFIG_SOC_SAM_V7) += \ at91-kizbox2.dtb \ at91-nattis-2-natte-2.dtb \ diff --git a/arch/arm/boot/dts/at91-wb45n.dts b/arch/arm/boot/dts/at91-wb45n.dts new file mode 100644 index 0000000..4e88815 --- /dev/null +++ b/arch/arm/boot/dts/at91-wb45n.dts @@ -0,0 +1,66 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * at91-wb45n.dts - Device Tree file for WB45NBT board + * + * Copyright (C) 2018 Laird + * +*/ +/dts-v1/; +#include "at91-wb45n.dtsi" + +/ { + model = "Laird Workgroup Bridge 45N - Atmel AT91SAM (dt)"; + compatible = "laird,wb45n", "laird,wbxx", "atmel,at91sam9x5", "atmel,at91sam9"; + + ahb { + apb { + watchdog@fffffe40 { + status = "okay"; + }; + }; + }; + + gpio_keys { + compatible = "gpio-keys"; + #address-cells = <1>; + #size-cells = <0>; + irqbtn@pb18 { + label = "IRQBTN"; + linux,code = <99>; + gpios = <&pioB 18 GPIO_ACTIVE_LOW>; + gpio-key,wakeup = <1>; + }; + }; +}; + +&usb0 { + status = "okay"; +}; + +&mmc0 { + status = "okay"; +}; + +&spi0 { + status = "okay"; +}; + +&macb0 { + status = "okay"; +}; + +&dbgu { + status = "okay"; +}; + +&usart0 { + status = "okay"; +}; + +&usart3 { + status = "okay"; +}; + +&i2c1 { + status = "okay"; +}; diff --git a/arch/arm/boot/dts/at91-wb45n.dtsi b/arch/arm/boot/dts/at91-wb45n.dtsi new file mode 100644 index 0000000..2fa58e2 --- /dev/null +++ b/arch/arm/boot/dts/at91-wb45n.dtsi @@ -0,0 +1,169 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * at91-wb45n.dtsi - Device Tree file for WB45NBT board + * + * Copyright (C) 2018 Laird + * + */ + +#include "at91sam9g25.dtsi" + +/ { + model = "Laird Workgroup Bridge 45N - Atmel AT91SAM (dt)"; + compatible = "laird,wb45n", "laird,wbxx", "atmel,at91sam9x5", "atmel,at91sam9"; + + chosen { + bootargs = "ubi.mtd=6 root=ubi0:rootfs rootfstype=ubifs rw"; + stdout-path = "serial0:115200n8"; + }; + + memory { + reg = <0x20000000 0x4000000>; + }; + + ahb { + apb { + shdwc@fffffe10 { + atmel,wakeup-mode = "low"; + }; + + pinctrl@fffff400 { + usb2 { + pinctrl_board_usb2: usb2-board { + atmel,pins = + ; /* PB11 gpio vbus sense, deglitch */ + }; + }; + }; + + rstc@fffffe00 { + compatible = "atmel,sama5d3-rstc"; + }; + + }; + }; + + atheros { + compatible = "atheros,ath6kl"; + atheros,board-id = "SD32"; + }; +}; + +&slow_xtal { + clock-frequency = <32768>; +}; + +&main_xtal { + clock-frequency = <12000000>; +}; + +&ebi { + status = "okay"; + nand_controller: nand-controller { + pinctrl-0 = <&pinctrl_nand_cs &pinctrl_nand_rb &pinctrl_nand_oe_we>; + pinctrl-names = "default"; + status = "okay"; + + nand@3 { + reg = <0x3 0x0 0x800000>; + rb-gpios = <&pioD 5 GPIO_ACTIVE_HIGH>; + cs-gpios = <&pioD 4 GPIO_ACTIVE_HIGH>; + nand-bus-width = <8>; + nand-ecc-mode = "hw"; + nand-ecc-strength = <4>; + nand-ecc-step-size = <512>; + nand-on-flash-bbt; + label = "atmel_nand"; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + at91bootstrap@0 { + label = "at91bs"; + reg = <0x0 0x20000>; + }; + + uboot@20000 { + label = "u-boot"; + reg = <0x20000 0x80000>; + }; + + ubootenv@a0000 { + label = "u-boot-env"; + reg = <0xa0000 0x20000>; + }; + + ubootenv@c0000 { + label = "redund-env"; + reg = <0xc0000 0x20000>; + }; + + kernel-a@e0000 { + label = "kernel-a"; + reg = <0xe0000 0x280000>; + }; + + kernel-b@360000 { + label = "kernel-b"; + reg = <0x360000 0x280000>; + }; + + rootfs-a@5e0000 { + label = "rootfs-a"; + reg = <0x5e0000 0x2600000>; + }; + + rootfs-b@2be0000 { + label = "rootfs-b"; + reg = <0x2be0000 0x2600000>; + }; + + user@51e0000 { + label = "user"; + reg = <0x51e0000 0x2dc0000>; + }; + + logs@7fa0000 { + label = "logs"; + reg = <0x7fa0000 0x60000>; + }; + + }; + }; + }; +}; + +&usb0 { + num-ports = <2>; + atmel,vbus-gpio = < + &pioB 12 GPIO_ACTIVE_HIGH + &pioA 31 GPIO_ACTIVE_HIGH + >; + atmel,oc-gpio = <&pioB 13 GPIO_ACTIVE_LOW>; +}; + +&macb0 { + phy-mode = "rmii"; +}; + +&spi0 { + cs-gpios = <&pioA 14 0>, <&pioA 7 0>, <0>, <0>; +}; + +&usb2 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_board_usb2>; + atmel,vbus-gpio = <&pioB 11 GPIO_ACTIVE_HIGH>; +}; + +&mmc0 { + pinctrl-0 = < + &pinctrl_mmc0_slot0_clk_cmd_dat0 + &pinctrl_mmc0_slot0_dat1_3>; + slot@0 { + reg = <0>; + bus-width = <4>; + }; +};