From patchwork Thu Nov 11 15:22:48 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Trimarchi X-Patchwork-Id: 1741 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 90BBE3F07B for ; Thu, 11 Nov 2021 16:23:02 +0100 (CET) Received: by mail-wm1-f72.google.com with SMTP id l187-20020a1c25c4000000b0030da46b76dasf4928372wml.9 for ; Thu, 11 Nov 2021 07:23:02 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1636644182; cv=pass; d=google.com; s=arc-20160816; b=kUFJiBCPA4bxD5yMH5h+yfQKDCkgBNPe/x76LZQfwelGP0zsZkQRJZvi8UjmFi2WEg izIt0sVp92takO6qpuaBCZAFCFe8qXRe1aOEMGtezy4N/z1DgS8BF1TvOR5OXdQyxU/8 eIHNF4LrqOyzPBUa73MJQPxEnwADMu1G3qqY039JDpqwhwozHmC1HesJtYvcjHQ6OlWK 6M4xk5MYgyP9JYU1axS5hS8s6Yqql/i6/c3S0tGwO/iACi00UiKxRg7iYLnoDhPMbPL5 wCo8BOB507V8TEB9+JyADiHIBCNoljkKK/ftTt7KymHBDHPCjtMCDce/AKDd1Y2/5nzg uzeg== 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=7lgjrWmUul4xxszYMpv7lOJm0kzuKZHmKmulHk1sPno=; b=Zw4576IvPCGQdf13eoHqzoasPm2xXLZMEXJuraayV7LSlS2tNlPXqv+RDFh4l7HOLf Bvbf51Gsz9CJP1VTkr+675jWfDISCSrX+GHg1EtVMkfk4ADOTbHj6Mtn0yDUjpF0ZICZ +x4FiYZ20zpF2WpoHdM1x8C0cJ/fkbmCV2Iak7vTJU18Ta6jwNl65m96IJCnGd2TiWng 1xii/0/gs5FQDmcRKFzSj3j2AjDwxFVQ4sUKohpXLKF5Bj6/9qPnssb0LZWBDXQXmXrs L0eSquwkBgeFBV7m+IH2jskr58dk0JhjAG5tj6JXoZ2MvJtqdpVncWnQBRXKWsRxLbEm Tn3g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=atAz6vrL; 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=7lgjrWmUul4xxszYMpv7lOJm0kzuKZHmKmulHk1sPno=; b=nkyXPnxfR7UK0JCoyHzg8OQV42ZAT/XRd//37lDTGpjOeRLofJSQYBEDGFrb84sKQ1 rp1PT6vGuMvY3qsic2SiVfVyW1uAaAq8d00AHPqnT9VIV49+SluutiEl7Yc0uQwgMpPY 31tioxtbH9GSJ0cYWGPsIgL5VtGQxdkPLKCPU= 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=7lgjrWmUul4xxszYMpv7lOJm0kzuKZHmKmulHk1sPno=; b=zLYCN/+NJzJfuYSs5ps6JQL5TCcGRQKjBqIffkmwR/PBtD3OzjvH0DlrYWBNo6Vxy6 q2KOjMyKngAscJsTcDh/J8d4tutex592HtsHnlCTffuLXAhmmhJiU+qEdTi/5bicEQvx ckUIAN7mKC25IbUX0u+XrITQg8Jsb36CfsIAF9+BcEMTd9on/RVzz6NGYx6gegCFJTbg 5fga0zCnksivvK8vwUp92Ntt8wvG1tv3PD3yfUPZhLcWHrwtXqY/tkHSrJZ089OtQF92 atV4BFEaqzAYlref9gmckXuFPU1JaE4uxRBKW2qP6+NQ9Z9ZxlLwhfSFI2FCFYVAsHr0 cPKQ== X-Gm-Message-State: AOAM533K00pWGZA4584Wne3OrWOS6xY5jA9W27VI6QzY6Hg6HRuQPZDM u2O6ywAy2bK0RFLvev5kSyNJL1cS X-Google-Smtp-Source: ABdhPJzQmN/38KlJ3l/6cZGrVPa3KkxuUhPXz/HxWOidHjTcjiHQsglP2rjXeLcU6b4fgnjhz3Oxaw== X-Received: by 2002:adf:eece:: with SMTP id a14mr9743933wrp.333.1636644182209; Thu, 11 Nov 2021 07:23:02 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:adf:f1c2:: with SMTP id z2ls2189734wro.2.gmail; Thu, 11 Nov 2021 07:23:01 -0800 (PST) X-Received: by 2002:adf:d852:: with SMTP id k18mr9207336wrl.391.1636644181141; Thu, 11 Nov 2021 07:23:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636644181; cv=none; d=google.com; s=arc-20160816; b=b5aH1HPoIWapC1CMEuj4XC1Mb/x2Br8X8yLSt0lZOnJ8OyCREP87HDY4kWqAFooTqO bogQDFmTQsdyGstb7rS5DGscEhHEm644VbVMa4VIB8/rqTmLkeUS1Na+dKBP2ljibr6u SL6GK/vtBPz9P09AeiSpiDUc2GQ0yNoYR9daTxScc8mRRBUkd3qnUEI7x0mNTMul3bso TcNtBSci8u5dmYazBLG84jVouf2d5rklBtkTj12trs2nY8O8ke8JgqNmA9o4EEMCdZRS 7DBf9JX/n1DZce3mSNG3hIs7v8Sjv9NZ7VRLGo9TweLnirVSLFih/F+CNmsq+N5TvDZV jgbw== 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=JJrVXQwodsahwsr3DihtRK4ZJ7sSZSRHh2hhpiVwKVE=; b=aKY2jMoOBfXmRDFMKwWK2r896MUckHEZXOlezQdDNOETmIXTYRo+ikiU/0KlKEz75S R8DQYWfCs+RawVffX7YNJRjf7xBUBKSkvqSjqXFLfk9jPlPsSHFOXyfTtkHVeUHHaEw7 CuW+HEWh91gxfmUUQAHxOyNgATufuAYLaY7Fu+YfyOAkbG0rbGoy9zDOsumZaqEzior7 XZcyKKzjvPCDWLBCFKAWG1l+T+GqVMZwtmWiCX6UG5dUCseQAt0mt885Dge0PZbSAMzm wQJYgCUFV32iOIB7209G0IiBo0g5tJHCUi7p7Ad5GNQ5I8dfKqqC4IchZj5Y7QT4+9E1 7m2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=atAz6vrL; 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 62sor2181495wrm.39.2021.11.11.07.23.01 for (Google Transport Security); Thu, 11 Nov 2021 07:23:01 -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:6000:12d2:: with SMTP id l18mr9896932wrx.289.1636644180650; Thu, 11 Nov 2021 07:23:00 -0800 (PST) Received: from panicking.pdxnet.pdxeng.ch ([5.171.215.77]) by smtp.gmail.com with ESMTPSA id f3sm8973683wmb.12.2021.11.11.07.22.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Nov 2021 07:23:00 -0800 (PST) From: Michael Trimarchi To: Ariel D'Alessandro Cc: linux-amarula@amarulasolutions.com, Anthony Brandon Subject: [PATCH 01/11] arm: dts: imx8ulz-smm-m2: Add BSH SMM-M2 IMX6ULZ System on Module Date: Thu, 11 Nov 2021 16:22:48 +0100 Message-Id: <20211111152258.26131-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=atAz6vrL; 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 DTSI of BSH SMM-M2 System on Module in a basic version. This version comes with: - 256B of RAM, - Nand - wifi - bluetooth Signed-off-by: Michael Trimarchi --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/imx6ulz-smm-m2.dts | 176 +++++++++++++++++++++++++++ 2 files changed, 177 insertions(+) create mode 100644 arch/arm/boot/dts/imx6ulz-smm-m2.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 7e0934180724..f3efbc4311d0 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-smm-m2.dts \ imx6ulz-14x14-evk.dtb dtb-$(CONFIG_SOC_IMX7D) += \ imx7d-cl-som-imx7.dtb \ diff --git a/arch/arm/boot/dts/imx6ulz-smm-m2.dts b/arch/arm/boot/dts/imx6ulz-smm-m2.dts new file mode 100644 index 000000000000..9068abf5289f --- /dev/null +++ b/arch/arm/boot/dts/imx6ulz-smm-m2.dts @@ -0,0 +1,176 @@ +// 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,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; + /* not let depends the bluetooth on dma */ + /delete-property/dmas; + /delete-property/dma-names; + + 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>; + /delete-property/dma; + /delete-property/dma-names; + 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 */ + >; + }; + + pinctrl_bsh_dbus_sleep: uart1grp_sleep { + fsl,pins = < + MX6UL_PAD_UART1_RX_DATA__UART1_DCE_RX 0x1b0a1 /* UART mode allow wakeup */ + MX6UL_PAD_UART1_TX_DATA__GPIO1_IO16 0x1000 + MX6UL_PAD_ENET2_TX_CLK__GPIO2_IO14 0x1b0b0 /* DBUS_WKUP */ + MX6UL_PAD_GPIO1_IO05__GPIO1_IO05 0x1000 /* DBUS_IDLE */ + >; + }; +};