Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp517932ybv; Sat, 22 Feb 2020 08:25:26 -0800 (PST) X-Google-Smtp-Source: APXvYqwB82097Ao/sI7BKtbQOUuV0IAtTk+kE9iHGpZm09P/EotFf3ZuTvNnfmYA0cqAsuDYTmzo X-Received: by 2002:aca:2312:: with SMTP id e18mr6901587oie.34.1582388726567; Sat, 22 Feb 2020 08:25:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582388726; cv=none; d=google.com; s=arc-20160816; b=jUwW913OXst2WJ1wriwMhHRzKTavJVUT1fZDazz5VvHmffyDxTkI8bzMTs+86zyz+D JqoogQ4NVDRjxnPDv9jiR+BkTFg0OsttlezvW15PEenyPGPEFWzUkHPcyfBMz24i2jT6 NH+A10mpRJW9URuK71egegahF4Je7HVUUf/7NEXUepaFxEQFCmEtj5wAiS4MaUWpPd5+ 5aaAiKs2EerzYt6tSmzkiOrzaMXHk0LigEPbKCRK7Vg3k8SB130tfCWiIsFCuTjI5dYF i7IXzxw/5A9A1t7tMbUd8zxj5rJ6dOx4VaIton/Vyj8YVd66NkmmUsJ+QUUvz/r0KZkg y/0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=Ks7y/QSYAArJm8l8kQ7dWIxmdbWnSg+WMxAzD2T6n1c=; b=Xu/ycx6TC3FoOteZsZNNjYXHDX621/jcEXSaLcwb46IRfT3WLVwqj128rblmqoPAa1 hKUxCMszB83sJCQ2kw6DQKtLE/qotpkWIng3UREydRMGkmPpANJa1tJTvW/ROMxw79nw kklwuQTf6NoYrz9T80NjQJkarlLPlideRHoaxe3UWPvmk/had6UOvDPghg+ZpqZq54/C mKFiXj2msYpWKU6gmizrzmGicMN5ABIeSO2aFpM7yzCfw34J21itr8vy7wn7n2sdaGK+ u1lyza5SGKQhFzTR8zD1x3omwrRnUGw1QYKCwhqstM2o/G9fZLBEa4Kv5VZRnKrGJILJ cYHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AdCuHZNF; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x72si2447613oia.194.2020.02.22.08.25.14; Sat, 22 Feb 2020 08:25:26 -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=@linaro.org header.s=google header.b=AdCuHZNF; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727758AbgBVQZD (ORCPT + 99 others); Sat, 22 Feb 2020 11:25:03 -0500 Received: from mail-pl1-f194.google.com ([209.85.214.194]:46721 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727714AbgBVQZD (ORCPT ); Sat, 22 Feb 2020 11:25:03 -0500 Received: by mail-pl1-f194.google.com with SMTP id y8so2169175pll.13 for ; Sat, 22 Feb 2020 08:25:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=Ks7y/QSYAArJm8l8kQ7dWIxmdbWnSg+WMxAzD2T6n1c=; b=AdCuHZNFaRFDtgAAkhhYnFi/ZD1m9YBfJU01emxU4mSbXwDRhs1uDdwwYPrHYE+eBS GI4xxETIdZE/1zzNfMz0oVP3qlaf87/HfcgBXY8m6U6baMqi6/WQ+LdXInCdLcoIQZAL xDMNi2jguKXQ3LInFv0OtDfbUBxZMH2wUAyK/84KntG2ZEAl7rbKPGl+gWanNGicIdFp q0KASqHTpV2HD0HgSzBkiNVEIMJd41sWk+X/XsdK/vN5/ZV2yHZ4ism2B0qFGQ+JruDV RjnkFLntq729UCaXVHPF74Pq3Ajg2YR/Z+DO9qGH2xd4nLDuQvzBEksJJShR6Ggdbwhw Q2dQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=Ks7y/QSYAArJm8l8kQ7dWIxmdbWnSg+WMxAzD2T6n1c=; b=T6wjzCORDTkT0nvNrpASujpymNvNuZsVTsv774zXjXpo7ntBP0o8CBJ1S4dk5SVnkU h9qma1opsd4s/s3LbIh0mob+yoOiuaYyaaPry7GLFbBx56gz9VXvM5Y7HkrRoN96Hbbo gyb3MS90a+eLKItvc6P2+RhpYxoV0Zs3WUD5dn5FuGvK2DcAERnaeH7JoOSgJl7Czn2I /bTV8OdBKHas8CSaBVjLpfioTkcDv7Irv1sQ9/qzlW3eU6u4iMmLkcX/sJRLW41G8YLS +EPvMRnakEOdwMEF7pcHcl8iVmkET2GUWa09NDnOSDYiW4FJWb2LcFlLzzmZIi0Xkw0Z h6dQ== X-Gm-Message-State: APjAAAUKY8T4yKprCvelVVsfRJqpoF5Yx9lTdMCEET9gGQFIZqK547c3 XCrhDlaR/x//Sx/PUQIpo6cS X-Received: by 2002:a17:90a:fe02:: with SMTP id ck2mr9841156pjb.10.1582388701954; Sat, 22 Feb 2020 08:25:01 -0800 (PST) Received: from localhost.localdomain ([2409:4072:801:b38c:89e8:305c:23c4:b77f]) by smtp.gmail.com with ESMTPSA id q17sm6851296pfg.123.2020.02.22.08.24.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 22 Feb 2020 08:25:01 -0800 (PST) From: Manivannan Sadhasivam To: matthias.bgg@gmail.com, robh+dt@kernel.org Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, adamboardman@gmail.com, Manivannan Sadhasivam Subject: [PATCH 0/4] Add I2C controller support for MT6797 SoC Date: Sat, 22 Feb 2020 21:54:40 +0530 Message-Id: <20200222162444.11590-1-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, This patchset adds I2C controller support for Mediatek MT6797 SoC. There are a total of 8 I2C controllers in this SoC (2 being shared) and they are same as the controllers present in MT6577 SoC. Hence, the driver support is added with DT fallback method. As per the datasheet, there are controllers with _imm prefix like i2c2_imm and i2c3_imm. These appears to be in different memory regions but sharing the same pins with i2c2 and i2c3 respectively. Since there is no clear evidence of what they really are, I've adapted the numbering/naming scheme from the downstream code by Mediatek. This patchset has been tested on 96Boards X20 development board. Thanks, Mani Manivannan Sadhasivam (4): dt-bindings: i2c: Document I2C controller binding for MT6797 SoC arm64: dts: mediatek: Add I2C support for MT6797 SoC arm64: dts: mediatek: Enable I2C support for 96Boards X20 Development board arm64: dts: mediatek: Switch to SPDX license identifier for MT6797 SoC .../devicetree/bindings/i2c/i2c-mt65xx.txt | 1 + .../boot/dts/mediatek/mt6797-x20-dev.dts | 49 ++++ arch/arm64/boot/dts/mediatek/mt6797.dtsi | 229 +++++++++++++++++- 3 files changed, 271 insertions(+), 8 deletions(-) -- 2.17.1