Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2049504yba; Sun, 21 Apr 2019 22:33:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqwXQgVRRspiNq6caRIreNtKYsbiQ8njEEd6/jHeN7yIG5zr8ohZlh8nMWfgsQgFtUnm/wIf X-Received: by 2002:a62:6490:: with SMTP id y138mr18873887pfb.230.1555911212466; Sun, 21 Apr 2019 22:33:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555911212; cv=none; d=google.com; s=arc-20160816; b=fYwC0kBv2XktUVgUL7ZhrLP2bQIyLdUD4u3N+mAskXRu7YskmiWQ2sqBr7JrTa86oV MzOSoJ9mjchKf2I3i5ql7YfkGR4umwbQNHuuesgYWmrLcrsqcN13rR+KAgzB/xaQLjzj zRi3YofI0G8d8An19rCL+Yb6JukDrQXsizAt0ZaHNlYYk68gpG+3o8lOtr+R49XUCRFb YcFOoQ5/PCPNYBZdTNiOnMqCOK7KG3zta0VlAR92zHZ6CKDQ42VKynbJ5vV6HyejEh1F HLNlgBUufVK54/CtPBTMS7brkbuKZS9vxKcHub91dTke+v9Yb/w53aSxHWPM79tSeyvy SpAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature; bh=GN0Ucaxk2iMiksHeykiSYYXSutHMdigKbXP0tFwWZts=; b=xfF4d0M1vq5N2sCotseTlGO2bp4qw0hAhY/gdnOYbJ+HYLMD03S3jB230+1OVEictA 5NlkhJSn3vdNGBtY2h8EtkNYz8fhAf4P5TYItQbUMQdxmb9IQwzfIf1/Tx0bJMKXV40r wqciLoLhu0zvQuRD8pAtUV4DB0x41IPuh7t/UsnGiyzBx0ZNYvxs+TwhtVRAIlhZnkkd P0WGMXlzXeA4PH70PKM0yhCh7oAaK+o9Y1zWwl/vRvkXHGDdHZNbthV/0BT6kWkKbOk2 T3axUcIr2N5LN09CBF3TiJ5put4slL33irR1PRm+RT0GxXbU5sw/cvu6HiX8q3t9bEi0 uLLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b="G4BEI/OT"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g189si11497619pgc.112.2019.04.21.22.32.47; Sun, 21 Apr 2019 22:33:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b="G4BEI/OT"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726519AbfDVEy1 (ORCPT + 99 others); Mon, 22 Apr 2019 00:54:27 -0400 Received: from mail-eopbgr140047.outbound.protection.outlook.com ([40.107.14.47]:13070 "EHLO EUR01-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726309AbfDVEy0 (ORCPT ); Mon, 22 Apr 2019 00:54:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=GN0Ucaxk2iMiksHeykiSYYXSutHMdigKbXP0tFwWZts=; b=G4BEI/OTAT4W0titl2PN8J4dj4CZGins60c0TAopWFrDwAKHGYgu4ITZOWny3XcSHxZZw+nfDfyMeuMUEf/KPsGcWvdf4ghbu0F/kPBoW/0MEhNR4LRFW/zqeykgjX6qcznJEIsxDoIlDpYHVahRVDm/NiZSdNPsnIyOXtNR+Q8= Received: from DB3PR0402MB3916.eurprd04.prod.outlook.com (52.134.72.18) by DB3PR0402MB3850.eurprd04.prod.outlook.com (52.134.65.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1813.17; Mon, 22 Apr 2019 04:54:15 +0000 Received: from DB3PR0402MB3916.eurprd04.prod.outlook.com ([fe80::e8ca:4f6b:e43:c170]) by DB3PR0402MB3916.eurprd04.prod.outlook.com ([fe80::e8ca:4f6b:e43:c170%3]) with mapi id 15.20.1813.017; Mon, 22 Apr 2019 04:54:15 +0000 From: Anson Huang To: "catalin.marinas@arm.com" , "will.deacon@arm.com" , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "kernel@pengutronix.de" , "festevam@gmail.com" , "heiko@sntech.de" , "horms+renesas@verge.net.au" , "maxime.ripard@bootlin.com" , "olof@lixom.net" , "jagan@amarulasolutions.com" , "bjorn.andersson@linaro.org" , "enric.balletbo@collabora.com" , "ezequiel@collabora.com" , "stefan.wahren@i2se.com" , "marc.w.gonzalez@free.fr" , Aisheng Dong , "robh@kernel.org" , Abel Vesa , "l.stach@pengutronix.de" , Leonard Crestez , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" CC: dl-linux-imx Subject: [PATCH 1/2] soc: imx: add i.MX8QXP SoC driver support Thread-Topic: [PATCH 1/2] soc: imx: add i.MX8QXP SoC driver support Thread-Index: AQHU+MdvI5VlMRhvBUyIasIKgR6dCA== Date: Mon, 22 Apr 2019 04:54:15 +0000 Message-ID: <1555908516-13354-1-git-send-email-Anson.Huang@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.7.4 x-clientproxiedby: HK0PR01CA0033.apcprd01.prod.exchangelabs.com (2603:1096:203:3e::21) To DB3PR0402MB3916.eurprd04.prod.outlook.com (2603:10a6:8:10::18) authentication-results: spf=none (sender IP is ) smtp.mailfrom=anson.huang@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [119.31.174.66] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: af2acf25-47ef-4c2f-9e4d-08d6c6de9191 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(5600141)(711020)(4605104)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7193020);SRVR:DB3PR0402MB3850; x-ms-traffictypediagnostic: DB3PR0402MB3850: x-microsoft-antispam-prvs: x-forefront-prvs: 00159D1518 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(346002)(366004)(396003)(39860400002)(136003)(376002)(199004)(189003)(186003)(8936002)(66446008)(66556008)(66476007)(66946007)(64756008)(476003)(50226002)(2906002)(73956011)(52116002)(6506007)(386003)(26005)(81166006)(486006)(81156014)(102836004)(99286004)(97736004)(2616005)(5660300002)(8676002)(68736007)(256004)(6486002)(4326008)(2501003)(66066001)(25786009)(71200400001)(14454004)(6512007)(110136005)(86362001)(71190400001)(316002)(2201001)(305945005)(7736002)(7416002)(36756003)(3846002)(478600001)(6116002)(53936002)(6436002)(921003)(1121003);DIR:OUT;SFP:1101;SCL:1;SRVR:DB3PR0402MB3850;H:DB3PR0402MB3916.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: cS8pt+pSUUmHKgeYaOYAtWG3JW2mcMRIahWieTIqjcRiCAmBKpwjRStkkChN52fS60hIJtqrql16r2uZdL0JxQmVHX8SZsWb3QkBS8kkY7TdmJtSgWU5jyX652akQwpMlsVukD0PVnyNjpcCfjeKpJVVajTKxngm/nuLkcLwNPMvI3vg4TeXw69OayAlAd9QMlf7ZZRb8bWwU73+nh3bB/u7P2NupMEAY7MTLL7jgPo2H3OtqW8Rgy37cKonCytHT3Sa72jdz+ePpgQX+2p3gXRctLipQqKXvmhsuG1nzyHpuQHOpxEUmqDnKaiMHddseX/r7678UCDVdBjhql92ADQJUTdaoRRjXcrKteREWCVlSrGXP3zxKnugatGeEgkPIeEfWghgY9VzDs0k3ihgiolInDOkiKq6OYP9RoFYluY= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: af2acf25-47ef-4c2f-9e4d-08d6c6de9191 X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Apr 2019 04:54:15.4218 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3PR0402MB3850 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org QWRkIGkuTVg4UVhQIFNvQyBkcml2ZXIgc3VwcG9ydCwgaW50cm9kdWNlIGRyaXZlciBkZXBlbmRl bmN5DQppbnRvIEtjb25maWcgYXMgQ09ORklHX0lNWF9TQ1UgbXVzdCBiZSBzZWxlY3RlZCB0byBz dXBwb3J0DQppLk1YOFFYUCwgYWxzbyBuZWVkIHRvIHVzZSBwbGF0Zm9ybSBkcml2ZXIgbW9kZWwg dG8gbWFrZSBzdXJlDQpJTVhfU0NVIGRyaXZlciBpcyBwcm9iZWQgYmVmb3JlIGkuTVg4IFNvQyBk cml2ZXIuDQoNCldpdGggdGhpcyBwYXRjaCwgU29DIGluZm8gY2FuIGJlIHJlYWQgZnJvbSBz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