Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1715247ybv; Fri, 21 Feb 2020 02:13:44 -0800 (PST) X-Google-Smtp-Source: APXvYqxBaA5KMdlTTpDsafprhHNWYPFDhuCM1xtPiP9F+CZITwb3qwaRZ5MRivHzsq3SuYR+DYUo X-Received: by 2002:a9d:1928:: with SMTP id j40mr27553130ota.68.1582280024057; Fri, 21 Feb 2020 02:13:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582280024; cv=none; d=google.com; s=arc-20160816; b=ZOynZgrnmZd2umHldQcM1tWzGwi9Z0Cv7q2H3VSDOHZe8dkw4MSHs6dTCIm+wvwSxH CQ8xXTG7dRJHh18cxLDs1X3DfuF8DdpMcSh16nSedPRokBqv+Q8xYJT8dhMj/i1r/Kc4 qPoXklxnfq2u5VPHs5ik4Ykb3aBEPa8/FxhEk+IM0mwi1aMbTh7mxpd/Uueq40GMqlmT TqT3ku0+TtCD/rrkgMy+eRQl6PA3wYSVV2x012mlgGJ1KIP++GyVkQIjhqTrZ4kfI5p9 QUrGLURZsyNcy2AynEDZyOzl+Oghh0SWwo2F8L0BmZAKUKZmQHrHidCP+3wXc2tA3oO0 GYWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=lyh07rORdyEMmH4qVkXFosUAcAB4Aohej6iysxVm6AY=; b=tXE0TV8Ab3SJbCnW05SUHF4OYFIVDop/PDMZH8h87Bq7DK+J31h34649wJK6J8qNnf hnAbgJiB/iMHBbXv0A/9AWtgv6NX/6T+8w1QHVBm7NESkQTZmCBk2+xkXe53yUYVZcOQ 7DeRzjjuCog5cLPGRXYJQ2rcyCFmJe5/LHqJyowxhAI25+Yn1q+K6WRHVJttgzFL6ICd 7eAFIJ/gw5AFbGZ5rVQruIy1VCp8DOxtMi7Qw8gQ3nwADsxBzXCsEKZ8swrayRVwz1iv NxswJX1ykC+mlEVPL2gkTZgWW5+8/xHjBBaYaD0BJiy6CPZqRvhBs6vSVbNR95+BA/7b 5m/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=ZjpbilcP; 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=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z15si1252934otm.168.2020.02.21.02.13.32; Fri, 21 Feb 2020 02:13:44 -0800 (PST) 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=@mediatek.com header.s=dk header.b=ZjpbilcP; 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=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728701AbgBUKMW (ORCPT + 99 others); Fri, 21 Feb 2020 05:12:22 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:43041 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728486AbgBUKMU (ORCPT ); Fri, 21 Feb 2020 05:12:20 -0500 X-UUID: 0c24167ae63b4e46ad5a75006e3580ab-20200221 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=lyh07rORdyEMmH4qVkXFosUAcAB4Aohej6iysxVm6AY=; b=ZjpbilcPr35xQ4wjjfxsL615+NKCKhoTD4WTehZAfkPD8f65gZFh7cdFNmPIFk0ll1rZf12beMDuZjH1sj9M9nILDdSSgJYlZ7/IltVBVgMshh9JwXPdg9BBh/njxwi+k9/a5XxEfXCkqVmH4ZBHySe+piTOuaMsAVvCuPfQ7qA=; X-UUID: 0c24167ae63b4e46ad5a75006e3580ab-20200221 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1107465619; Fri, 21 Feb 2020 18:12:13 +0800 Received: from mtkcas09.mediatek.inc (172.21.101.178) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Fri, 21 Feb 2020 18:13:16 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by mtkcas09.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Fri, 21 Feb 2020 18:11:53 +0800 From: Macpaul Lin To: Rob Herring , Mark Rutland , Matthias Brugger , Catalin Marinas , Will Deacon , Michael Turquette , Stephen Boyd , mtk01761 , Fabien Parent , Weiyi Lu , Mars Cheng , Sean Wang , Macpaul Lin , Owen Chen , Chunfeng Yun , Evan Green , Yong Wu , Joerg Roedel , Shawn Guo , Marc Zyngier , Ryder Lee , , , , , CC: Mediatek WSD Upstream , CC Hwang , Loda Chou Subject: [PATCH v8 2/4] soc: mediatek: add MT6765 scpsys and subdomain support Date: Fri, 21 Feb 2020 18:12:07 +0800 Message-ID: <1582279929-11535-3-git-send-email-macpaul.lin@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1582279929-11535-1-git-send-email-macpaul.lin@mediatek.com> References: <1582279929-11535-1-git-send-email-macpaul.lin@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Content-Transfer-Encoding: base64 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List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