From patchwork Wed Nov 17 13:16:37 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Trimarchi X-Patchwork-Id: 1775 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id DD81B3F157 for ; Wed, 17 Nov 2021 14:16:45 +0100 (CET) Received: by mail-ed1-f70.google.com with SMTP id v9-20020a50d849000000b003dcb31eabaasf2091251edj.13 for ; Wed, 17 Nov 2021 05:16:45 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1637155005; cv=pass; d=google.com; s=arc-20160816; b=XR/47BhpNAo8udlBOyj7uhy6TDF+wVFs0xUjmqxBaAHWRi/RecvEx6E2EOxbvL0wcH hXSIa/7enJcWBLoIeHBe8FuTxGjzAEgkKSNNe/0LZQMyHlZsO8YPtITABUH/3aKu4fvn rddG8/2JoRJv0eZEBy+JMgvpMV4ub6cmhe+4qFMNquNqEYJ0qQ4Y/zQLKlCj3ZxVrn0c m4irUSiOrEYwpF6MZEDm9hrYIhf48Aaf4KeUhgSzyOIAQ8ZJvYAYOwN+vkKLVsIN0tr4 fboK1uo2S7sfW3hVMJIB09l2bJGIS8U4F52Tha1LvVsr7xHEAMzJ2Wz4P7G7jdSn0JKG y+1w== 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=t6lqtobPjyLsvTK/FymLlqw5OTXb1OgF76T9+ajkdPc=; b=Uhv+ENHe9DZ0wKSdJbjniMpD4rOS5UlzZ9ylXT/ncCzNR7VOXd2OiV7ogDfhidtjjf ADHCLdvS366f8ajvXqXAarf3LeNJbMWykF5ZxqOA5DPg6cf5KtwHXQSfEkwKVhSQrPPh Be/+EMiZ3wIJ3lp7rRJzFdayaaUVS3kazhRw9ydZwz9T0v15iuX9T659haTkns83/Qr2 EdYP4mTC9hsntopszoUw3LDqv+QwHd+ujf0bY5EIspPZ205EeFEsXvtFDCcHoCh0z4zc yb6KnjqpnP2WNNjzsO0kXdwGga+kHQw14h2yTSUwx5/dCrQ22KpWS4ZAOoLF89QIcR7G sa0w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=fpQxoXdm; 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=t6lqtobPjyLsvTK/FymLlqw5OTXb1OgF76T9+ajkdPc=; b=FeYfFBza5krfMT0mq1/wPk4vPub9BDM0K3wUvu9vHZIm+M6XYFKONVpC7PGktjadiq jPf//eDswEDYw54tLBEUGxCFTkG0YGXlI3nWDsT6G0Thydj48rNY+1lFrGAFHdlRbvbo 2Y8aHXiAIpIb8NwHzNyZJAIkVV1hNNlrX9AD4= 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=t6lqtobPjyLsvTK/FymLlqw5OTXb1OgF76T9+ajkdPc=; b=KmqHmNL8RFYG31YJUmhGRKBhly+OHqXv/H3gmoCd/YFeVHDR7oQwI1VSdCeNrg3nkj xFBUFoKUFV//VR9ETjG+2gNpCN3QxdX0HkP0yQ18TX/cG0f7vO8eL99jAfUInZfsDYJU 4k1mVLzAHfSm9FAaSWnMMinzvIbMpgOr03SLnAtMjLmSc26HYNlNCrc6EbMFj680OpAA 5kYB3mhWc9oofjlMx2FBLqD5grEOVSNTq15uBtzikzcIB0ML00LhDkLewrI1oIkFlRqh wMG0byVNxV/Qyy/nlZMR+kcPf6WcH/ZidIJDgTJJer/Spr4pnCrb2UDvPtLRvBWM8IMa N6wA== X-Gm-Message-State: AOAM532578eHPbd/lFcdfdIYv5lcqXpx30oXgHAG5efptvGRI9S0Q6tp sgoIozVltDXxmGuqAwcOsXbCarBU X-Google-Smtp-Source: ABdhPJyL0q22QwZHe1kj+95sBH5YpRla6lIqlxt3AQn+1TbJtou3/zMG0dFLQ22EMvMcLfYgI0UHOQ== X-Received: by 2002:a05:6402:1ca2:: with SMTP id cz2mr21882851edb.302.1637155005605; Wed, 17 Nov 2021 05:16:45 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:906:5941:: with SMTP id g1ls8854002ejr.10.gmail; Wed, 17 Nov 2021 05:16:44 -0800 (PST) X-Received: by 2002:a17:907:2ce1:: with SMTP id hz1mr21529807ejc.96.1637155004449; Wed, 17 Nov 2021 05:16:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1637155004; cv=none; d=google.com; s=arc-20160816; b=RcvBNxKOP09wnN24N0SShQWOvJBimtLaTQTcypZZDSiyyAOQhzkEn4+NAETQKle4Be GYxiblawcd6HDz0SBOCov63KjuZ62Nn3+xa37XTEUc1lOw15QNuk2XP/5twXOxJvL3O4 UgrzvCqcE+doljbZjYKAeQCS+WS3tcZjPBDCT4ET0gYu6B3JMel92bR0AnxTFp0GqZHY ziFR0MlQaw6iIpjV5cmpQ2OtAelyYLXEplZJx/9996ZHue445Ci0t6D3vWgpOCKM2TXq fZ7GtnYHNJtdWCR1LtD9l+ybtBOQLE4jcaFtmcS2yBqRt3o+rt5YvtZhic9qXyrU6BCf MNFg== 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=xG5s28X5aIBG8my8+og+sYTUc06/UiqnH6GkwI/d7wU=; b=E9CI+dxLXlsH85VFB3stWdDTSuDYu8Ro3c53IPHgosxOhRaf6eV660aY7VQh8xuwpH 7uXDpBEIe4WdjhhWmOFXHnqPH0Nf5/HFzVa4Y4kOUe/nQszVMK3lvWk1Ox60zW7GNODZ 9KvDVQDVAvNiWri8plc4ySq/2ZxSIt0kB4BhIZf3SJaGv1/4Z9Ck0DwwzQ1y+A2cv4Ci MDT40+RwDojG9OvMnwOmcZOBrtmqaF9A+QfA0qh0ltwzwPCijG/UeRGfxnDXAtVADbVr 0SDdKWQfWZABNP6DiDYGX0LTeBDU9iZzVHEnp4Rz+/qb/8IrW5ij/DBF2auH0vuA+B52 6cSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=fpQxoXdm; 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 l15sor12353746ejn.91.2021.11.17.05.16.43 for (Google Transport Security); Wed, 17 Nov 2021 05:16:43 -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:a17:906:d9c8:: with SMTP id qk8mr22325140ejb.306.1637155000745; Wed, 17 Nov 2021 05:16:40 -0800 (PST) Received: from panicking.amarulasolutions.com ([2.196.208.74]) by smtp.gmail.com with ESMTPSA id cs12sm10103941ejc.15.2021.11.17.05.16.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Nov 2021 05:16:39 -0800 (PST) From: Michael Trimarchi To: Ariel D'Alessandro , Simon Holesch Cc: linux-amarula@amarulasolutions.com, Anthony Brandon Subject: [PATCH V3] arm: dts: imx8ulz-bsh-smm-m2: Add BSH SMM-M2 IMX6ULZ SystemMaster Date: Wed, 17 Nov 2021 14:16:37 +0100 Message-Id: <20211117131637.27886-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=fpQxoXdm; 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: Ariel D'Alessandro Signed-off-by: Michael Trimarchi --- Changes V2->V3: - Copyright 2021 - Add ariel - drop tempmon and iomuxc_snvs disabled --- .../devicetree/bindings/arm/fsl.yaml | 1 + arch/arm/boot/dts/Makefile | 3 +- arch/arm/boot/dts/imx6ulz-bsh-smm-m2.dts | 154 ++++++++++++++++++ 3 files changed, 157 insertions(+), 1 deletion(-) 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..8a8b30c23861 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -678,7 +678,8 @@ 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-14x14-evk.dtb + imx6ulz-14x14-evk.dtb \ + imx6ulz-bsh-smm-m2.dts dtb-$(CONFIG_SOC_IMX7D) += \ imx7d-cl-som-imx7.dtb \ imx7d-colibri-aster.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..92668d681b85 --- /dev/null +++ b/arch/arm/boot/dts/imx6ulz-bsh-smm-m2.dts @@ -0,0 +1,154 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/* + * Copyright (C) 2021 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; +}; + +&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 */ + >; + }; +};