From patchwork Fri Aug 23 15:35:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: karthikeyan X-Patchwork-Id: 13775438 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id F1119C52D7C for ; Fri, 23 Aug 2024 15:38:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=lGv/wy08x/B7bLYOWqbVbMhnaUihX+YE7qSWjC5RYsw=; b=m/YarBfpdDw1yOtSzVn1LqnO2x +TBNbf2M0mU1mDhXQkyYAsKU7ORuStIW0rYwvlvtpi2X5o1FLPsnioywn+NAGTJje1g8M34Fvpagq dhdF8uOK2bd3LFBWmyJBz5mZWDJPhZP6s5iwYAbyx9dsHrAlIPR4uba2IrQEk19lXTPhwYhOXS2MI YmH1y8aw275hT3sfK7CQ2V30a2xxo2mdST0oKPcDBeSi6+2KAMG1SopOtryAOTMi1ML1i9J0H6Eko cyExc7wB0WeA/quTZMAV8Fyt/FNlZIJcJsl6Pq5KBGIWVHqQNfqQLI3onnE9G2SgRaluTapbMnniB ugAZotAA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1shWMu-0000000HKuf-139t; Fri, 23 Aug 2024 15:38:28 +0000 Received: from omta40.uswest2.a.cloudfilter.net ([35.89.44.39]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1shWKg-0000000HKQu-3P64 for linux-arm-kernel@lists.infradead.org; Fri, 23 Aug 2024 15:36:12 +0000 Received: from eig-obgw-6009a.ext.cloudfilter.net ([10.0.30.184]) by cmsmtp with ESMTPS id hWAUsvmcsvH7lhWKQsSFJh; Fri, 23 Aug 2024 15:35:54 +0000 Received: from md-in-79.webhostbox.net ([43.225.55.182]) by cmsmtp with ESMTPS id hWKMsUBb8EatOhWKNs7f9Y; Fri, 23 Aug 2024 15:35:52 +0000 X-Authority-Analysis: v=2.4 cv=F5ZRdLhN c=1 sm=1 tr=0 ts=66c8ac58 a=LfuyaZh/8e9VOkaVZk0aRw==:117 a=kofhyyBXuK/oEhdxNjf66Q==:17 a=yoJbH4e0A30A:10 a=vU9dKmh3AAAA:8 a=IUsOfeiScPouXSuZ-WoA:9 a=rsP06fVo5MYu2ilr0aT5:22 a=ZCPYImcxYIQFgLOT52_G:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=linumiz.com ; s=default; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=lGv/wy08x/B7bLYOWqbVbMhnaUihX+YE7qSWjC5RYsw=; b=k70Ai4kVIEJb6oHR6G6An729wJ g26+STN0j9O8wB/eAMURdF7H7FY5idtC20iPFBq9ZSIDNwG64oolqrzElmHuvUklK11ER1bwel0Cu GpKQdW4D+ABvJvHFNUioL4Yx5wmSOwpKKtWL/6OOR89Sromr+M8AuOZryp6L38mtcQrCFR0QuHfwU 5DmsNmFI7oKTnbDpqk5uUVVMCuLWRw+IPIWkQfg+jpj6dOSzKjZfAVtukeZzedKcjhdpWxZsK16yS J4XjrnThYJisgxr8UHfVumBHwZd6HaC1gCWrs4dJVRIPmgJh4671msMX9tPhe8yQPdosQ0vewLeuF xrE4yuvw==; Received: from [122.165.245.213] (port=53684 helo=localhost.localdomain) by md-in-79.webhostbox.net with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96.2) (envelope-from ) id 1shWKK-000GB4-1i; Fri, 23 Aug 2024 21:05:48 +0530 From: Karthikeyan Krishnasamy To: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, heiko@sntech.de, alexandre.belloni@bootlin.com Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, linux-rtc@vger.kernel.org, Karthikeyan Krishnasamy Subject: [PATCH 1/8] ARM: dts: rockchip: Add i2c3 node for RV1126 Date: Fri, 23 Aug 2024 21:05:21 +0530 Message-Id: <20240823153528.3863993-2-karthikeyan@linumiz.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240823153528.3863993-1-karthikeyan@linumiz.com> References: <20240823153528.3863993-1-karthikeyan@linumiz.com> MIME-Version: 1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - md-in-79.webhostbox.net X-AntiAbuse: Original Domain - lists.infradead.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - linumiz.com X-BWhitelist: no X-Source-IP: 122.165.245.213 X-Source-L: No X-Exim-ID: 1shWKK-000GB4-1i X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: (localhost.localdomain) [122.165.245.213]:53684 X-Source-Auth: karthikeyan@linumiz.com X-Email-Count: 14 X-Org: HG=dishared_whb_net_legacy;ORG=directi; X-Source-Cap: bGludW1jbWM7aG9zdGdhdG9yO21kLWluLTc5LndlYmhvc3Rib3gubmV0 X-Local-Domain: yes X-CMAE-Envelope: MS4xfAOxXLLkYhEEJaJPZOwH/Owbfuuby2LTU2IvZAHVhZX/M92IiJOEReQ1lgJt8UdsELksNIHvEq9kRS8k/gVdQAyEtQSQrb0ybtnmI9OQMDmL5ypSPVwW Dhv073p9ucGDHQkkhto7ykkxpI98tCkAYuFrQ+t7DVDjY+enISxExC5P3joXvxLE8v2rCStjS+wfd3sla+Lkk5W0UeW5bcQVZ1+DCDzURBQKsfpey04X0wgH X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240823_083610_974773_81337508 X-CRM114-Status: UNSURE ( 7.28 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add i2c3 node and possible pinctrl for Rockchip RV1126 Signed-off-by: Karthikeyan Krishnasamy --- .../arm/boot/dts/rockchip/rv1126-pinctrl.dtsi | 26 +++++++++++++++++++ arch/arm/boot/dts/rockchip/rv1126.dtsi | 15 +++++++++++ 2 files changed, 41 insertions(+) diff --git a/arch/arm/boot/dts/rockchip/rv1126-pinctrl.dtsi b/arch/arm/boot/dts/rockchip/rv1126-pinctrl.dtsi index 06b1d7f2d858..be666b25b830 100644 --- a/arch/arm/boot/dts/rockchip/rv1126-pinctrl.dtsi +++ b/arch/arm/boot/dts/rockchip/rv1126-pinctrl.dtsi @@ -97,6 +97,32 @@ i2c2_xfer: i2c2-xfer { <0 RK_PC3 1 &pcfg_pull_none_drv_level_0_smt>; }; }; + i2c3 { + /omit-if-no-ref/ + i2c3m0_xfer: i2c3m0-xfer { + rockchip,pins = + /* i2c3_scl_m0 */ + <3 RK_PA4 5 &pcfg_pull_none>, + /* i2c3_sda_m0 */ + <3 RK_PA5 5 &pcfg_pull_none>; + }; + /omit-if-no-ref/ + i2c3m1_xfer: i2c3m1-xfer { + rockchip,pins = + /* i2c3_scl_m1 */ + <2 RK_PD4 7 &pcfg_pull_none>, + /* i2c3_sda_m1 */ + <2 RK_PD5 7 &pcfg_pull_none>; + }; + /omit-if-no-ref/ + i2c3m2_xfer: i2c3m2-xfer { + rockchip,pins = + /* i2c3_scl_m2 */ + <1 RK_PD6 3 &pcfg_pull_none>, + /* i2c3_sda_m2 */ + <1 RK_PD7 3 &pcfg_pull_none>; + }; + }; pwm2 { /omit-if-no-ref/ pwm2m0_pins: pwm2m0-pins { diff --git a/arch/arm/boot/dts/rockchip/rv1126.dtsi b/arch/arm/boot/dts/rockchip/rv1126.dtsi index bb603cae13df..59de848c9a83 100644 --- a/arch/arm/boot/dts/rockchip/rv1126.dtsi +++ b/arch/arm/boot/dts/rockchip/rv1126.dtsi @@ -22,6 +22,7 @@ / { aliases { i2c0 = &i2c0; i2c2 = &i2c2; + i2c3 = &i2c3; serial0 = &uart0; serial1 = &uart1; serial2 = &uart2; @@ -308,6 +309,20 @@ dmac: dma-controller@ff4e0000 { clock-names = "apb_pclk"; }; + i2c3: i2c@ff520000 { + compatible = "rockchip,rv1126-i2c", "rockchip,rk3399-i2c"; + reg = <0xff520000 0x1000>; + interrupts = ; + clocks = <&cru CLK_I2C3>, <&cru PCLK_I2C3>; + clock-names = "i2c", "pclk"; + pinctrl-names = "default"; + pinctrl-0 = <&i2c3m0_xfer>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + rockchip,grf = <&pmugrf>; + }; + pwm11: pwm@ff550030 { compatible = "rockchip,rv1126-pwm", "rockchip,rk3328-pwm"; reg = <0xff550030 0x10>;