Received: by 2002:ab2:788f:0:b0:1ee:8f2e:70ae with SMTP id b15csp62787lqi; Wed, 6 Mar 2024 10:04:49 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWlO8pKsJC9gDWZpH1iEDkaE/yhqF6taT8B2EeWH33kXizwVRkrpSDfbx6VHHdcP2CIaWTq33MmoDlI0qU2FAwF7vu9//VvQFUDLoV/mw== X-Google-Smtp-Source: AGHT+IGdu+/uuzb+gYODI0NKnU1XYSLKpVbb7pHvmK36dwjHKgkzBBnz080rfU5RgemAcPmfYQc1 X-Received: by 2002:a17:902:b202:b0:1dc:fb12:abbc with SMTP id t2-20020a170902b20200b001dcfb12abbcmr5130032plr.61.1709748289402; Wed, 06 Mar 2024 10:04:49 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709748289; cv=pass; d=google.com; s=arc-20160816; b=QEwkZ8rIORwtK+2xxgEpfbU+CI9NkBH6vJsUWnanf4TF2jBMT9ykdz+TwXeApERB3r iZf4OQuSeisdVMJ/PPxKYc35XL8LG2PpNK7RmIP326izyZ5Vne78oNULhexM0TnSdUYJ 6tzbuvcVnQzyW0+X6Z8LpEt7i15tNlvHvGyLEsDOefGSSVg50iXMgiS2BR3Xt66Tzlgw 6OdUO38+k2C8ZOwXM563Qcmwfr8zvrKPOzNQBRAmRFIvXywaFqUpLLAIE203b848DeNj k1Oa6YXHi7ZO41lej4i17yiCmgUxUenRWDJh9kcTCRkEGjWtQEf91esBpWMQ13oLv9ix ea2Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=FXodg3L52Fw8MHiCrqJ138mAFruQudu9GRMVBdxvx8M=; fh=5JSnMO1qLgeVtLVJilSQcFnAcZn2MWLSM3RnsAdOnEU=; b=sVobAUVLSmQt13Ua/JtqsEESSiid8GXS18VsZd9JbtFS21+AAHKK+7ZTQ4Rrv1Yz44 t6Szhl/FTPCKYnzuP0eHDJWlq797JaNkwMb9l9uS4wxFjZb4p5UmYCv1EL4AeBzVm33o QO7WZaMLUZi8zdDtCbDc7FyX6Tx9rXlsr3oHBKRNpCX4m03WDPzcObGyzLGGZxi5nNHB gQTudmpVicnjqtbaIaRVdo33xnI85j71EC7wCpLzqVlHXBYp8TElXZjKaG7lpTUH9rcj qW8ac8KFaK6La289FwJSl4ZkjS2n2Sds5kSWzODfg4VJKqA5vTGMz4S+b4/nFuIQ20f3 8ncw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=B0dccRJg; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-94367-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-94367-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id w23-20020a1709026f1700b001dd47b680b3si201450plk.354.2024.03.06.10.04.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 10:04:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-94367-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=B0dccRJg; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-94367-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-94367-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 4F6F1B21CAD for ; Wed, 6 Mar 2024 18:01:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D8DAC1428E0; Wed, 6 Mar 2024 17:59:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="B0dccRJg" Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [217.70.183.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A045D13E7DB; Wed, 6 Mar 2024 17:59:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709747977; cv=none; b=AO6gSD71Pw7MZusfrEZb2pqRCOwz9uJvDm9BhkmheIwQREpI6ibV0CSCEb0ltkjkb6DZIdILJdjtjnxhVoF780L/JrR6IwfqDt9g/ewmITQL5nL4yMZi+H8c+IM348pAxAPNMq/mKMog4rs/FSJKWjScuL4RXioL99pCUD+xgOc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709747977; c=relaxed/simple; bh=5+66QCDuAPFthjMdVWRlfXiypvO36c87l+WuAP4TGMw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Vvk7SIdVAxak4Gqk3l2S4cn/Ubyl8G0mR78fBI5qC00pg/peb1FetAOFtT49DpmaehxgLeQLsPCw9EkC53ux8N+czY0KpVw9bkzmKkuaq87eeGz/UJdqRhSMAto4doQNPOls5+ftxcaJLHukCczGD3hDY0a6DJd4YZmKb8E1yYQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=B0dccRJg; arc=none smtp.client-ip=217.70.183.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id 7D0794000F; Wed, 6 Mar 2024 17:59:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1709747970; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=FXodg3L52Fw8MHiCrqJ138mAFruQudu9GRMVBdxvx8M=; b=B0dccRJgHdRzXHRJkC2vXSschUUPdzCJUVzpQdYE9sIwSen84IbL7eRKpjPYBxm+pDGIdA UXb0sHaOq2MZNKHdelMGZLpwTzZnQP3F+iILCAQ5pk3amuqhosGLLc6j8KczCn5EVC5DFw +e69d5HAR4b+0WIkTCyIwN0e5HqdZv96ebqRyODxF9pOWIj4KEGpkLKW5nEuCNf77T2FZP 1WngAh1eY2etbu3ElNda9YYdvE20FD4+uAEHP/M0koEwFTPNDajYtesSxuRY67cDhQG7QS RFqCVzaql/9Zwl4ghCF3bPCS+ZmC0v5TL6IMM2MgYRe+0Ms5flxxFdKl9Jyv+g== From: =?utf-8?q?Th=C3=A9o_Lebrun?= Date: Wed, 06 Mar 2024 18:59:30 +0100 Subject: [PATCH v3 10/11] MIPS: mobileye: eyeq5: add 5 I2C controller nodes Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20240306-mbly-i2c-v3-10-605f866aa4ec@bootlin.com> References: <20240306-mbly-i2c-v3-0-605f866aa4ec@bootlin.com> In-Reply-To: <20240306-mbly-i2c-v3-0-605f866aa4ec@bootlin.com> To: Linus Walleij , Andi Shyti , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thomas Bogendoerfer Cc: linux-arm-kernel@lists.infradead.org, linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, Gregory Clement , Vladimir Kondratiev , Thomas Petazzoni , Tawfik Bayouk , =?utf-8?q?Th=C3=A9o_Lebrun?= X-Mailer: b4 0.13.0 X-GND-Sasl: theo.lebrun@bootlin.com Add the SoC I2C controller nodes to the platform devicetree. Use a default bus frequency of 400kHz. They are AMBA devices that are matched on PeriphID. Set transfer timeout to 10ms instead of Linux's default of 200ms. Acked-by: Linus Walleij Signed-off-by: Théo Lebrun --- arch/mips/boot/dts/mobileye/eyeq5.dtsi | 75 ++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) diff --git a/arch/mips/boot/dts/mobileye/eyeq5.dtsi b/arch/mips/boot/dts/mobileye/eyeq5.dtsi index 8d4f65ec912d..540d55503f3b 100644 --- a/arch/mips/boot/dts/mobileye/eyeq5.dtsi +++ b/arch/mips/boot/dts/mobileye/eyeq5.dtsi @@ -70,6 +70,81 @@ soc: soc { ranges; compatible = "simple-bus"; + i2c0: i2c@300000 { + compatible = "mobileye,eyeq5-i2c", "arm,primecell"; + reg = <0 0x300000 0x0 0x1000>; + interrupt-parent = <&gic>; + interrupts = ; + clock-frequency = <400000>; /* Fast mode */ + #address-cells = <1>; + #size-cells = <0>; + clocks = <&i2c_ser_clk>, <&i2c_clk>; + clock-names = "i2cclk", "apb_pclk"; + resets = <&reset 0 13>; + i2c-transfer-timeout-us = <10000>; + mobileye,olb = <&olb 0>; + }; + + i2c1: i2c@400000 { + compatible = "mobileye,eyeq5-i2c", "arm,primecell"; + reg = <0 0x400000 0x0 0x1000>; + interrupt-parent = <&gic>; + interrupts = ; + clock-frequency = <400000>; /* Fast mode */ + #address-cells = <1>; + #size-cells = <0>; + clocks = <&i2c_ser_clk>, <&i2c_clk>; + clock-names = "i2cclk", "apb_pclk"; + resets = <&reset 0 14>; + i2c-transfer-timeout-us = <10000>; + mobileye,olb = <&olb 1>; + }; + + i2c2: i2c@500000 { + compatible = "mobileye,eyeq5-i2c", "arm,primecell"; + reg = <0 0x500000 0x0 0x1000>; + interrupt-parent = <&gic>; + interrupts = ; + clock-frequency = <400000>; /* Fast mode */ + #address-cells = <1>; + #size-cells = <0>; + clocks = <&i2c_ser_clk>, <&i2c_clk>; + clock-names = "i2cclk", "apb_pclk"; + resets = <&reset 0 15>; + i2c-transfer-timeout-us = <10000>; + mobileye,olb = <&olb 2>; + }; + + i2c3: i2c@600000 { + compatible = "mobileye,eyeq5-i2c", "arm,primecell"; + reg = <0 0x600000 0x0 0x1000>; + interrupt-parent = <&gic>; + interrupts = ; + clock-frequency = <400000>; /* Fast mode */ + #address-cells = <1>; + #size-cells = <0>; + clocks = <&i2c_ser_clk>, <&i2c_clk>; + clock-names = "i2cclk", "apb_pclk"; + resets = <&reset 0 16>; + i2c-transfer-timeout-us = <10000>; + mobileye,olb = <&olb 3>; + }; + + i2c4: i2c@700000 { + compatible = "mobileye,eyeq5-i2c", "arm,primecell"; + reg = <0 0x700000 0x0 0x1000>; + interrupt-parent = <&gic>; + interrupts = ; + clock-frequency = <400000>; /* Fast mode */ + #address-cells = <1>; + #size-cells = <0>; + clocks = <&i2c_ser_clk>, <&i2c_clk>; + clock-names = "i2cclk", "apb_pclk"; + resets = <&reset 0 17>; + i2c-transfer-timeout-us = <10000>; + mobileye,olb = <&olb 4>; + }; + uart0: serial@800000 { compatible = "arm,pl011", "arm,primecell"; reg = <0 0x800000 0x0 0x1000>; -- 2.44.0