Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2554859rwl; Mon, 27 Mar 2023 01:42:22 -0700 (PDT) X-Google-Smtp-Source: AKy350aUzgYTlE5XqbAwMPXxy61466xhUQxyalSOu/+k+j6EZ2iZKv55Mr1xiV4yHCplRbvru9VS X-Received: by 2002:a17:903:32ca:b0:1a1:ab40:b0f5 with SMTP id i10-20020a17090332ca00b001a1ab40b0f5mr13299563plr.36.1679906542097; Mon, 27 Mar 2023 01:42:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679906542; cv=none; d=google.com; s=arc-20160816; b=lWQDKcuWYvxAruBypctOcTdZ16h+6KMXDXiUqx82V5wHtQxauDJQaKIwKItumfKv0n 03W5YGls5fzu6ikx85Mt0n/itPyDAdmLfgcwQBSHYVM/QEJul2xmRHVL0Y9IjRXKQ0dL D5DbCZQPMtBC1G1CZ/n81WETIckxlFYzfy4hBfCD694m8GZvvlzbOgD0IsZ3XziNDYRV 8udgVYnMKS/SliLnD7D5m5idvBeRpdXAjuFeRqTH2PlA2QwqrhXorV1u6UnTvb3R+Igs ABWAqjR4pfrs9/6dRlgivZIBa1SO8snGmuRvcmSo13Gpu0nX0LCoCOcVDgVeAYeeC7VC xS9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Enp8+k53zZNO3mOQI9L8FtkcYSdTpwDeQcTM39YWFvY=; b=STd6y7LB72qLaqFx2lqwMNeUmW9Qm6WbhCsAxUm9ncWw+QbuMDSXIQLeHbj3pCAlSR Pr3dOGNUBW+aYdBJjp28rCqKFobUXJA9lFqfFt7de3RAIWhpiPCw4bBq+vyGslKh/jXS 5ARGDhOLZXt4/1Y/EF5o9Mk14AdjwWxDs0cGUuaNuXz/KPyivfr2DWct4cBJAzr6cT5m 2YsFVhNoXOkAPYnICDZiYaEsM/SpRIxco55HVSsx5r23+/gXFmVDoiMSz2lDxAeZz0q8 bv1L+PoDRlaz/xlLL8YjGRK7TgWNd6wokhIS/1WFbwnlFUzTE1fh89lWaO0Zk4HPU7qS pU+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=iCkzaO8n; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b6-20020a63d306000000b004d422660ffesi25820408pgg.393.2023.03.27.01.42.06; Mon, 27 Mar 2023 01:42:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=iCkzaO8n; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232677AbjC0IlH (ORCPT + 99 others); Mon, 27 Mar 2023 04:41:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233137AbjC0Ike (ORCPT ); Mon, 27 Mar 2023 04:40:34 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 74FE865B4; Mon, 27 Mar 2023 01:36:59 -0700 (PDT) Received: from IcarusMOD.eternityproject.eu (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 8EE8E66030DD; Mon, 27 Mar 2023 09:36:57 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1679906218; bh=+C19HY45yz9Sl0OrylkeSlqeTXjPBT2+I9ZB7T/mxXQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iCkzaO8nVU6WnBTUXzyCKVukOLkI82GT8Xd0xJOhAjor/YkqoLQhDcFJlsE7jmuUX hQsyXj+fJu+8CldDi59Z5/mnvbZHh+3H+T4U6E0YBCWN/G4lLiDg7FrCIb59NdLuuj EYcnjwwoKygQNg926uJ7dhLXWyLa4nZrhstKFoFIKsCgPS/z5eAKG04y7x12LARPlI HCDyIA3wDOxUvJSibEWGRBrefVyaABWfTunMawJWPMwqX+GMQVlagKB9vqWm7kXb1o 9v+Xb+MbaVJjITHZEQiS3pJpG46zwvkbb1pm/Hk0aWc6L9bth6hETt4AYSI9oGGENr LN2CVQKjzppww== From: AngeloGioacchino Del Regno To: matthias.bgg@gmail.com Cc: qii.wang@mediatek.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, jassisinghbrar@gmail.com, houlong.wei@mediatek.com, linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, kernel@collabora.com, phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, AngeloGioacchino Del Regno Subject: [PATCH v2 05/17] arm64: dts: mediatek: mt6795: Add nodes for I2C controllers Date: Mon, 27 Mar 2023 10:36:35 +0200 Message-Id: <20230327083647.22017-6-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230327083647.22017-1-angelogioacchino.delregno@collabora.com> References: <20230327083647.22017-1-angelogioacchino.delregno@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add all four I2C controller nodes but keep them in disabled state as usage is board-dependant. Signed-off-by: AngeloGioacchino Del Regno --- arch/arm64/boot/dts/mediatek/mt6795.dtsi | 60 ++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt6795.dtsi b/arch/arm64/boot/dts/mediatek/mt6795.dtsi index 26d640e1bfb6..ceb6fc948d8a 100644 --- a/arch/arm64/boot/dts/mediatek/mt6795.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt6795.dtsi @@ -445,6 +445,66 @@ uart3: serial@11005000 { status = "disabled"; }; + i2c0: i2c@11007000 { + compatible = "mediatek,mt6795-i2c", "mediatek,mt8173-i2c"; + reg = <0 0x11007000 0 0x70>, <0 0x11000100 0 0x80>; + interrupts = ; + clock-div = <16>; + clocks = <&pericfg CLK_PERI_I2C0>, <&pericfg CLK_PERI_AP_DMA>; + clock-names = "main", "dma"; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + i2c1: i2c@11008000 { + compatible = "mediatek,mt6795-i2c", "mediatek,mt8173-i2c"; + reg = <0 0x11008000 0 0x70>, <0 0x11000180 0 0x80>; + interrupts = ; + clock-div = <16>; + clocks = <&pericfg CLK_PERI_I2C1>, <&pericfg CLK_PERI_AP_DMA>; + clock-names = "main", "dma"; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + i2c2: i2c@11009000 { + compatible = "mediatek,mt6795-i2c", "mediatek,mt8173-i2c"; + reg = <0 0x11009000 0 0x70>, <0 0x11000200 0 0x80>; + interrupts = ; + clock-div = <16>; + clocks = <&pericfg CLK_PERI_I2C2>, <&pericfg CLK_PERI_AP_DMA>; + clock-names = "main", "dma"; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + i2c3: i2c@11010000 { + compatible = "mediatek,mt6795-i2c", "mediatek,mt8173-i2c"; + reg = <0 0x11010000 0 0x70>, <0 0x11000280 0 0x80>; + interrupts = ; + clock-div = <16>; + clocks = <&pericfg CLK_PERI_I2C3>, <&pericfg CLK_PERI_AP_DMA>; + clock-names = "main", "dma"; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + i2c4: i2c@11011000 { + compatible = "mediatek,mt6795-i2c", "mediatek,mt8173-i2c"; + reg = <0 0x11011000 0 0x70>, <0 0x11000300 0 0x80>; + interrupts = ; + clock-div = <16>; + clocks = <&pericfg CLK_PERI_I2C4>, <&pericfg CLK_PERI_AP_DMA>; + clock-names = "main", "dma"; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + mmc0: mmc@11230000 { compatible = "mediatek,mt6795-mmc"; reg = <0 0x11230000 0 0x1000>; -- 2.40.0