From patchwork Tue Nov 16 11:49:53 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Trimarchi X-Patchwork-Id: 1772 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 8971E3F067 for ; Tue, 16 Nov 2021 12:49:57 +0100 (CET) Received: by mail-ed1-f71.google.com with SMTP id m17-20020aa7d351000000b003e7c0bc8523sf5239568edr.1 for ; Tue, 16 Nov 2021 03:49:57 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1637063397; cv=pass; d=google.com; s=arc-20160816; b=O8gLI/cx9E1rOcxzGBCMJw1RqRuGnOvDL1bJA0K2JM9SJm7+F4pxlNLNL9kmELhKOM 89AYhpuKzWSbsyLSebsgK2xOd0sLFBW3+nrfOBSp1hbFkNGpxnz8x5dpfFjDPJBd+O+6 ARpdog4gokm7/91/QUiH1ybLB7Ask6tLGLF5Jao1PQeQBvP3ZTZT7pqzYxsLNYih/SUE P6sZ1xkQruRlyhlOmNO5zQPiHTQdacGj0wofaIHgk+/FcUYcAlpHvRwSiUsxjkG5AM+2 fVYhNHLJdOy4gi1kRDTIcqq9ScwYqu8xfhbaOO159d9r/sbmJKSEqxSVKlfV4MORCsaD yfMw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:message-id:date:subject:cc:to :from:dkim-signature; bh=95BjRVYBiPRkty9RcWC3e+Gd5GJj2wosj9ivyoQ8L9c=; b=D3XJl+Lu/StuGswL75W1DHo+NBbX1m3urzBuJCtX9V0Izp//CqPBqPj24MG0K6ePLP E3bv2iZs7GuO1JPcNa+gGvarEQ7upIfkVN9GOOXGW+W8VVoaUh1/8eQkZOa7pArXhGJs xbq95kq01itjmrN1HaVM+SguqAIBmstqxCf2rnVOtudGD8H3IbOhkGifzcXD3qp4ZIZM vc5iuKLgKpGKpa3U0a+rSXQQeZETgDweXfiyZHWoxpn2erYgYMIsgShiQvsqrbZs/SM+ 2vQdaZluSlHwq64sEsR1bDwAKPgC/gT4+MR6LkxlHoMX0sSIL7XPRo/1qnaIisE/KqPJ UIwQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=o3ZLtuFs; spf=pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=michael@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=95BjRVYBiPRkty9RcWC3e+Gd5GJj2wosj9ivyoQ8L9c=; b=IbXBBpMjKo6tgtoq7IrR2UPp2HI/3IFzM0t2OnuM0oYdR+NRmv2KH19jnSJCKyNDQ3 mdn8GofZJR7q6CayT+cDpOX3hLEkx3UZ9pBIssfR5bKDJ+ifoJ09CiFv9Qa+np8OyaWp SsH/emTIzw265i0eFl+yVGLXzlVr7Re71KBTU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:x-spam-checked-in-group:list-post:list-help :list-archive:list-unsubscribe; bh=95BjRVYBiPRkty9RcWC3e+Gd5GJj2wosj9ivyoQ8L9c=; b=yB7kBTSZjtK2db5jIjA+/U9bOaE4P63Sdy6hu6zmtqXI0l93zBqEhrLuxy6SyXJFJM ZdDt5zUdWe9iX7qbxi08Y6FwJbJhVDehSLhETDe/uxe89g5ms71vaG9LWzm1SZocZrsi ebP8PFj0bWLLA6LQI5Sy/ck5pwFQfWuMPCEMK7bXlYeIsmUfqxZmQdGR0CpjXYKWKL9H xZd6wSnNJ6gAiniFeCLEnh89CUgfY0zwBAPnfYXZo8zofLpVzOCSmLJYu+ewHlGq0TcA vnoMm/+sPTWFFjURYFEpF8rmTRsSro0Z6C0/eSnANZBGkCEbyMytp+p6aU/H5K8M9tdL jZZg== X-Gm-Message-State: AOAM531rxVdBajnD/9FKTQ8Iu1+rw2CdyPRX4B/T6VjNbzqrXb6R8Et1 Vyl9LV+5HBczcrrJ2/ejSq+lXCmr X-Google-Smtp-Source: ABdhPJx+q7sjX8nO8HZBFh1+c09Jgc5YttWRJWP7IGTzFmIWC9tXBT7Dh+wH7zeQbAobdDw/zl7daw== X-Received: by 2002:a17:906:6dc9:: with SMTP id j9mr9385920ejt.317.1637063397216; Tue, 16 Nov 2021 03:49:57 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:aa7:c517:: with SMTP id o23ls2442882edq.2.gmail; Tue, 16 Nov 2021 03:49:56 -0800 (PST) X-Received: by 2002:a05:6402:270d:: with SMTP id y13mr9441685edd.362.1637063396106; Tue, 16 Nov 2021 03:49:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1637063396; cv=none; d=google.com; s=arc-20160816; b=m3R8Sbgoljdmu5bdlUivBnhn6P+jA42oj80bUydsTLeZqTiirEIQtOGofxPYhRXmX9 n5A2O+x2zP5btY+dtVI/O+y5oT8Tr9O11HL3LPeNP3IS9JfrMUC6FZEK3q0szTtbXX6K 4jwhl9hhSvkf+N1qqHEoNTSY++EVgO/z4gajOMvVuv6iZ4e55VtHGX2HGLoILM8qqjGj 29lnUuCl/sgLF4g1h71jDKQ4cF3xC21sWxBnIGSx7qceSF6Q80jKzN4XsifRFRJd0OWd WrVD4z1t+FjLzCdheYe9yEZargREEzZF2Ht6PrcL/isr6m6/pmQ24XSbldmo/IMXGiqU 0T7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=eqmlpdX8hgnK0j1bS9OawbPg/sqkE4NrHGiSkdd/iN8=; b=C7Gh/0JaIsmMcVQJqzz5nVAy8gGGGQkqsyKtQNsNEEPA+VHhuR9qhcpadbLn1gfhiy DH4Z/ItjrUjyqYCKkwTgrjZaO2Mc6SJu35V4rtlrEhzCCV1de2laV+2rpXmOcGA75vYT ek70mkEhy8EVRhNs4o7baNyXdlz0GeDu0Ay+jy9SreLJezuMS5GpFLBS7LvHl/+lPS6/ IaVskH2FaNJCYycPB265kblk97AXG4injMfnlnxPIzQSG6QOyNYew4amM4r1446bK6wc lq34ksYCNcmp645QwIIHsUFJ3deBb0/0FmqR/csiifRVI9dAm6Zc9I9XfeN3GLvFMI3p mNGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=o3ZLtuFs; spf=pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=michael@amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id m15sor6379243edd.9.2021.11.16.03.49.56 for (Google Transport Security); Tue, 16 Nov 2021 03:49:56 -0800 (PST) Received-SPF: pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a05:6402:514d:: with SMTP id n13mr9614495edd.380.1637063395726; Tue, 16 Nov 2021 03:49:55 -0800 (PST) Received: from panicking.amarulasolutions.com ([2.196.210.5]) by smtp.gmail.com with ESMTPSA id x15sm5300277edq.65.2021.11.16.03.49.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Nov 2021 03:49:55 -0800 (PST) From: Michael Trimarchi To: Ariel D'Alessandro , Simon Holesch Cc: linux-amarula@amarulasolutions.com, Anthony Brandon Subject: [PATCH] arm: dts: imx8ulz-bsh-smm-m2: Add BSH SMM-M2 IMX6ULZ SystemMaster Date: Tue, 16 Nov 2021 12:49:53 +0100 Message-Id: <20211116114953.151265-1-michael@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Original-Sender: michael@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=o3ZLtuFs; spf=pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=michael@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Add DTS of BSH SMM-M2 SystemMaster. This version comes with: - 128 MiB DDR3 RAM - 256 MiB Nand - wifi - bluetooth Signed-off-by: Michael Trimarchi --- .../devicetree/bindings/arm/fsl.yaml | 1 + arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/imx6ulz-bsh-smm-m2.dts | 162 ++++++++++++++++++ 3 files changed, 164 insertions(+) create mode 100644 arch/arm/boot/dts/imx6ulz-bsh-smm-m2.dts diff --git a/Documentation/devicetree/bindings/arm/fsl.yaml b/Documentation/devicetree/bindings/arm/fsl.yaml index 60f4862ba15e..61229c6d0a37 100644 --- a/Documentation/devicetree/bindings/arm/fsl.yaml +++ b/Documentation/devicetree/bindings/arm/fsl.yaml @@ -615,6 +615,7 @@ properties: items: - enum: - fsl,imx6ulz-14x14-evk # i.MX6 ULZ 14x14 EVK Board + - bsh,imx6ulz-bsh-smm-m2 # i.MX6 ULZ BSH SystemMaster - const: fsl,imx6ull # This seems odd. Should be last? - const: fsl,imx6ulz diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 7e0934180724..7bcbdd65684b 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -678,6 +678,7 @@ dtb-$(CONFIG_SOC_IMX6UL) += \ imx6ull-phytec-segin-ff-rdk-nand.dtb \ imx6ull-phytec-segin-ff-rdk-emmc.dtb \ imx6ull-phytec-segin-lc-rdk-nand.dtb \ + imx6ulz-bsh-smm-m2.dts \ imx6ulz-14x14-evk.dtb dtb-$(CONFIG_SOC_IMX7D) += \ imx7d-cl-som-imx7.dtb \ diff --git a/arch/arm/boot/dts/imx6ulz-bsh-smm-m2.dts b/arch/arm/boot/dts/imx6ulz-bsh-smm-m2.dts new file mode 100644 index 000000000000..dc9f56d30256 --- /dev/null +++ b/arch/arm/boot/dts/imx6ulz-bsh-smm-m2.dts @@ -0,0 +1,162 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/* + * Copyright (C) 2020 BSH Hausgeraete GmbH + * + */ + +/dts-v1/; + +#include +#include "imx6ulz.dtsi" + +/ { + model = "BSH - SMM-M2"; + compatible = "bsh,imx6ulz-bsh-smm-m2", "fsl,imx6ull"; + + chosen { + stdout-path = &uart4; + }; + + usdhc2_pwrseq: usdhc2_pwrseq { + compatible = "mmc-pwrseq-simple"; + reset-gpios = <&gpio2 21 GPIO_ACTIVE_LOW>; + status = "okay"; + }; + +}; + +&uart3 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_bluetooth_uart>; + uart-has-rtscts; + + status = "okay"; + + bluetooth { + compatible = "brcm,bcm4330-bt"; + max-speed = <3000000>; + shutdown-gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>; + device-wakeup-gpios = <&gpio2 17 GPIO_ACTIVE_HIGH>; + host-wakeup-gpios = <&gpio2 13 GPIO_ACTIVE_HIGH>; + }; +}; + +&uart4 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_debug_uart>; + status = "okay"; +}; + +&usbotg1 { + dr_mode = "peripheral"; + srp-disable; + hnp-disable; + adp-disable; + status = "okay"; +}; + +&usbphy1 { + fsl,tx-d-cal = <106>; +}; + +&usdhc2 { + #address-cells = <1>; + #size-cells = <0>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_wlan>; + bus-width = <4>; + no-1-8-v; + non-removable; + cap-power-off-card; + pm-ignore-notify; + keep-power-in-suspend; + wifi-host; + cap-sdio-irq; + mmc-pwrseq = <&usdhc2_pwrseq>; + status = "okay"; + + brcmf: wifi@1 { + reg = <1>; + compatible = "brcm,bcm4329-fmac"; + interrupt-parent = <&gpio1>; + interrupts = <18 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "host-wake"; + }; +}; + +&wdog1 { + status = "okay"; +}; + +&gpmi { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_gpmi_nand>; + status = "okay"; + nand-on-flash-bbt; +}; + +&tempmon { + status = "disabled"; +}; + +&iomuxc_snvs { + status = "disabled"; +}; + +&iomuxc { + pinctrl_bluetooth_uart: uart3grp { + fsl,pins = < + MX6UL_PAD_UART3_TX_DATA__UART3_DCE_TX 0x1b0b1 + MX6UL_PAD_UART3_RX_DATA__UART3_DCE_RX 0x1b099 + MX6UL_PAD_UART3_RTS_B__UART3_DCE_RTS 0x1b0b1 + MX6UL_PAD_UART3_CTS_B__UART3_DCE_CTS 0x1b099 + + MX6UL_PAD_GPIO1_IO01__GPIO1_IO01 0x79 /* BT_REG_ON */ + MX6UL_PAD_SD1_CLK__GPIO2_IO17 0x100b1 /* BT_DEV_WAKE out */ + MX6UL_PAD_ENET2_TX_EN__GPIO2_IO13 0x1b0b0 /* BT_HOST_WAKE in */ + >; + }; + + pinctrl_debug_uart: uart4grp { + fsl,pins = < + MX6UL_PAD_UART4_TX_DATA__UART4_DCE_TX 0x1b0b1 + MX6UL_PAD_UART4_RX_DATA__UART4_DCE_RX 0x1b0b1 + >; + }; + + pinctrl_gpmi_nand: gpmi-nand { + fsl,pins = < + MX6UL_PAD_NAND_CLE__RAWNAND_CLE 0xb0b1 + MX6UL_PAD_NAND_ALE__RAWNAND_ALE 0xb0b1 + MX6UL_PAD_NAND_WP_B__RAWNAND_WP_B 0xb0b1 + MX6UL_PAD_NAND_READY_B__RAWNAND_READY_B 0xb000 + MX6UL_PAD_NAND_CE0_B__RAWNAND_CE0_B 0xb0b1 + MX6UL_PAD_NAND_RE_B__RAWNAND_RE_B 0xb0b1 + MX6UL_PAD_NAND_WE_B__RAWNAND_WE_B 0xb0b1 + MX6UL_PAD_NAND_DATA00__RAWNAND_DATA00 0xb0b1 + MX6UL_PAD_NAND_DATA01__RAWNAND_DATA01 0xb0b1 + MX6UL_PAD_NAND_DATA02__RAWNAND_DATA02 0xb0b1 + MX6UL_PAD_NAND_DATA03__RAWNAND_DATA03 0xb0b1 + MX6UL_PAD_NAND_DATA04__RAWNAND_DATA04 0xb0b1 + MX6UL_PAD_NAND_DATA05__RAWNAND_DATA05 0xb0b1 + MX6UL_PAD_NAND_DATA06__RAWNAND_DATA06 0xb0b1 + MX6UL_PAD_NAND_DATA07__RAWNAND_DATA07 0xb0b1 + >; + }; + + pinctrl_wlan: wlangrp { + fsl,pins = < + MX6UL_PAD_CSI_HSYNC__USDHC2_CMD 0x17059 + MX6UL_PAD_CSI_VSYNC__USDHC2_CLK 0x10059 + MX6UL_PAD_CSI_DATA00__USDHC2_DATA0 0x17059 + MX6UL_PAD_CSI_DATA01__USDHC2_DATA1 0x17059 + MX6UL_PAD_CSI_DATA02__USDHC2_DATA2 0x17059 + MX6UL_PAD_CSI_DATA03__USDHC2_DATA3 0x17059 + + MX6UL_PAD_SD1_DATA3__GPIO2_IO21 0x79 /* WL_REG_ON */ + MX6UL_PAD_UART2_CTS_B__GPIO1_IO22 0x100b1 /* WL_DEV_WAKE - WiFi_GPIO_4 - WiFi FW UART */ + MX6UL_PAD_UART1_CTS_B__GPIO1_IO18 0x1b0b1 /* WL_HOST_WAKE - WIFI_GPIO_0 - OOB IRQ */ + MX6UL_PAD_ENET1_RX_EN__OSC32K_32K_OUT 0x4001b031 /* OSC 32Khz wifi clk in */ + >; + }; +};