From: Suman Anna <s-anna@ti.com>
To: Dave Gerlach <d-gerlach@ti.com>, Nishanth Menon <nm@ti.com>
Cc: devicetree@vger.kernel.org, Vignesh Raghavendra <vigneshr@ti.com>,
Tony Lindgren <tony@atomide.com>, Sekhar Nori <nsekhar@ti.com>,
Kishon Vijay Abraham <kishon@ti.com>,
Lokesh Vutla <lokeshvutla@ti.com>,
Rob Herring <robh+dt@kernel.org>,
Aswath Govindraju <a-govindraju@ti.com>,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH v3 5/5] arm64: dts: ti: Add support for AM642 EVM
Date: Mon, 25 Jan 2021 10:44:17 -0600 [thread overview]
Message-ID: <08e9cf72-e3dc-71cb-7eee-4d4e56f83836@ti.com> (raw)
In-Reply-To: <20210120202532.9011-6-d-gerlach@ti.com>
On 1/20/21 2:25 PM, Dave Gerlach wrote:
> The AM642 EValuation Module (EVM) is a board that provides access to
> various peripherals available on the AM642 SoC, such as PCIe, USB 2.0,
> CPSW Ethernet, ADC, and more.
>
> Introduce support for the AM642 EVM to enable mmc boot, including
> enabling UART and I2C on the board.
>
> Signed-off-by: Aswath Govindraju <a-govindraju@ti.com>
> Signed-off-by: Faiz Abbas <faiz_abbas@ti.com>
> Signed-off-by: Suman Anna <s-anna@ti.com>
> Signed-off-by: Nishanth Menon <nm@ti.com>
> Signed-off-by: Dave Gerlach <d-gerlach@ti.com>
> ---
> arch/arm64/boot/dts/ti/Makefile | 2 +
> arch/arm64/boot/dts/ti/k3-am642-evm.dts | 246 ++++++++++++++++++++++++
> 2 files changed, 248 insertions(+)
> create mode 100644 arch/arm64/boot/dts/ti/k3-am642-evm.dts
>
> diff --git a/arch/arm64/boot/dts/ti/Makefile b/arch/arm64/boot/dts/ti/Makefile
> index 65506f21ba30..c687739e2bca 100644
> --- a/arch/arm64/boot/dts/ti/Makefile
> +++ b/arch/arm64/boot/dts/ti/Makefile
> @@ -11,3 +11,5 @@ dtb-$(CONFIG_ARCH_K3) += k3-am654-base-board.dtb
> dtb-$(CONFIG_ARCH_K3) += k3-j721e-common-proc-board.dtb
>
> dtb-$(CONFIG_ARCH_K3) += k3-j7200-common-proc-board.dtb
> +
> +dtb-$(CONFIG_ARCH_K3) += k3-am642-evm.dtb
nit, please update the copyright year to include 2021 on this file.
regards
Suman
> diff --git a/arch/arm64/boot/dts/ti/k3-am642-evm.dts b/arch/arm64/boot/dts/ti/k3-am642-evm.dts
> new file mode 100644
> index 000000000000..1f1787750fef
> --- /dev/null
> +++ b/arch/arm64/boot/dts/ti/k3-am642-evm.dts
> @@ -0,0 +1,246 @@
> +// SPDX-License-Identifier: GPL-2.0
> +/*
> + * Copyright (C) 2020-2021 Texas Instruments Incorporated - https://www.ti.com/
> + */
> +
> +/dts-v1/;
> +
> +#include <dt-bindings/leds/common.h>
> +#include "k3-am642.dtsi"
> +
> +/ {
> + compatible = "ti,am642-evm", "ti,am642";
> + model = "Texas Instruments AM642 EVM";
> +
> + chosen {
> + stdout-path = "serial2:115200n8";
> + bootargs = "console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000";
> + };
> +
> + memory@80000000 {
> + device_type = "memory";
> + /* 2G RAM */
> + reg = <0x00000000 0x80000000 0x00000000 0x80000000>;
> +
> + };
> +
> + reserved-memory {
> + #address-cells = <2>;
> + #size-cells = <2>;
> + ranges;
> +
> + secure_ddr: optee@9e800000 {
> + reg = <0x00 0x9e800000 0x00 0x01800000>; /* for OP-TEE */
> + alignment = <0x1000>;
> + no-map;
> + };
> + };
> +
> + evm_12v0: fixedregulator-evm12v0 {
> + /* main DC jack */
> + compatible = "regulator-fixed";
> + regulator-name = "evm_12v0";
> + regulator-min-microvolt = <12000000>;
> + regulator-max-microvolt = <12000000>;
> + regulator-always-on;
> + regulator-boot-on;
> + };
> +
> + vsys_5v0: fixedregulator-vsys5v0 {
> + /* output of LM5140 */
> + compatible = "regulator-fixed";
> + regulator-name = "vsys_5v0";
> + regulator-min-microvolt = <5000000>;
> + regulator-max-microvolt = <5000000>;
> + vin-supply = <&evm_12v0>;
> + regulator-always-on;
> + regulator-boot-on;
> + };
> +
> + vsys_3v3: fixedregulator-vsys3v3 {
> + /* output of LM5140 */
> + compatible = "regulator-fixed";
> + regulator-name = "vsys_3v3";
> + regulator-min-microvolt = <3300000>;
> + regulator-max-microvolt = <3300000>;
> + vin-supply = <&evm_12v0>;
> + regulator-always-on;
> + regulator-boot-on;
> + };
> +
> + vdd_mmc1: fixed-regulator-sd {
> + /* TPS2051BD */
> + compatible = "regulator-fixed";
> + regulator-name = "vdd_mmc1";
> + regulator-min-microvolt = <3300000>;
> + regulator-max-microvolt = <3300000>;
> + regulator-boot-on;
> + enable-active-high;
> + vin-supply = <&vsys_3v3>;
> + gpio = <&exp1 6 GPIO_ACTIVE_HIGH>;
> + };
> +
> + vddb: fixedregulator-vddb {
> + compatible = "regulator-fixed";
> + regulator-name = "vddb_3v3_display";
> + regulator-min-microvolt = <3300000>;
> + regulator-max-microvolt = <3300000>;
> + vin-supply = <&vsys_3v3>;
> + regulator-always-on;
> + regulator-boot-on;
> + };
> +
> + leds {
> + compatible = "gpio-leds";
> +
> + led-0 {
> + label = "am64-evm:red:heartbeat";
> + gpios = <&exp1 16 GPIO_ACTIVE_HIGH>;
> + linux,default-trigger = "heartbeat";
> + function = LED_FUNCTION_HEARTBEAT;
> + default-state = "off";
> + };
> + };
> +};
> +
> +&main_pmx0 {
> + main_mmc1_pins_default: main-mmc1-pins-default {
> + pinctrl-single,pins = <
> + AM64X_IOPAD(0x0294, PIN_INPUT_PULLUP, 0) /* (J19) MMC1_CMD */
> + AM64X_IOPAD(0x028c, PIN_INPUT_PULLDOWN, 0) /* (L20) MMC1_CLK */
> + AM64X_IOPAD(0x0288, PIN_INPUT_PULLUP, 0) /* (K21) MMC1_DAT0 */
> + AM64X_IOPAD(0x0284, PIN_INPUT_PULLUP, 0) /* (L21) MMC1_DAT1 */
> + AM64X_IOPAD(0x0280, PIN_INPUT_PULLUP, 0) /* (K19) MMC1_DAT2 */
> + AM64X_IOPAD(0x027c, PIN_INPUT_PULLUP, 0) /* (K18) MMC1_DAT3 */
> + AM64X_IOPAD(0x0298, PIN_INPUT_PULLUP, 0) /* (D19) MMC1_SDCD */
> + AM64X_IOPAD(0x029c, PIN_INPUT, 0) /* (C20) MMC1_SDWP */
> + AM64X_IOPAD(0x0290, PIN_INPUT, 0) /* MMC1_CLKLB */
> + >;
> + };
> +
> + main_uart0_pins_default: main-uart0-pins-default {
> + pinctrl-single,pins = <
> + AM64X_IOPAD(0x0238, PIN_INPUT, 0) /* (B16) UART0_CTSn */
> + AM64X_IOPAD(0x023c, PIN_OUTPUT, 0) /* (A16) UART0_RTSn */
> + AM64X_IOPAD(0x0230, PIN_INPUT, 0) /* (D15) UART0_RXD */
> + AM64X_IOPAD(0x0234, PIN_OUTPUT, 0) /* (C16) UART0_TXD */
> + >;
> + };
> +
> + main_i2c1_pins_default: main-i2c1-pins-default {
> + pinctrl-single,pins = <
> + AM64X_IOPAD(0x0268, PIN_INPUT_PULLUP, 0) /* (C18) I2C1_SCL */
> + AM64X_IOPAD(0x026c, PIN_INPUT_PULLUP, 0) /* (B19) I2C1_SDA */
> + >;
> + };
> +};
> +
> +&main_uart0 {
> + pinctrl-names = "default";
> + pinctrl-0 = <&main_uart0_pins_default>;
> +};
> +
> +/* main_uart1 is reserved for firmware usage */
> +&main_uart1 {
> + status = "reserved";
> +};
> +
> +&main_uart2 {
> + status = "disabled";
> +};
> +
> +&main_uart3 {
> + status = "disabled";
> +};
> +
> +&main_uart4 {
> + status = "disabled";
> +};
> +
> +&main_uart5 {
> + status = "disabled";
> +};
> +
> +&main_uart6 {
> + status = "disabled";
> +};
> +
> +&mcu_uart0 {
> + status = "disabled";
> +};
> +
> +&mcu_uart1 {
> + status = "disabled";
> +};
> +
> +&main_i2c1 {
> + pinctrl-names = "default";
> + pinctrl-0 = <&main_i2c1_pins_default>;
> + clock-frequency = <400000>;
> +
> + exp1: gpio@22 {
> + compatible = "ti,tca6424";
> + reg = <0x22>;
> + gpio-controller;
> + #gpio-cells = <2>;
> + gpio-line-names = "GPIO_eMMC_RSTn", "CAN_MUX_SEL",
> + "GPIO_CPSW1_RST", "GPIO_RGMII1_RST",
> + "GPIO_RGMII2_RST", "GPIO_PCIe_RST_OUT",
> + "MMC1_SD_EN", "FSI_FET_SEL",
> + "MCAN0_STB_3V3", "MCAN1_STB_3V3",
> + "CPSW_FET_SEL", "CPSW_FET2_SEL",
> + "PRG1_RGMII2_FET_SEL", "TEST_GPIO2",
> + "GPIO_OLED_RESETn", "VPP_LDO_EN",
> + "TEST_LED1", "TP92", "TP90", "TP88",
> + "TP87", "TP86", "TP89", "TP91";
> + };
> +
> + /* osd9616p0899-10 */
> + display@3c {
> + compatible = "solomon,ssd1306fb-i2c";
> + reg = <0x3c>;
> + reset-gpios = <&exp1 14 GPIO_ACTIVE_LOW>;
> + vbat-supply = <&vddb>;
> + solomon,height = <16>;
> + solomon,width = <96>;
> + solomon,com-seq;
> + solomon,com-invdir;
> + solomon,page-offset = <0>;
> + solomon,prechargep1 = <2>;
> + solomon,prechargep2 = <13>;
> + };
> +};
> +
> +&mcu_i2c0 {
> + status = "disabled";
> +};
> +
> +&mcu_i2c1 {
> + status = "disabled";
> +};
> +
> +&mcu_spi0 {
> + status = "disabled";
> +};
> +
> +&mcu_spi1 {
> + status = "disabled";
> +};
> +
> +&sdhci0 {
> + /* emmc */
> + bus-width = <8>;
> + non-removable;
> + ti,driver-strength-ohm = <50>;
> + disable-wp;
> +};
> +
> +&sdhci1 {
> + /* SD/MMC */
> + vmmc-supply = <&vdd_mmc1>;
> + pinctrl-names = "default";
> + bus-width = <4>;
> + pinctrl-0 = <&main_mmc1_pins_default>;
> + ti,driver-strength-ohm = <50>;
> + disable-wp;
> +};
>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
prev parent reply other threads:[~2021-01-25 16:46 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-20 20:25 [PATCH v3 0/5] arm64: Initial support for Texas Instruments AM642 Platform Dave Gerlach
2021-01-20 20:25 ` [PATCH v3 1/5] dt-bindings: arm: ti: Add bindings for AM642 SoC Dave Gerlach
2021-01-20 20:25 ` [PATCH v3 2/5] dt-bindings: pinctrl: k3: Introduce pinmux definitions for AM64 Dave Gerlach
2021-01-20 20:50 ` Suman Anna
2021-01-25 14:39 ` Nishanth Menon
2021-02-09 2:34 ` Rob Herring
2021-01-20 20:25 ` [PATCH v3 3/5] arm64: dts: ti: Add support for AM642 SoC Dave Gerlach
2021-01-20 22:04 ` Nishanth Menon
2021-01-21 17:25 ` Suman Anna
2021-01-21 17:46 ` Nishanth Menon
2021-01-21 18:13 ` Suman Anna
2021-01-21 18:39 ` Nishanth Menon
2021-01-21 19:57 ` Suman Anna
2021-01-21 20:13 ` Nishanth Menon
2021-01-21 20:42 ` Suman Anna
2021-01-21 21:18 ` Nishanth Menon
2021-01-21 22:57 ` Suman Anna
2021-01-22 11:23 ` Arnd Bergmann
2021-01-22 13:00 ` Tony Lindgren
2021-01-25 14:16 ` Nishanth Menon
2021-01-25 22:48 ` Suman Anna
2021-01-25 23:02 ` Suman Anna
2021-01-20 20:25 ` [PATCH v3 4/5] arm64: dts: ti: k3-am64-main: Enable DMA support Dave Gerlach
2021-01-20 20:25 ` [PATCH v3 5/5] arm64: dts: ti: Add support for AM642 EVM Dave Gerlach
2021-01-25 16:44 ` Suman Anna [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=08e9cf72-e3dc-71cb-7eee-4d4e56f83836@ti.com \
--to=s-anna@ti.com \
--cc=a-govindraju@ti.com \
--cc=d-gerlach@ti.com \
--cc=devicetree@vger.kernel.org \
--cc=kishon@ti.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=lokeshvutla@ti.com \
--cc=nm@ti.com \
--cc=nsekhar@ti.com \
--cc=robh+dt@kernel.org \
--cc=tony@atomide.com \
--cc=vigneshr@ti.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).