From mboxrd@z Thu Jan 1 00:00:00 1970 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 EF8BCC5AD49 for ; Wed, 28 May 2025 14:34:29 +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:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=FfuobaUaTEUuZPHmMbgisJNlWFcN0hT6baU1uq34nHo=; b=S3KlyAUtTeZceW8TixRpAdX2hb DKbLmh2+G71TIQkNYnIXy+t/dj9EdUu3RTW4pVvzQYjzDKjo2X6gUuXmYlv0aI/Vk0sz7hWQfJEWU UX8ld0lYUMoFYEwCdiapt6WD5U9Z/hI8lAXB5YdaENQlUi9NGoc+K7p3sey2Hk5z+BB/4uQQ5/rdK SZIdxU8OLS8e+lvWSWCNVLGEeWVCEiNeZooAjvFsbN3KhSKyWZp9hd7JhRDJ3PBBUfmp/cCHGET12 YoQwQzGUr1t2Bpw0DQK0JKly+dgskvBhiJpOehWlehZ4k2g+jzLhkhhHFlhROjzjeEi3qrvUdRg1G WiIH3nqQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1uKHrL-0000000DPlU-2rHJ; Wed, 28 May 2025 14:34:23 +0000 Received: from mail-ej1-x633.google.com ([2a00:1450:4864:20::633]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1uKFeo-0000000D4Tp-2c1O for linux-arm-kernel@lists.infradead.org; Wed, 28 May 2025 12:13:19 +0000 Received: by mail-ej1-x633.google.com with SMTP id a640c23a62f3a-acb5ec407b1so751829166b.1 for ; Wed, 28 May 2025 05:13:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1748434397; x=1749039197; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=FfuobaUaTEUuZPHmMbgisJNlWFcN0hT6baU1uq34nHo=; b=hY7SYPAzQa3uEcxvXZqVk5gjivIK7iyeeeEa0iPsa0S9xgJxnqneSSWUU9qP2rXoa2 cgOD7jTV4SxwzIdruqSSVohzn2CtuAYKgxFGt267ceRTUWafGwbFg9u8kK9pMZrgjjM+ FusGfRZuGYqcsPlJC/mjUS2vTXHraHo7z9g+A= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1748434397; x=1749039197; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=FfuobaUaTEUuZPHmMbgisJNlWFcN0hT6baU1uq34nHo=; b=sh/k44IMTQsinxt8ic4rxI0dCScWrXxodeezChVuQ5xjyZ1g5rMoY348uU2jDORx+c +FukocZVmeIHlR/l1zixIgVk3YI3wornB9qztS9i7t/JMhDzb98b/tWHs2B+8PzgT+rT vmnNWLor+vyhNXV1C20wplfhrFzkX4Cu0b7WhZnd4N76OqLOFjDs0XxicFYOzAF9C0X9 1dCSm5rd7Czn/OYueWw6xN8DVZSDAkYdrjtZ1grGogHvtmflpIYip3b83dQ4/fD+16nJ Uf46nDNc1GHbh4oWpBpGBTunAI06AFJyWOWGAQ6tsRCZkb5nYpL5HQQYnZIrM+QkUVVu yIEA== X-Forwarded-Encrypted: i=1; AJvYcCUc+wlUm5uieLuKg+QbTKvONVfixMUBeLWZm9XFJRZWd4SW0TiETd17C7TgvKpZ4juNOoHWaEk0o5Van7PdJ0cf@lists.infradead.org X-Gm-Message-State: AOJu0YyZA+s8YRtcMMcrHucZ9yXIkQ0Za7BoXLQ3dlwxIVw0z6ZVk//H h4RyTYObBnmUrAFvSMkUHjl8ZJD2iL9be0VrdvEj1oIvhhraBRStcJM8Mmr8sd25vCg= X-Gm-Gg: ASbGncseWFr1Yy/S62j4tmjfq9L6Z0UT7aN1a8WTtgKZNb0b9rVrALG3X9ZAFmC3Ek/ lnXmWwZ6dv2uSqOneBElpKdWYc9Fe7hSdzZDBrBGQzb18wbBDb2G/baxMRVm6Sb7BcxH2m2NKqk H3ptyauqGsKxjcswop+eSh4ixKr8tHu5lamWUEsCE9WpIezr+fTiKuykIUl6Vd6F7c/2C+8NrHo Nv9+iOETk0lSN7YQVf9p7AyKaGUC0BtScPzJsbQIpZFfceB9tv4hv9zw6zCHQ1dcQauv0arBT53 vLjR8IvucaNpob0ZEgiFYi2NK3T5q+nApyYXatxDo4GMUaJyamhmmSu6jQ1xgT7kOO5CgGrihth zWvLEevK7YuGc X-Google-Smtp-Source: AGHT+IEfYELrXkL/8mBgz63R6obB9CfHDE0gacJZgNgsd14oj5sHnOim85vlky2iLWRKGGIi54nlTA== X-Received: by 2002:a17:906:7945:b0:ad5:430b:9013 with SMTP id a640c23a62f3a-ad85b2d6f1fmr1568377066b.42.1748434397114; Wed, 28 May 2025 05:13:17 -0700 (PDT) Received: from localhost.localdomain ([2001:b07:6474:ebbf:5631:61bf:398a:c492]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-ad8a1b5b8afsm98523266b.170.2025.05.28.05.13.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 May 2025 05:13:16 -0700 (PDT) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: michael@amarulasolutions.com, linux-amarula@amarulasolutions.com, Dario Binacchi , Conor Dooley , Fabio Estevam , Krzysztof Kozlowski , Pengutronix Kernel Team , Rob Herring , Sascha Hauer , Shawn Guo , devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 4/4] ARM: dts: mxs: support i.MX28 Amarula rmm board Date: Wed, 28 May 2025 14:11:41 +0200 Message-ID: <20250528121306.1464830-5-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250528121306.1464830-1-dario.binacchi@amarulasolutions.com> References: <20250528121306.1464830-1-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250528_051318_698051_A96EFE50 X-CRM114-Status: GOOD ( 16.45 ) 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 The board includes the following resources: - 256 Mbytes NAND Flash - 128 Mbytes DRAM DDR2 - CAN - USB 2.0 high-speed/full-speed - Ethernet MAC Signed-off-by: Dario Binacchi --- Changes in v2: - In imx28-amarula-rmm.dts: - Replace '-' with '@' for the pinctrl sub-nodes. - Replace edt,edt-ft5x06 with edt,edt-ft5306. - Drop LCD reset hog pin. - Add correct #address-cells and #size-cells to gpmi node. - Replace edt-ft5x06@38 with touchscreen@38. - Drop from commit messages all references to LCD display. - Add patch [1/4] "dt-bindings: mfd: convert mxs-lradc bindings to json-schema". arch/arm/boot/dts/nxp/mxs/Makefile | 1 + .../boot/dts/nxp/mxs/imx28-amarula-rmm.dts | 303 ++++++++++++++++++ 2 files changed, 304 insertions(+) create mode 100644 arch/arm/boot/dts/nxp/mxs/imx28-amarula-rmm.dts diff --git a/arch/arm/boot/dts/nxp/mxs/Makefile b/arch/arm/boot/dts/nxp/mxs/Makefile index 96dd31ea19ba..d72ba702b6fa 100644 --- a/arch/arm/boot/dts/nxp/mxs/Makefile +++ b/arch/arm/boot/dts/nxp/mxs/Makefile @@ -5,6 +5,7 @@ dtb-$(CONFIG_ARCH_MXS) += \ imx23-sansa.dtb \ imx23-stmp378x_devb.dtb \ imx23-xfi3.dtb \ + imx28-amarula-rmm.dtb \ imx28-apf28.dtb \ imx28-apf28dev.dtb \ imx28-apx4devkit.dtb \ diff --git a/arch/arm/boot/dts/nxp/mxs/imx28-amarula-rmm.dts b/arch/arm/boot/dts/nxp/mxs/imx28-amarula-rmm.dts new file mode 100644 index 000000000000..5daa9e22715d --- /dev/null +++ b/arch/arm/boot/dts/nxp/mxs/imx28-amarula-rmm.dts @@ -0,0 +1,303 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (C) 2025 Amarula Solutions, Dario Binacchi + */ + +/dts-v1/; +#include "imx28.dtsi" +#include +#include + +/ { + model = "Amarula i.MX28 rmm"; + compatible = "amarula,imx28-rmm", "fsl,imx28"; + + memory@40000000 { + device_type = "memory"; + reg = <0x40000000 0x08000000>; + }; + + reg_5v: regulator-5v { + compatible = "regulator-fixed"; + regulator-name = "5v"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + regulator-always-on; + }; + + reg_3v3: regulator-3v3 { + compatible = "regulator-fixed"; + regulator-name = "3v3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; + + reg_1v8: regulator-1v8 { + compatible = "regulator-fixed"; + regulator-name = "1v8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + reg_fec_3v3: regulator-fec-3v3 { + compatible = "regulator-fixed"; + pinctrl-names = "default"; + pinctrl-0 = <&fec_3v3_enable_pin>; + regulator-name = "fec-3v3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + gpios = <&gpio3 27 GPIO_ACTIVE_HIGH>; + enable-active-high; + startup-delay-us = <300000>; + vin-supply = <®_5v>; + }; + + reg_usb0_vbus: regulator-usb0-vbus { + compatible = "regulator-fixed"; + pinctrl-names = "default"; + pinctrl-0 = <&usb0_vbus_enable_pin>; + regulator-name = "usb0_vbus"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + gpio = <&gpio2 5 GPIO_ACTIVE_HIGH>; + enable-active-high; + regulator-always-on; + }; + + reg_usb1_vbus: regulator-usb1-vbus { + compatible = "regulator-fixed"; + pinctrl-names = "default"; + pinctrl-0 = <&usb1_vbus_enable_pin>; + regulator-name = "usb1_vbus"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + gpio = <&gpio2 6 GPIO_ACTIVE_HIGH>; + enable-active-high; + regulator-always-on; + }; + + backlight { + compatible = "pwm-backlight"; + pwms = <&pwm 4 5000000 0>; + brightness-levels = <0 255>; + num-interpolated-steps = <255>; + default-brightness-level = <255>; + power-supply = <®_5v>; + }; + + beeper { + compatible = "pwm-beeper"; + pwms = <&pwm 7 100000 0>; + }; + + leds { + compatible = "gpio-leds"; + pinctrl-names = "default"; + pinctrl-0 = <&leds_pins>; + + led-0 { + label = "status"; + gpios = <&gpio2 7 GPIO_ACTIVE_HIGH>; + default-state = "off"; + }; + + led-1 { + label = "x22_5"; + gpios = <&gpio3 16 GPIO_ACTIVE_HIGH>; + default-state = "off"; + }; + + led-2 { + label = "x22_4"; + gpios = <&gpio3 17 GPIO_ACTIVE_HIGH>; + default-state = "off"; + }; + }; +}; + +&auart0 { + pinctrl-names = "default"; + pinctrl-0 = <&auart0_2pins_a>; + status = "okay"; +}; + +&auart1 { + pinctrl-names = "default"; + pinctrl-0 = <&auart1_pins_a>; + status = "okay"; +}; + +&can0 { + pinctrl-names = "default"; + pinctrl-0 = <&can0_pins_a>; + xceiver-supply = <®_3v3>; + status = "okay"; +}; + +&duart { + pinctrl-names = "default"; + pinctrl-0 = <&duart_pins_b>; + status = "okay"; +}; + +&duart_pins_b { + fsl,voltage = ; +}; + +&gpmi { + #address-cells = <1>; + #size-cells = <0>; + pinctrl-names = "default"; + pinctrl-0 = <&gpmi_pins_a &gpmi_status_cfg>; + status = "okay"; +}; + +&i2c0 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c0_pins_a>; + status = "okay"; + + touchscreen: touchscreen@38 { + compatible = "edt,edt-ft5306"; + reg = <0x38>; + pinctrl-names = "default"; + pinctrl-0 = <&edt_ft5x06_pins &edt_ft5x06_wake_pin>; + interrupt-parent = <&gpio0>; + interrupts = <19 IRQ_TYPE_EDGE_RISING>; + reset-gpios = <&gpio0 21 GPIO_ACTIVE_LOW>; + wake-gpios = <&gpio0 18 GPIO_ACTIVE_HIGH>; + }; +}; + +&lradc { + status = "okay"; +}; + +&mac0 { + phy-mode = "rmii"; + pinctrl-names = "default"; + pinctrl-0 = <&mac0_pins_a>; + phy-supply = <®_fec_3v3>; + phy-handle = <ðphy>; + status = "okay"; + + mdio { + #address-cells = <1>; + #size-cells = <0>; + + ethphy: ethernet-phy@0 { + compatible = "ethernet-phy-ieee802.3-c22"; + reg = <0>; + max-speed = <100>; + reset-gpios = <&gpio3 28 GPIO_ACTIVE_LOW>; + reset-assert-us = <4000>; + reset-deassert-us = <4000>; + }; + }; +}; + +&pinctrl { + pinctrl-names = "default"; + pinctrl-0 = <&hog_pins_a>; + + hog_pins_a: hog@0 { + reg = <0>; + fsl,pinmux-ids = < + MX28_PAD_SSP2_SS1__GPIO_2_20 /* External power */ + >; + fsl,drive-strength = ; + fsl,voltage = ; + fsl,pull-up = ; + }; + + edt_ft5x06_pins: edt-ft5x06@0 { + reg = <0>; + fsl,pinmux-ids = < + MX28_PAD_GPMI_RDY1__GPIO_0_21 /* Reset */ + MX28_PAD_GPMI_CE3N__GPIO_0_19 /* Interrupt */ + >; + fsl,drive-strength = ; + fsl,voltage = ; + fsl,pull-up = ; + }; + + edt_ft5x06_wake_pin: edt-ft5x06-wake@0 { + reg = <0>; + fsl,pinmux-ids = ; + fsl,drive-strength = ; + fsl,voltage = ; + fsl,pull-up = ; + }; + + fec_3v3_enable_pin: fec-3v3-enable@0 { + reg = <0>; + fsl,pinmux-ids = ; + fsl,drive-strength = ; + fsl,voltage = ; + fsl,pull-up = ; + }; + + leds_pins: leds@0 { + reg = <0>; + fsl,pinmux-ids = < + MX28_PAD_SSP0_DATA7__GPIO_2_7 + MX28_PAD_PWM0__GPIO_3_16 + MX28_PAD_PWM1__GPIO_3_17 + >; + fsl,drive-strength = ; + fsl,voltage = ; + fsl,pull-up = ; + }; + + usb0_vbus_enable_pin: usb0-vbus-enable@0 { + reg = <0>; + fsl,pinmux-ids = ; + fsl,drive-strength = ; + fsl,voltage = ; + fsl,pull-up = ; + }; + + usb1_vbus_enable_pin: usb1-vbus-enable@0 { + reg = <0>; + fsl,pinmux-ids = ; + fsl,drive-strength = ; + fsl,voltage = ; + fsl,pull-up = ; + }; +}; + +&pwm { + pinctrl-names = "default"; + pinctrl-0 = <&pwm4_pins_a &pwm7_pins_a>; + status = "okay"; +}; + +&ssp0 { + compatible = "fsl,imx28-mmc"; + pinctrl-names = "default"; + pinctrl-0 = <&mmc0_4bit_pins_a &mmc0_sck_cfg>; + status = "okay"; + bus-width = <4>; + broken-cd; +}; + +&usb0 { + status = "okay"; + vbus-supply = <®_usb0_vbus>; + dr_mode = "host"; +}; + +&usb1 { + status = "okay"; + vbus-supply = <®_usb1_vbus>; + dr_mode = "host"; +}; + +&usbphy0 { + status = "okay"; +}; + +&usbphy1 { + status = "okay"; +}; -- 2.43.0