From patchwork Wed Aug 14 14:49:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tarang Raval X-Patchwork-Id: 13763599 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C01E3C52D7D for ; Wed, 14 Aug 2024 14:52:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Content-Type: Content-Transfer-Encoding:Message-Id:Date:Subject:Cc: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=N1UpwaqhLQ36q8A037Tb/VfllMBNxyC+xjuMEH0PY2k=; b=Upbc/ChiS1hwCfyo29xG22VXUh B8eMR/JX4QSRiusNk464w5+ACJQ6BMske/6YF0vmSv6Bor6FWcw9+MjFhp26VBUpqFcmbCsEUbJbl JIEA18Ctd1RgE0tV3suATMnNu3JAg6TgsPpTRGmtRM0FKivPnvMQ4hGcxTV6UTXMhZbWlgJQJuXfA W9uB4RzlMOk9z0rpDAI+ICl+maf5lmlLMBMH5cpunhCXDDQWmFLpNkcmLnG9EcamjrinlSV1esmrU /9k2RyvETJRLMOQhzD5RUYRrqXiFIevtblqa7z5VKrvOvtvmNzoEVthimKYk5uDpJRyh/wiLcjCMe gwWuO4Ow==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1seFLp-00000007MsW-052w; Wed, 14 Aug 2024 14:51:49 +0000 Received: from mail-bmxind01on2071b.outbound.protection.outlook.com ([2a01:111:f403:2021::71b] helo=IND01-BMX-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1seFLB-00000007MiV-0fOh for linux-arm-kernel@lists.infradead.org; Wed, 14 Aug 2024 14:51:10 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=H1GlvtZkhOg6nvGb2lZiJ7nZd2G4VaTFemhuKDcaxu6pv4OWltCxKDHvnStNniOK+t+LpvosXV9/x04b4BIop56D+0WulrZcT+GrTxXkW3HqZiPpjjQdJSILmuPuVSJgbSp2SYuzzjs0qCTvdsslB1oA4igb1G4Da3FIbUAder38Ehn6s/L8Q1KBK0vz7zGETc/hY0YSOHHITkq4eQsR2Zbrj19/3FHyU28/MioADrchaiwQP6Wq8TfmDkoSlSx2ou04p187VByL9VdAWp7EhYV7ysOz2dSKyyNOuglJedhlTxIhF4bg2znL3Vew2TE7jdoBtBKbyLJ+i6FESImkuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=N1UpwaqhLQ36q8A037Tb/VfllMBNxyC+xjuMEH0PY2k=; b=Vc8xJczsWvvU9628h+HrZgAokNcwScqoI6Rw0vn0XQptUL1l9jAASCIB9IuKk9YVEcov1IH6lwJY5yKJ/Qb1IVvOocPBlWsKt3gEneV6l8wqb9PbDkR8FymPZRx1XcQEIyHFUwzZdQLWaeiMsftl39h8xw9/7WNb1Hz8KVRqNjfJh22w2TMHjwQo9lbF5qfT/GcdScJgK7HCozu6sRyD1rd7AvNxJpjefJLMLRG0/zs670gNp3W1YBX3358b48gNyVxV8T8hJkYZA9B98yVvzIAcGYCjf+RwGodo7GpcYX0O4bLRamcAJRGMDxdgojlsTMiOOXOGq1Cn37LTdqGT1A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=siliconsignals.io; dmarc=pass action=none header.from=siliconsignals.io; dkim=pass header.d=siliconsignals.io; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=siliconsignals.io; Received: from PN3P287MB1829.INDP287.PROD.OUTLOOK.COM (2603:1096:c01:199::7) by PN0P287MB2004.INDP287.PROD.OUTLOOK.COM (2603:1096:c01:1b8::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7849.22; Wed, 14 Aug 2024 14:50:58 +0000 Received: from PN3P287MB1829.INDP287.PROD.OUTLOOK.COM ([fe80::58ec:81a0:9454:689f]) by PN3P287MB1829.INDP287.PROD.OUTLOOK.COM ([fe80::58ec:81a0:9454:689f%5]) with mapi id 15.20.7849.021; Wed, 14 Aug 2024 14:50:58 +0000 From: Tarang Raval To: shawnguo@kernel.org, krzk+dt@kernel.org, festevam@gmail.com Cc: tarang.raval@siliconsignals.io, Rob Herring , Conor Dooley , Sascha Hauer , Pengutronix Kernel Team , devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] arm64: dts: imx8mm-emtop-baseboard: Add Peripherals Support Date: Wed, 14 Aug 2024 20:19:56 +0530 Message-Id: <20240814144957.93183-1-tarang.raval@siliconsignals.io> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: BM1PR01CA0165.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:68::35) To PN3P287MB1829.INDP287.PROD.OUTLOOK.COM (2603:1096:c01:199::7) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PN3P287MB1829:EE_|PN0P287MB2004:EE_ X-MS-Office365-Filtering-Correlation-Id: bd721151-8607-438b-1b16-08dcbc7081b5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|52116014|7416014|376014|38350700014; X-Microsoft-Antispam-Message-Info: ZaprPkgi2ds7lcahMs7tXRhl4c7uReCBQws7qYcnC0MLDPLP6Xo3OKCFMn/3UNdcMHPXaf/Acg2o7wi57VLrvA9QVH01qKTTPVnqNvmRdqi2UaJglIdKrr+n8ZCloe0L7WMRiInEHpUTQLfwSO7WTqpFKuIHFS1kZ93Gn6rZeTf4FDyP1/2n7NO7ibG4T6xyUIcpQGJcuLIjNxvI06MZPi8nx3DriDJcDufuCEZx/o3Xbcy0gFUJkWxTVnQhvRm9kkYL//qs7VOXgwdelFSUKT4XRIK6ewOffJnncHciXZwKABgGIR9pzBGXwGh+/xbWY+wGldbHX4SMo5KDbFdEEYY+uEokr7dx7ui3QWxIEmnf5Dg2ubavICQ7FyrMm5MOHCD1R7gXRlzD7Fm3Mo3MT+FOy6Sva28mmKO67P59McXn8lcVJVDELm1U0W8r6JtmkgzCSm2YA/MdsEsxMp0op97aJJTFFyC2AAR6mVrW8xGwpT7lTZqPhXVe4q7x9GjUxVFvdBeTLx7zPEvXmFyoi9KACfwf47OPkP2g+Ksmw2YR9grMHw5ZGJ5QPh1dLRTj2HOFUeIvOER53Ws7Bhg84IgqhVzkg3JenxmxaZzZS+m36+P1XmWKV54ZGAB8TxwUHILFB5fYR5hwaNVW87b83J4cLTAXQUZPbFk08STDYsCGrXIF6N8LV6NgG4oymMAkH6H35TTwjhuiEfACmyXTUsogetZlaeqSyyjq7ttvQVXlspnC4s/vsylp+sLLognlxPphPo0BSgVZXlxfVnV/FOKHcqJTeG90uGmFdosmLtED6fFGDS6vads4xp9Dxsq2vuY+jeFPdu/w+7e25vJrjOidAP0Z3N0IDobiNVqiwDGJ4McPyq8bZiLyFsvaNU41wLcLozVR+xbFqphi3P8aYbykeEye4DwJXMEWddMbqgBA2V9/VNtxJrk9HBjN50h/y9E6VxXaCXYSuT4QElvNOwUa9YdTk9xDQvBJ4ZZuFrhlNVfL6ndkVuirklwnkOvetwEafmQraPszI/sgHYWKyNygYyH5upQWdcRkudKfOpqb0TKmbXGvdcsi2THG7XOxjR63Lqp5Fd6bpeulPtbw/vCOJ+YbYwjCdoonFcv0mVpY0EBXcR+8578LgNR0aYIJmNEN5n8BLX6829blNJRgKIQ+5cYK/hYgRdomexE9HPpZzGhsgZsCZt7wuTgzdzN48qTWbT86biPLb4qBpgJfIKiFmgakw4i/x7lf2m7ORHK5lxKn9VyFDomuuQte2zN2NvM4YtOrdErxt2TbZHmdyjr/aiTxcAMNlIJkgbqEXJIbACf3dhyfV8C2xJsYPhFhrcQXqUhnWZQveGFxaSUtnzEwom2BWOkx8Dfgj+obwUhJPM6lxBTqjJrWLrvLlXh9ikXPdUeHvedm4g+M+8GM/w== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PN3P287MB1829.INDP287.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(366016)(52116014)(7416014)(376014)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: QwQKw92bDZqrN0LxVa/8judyzKPyA6HC7ugXQe7fIhfdsh8x4gMRw0IqsnRrG1/4oawZBl0JiAh0r/lC11eXRH7RpKLBCHxjHVQAvwZLZELAbQnOBDeRwGegeHuwA5cPcp3FUYsI+eKUCbTmMthH2aBvu4mjPcTOcNyqt0Mdgs3vE3W+JtZcPcKjmoMFLQOln0RO8BDwZ6S33+Zo4NeExPs22v6U2gCKWZLrt/8ZdnHatdDjz3z3HrOz4FEcF9+K9GAX8tucVRjec96lRRBEJWk1OGr56cuUngxLIxuQbEadMC27pFGt+ZdZtpXag3EI4sJLyzReUNUvZlQIJmqDEAZFhbTcSYmOLAzfjl+huTlPr1of/3JIXxTN4/429d4Y8JL9JeBEuYEWSaT2zxUHDhzF1MJNBmw/ZOCWSlYD48iHzJSvZp4LieaTwp77oUmxUVcwmJQwjCsX+bCZULDFM1gTIZcQ/HECtHVOryUC1RG31eQ3IoQDW7xc4raS7uehCvIKbNg4jk4Ssqm/jrujNOSIzUAmup+VIxrJG6G8HjgO73UpOnRi7sPolZvOxgG2BDpcdxobwtZnXpAGOmVFCwtdU7588cMfC1ez17o1bI6uWp8KwabT/D/PcIUqLtZSrtESmNOFCnhQDZDTdRnahUjQcehyXivG1lkJcJyT/SxEqQ8jEHUsOuNMZ52gnOwAgIFH0MMOhP5TkLpOPpLi9UNDMHpaSh5V8l6dVDKZWtAsSbv6rIp+CueLbec1WRQXQXzcbDowJG1WKnghgauqB5EGGL0JzqNgI2tUg/lbIrnBxEpHF7neRWIj71qb7WmXKOnuNn6ht/BR98HeDMwFI5Zqbum2eNP0tniX01vhImuRuSCTs3PSC6JXnXkoFTMwVk7WnQ0IuOtstoqzQL8tv/XFf9JErm1vxIxWV0rCuEU74d+OmQ2W72d7aJmQ0oEY9g2uVbpcpKWiKevN2Kilw1Pjt9LHHBC0ruqldsW8XNgwp4NsipsusVZQuJ/psPy/M/OJ/h0qroN/axFT0LALvZsQHlTw+ufIlCrXKPsZ9izMCytvmeAGhfb9AgWZ/aVWhpCq+SCYXwZIPJNuPFUFnleqH2UZGZ0lQYW9RPAfNgm5Jp/O83FuwUoAXFWWFy7nIJ+SGdkg8SREeDHFfMbdMwxOY5d0LZV+E2XigdKzN6uWY9yINuyIz8jDnvprupQXffjcltPsZXstgEUjlbPVnsDKC+dTSGLxwYPhS0MJxXz6C7WcBEcINvaNH6E1Rsh4Xv6Q0iq2Y4fghmhEUdx2EYtnDse/IEaS4i0BXzCMDhh5pfr3zmav61wUB9n6xyVwh5s7qffUcRrwY1/eGDk9j+hL4OZ6+15atkmEQzcO/5bjznx7TSwxdtuWlyBMPJ0dEEEP9S3Z3Yy6aEUq6mQ+KK4z1EzNiJdajp8d+BkeT4OfcG6x/zeSTDKDP7M5udTG5RDbsGIN6OOXPGnR0x41MAxvKb8BlMpWlY4EQEqnYsNptJSoMPpzyd/yHct5XUXa55J5GNFeDWlNzp3ZJTLEcjg9SI30hrmnRKsSVdNLoNnXQsk3S5KnBxBKNVwu82LodPs0wgDJEKaMlu57hbohkEWN9tm6ql/FyOHgmWE2/UI= X-OriginatorOrg: siliconsignals.io X-MS-Exchange-CrossTenant-Network-Message-Id: bd721151-8607-438b-1b16-08dcbc7081b5 X-MS-Exchange-CrossTenant-AuthSource: PN3P287MB1829.INDP287.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Aug 2024 14:50:57.9411 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 7ec5089e-a433-4bd1-a638-82ee62e21d37 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: UaNLM8iXjSK0iBnW2BGN7B+w6NeqTsnJ/dOgd1u89V+tWYVgjwm/CHAHOzYlvAH/L6ISJ1wBrv95H7E9MSZ18KZUne/VZSyeNXAyZVgGrks= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PN0P287MB2004 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240814_075109_455628_8D738ED3 X-CRM114-Status: GOOD ( 10.03 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This adds the following peripherals support for the Emtop i.MX8M Mini Baseboard * Wi-Fi * Audio * SD card * RTC * CAN bus * USB OTG Signed-off-by: Tarang Raval --- .../dts/freescale/imx8mm-emtop-baseboard.dts | 347 ++++++++++++++++++ .../boot/dts/freescale/imx8mm-emtop-som.dtsi | 1 + 2 files changed, 348 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mm-emtop-baseboard.dts b/arch/arm64/boot/dts/freescale/imx8mm-emtop-baseboard.dts index 7d2cb74c64ee..5ce8f21a0b1b 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm-emtop-baseboard.dts +++ b/arch/arm64/boot/dts/freescale/imx8mm-emtop-baseboard.dts @@ -11,6 +11,129 @@ / { model = "Emtop Embedded Solutions i.MX8M Mini Baseboard V1"; compatible = "ees,imx8mm-emtop-baseboard", "ees,imx8mm-emtop-som", "fsl,imx8mm"; + + extcon_usb: extcon_usb1otg { + compatible = "linux,extcon-usb-gpio"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_extcon_usb>; + id-gpio = <&gpio1 10 GPIO_ACTIVE_HIGH>; + enable-gpio = <&gpio1 12 GPIO_ACTIVE_LOW>; + }; + + modem_reset: modem-reset { + compatible = "gpio-reset"; + reset-gpios = <&gpio2 6 GPIO_ACTIVE_LOW>; + reset-delay-us = <2000>; + reset-post-delay-ms = <40>; + #reset-cells = <0>; + }; + + leds { + compatible = "gpio-leds"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_gpio_led>; + + beep { + label = "beep"; + gpios = <&gpio4 29 GPIO_ACTIVE_HIGH>; + default-state = "off"; + }; + + canbus_reset { + label = "canbus_reset"; + gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>; + default-state = "on"; + }; + }; + + osc_can: clock-osc-can { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <16000000>; + clock-output-names = "osc-can"; + }; + + regulators { + compatible = "simple-bus"; + #address-cells = <1>; + #size-cells = <0>; + + reg_audio: regulator-audio-vdd { + compatible = "regulator-fixed"; + regulator-name = "wm8904_supply"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + }; + + reg_wifi_vmmc: regulator@1 { + compatible = "regulator-fixed"; + regulator-name = "vmmc"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + gpio = <&gpio2 10 GPIO_ACTIVE_HIGH>; + off-on-delay = <20000>; + startup-delay-us = <100>; + enable-active-high; + }; + }; + + sound-wm8904 { + compatible = "simple-audio-card"; + simple-audio-card,bitclock-master = <&dailink_master>; + simple-audio-card,format = "i2s"; + simple-audio-card,frame-master = <&dailink_master>; + simple-audio-card,name = "wm8904-audio"; + simple-audio-card,mclk-fs = <256>; + simple-audio-card,routing = + "Headphone Jack", "HPOUTL", + "Headphone Jack", "HPOUTR", + "IN2L", "Line In Jack", + "IN2R", "Line In Jack", + "Headphone Jack", "MICBIAS", + "IN1L", "Headphone Jack"; + + simple-audio-card,widgets = + "Microphone","Headphone Jack", + "Headphone", "Headphone Jack", + "Line", "Line In Jack"; + + dailink_master: simple-audio-card,codec { + sound-dai = <&wm8904>; + }; + + simple-audio-card,cpu { + sound-dai = <&sai3>; + }; + }; + + sound-spdif { + compatible = "fsl,imx-audio-spdif"; + model = "imx-spdif"; + spdif-controller = <&spdif1>; + spdif-out; + spdif-in; + }; + +}; + +/* CAN BUS */ +&ecspi2 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_ecspi2>; + status = "okay"; + + canbus: mcp2515@0 { + compatible = "microchip,mcp2515"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_canbus>; + reg = <0>; + clocks = <&osc_can>; + interrupt-parent = <&gpio1>; + interrupts = <14 IRQ_TYPE_EDGE_FALLING>; + spi-max-frequency = <10000000>; + status = "okay"; + }; }; &fec1 { @@ -40,7 +163,130 @@ vddio: vddio-regulator { }; }; +&i2c3 { + clock-frequency = <100000>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c3>; + status = "okay"; + + rx8025: rtc@32 { + compatible = "rx8025"; + reg = <0x32>; + }; + + wm8904: wm8904@1a { + compatible = "wlf,wm8904"; + reg = <0x1a>; + #sound-dai-cells = <0>; + clocks = <&clk IMX8MM_CLK_SAI3_ROOT>; + clock-names = "mclk"; + DCVDD-supply = <®_audio>; + DBVDD-supply = <®_audio>; + AVDD-supply = <®_audio>; + CPVDD-supply = <®_audio>; + MICVDD-supply = <®_audio>; + status = "okay"; + }; +}; + +/* AUDIO */ +&sai3 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_sai3>; + assigned-clocks = <&clk IMX8MM_CLK_SAI3>; + assigned-clock-parents = <&clk IMX8MM_AUDIO_PLL1_OUT>; + assigned-clock-rates = <24576000>; + status = "okay"; +}; + +&spdif1 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_spdif1>; + assigned-clocks = <&clk IMX8MM_CLK_SPDIF1>; + assigned-clock-parents = <&clk IMX8MM_AUDIO_PLL1_OUT>; + assigned-clock-rates = <24576000>; + clocks = <&clk IMX8MM_CLK_AUDIO_AHB>, <&clk IMX8MM_CLK_24M>, + <&clk IMX8MM_CLK_SPDIF1>, <&clk IMX8MM_CLK_DUMMY>, + <&clk IMX8MM_CLK_DUMMY>, <&clk IMX8MM_CLK_DUMMY>, + <&clk IMX8MM_CLK_AUDIO_AHB>, <&clk IMX8MM_CLK_DUMMY>, + <&clk IMX8MM_CLK_DUMMY>, <&clk IMX8MM_CLK_DUMMY>, + <&clk IMX8MM_AUDIO_PLL1_OUT>, <&clk IMX8MM_AUDIO_PLL2_OUT>; + clock-names = "core", "rxtx0", "rxtx1", "rxtx2", "rxtx3", + "rxtx4", "rxtx5", "rxtx6", "rxtx7", "spba", "pll8k", "pll11k"; + status = "okay"; +}; + +/* Wifi */ +&usdhc1 { + pinctrl-names = "default", "state_100mhz", "state_200mhz"; + pinctrl-0 = <&pinctrl_usdhc1>, <&pinctrl_usdhc1_gpio>; + pinctrl-1 = <&pinctrl_usdhc1_100mhz>, <&pinctrl_usdhc1_gpio>; + pinctrl-2 = <&pinctrl_usdhc1_200mhz>, <&pinctrl_usdhc1_gpio>; + bus-width = <4>; + vmmc-supply = <®_wifi_vmmc>; + pm-ignore-notify; + cap-power-off-card; + keep-power-in-suspend; + non-removable; + status = "okay"; + + #address-cells = <1>; + #size-cells = <0>; + brcmf: brcmf@1 { + compatible = "brcm,bcm4329-fmac"; + reg = <1>; + interrupt-parent = <&gpio2>; + interrupts = <9 IRQ_TYPE_LEVEL_LOW>; + interrupt-names = "host-wake"; + }; +}; + +/* SD-card */ +&usdhc2 { + pinctrl-names = "default"; /* "state_100mhz", "state_200mhz"; */ + pinctrl-0 = <&pinctrl_usdhc2>, <&pinctrl_usdhc2_gpio>; + pinctrl-1 = <&pinctrl_usdhc2_100mhz>, <&pinctrl_usdhc2_gpio>; + pinctrl-2 = <&pinctrl_usdhc2_200mhz>, <&pinctrl_usdhc2_gpio>; + cd-gpios = <&gpio2 12 GPIO_ACTIVE_LOW>; + bus-width = <4>; + status = "okay"; +}; + +/* USBOTG */ +&usbotg1 { + dr_mode = "otg"; + extcon = <&extcon_usb>; + picophy,pre-emp-curr-control = <3>; + picophy,dc-vol-level-adjust = <7>; + status = "okay"; +}; + +&usbotg2 { + dr_mode = "host"; + status = "okay"; +}; + &iomuxc { + + pinctrl_canbus: canbusgrp { + fsl,pins = < + MX8MM_IOMUXC_GPIO1_IO14_GPIO1_IO14 0x14 + >; + }; + pinctrl_extcon_usb: extconusbgrp { + fsl,pins = < + MX8MM_IOMUXC_GPIO1_IO10_GPIO1_IO10 0x140 /* otg_id */ + MX8MM_IOMUXC_GPIO1_IO12_GPIO1_IO12 0x19 /* otg_vbus */ + >; + }; + pinctrl_ecspi2: ecspi2grp { + fsl,pins = < + MX8MM_IOMUXC_ECSPI2_SS0_ECSPI2_SS0 0x82 + MX8MM_IOMUXC_ECSPI2_MOSI_ECSPI2_MOSI 0x82 + MX8MM_IOMUXC_ECSPI2_MISO_ECSPI2_MISO 0x82 + MX8MM_IOMUXC_ECSPI2_SCLK_ECSPI2_SCLK 0x82 + >; + }; pinctrl_fec1: fec1grp { fsl,pins = < MX8MM_IOMUXC_ENET_MDC_ENET1_MDC 0x3 @@ -60,4 +306,105 @@ MX8MM_IOMUXC_ENET_TX_CTL_ENET1_RGMII_TX_CTL 0x1f MX8MM_IOMUXC_SAI2_RXC_GPIO4_IO22 0x19 >; }; + pinctrl_i2c3: i2c3grp { + fsl,pins = < + MX8MM_IOMUXC_I2C3_SCL_I2C3_SCL 0x400001c3 + MX8MM_IOMUXC_I2C3_SDA_I2C3_SDA 0x400001c3 + >; + }; + pinctrl_sai3: sai3grp { + fsl,pins = < + MX8MM_IOMUXC_SAI3_TXFS_SAI3_TX_SYNC 0xd6 + MX8MM_IOMUXC_SAI3_TXC_SAI3_TX_BCLK 0xd6 + MX8MM_IOMUXC_SAI3_MCLK_SAI3_MCLK 0xd6 + MX8MM_IOMUXC_SAI3_TXD_SAI3_TX_DATA0 0xd6 + MX8MM_IOMUXC_SAI3_RXD_SAI3_RX_DATA0 0xd6 + >; + }; + pinctrl_spdif1: spdif1grp { + fsl,pins = < + MX8MM_IOMUXC_SPDIF_TX_SPDIF1_OUT 0xd6 + >; + }; + pinctrl_uart1: uart1grp { + fsl,pins = < + MX8MM_IOMUXC_UART1_RXD_UART1_DCE_RX 0x140 + MX8MM_IOMUXC_UART1_TXD_UART1_DCE_TX 0x140 + MX8MM_IOMUXC_UART3_RXD_UART1_DCE_CTS_B 0x140 + MX8MM_IOMUXC_UART3_TXD_UART1_DCE_RTS_B 0x140 + MX8MM_IOMUXC_SD1_DATA4_GPIO2_IO6 0x19 + >; + }; + pinctrl_usdhc1: usdhc1grp { + fsl,pins = < + MX8MM_IOMUXC_SD1_CLK_USDHC1_CLK 0x190 + MX8MM_IOMUXC_SD1_CMD_USDHC1_CMD 0x1d0 + MX8MM_IOMUXC_SD1_DATA0_USDHC1_DATA0 0x1d0 + MX8MM_IOMUXC_SD1_DATA1_USDHC1_DATA1 0x1d0 + MX8MM_IOMUXC_SD1_DATA2_USDHC1_DATA2 0x1d0 + MX8MM_IOMUXC_SD1_DATA3_USDHC1_DATA3 0x1d0 + >; + }; + pinctrl_usdhc1_100mhz: usdhc1grp100mhz { + fsl,pins = < + MX8MM_IOMUXC_SD1_CLK_USDHC1_CLK 0x194 + MX8MM_IOMUXC_SD1_CMD_USDHC1_CMD 0x1d4 + MX8MM_IOMUXC_SD1_DATA0_USDHC1_DATA0 0x1d4 + MX8MM_IOMUXC_SD1_DATA1_USDHC1_DATA1 0x1d4 + MX8MM_IOMUXC_SD1_DATA2_USDHC1_DATA2 0x1d4 + MX8MM_IOMUXC_SD1_DATA3_USDHC1_DATA3 0x1d4 + >; + }; + pinctrl_usdhc1_200mhz: usdhc1grp200mhz { + fsl,pins = < + MX8MM_IOMUXC_SD1_CLK_USDHC1_CLK 0x196 + MX8MM_IOMUXC_SD1_CMD_USDHC1_CMD 0x1d6 + MX8MM_IOMUXC_SD1_DATA0_USDHC1_DATA0 0x1d6 + MX8MM_IOMUXC_SD1_DATA1_USDHC1_DATA1 0x1d6 + MX8MM_IOMUXC_SD1_DATA2_USDHC1_DATA2 0x1d6 + MX8MM_IOMUXC_SD1_DATA3_USDHC1_DATA3 0x1d6 + >; + }; + pinctrl_usdhc1_gpio: usdhc1grpgpio { + fsl,pins = < + MX8MM_IOMUXC_SD1_RESET_B_GPIO2_IO10 0x41 /* wl_reg_on */ + MX8MM_IOMUXC_SD1_DATA7_GPIO2_IO9 0x41 /* wl_host_wake */ + MX8MM_IOMUXC_GPIO1_IO00_ANAMIX_REF_CLK_32K 0x141 /* LP0: 32KHz */ + >; + }; + pinctrl_usdhc2: usdhc2grp { + fsl,pins = < + MX8MM_IOMUXC_SD2_CLK_USDHC2_CLK 0x190 + MX8MM_IOMUXC_SD2_CMD_USDHC2_CMD 0x1d0 + MX8MM_IOMUXC_SD2_DATA0_USDHC2_DATA0 0x1d0 + MX8MM_IOMUXC_SD2_DATA1_USDHC2_DATA1 0x1d0 + MX8MM_IOMUXC_SD2_DATA2_USDHC2_DATA2 0x1d0 + MX8MM_IOMUXC_SD2_DATA3_USDHC2_DATA3 0x1d0 + >; + }; + pinctrl_usdhc2_100mhz: usdhc2grp100mhz { + fsl,pins = < + MX8MM_IOMUXC_SD2_CLK_USDHC2_CLK 0x194 + MX8MM_IOMUXC_SD2_CMD_USDHC2_CMD 0x1d4 + MX8MM_IOMUXC_SD2_DATA0_USDHC2_DATA0 0x1d4 + MX8MM_IOMUXC_SD2_DATA1_USDHC2_DATA1 0x1d4 + MX8MM_IOMUXC_SD2_DATA2_USDHC2_DATA2 0x1d4 + MX8MM_IOMUXC_SD2_DATA3_USDHC2_DATA3 0x1d4 + >; + }; + pinctrl_usdhc2_200mhz: usdhc2grp200mhz { + fsl,pins = < + MX8MM_IOMUXC_SD2_CLK_USDHC2_CLK 0x196 + MX8MM_IOMUXC_SD2_CMD_USDHC2_CMD 0x1d6 + MX8MM_IOMUXC_SD2_DATA0_USDHC2_DATA0 0x1d6 + MX8MM_IOMUXC_SD2_DATA1_USDHC2_DATA1 0x1d6 + MX8MM_IOMUXC_SD2_DATA2_USDHC2_DATA2 0x1d6 + MX8MM_IOMUXC_SD2_DATA3_USDHC2_DATA3 0x1d6 + >; + }; + pinctrl_usdhc2_gpio: usdhc2grpgpio { + fsl,pins = < + MX8MM_IOMUXC_SD2_CD_B_GPIO2_IO12 0x1c4 + >; + }; }; diff --git a/arch/arm64/boot/dts/freescale/imx8mm-emtop-som.dtsi b/arch/arm64/boot/dts/freescale/imx8mm-emtop-som.dtsi index 67d22d3768aa..9b188075921c 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm-emtop-som.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mm-emtop-som.dtsi @@ -182,6 +182,7 @@ pinctrl_gpio_led: emtop-gpio-led-grp { fsl,pins = < MX8MM_IOMUXC_NAND_READY_B_GPIO3_IO16 0x19 MX8MM_IOMUXC_SAI3_RXC_GPIO4_IO29 0x19 + MX8MM_IOMUXC_GPIO1_IO15_GPIO1_IO15 0x19 /* canbus_reset */ >; };