From patchwork Wed Nov 17 12:09:40 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Trimarchi X-Patchwork-Id: 1774 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 BCA983F158 for ; Wed, 17 Nov 2021 13:09:45 +0100 (CET) Received: by mail-ed1-f70.google.com with SMTP id bx28-20020a0564020b5c00b003e7c42443dbsf1921744edb.15 for ; Wed, 17 Nov 2021 04:09:45 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1637150985; cv=pass; d=google.com; s=arc-20160816; b=b3CL9YooKkYN4s/6kqqa4USiFEMT7qR5fZ+oYP0VqJGHJB3HzJLKz9FMHDjYvEEpzs Q+fmVKe+qQYh9ZWGx9kCNNqB5fCyqYsVsgrpF6SbVk6U4LSUWPddk9XPUniwqhvZnvUM /QBtLgv1cYz6Iq7DvLSUVZ/DSUHLwHU7GnwutfNZg7C507PBreZaeFmBlD7Zae2cZy1B MrwFSUTvVEMhWCFYuXplaBbAtls1nbvbsNZGCNvRLGLWqfAwtjFVYtiMbvdx4it9FMMB xC6K9qQ60EvNgofU7wpaJYKX/OFaFSF675jWzoXAMc+CBc/EuSHx0ioihCwdZsmyHGjC lMeg== 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=vOSIZwqTMsjP18dZ54YweDeW12ht8LALZvRCbe1hBgA=; b=kks3xK/d8yV/oOXuCKoAb0w1qhUpPprkP9rTOW/gK1tnY5OB5LtX4GJ8NXlSi41SAt paHPCvFTbut49qFG9acO8a7q3FriwMXqRC1/wnZ5u4Vm/dN2J+f/3MM3+KrokchShFrH XuNB6SDvDr6o/xK4ocS4x9QOA0hX+aFOgtp5DQhRpBQbsGXvBcMkjeronuAkVgzDeMoM 3Nd1BQMZSOai+YT3SSLlA4CIXA3lv54NsuZWnyClWLspxn+Y/Loi33mNee2RjFbBFjv3 g8aMwXwKfjAB0eRYmPdf1q16Ez51TvWnpYUs4EJXRb9Kq7C/gSPY8oSVZlA2E8GZv9MT Z6XA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=AnCAcxBt; 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=vOSIZwqTMsjP18dZ54YweDeW12ht8LALZvRCbe1hBgA=; b=CPBnLpHtcy1KrkDeB/TfGsrjWjjzzHTJvxrfg5asoxyBHgx3WeR0Kiy9L3cnCynO1T qJoOGRGzq+arbsvcxsj5Gy3895Z5Ff3A5igPGTdjOl/NHv1gjYngsrduX1AoksJtLrIV LCas6YMO0YaUx+MTdULnjI3qZDVKR3lAgL8x4= 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=vOSIZwqTMsjP18dZ54YweDeW12ht8LALZvRCbe1hBgA=; b=nakVChWs3tCQFQ3n2qdOe4jbqpeh88qmQ1DEsGpi1ylH3dB33AGSw7oldrdAfKux5F xLKMbu7gsoBnP1zONeyz8ceKSnx4ofn1A4uT6AR1DsAcXeNuE2w0NOHoasGKT/jRfF9B 0HaQLgPU86/eoIopsKtV/fqArrnAAK25M8ddfKhbSXEYM1rEmrYVPb67hSyP33JHV48C VvCyUthRvJWQ9JoX5AXMqV3qMAuzwoFw7HHuiy9colB6YomiHpq8dl/WgSEcDtHjhHKB Be9OuZUeN0ViyjIkZvRw4WNQZ0A/RazfKO1eSTMlujAyqGNr5ueVh7MsTxja3ZR5ZsaO 3rIA== X-Gm-Message-State: AOAM533LCo7na3zOe6C74dF02PgyYszOJY0a0yl6KmeHM3wunteM10yA nKY4pMdjnsDAGupx3XpXz3TLFA/e X-Google-Smtp-Source: ABdhPJwW5fs3DUA2BPLyO7LapeKK64H1YT2tXJkfqIzCXqPEiOK4/gv1IrdYT34rveYIosrnXhvMPQ== X-Received: by 2002:a05:6402:5206:: with SMTP id s6mr16380473edd.113.1637150985487; Wed, 17 Nov 2021 04:09:45 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:907:7f0b:: with SMTP id qf11ls3781486ejc.7.gmail; Wed, 17 Nov 2021 04:09:44 -0800 (PST) X-Received: by 2002:a17:907:629b:: with SMTP id nd27mr20983153ejc.24.1637150984271; Wed, 17 Nov 2021 04:09:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1637150984; cv=none; d=google.com; s=arc-20160816; b=Kg9lR8ALDTM44w4aq0l1fOhQPvm/6+5WxUnzya3K0WpSWhjbNfwgz5SWMySe3pW086 io2SnmpJ3axXn0h9SmuqFDmAhvWWDgdlt56Yp682X/ybX82kJkX7xl8tWgJCE5hUaRx8 nbIaIBRgBTqCWi1/gHIJvzXUYi2+Y+QxpZ1RjjpxsGxfOOh6zO2SChh7T+RMGNKG9Cqk wBkPYJRct++s8Gfp5SZh5XRvZGTk4WKRcqvQcpghvHxAklQgdtjZ2DrhD5G54kXscNSs URLJroFiA9Wl9o+8UONRE/2rUkfYFnvYEBXzhVvc5XzI40LndAkr8Tm9foT/Epvr6j6b P4eg== 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=Z+eHToDfFuY97WBDQgDk8PQVwlFrZ0cnKxGlOBnuUZ4=; b=ZS1gwrBEE7AHs0lQpPou2hXFByaioOHAIsdkrH5OpeZhmr5ctbCZbUZBR4i0jM2Fak VxkZDD5B9O9xIF0enojBEqsfweOR8uHsP54INEBOTQaxjKi6qv6lYYlWZF098lBxF76k /1s8/XXudsbdMjgnKFPczOCkoOYjsLos+CEVqcHADhwbBMs46/mc4bG2lMgzHJsJTA5X RjP6w/S1VsoBBfcjpOzqCnEnSL2vx8+Vfk3zH/PGnvLF9+a2BIgVdRqhKfC5GNXREQ14 JXNyhiMOVhNki0MGBGEpZKhH3pi2dQmZlfIeUmyaG0B82+W7L+kkcoDdvJWN4MULfvhE CFtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=AnCAcxBt; 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 9sor12251563ejg.1.2021.11.17.04.09.44 for (Google Transport Security); Wed, 17 Nov 2021 04:09:44 -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:c155:: with SMTP id dp21mr20758385ejc.325.1637150983828; Wed, 17 Nov 2021 04:09:43 -0800 (PST) Received: from panicking.amarulasolutions.com ([2.196.210.5]) by smtp.gmail.com with ESMTPSA id x22sm9316299ejc.97.2021.11.17.04.09.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Nov 2021 04:09:42 -0800 (PST) From: Michael Trimarchi To: Ariel D'Alessandro , Simon Holesch Cc: linux-amarula@amarulasolutions.com, Anthony Brandon Subject: [PATCH V2] arm: dts: imx8ulz-bsh-smm-m2: Add BSH SMM-M2 IMX6ULZ SystemMaster Date: Wed, 17 Nov 2021 13:09:40 +0100 Message-Id: <20211117120940.22586-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=AnCAcxBt; 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 --- Changes V1->V2: - change model name - adjust tab/spaces - sort entries in board Makefile --- .../devicetree/bindings/arm/fsl.yaml | 1 + arch/arm/boot/dts/Makefile | 3 +- arch/arm/boot/dts/imx6ulz-bsh-smm-m2.dts | 162 ++++++++++++++++++ 3 files changed, 165 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..4150e1a18ecf --- /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 */ + >; + }; +};