From patchwork Mon Mar 27 08:36:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AngeloGioacchino Del Regno X-Patchwork-Id: 75301 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1359186vqo; Mon, 27 Mar 2023 01:42:47 -0700 (PDT) X-Google-Smtp-Source: AKy350aUNzzLHkmAVQo7EHQeDYglWdo7r28hipbIC1mGc135FGILC99cnW5yAluPlcfAjLkSL6n3 X-Received: by 2002:a17:906:d966:b0:7c0:e30a:d3e5 with SMTP id rp6-20020a170906d96600b007c0e30ad3e5mr11311124ejb.18.1679906567224; Mon, 27 Mar 2023 01:42:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679906567; cv=none; d=google.com; s=arc-20160816; b=Z48M28eEtayry7Do02Zq3Q0FLSo2JrEgbnYEq7+HKHw3MC5Vs8ebLmzXUc011iSvZq Siy1nGgLlHTw8jQ5QGYyzADV516o+5OgbVEw0/2mEBoHK2E+cibEXfLU5PdEXIXEA/XW XMwRbJstliXVXkPrQZhwHhrlacyj/Ge318ik/hRMoDYoNwVdU4MC95unywVbaOiF4D2G aQovRnIUB2+cr18jIjNysHXZNF63qAhL+bnjx1NfYmL23tvclvGcVh9nrFGA+sHNJwu2 QpT7szfdwUmmqFK4xC0MtWqAjvmrGJzhf43Q++kwA851G9O+t8ZVeh/LCvq7cOELgK8e Lc+w== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t21-20020a1709063e5500b0092bdf20dfefsi23838486eji.386.2023.03.27.01.42.23; Mon, 27 Mar 2023 01:42:47 -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 S233386AbjC0IlI (ORCPT + 99 others); Mon, 27 Mar 2023 04:41:08 -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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761509708622499498?= X-GMAIL-MSGID: =?utf-8?q?1761509708622499498?= 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>;