From patchwork Tue Jul 7 10:23:36 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?Sm9obnNvbiBDSCBDaGVuICjpmbPmmK3li7Mp?= X-Patchwork-Id: 11648231 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id DF3AE6C1 for ; Tue, 7 Jul 2020 10:23:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BADF8206F6 for ; Tue, 7 Jul 2020 10:23:45 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=moxa.com header.i=@moxa.com header.b="I3IrQ86k" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728290AbgGGKXo (ORCPT ); Tue, 7 Jul 2020 06:23:44 -0400 Received: from mail-eopbgr1300044.outbound.protection.outlook.com ([40.107.130.44]:18876 "EHLO APC01-HK2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726879AbgGGKXn (ORCPT ); Tue, 7 Jul 2020 06:23:43 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EOQK1tz9f0jgKeLca0iU1isljZHB/RfY5drvw2ELMYgXeX/EWwAC/HSxV2wMMsrYVaK6KcKIf1FeEG6Gig3mNWSxV8PbjxIz6iGCtFpByccBHnTlmwrg09QBslMd8XZBXKOFf9t2i48tAab046IKyOFtdFL9x1R0dImtIG4OrlzE+bKfUzIHP3dvkv5v6MbohNPfbFMMBCO3SAumdgxfbmGVo39vTvN9Amh5s1YwUxrd4y4JkzHFRfn1B8c1ANA89Tth1j8vZxqJNpvgRsJkqT273cjZ5Q/nn2pY9f2SeH8wRXp3Kptou/3V1LKucghT2DlXADcINEqC3LVSOTsr3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=JFAhy6EVXo4bRcGqUmEfk3Y8WOuiHugh4er0SI6O0tg=; b=VrIgFWhet7EOBLwY63dJsnwdEwgKt+P0Ggxgj/pD7//DSAULmAAV6Q2034WIw0CZ+I5B4b606m6TqfVqtZp64d4ZYIM/VEirNreX85VSAk51VJjf/NTAbDy2dCDijLdytMlnyR+y1kbK3qzs1N4O8BgrW/xd5q73UYzUeYhmaOfG5IV10lr483ip2/U7odIKZS/TgZ4/FPuUiQUMTPIA2tivTMjzrQLn4G7OMmeSoFUVeJcyMYpix8L7GnXt0AsSg2mN1V4Xh9QlExR6SQUf/e+fg4+2UbBbR478Nurqvtwl6xTZ1pTHxCq8aEhucaNpC4SEAD1BcvRidcHwhomnrw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=moxa.com; dmarc=pass action=none header.from=moxa.com; dkim=pass header.d=moxa.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=moxa.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=JFAhy6EVXo4bRcGqUmEfk3Y8WOuiHugh4er0SI6O0tg=; b=I3IrQ86kd+jxx0neGmQENNwV0jJERf148Dh7+pWmleu41cHv53BlNXzRwFyyovEMjXwH+eqNbvsTWYPvA/28y3Sh9bDO7HxduFQS3rV9TgmYz+8ruvYuhtknvn+TZjmLRNsp0HkhrowS2BfselYS69RbzTmox6ug4wd5rVr5stY= Received: from HK2PR01MB3281.apcprd01.prod.exchangelabs.com (2603:1096:202:22::12) by HKAPR01MB3650.apcprd01.prod.exchangelabs.com (2603:1096:203:d6::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3153.21; Tue, 7 Jul 2020 10:23:36 +0000 Received: from HK2PR01MB3281.apcprd01.prod.exchangelabs.com ([fe80::dce:9650:6c58:8b77]) by HK2PR01MB3281.apcprd01.prod.exchangelabs.com ([fe80::dce:9650:6c58:8b77%4]) with mapi id 15.20.3153.029; Tue, 7 Jul 2020 10:23:36 +0000 From: =?utf-8?b?Sm9obnNvbiBDSCBDaGVuICjpmbPmmK3li7Mp?= To: =?utf-8?q?Beno=C3=AEt_Cousson?= , "tony@atomide.com" , Rob Herring , "linux-omap@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: [PATCH 2/2] ARM: dts: am335x: add support for Moxa UC-8100A-ME open platform Thread-Topic: [PATCH 2/2] ARM: dts: am335x: add support for Moxa UC-8100A-ME open platform Thread-Index: AQHWVEgYvSkjYRE+fUGGBVuDH8eWSw== Date: Tue, 7 Jul 2020 10:23:36 +0000 Message-ID: Accept-Language: zh-TW, en-US Content-Language: zh-TW X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: baylibre.com; dkim=none (message not signed) header.d=none;baylibre.com; dmarc=none action=none header.from=moxa.com; x-originating-ip: [123.51.145.16] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: ce58b489-d819-49dc-ea46-08d8225fcf48 x-ms-traffictypediagnostic: HKAPR01MB3650: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:972; x-forefront-prvs: 0457F11EAF x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: bx0vxwJ4vrjS1XkXLjqI/XcYJXKW3xrqY/E9Rj0yyK0lluH69t9fn2iabR+Bq2DYN7nCZbhX0EsELW4/9kOZqUp/VfImo0D1KXM6wUKv/8w13ZMa38q/tn3dl9c8/UMMnsaLm4o6W8bg9Cee6EBV6BAmggX8GhxFociIzCyjtZyzUcFKZ9WXxmmt1KmIImEkNG7rBDqt12KXOxsXnAMFHVuSqFssf3cZQJoTST2idhK6TAxG1mlR+E4bboKM3uBgsGLuD/Y33EurhG7ilWCdEN2BsAiyoL+Z10kus3NJ6q/bZ00rI47JaosKiX/9t9IgL5tQlwUNBHuai+tJpYrP+zyByq27kc2IB/NB2FtGDhsPw25JonIUo+AisNyp8o98htGSMnkKYQeXjOYZ30SZLw== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:HK2PR01MB3281.apcprd01.prod.exchangelabs.com;PTR:;CAT:NONE;SFTY:;SFS:(4636009)(136003)(396003)(39850400004)(346002)(366004)(376002)(66946007)(478600001)(2906002)(71200400001)(86362001)(8676002)(5660300002)(55016002)(83380400001)(26005)(6506007)(9686003)(186003)(76116006)(66556008)(64756008)(66446008)(7696005)(52536014)(8936002)(66476007)(33656002)(316002)(85182001)(966005)(110136005);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata: ThcYWHgI/CG2oeryA77szfnSobbb6Xv46Ny8slfKcfBi0I2ARIZoTOoes8M2gUTIZtTiETfCFfEkIWOD4ZsdGoH95e2XEt7Ox7yRRGuwavc8ceEAhk59+0OetxTj3adcQhdFZSD/TwcWjGyan9igGgV90fNLhRZSvxzHp5Y7C8ww8g+yAO+NIaGgZJ4pOeuaWJwKqgvlVkVbCHozJRMGhtvAteODgqjTHHtxacC4m2iodc8YGXE8SIYaEZEwcOlyg+yFQNBjRjppjjsJlX66FuGyNh/eUIfYJDToMi0YYIGGQdxVGMBcirMlRJkFANmG1LVUoSDFwAHMvaHYvDNrolPzRN598IWHyFBroWXkA6j5JmebHzf2gapIg7tXDThcZDFLA9wOxZH6hL+rcTuNp43v+pEh3oFJTvDupbek3Ttz/vveqeYrGeJiD7V/gKjO246DzJBpf6lP+CrXGdf9HPbjmSv71kJL/dnwFsDqjqM= x-ms-exchange-transport-forked: True MIME-Version: 1.0 X-OriginatorOrg: moxa.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: HK2PR01MB3281.apcprd01.prod.exchangelabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: ce58b489-d819-49dc-ea46-08d8225fcf48 X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Jul 2020 10:23:36.5506 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 5571c7d4-286b-47f6-9dd5-0aa688773c8e X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: ukn5Voco2qd3t+Bz0RBGAvCa8i31hBktZyNLvT0gD8Buj1ptSkn/8zuEUUcNQM5V2msiOMVtys9LCSxFbao7UQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: HKAPR01MB3650 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org UC-8100A-ME is advanced of UC-8100-ME-T, and UC-8100-ME-T is deprecated. UC-8100A-ME provides larger RAM and eMMC, better input current than UC-8100-ME-T's, and it supports selectable LTE module for US/EU/APAC. UC-8100A-ME computing platform is designed for embedded data acquisition industrial applications. Features of UC-8100A-ME series are: * eMMC * SPI flash * SD slot * 2x LAN * 2 RS-232/422/485 ports, software-selectable * Mini PCIe form factor with USB signal * USB host * EEPROM * TPM * Watchdog * RTC * User gpio-keys * User LEDs * User button Signed-off-by: Johnson Chen Signed-off-by: Wes Huang Signed-off-by: Fero JD Zhou --- arch/arm/boot/dts/Makefile | 2 +- ...c-8100-me-t.dts => am335x-moxa-uc-8100a-me.dts} | 56 ++++++++++------------ 2 files changed, 27 insertions(+), 31 deletions(-) rename arch/arm/boot/dts/{am335x-moxa-uc-8100-me-t.dts => am335x-moxa-uc-8100a-me.dts} (93%) diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index e6a1cac0bfc7..f6ec58f1dd7e 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -793,7 +793,7 @@ dtb-$(CONFIG_SOC_AM33XX) += \ am335x-icev2.dtb \ am335x-lxm.dtb \ am335x-moxa-uc-2101.dtb \ - am335x-moxa-uc-8100-me-t.dtb \ + am335x-moxa-uc-8100a-me.dtb \ am335x-nano.dtb \ am335x-netcan-plus-1xx.dtb \ am335x-netcom-plus-2xx.dtb \ diff --git a/arch/arm/boot/dts/am335x-moxa-uc-8100-me-t.dts b/arch/arm/boot/dts/am335x-moxa-uc-8100a-me.dts similarity index 93% rename from arch/arm/boot/dts/am335x-moxa-uc-8100-me-t.dts rename to arch/arm/boot/dts/am335x-moxa-uc-8100a-me.dts index f03e72cada41..536bbfeaa6e1 100644 --- a/arch/arm/boot/dts/am335x-moxa-uc-8100-me-t.dts +++ b/arch/arm/boot/dts/am335x-moxa-uc-8100a-me.dts @@ -1,8 +1,6 @@ -// SPDX-License-Identifier: GPL-2.0-only +// SPDX-License-Identifier: GPL-2.0 /* - * Copyright (C) 2017 MOXA Inc. - https://www.moxa.com/ - * - * Author: SZ Lin (林上智) + * Copyright (C) 2020 MOXA Inc. - https://www.moxa.com/ */ /dts-v1/; @@ -10,8 +8,8 @@ #include "am33xx.dtsi" / { - model = "Moxa UC-8100-ME-T"; - compatible = "moxa,uc-8100-me-t", "ti,am33xx"; + model = "Moxa UC-8100A-ME"; + compatible = "moxa,uc-8100a-me", "ti,am33xx"; cpus { cpu@0 { @@ -19,11 +17,6 @@ }; }; - memory { - device_type = "memory"; - reg = <0x80000000 0x20000000>; /* 512 MB */ - }; - vbat: vbat-regulator { compatible = "regulator-fixed"; }; @@ -40,51 +33,51 @@ leds { compatible = "gpio-leds"; led1 { - label = "uc8100me:CEL1"; + label = "UC-8100A-ME:RED:SGN1"; gpios = <&gpio_xten 8 0>; default-state = "off"; }; led2 { - label = "uc8100me:CEL2"; + label = "UC-8100A-ME:YELLOW:SGN2"; gpios = <&gpio_xten 9 0>; default-state = "off"; }; led3 { - label = "uc8100me:CEL3"; + label = "UC-8100A-ME:GREEN:SGN3"; gpios = <&gpio_xten 10 0>; default-state = "off"; }; led4 { - label = "uc8100me:DIA1"; + label = "UC-8100A-ME:RED:DIA1"; gpios = <&gpio_xten 11 0>; default-state = "off"; }; led5 { - label = "uc8100me:DIA2"; + label = "UC-8100A-ME:YELLOW:DIA2"; gpios = <&gpio_xten 12 0>; default-state = "off"; }; led6 { - label = "uc8100me:DIA3"; + label = "UC-8100A-ME:GREEN:DIA3"; gpios = <&gpio_xten 13 0>; default-state = "off"; }; led7 { - label = "uc8100me:SD"; + label = "UC-8100A-ME:GREEN:SD"; gpios = <&gpio_xten 14 0>; default-state = "off"; }; led8 { - label = "uc8100me:USB"; + label = "UC-8100A-ME:GREEN:USB"; gpios = <&gpio_xten 15 0>; default-state = "off"; }; led9 { - label = "uc8100me:USER"; - gpios = <&gpio0 20 GPIO_ACTIVE_HIGH>; + label = "UC-8100A-ME:GREEN:USER"; + gpios = <&gpio0 20 0>; default-state = "off"; }; }; @@ -219,6 +212,7 @@ pinctrl-single,pins = < AM33XX_PADCONF(AM335X_PIN_SPI0_SCLK, PIN_INPUT_PULLUP, MUX_MODE0) AM33XX_PADCONF(AM335X_PIN_SPI0_CS0, PIN_INPUT_PULLUP, MUX_MODE0) + AM33XX_PADCONF(AM335X_PIN_SPI0_CS1, PIN_INPUT_PULLUP, MUX_MODE0) AM33XX_PADCONF(AM335X_PIN_SPI0_D0, PIN_INPUT_PULLUP, MUX_MODE0) AM33XX_PADCONF(AM335X_PIN_SPI0_D1, PIN_INPUT_PULLUP, MUX_MODE0) >; @@ -254,11 +248,6 @@ status = "okay"; clock-frequency = <400000>; - tpm: tpm@20 { - compatible = "infineon,slb9645tt"; - reg = <0x20>; - }; - tps: tps@2d { compatible = "ti,tps65910"; reg = <0x2d>; @@ -322,8 +311,8 @@ vdd1_reg: regulator@2 { /* VDD_MPU voltage limits 0.95V - 1.26V with +/-4% tolerance */ regulator-name = "vdd_mpu"; - regulator-min-microvolt = <912500>; - regulator-max-microvolt = <1378000>; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <1500000>; regulator-boot-on; regulator-always-on; }; @@ -331,8 +320,8 @@ vdd2_reg: regulator@3 { /* VDD_CORE voltage limits 0.95V - 1.1V with +/-4% tolerance */ regulator-name = "vdd_core"; - regulator-min-microvolt = <912500>; - regulator-max-microvolt = <1150000>; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <1500000>; regulator-boot-on; regulator-always-on; }; @@ -481,6 +470,7 @@ reg = <0>; spi-cpol; spi-cpha; + #address-cells = <1>; #size-cells = <1>; @@ -500,4 +490,10 @@ reg = <0x180000 0x20000>; }; }; + + tpm_spi_tis@1{ + compatible = "tcg,tpm_tis-spi"; + reg = <1>; + spi-max-frequency = <500000>; + }; };