Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3397549ybl; Sun, 15 Dec 2019 09:00:47 -0800 (PST) X-Google-Smtp-Source: APXvYqxXPJb1h+9+UnYRzLXzbvek8y3VxSMvGJCO0Grm3IzqdpHxDw7SIv/nRvkgHLgyOqhmFFqn X-Received: by 2002:a05:6830:13d3:: with SMTP id e19mr27314475otq.135.1576429247252; Sun, 15 Dec 2019 09:00:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576429247; cv=none; d=google.com; s=arc-20160816; b=Xw3G79eB0o63T1poWasnwM70oxrhFOQC7j1NXct30XasH1AxZTdwO2+QpTUT4RlnBH qgsbV1ujBNNvySf7WimrONBr2a75XLpOoSy52mySr1uLzGYepo1EqUXs8yS0ynPnLt6E 6o/AhF/gWs7TKJh9gkc1w9LizXXozxN4Xoo7ODMRbrpi2G699uR4MX5HxGjCMxMi4HUD 5KV3qmOwsZDIU0D4MbmtB7AuXzjjf2uX0YMhdIt5oLjjjgkRJGExWSKvOlII+kUO6q3D +LHTx14sjtG8aGJDfwFBK3h374xePVy4LY+qNv4EmLpOh8WUlZaJfjl+CvDcooWU7xAw hTcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=qkP1+qnHJRSwDNq4zgb94sYbJBTiNEDWS8Du5cHVL34=; b=DpjH3ZgRCLSOmH/96xkSN/FAvBr9c6DhXWCkJ41And6vhGuIMMqb48z3v0ms3j3cAM p0H1NiemymXlf+6vpBxeZlg7pi1mIOfikkHGBGThZ/Tz29QRPZfYbiU8IpTG7N+3q8LL 2jE2bcoXB8qmNlYyD/4BcO+5obrfsex6cM5YHgN00q8J6SawFxovjKV33YytoBxbWEtf tJRcZ80111Vww30waFmEbIJl0HTCnMdNCZuMZbwYg+VQPo3OogowW32DY9hrBsc914CO E+3+3dLOyFngaTZksraTdjAUUf3rLOi+gciG7VFOOiZAmFAOOjkYPv6+5UMqhVNeiFDD 07ig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=2bwAHaRc; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v15si10655774otn.100.2019.12.15.09.00.32; Sun, 15 Dec 2019 09:00:47 -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=@kernel.org header.s=default header.b=2bwAHaRc; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726861AbfLOQ7g (ORCPT + 99 others); Sun, 15 Dec 2019 11:59:36 -0500 Received: from mail.kernel.org ([198.145.29.99]:55256 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726591AbfLOQ7c (ORCPT ); Sun, 15 Dec 2019 11:59:32 -0500 Received: from wens.tw (mirror2.csie.ntu.edu.tw [140.112.30.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9A99924684; Sun, 15 Dec 2019 16:59:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1576429171; bh=XJDBfT1MU52M3nXB0FIH5aEUDPdxo5W3utk1GX6ZvZA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2bwAHaRcZ6+BOhTn9UUxARreLZGOTNh7g0sSK1CBJt1a5N1twqKmQOEoEIYdOdmIX T+ehJNtBF6OEyeU/hozCAzX5MCYP0K91k0sruHYnMrPOKLJ1qD8OPkVQVUEWtiw9Zt yvQfaHHpwLOPsEJBmzK2iKO4LjvLNqrJ1zr2lX7c= Received: by wens.tw (Postfix, from userid 1000) id 732195FF1A; Mon, 16 Dec 2019 00:59:26 +0800 (CST) From: Chen-Yu Tsai To: Maxime Ripard , Mauro Carvalho Chehab , Sakari Ailus , Rob Herring , Mark Rutland Cc: Chen-Yu Tsai , linux-media@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Chen-Yu Tsai Subject: [PATCH 09/14] ARM: dts: sun8i: r40: Add I2C pinmux options Date: Mon, 16 Dec 2019 00:59:19 +0800 Message-Id: <20191215165924.28314-10-wens@kernel.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191215165924.28314-1-wens@kernel.org> References: <20191215165924.28314-1-wens@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Chen-Yu Tsai The R40 has five I2C controllers. Currently only I2C0 has its pinmux option defined. Add the options for the remaining four, and set them as the default, since each controller has only one possible pinmux configuration. Signed-off-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun8i-r40.dtsi | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-r40.dtsi b/arch/arm/boot/dts/sun8i-r40.dtsi index 421dfbbfd7ee..82ea0b5b0710 100644 --- a/arch/arm/boot/dts/sun8i-r40.dtsi +++ b/arch/arm/boot/dts/sun8i-r40.dtsi @@ -373,6 +373,26 @@ i2c0_pins: i2c0-pins { function = "i2c0"; }; + i2c1_pins: i2c1-pins { + pins = "PB18", "PB19"; + function = "i2c1"; + }; + + i2c2_pins: i2c2-pins { + pins = "PB20", "PB21"; + function = "i2c2"; + }; + + i2c3_pins: i2c3-pins { + pins = "PI0", "PI1"; + function = "i2c3"; + }; + + i2c4_pins: i2c4-pins { + pins = "PI2", "PI3"; + function = "i2c4"; + }; + mmc0_pins: mmc0-pins { pins = "PF0", "PF1", "PF2", "PF3", "PF4", "PF5"; @@ -528,6 +548,8 @@ i2c1: i2c@1c2b000 { interrupts = ; clocks = <&ccu CLK_BUS_I2C1>; resets = <&ccu RST_BUS_I2C1>; + pinctrl-0 = <&i2c1_pins>; + pinctrl-names = "default"; status = "disabled"; #address-cells = <1>; #size-cells = <0>; @@ -539,6 +561,8 @@ i2c2: i2c@1c2b400 { interrupts = ; clocks = <&ccu CLK_BUS_I2C2>; resets = <&ccu RST_BUS_I2C2>; + pinctrl-0 = <&i2c2_pins>; + pinctrl-names = "default"; status = "disabled"; #address-cells = <1>; #size-cells = <0>; @@ -550,6 +574,8 @@ i2c3: i2c@1c2b800 { interrupts = ; clocks = <&ccu CLK_BUS_I2C3>; resets = <&ccu RST_BUS_I2C3>; + pinctrl-0 = <&i2c3_pins>; + pinctrl-names = "default"; status = "disabled"; #address-cells = <1>; #size-cells = <0>; @@ -561,6 +587,8 @@ i2c4: i2c@1c2c000 { interrupts = ; clocks = <&ccu CLK_BUS_I2C4>; resets = <&ccu RST_BUS_I2C4>; + pinctrl-0 = <&i2c4_pins>; + pinctrl-names = "default"; status = "disabled"; #address-cells = <1>; #size-cells = <0>; -- 2.24.0