From patchwork Thu Apr 18 17:47:18 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 236 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f200.google.com (mail-pg1-f200.google.com [209.85.215.200]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 7174340B21 for ; Thu, 18 Apr 2019 19:47:36 +0200 (CEST) Received: by mail-pg1-f200.google.com with SMTP id x2sf1756721pge.16 for ; Thu, 18 Apr 2019 10:47:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1555609653; cv=pass; d=google.com; s=arc-20160816; b=h8dXYNnynWka2DVO96jRebJkiQqipbGr7OjpkdKZ0yT+Fce+AWJDvm/Uu4URBHifDQ hi14QVqTL48Yh4tCK50T3RGoJ4ytXt8z1ZpJ8E6lxPJlj9fY+2F488x4Fr2ROoiBRZVo yQf+ibqzIVdxJFj1N3Q99ibatsIs4joO+l52CQojXa3F7G8pj9KvjAjelqWeoVluwWQQ rk8txFwbbHnBXQB6l8/W+K1eQ0qLFludNfvLvnqADffs4cw3U5TbaNyO9IlqEen48Riw bQ7DsN4SXIWa4WZiD1u0KdZYsXm7qj51TfL9k+5CB0QGx1Gch/WH/3w7SrJbFcFNJSe+ vPRA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:message-id:date:subject:cc:to :from:dkim-signature; bh=R0jUgdOYw2xk9Fcu998qEZhO/GkyuwO0jx66grQWPaQ=; b=aKuFEFhpAAFwH8VgIM5tYBiZxSfdWvyfRaZY93jfQZGRecCcAN1+Gl6o0Uyn/XWP/q WLB8thidUBEt1RaDfd5X0cVwhuBLF6Vgrsa4qVxCgmSKgt1aXjtK6U6qAEfGrRP6GZbH Tij5mmkXkzGqJSOJJSWToutBCRNsKWc0gl6Y0u5VcHflD43M44g7p0wvlHabBV0dKVa3 7TvvUeAU/QcI6dlQKZH/IZdVLzJae/wTf3rmjsGOH+IiTqAwY7CmeovvAiRN7nw7yikk Y+fWEWzfBUts7vPkVqwMVqF02wW20nhO2YFMOVKguQ6j7/LSustzFhgqlNBultnjA1lW m28A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=bdb0VXzP; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=R0jUgdOYw2xk9Fcu998qEZhO/GkyuwO0jx66grQWPaQ=; b=Um6ct3b9BXYSAehP+LFBOOqSByGIMcstlfJ+5en2JAyf/CeWs+18SpCcY80jeZ8c9Y zt6Uaw/HjWpw7EM7fPzmHYkgr0sODjDR7ieFrP/w8Aa6JLVey64niXfbCSRkpHQLO985 xTIGI3C/W3Wx3kUYIJb3g9tkDiQt7G3FHvPQc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:x-spam-checked-in-group:list-post:list-help :list-archive:list-unsubscribe; bh=R0jUgdOYw2xk9Fcu998qEZhO/GkyuwO0jx66grQWPaQ=; b=irSzYFaD+DB2MdrFgQzx+e9HDK+/OpctXqkejwnHx3lsdgHG8jqfAkFgD+8cDG9nuC GfB1z8H3kNQsYXg46u0GVncm9HMuNfhJrUp7dOx9TH7NxPhd/lLBda/gsg7Ct+p7yRos i1PDKDkpR47woE8ZW15hNSUDqsgur+Kic45l+ADzlLWm5hK0vh4noiJLyKVOsr6ZUTc+ NtFKwqd/bMZ+590O777kLM3wZ8B8LMei3VFWeDGlc6/C51xpInijL6JU/fCo+7Xvhqvx rmyzEm9uCnU2mqN9evvbkkrvrXL/sIeWIHALWqTYHZ7/7/GvikYlR8RwRlUo4JNnQBiN y8YQ== X-Gm-Message-State: APjAAAV5DRHxygR4W+jl1FLnlCNLO4KeSudfGbojUGo6Sxa8GdYc1X/r IMi3Uk3/YLJ4H2zrQc47VqxkhjS0 X-Google-Smtp-Source: APXvYqx5YPFCw5TqAPOov/h8s2nX5B6mbJcZiyIhl8M3lAf36Vb0Zv0X8CHFY5ZOsNPW/x152l0tlg== X-Received: by 2002:a65:64cf:: with SMTP id t15mr87506425pgv.322.1555609653069; Thu, 18 Apr 2019 10:47:33 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a63:13:: with SMTP id 19ls738103pga.11.gmail; Thu, 18 Apr 2019 10:47:32 -0700 (PDT) X-Received: by 2002:a62:e304:: with SMTP id g4mr10089778pfh.71.1555609652677; Thu, 18 Apr 2019 10:47:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555609652; cv=none; d=google.com; s=arc-20160816; b=oxBqaN3gYC2MFsZg+js0m6BTAZnvksqbTuY8SA4CjKKrmsKQ2jBpd4oXsvye3omWjJ umiDR9PRnmy8xW3deFwvX5aABHdqjHOKhRYigOdo5VOUtReLaYEVrOuowQUHRYo4nwla KHf8Jh0wV/tyRNJsggwU7xuCCWWWSSGSApNip2ewz8U8Tt+gsXvdTRuyyKdUYT8/qEUQ y9XkJoRb/F+QoRy7GgaP955QO3tASVh9q6XoQn6E9Tf3vfsjNpasfBkzdswU/S813FZ8 T+4bdg0b762G4kXzrDWQtvXaj6Cgn+HJAQHTRDlykqsINCtCvVldZc5frzxF6AOneron MtaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=GtYAgeoDRvkZXjuaeeVMz/xlUo2hw1CKgw3jYjzF/Mg=; b=ufhzDZy1Qtdd0IQOyLKWoTJMLxC+d5qGjB7lSp3U4LL7AlgS9Ch/qiV9vGOb0c7jbB TlNaWg28IN+5Y9H4A+ivQKCyU/l4GmkG+YXZyqKIKTnaVjDn6SwP+KpHkJmwic1ZWXa2 vxUyqTB4OQA10EbvEF+DYMwYkL5UMJUDnIu677hX4A1s8PXVEbjV4FDnrtoADllD2PHA Vi9m0iKN+f271ZUsY2p8e+bowhSMoN1Bj09GQ2v18suRzUUrdG6gWSzt3Pemh4R7jU4Z i51V2ytmdfkQcLhLA5q/p8VNzaz+xDMR8qfZZ9ICGVgdu08cjPREFIlZF7tV3/6LX7F8 dZHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=bdb0VXzP; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id 33sor3146678pld.12.2019.04.18.10.47.32 for (Google Transport Security); Thu, 18 Apr 2019 10:47:32 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a17:902:110c:: with SMTP id d12mr68666870pla.47.1555609651317; Thu, 18 Apr 2019 10:47:31 -0700 (PDT) Received: from localhost.localdomain ([115.97.185.144]) by smtp.gmail.com with ESMTPSA id j4sm5223547pgi.71.2019.04.18.10.47.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Apr 2019 10:47:30 -0700 (PDT) From: Jagan Teki To: Maxime Ripard , Chen-Yu Tsai , Rob Herring , Mark Rutland Cc: Michael Trimarchi , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-amarula@amarulasolutions.com, linux-sunxi@googlegroups.com, Jagan Teki Subject: [PATCH v4 1/3] arm64: dts: allwinner: a64: Move I2C pinctrl to dtsi Date: Thu, 18 Apr 2019 23:17:18 +0530 Message-Id: <20190418174720.17230-1-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=bdb0VXzP; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , There is only one pinmuxing available for each I2C controller. So, move pinctrl for i2c0, i2c1 from board dts files into SoC dtsi. Signed-off-by: Jagan Teki --- Changes for v4: - new patch arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dts | 2 -- arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts | 2 -- arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dts | 2 -- arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts | 2 -- arch/arm64/boot/dts/allwinner/sun50i-a64-teres-i.dts | 2 -- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 4 ++++ 6 files changed, 4 insertions(+), 10 deletions(-) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dts index 019ae09ea0fd..c41131c03231 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dts @@ -85,8 +85,6 @@ }; &i2c0 { - pinctrl-names = "default"; - pinctrl-0 = <&i2c0_pins>; status = "okay"; sensor@48 { diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts index 0a56c0c23ba1..c2a6b73b17cf 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts @@ -145,8 +145,6 @@ }; &i2c1 { - pinctrl-names = "default"; - pinctrl-0 = <&i2c1_pins>; status = "okay"; }; diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dts index f4e78531f639..bef4abf6fa25 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dts @@ -121,8 +121,6 @@ /* i2c1 connected with gpio headers like pine64, bananapi */ &i2c1 { - pinctrl-names = "default"; - pinctrl-0 = <&i2c1_pins>; status = "disabled"; }; diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts index b7ac6374b178..409523cb0950 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts @@ -122,8 +122,6 @@ }; &i2c1 { - pinctrl-names = "default"; - pinctrl-0 = <&i2c1_pins>; status = "okay"; }; diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-teres-i.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-teres-i.dts index 0ec46b969a75..12afc52e169e 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-teres-i.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-teres-i.dts @@ -92,8 +92,6 @@ */ &i2c0 { clock-frequency = <100000>; - pinctrl-names = "default"; - pinctrl-0 = <&i2c0_pins>; status = "okay"; }; diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi index 8c5b521e6389..b275c6d35420 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi @@ -842,6 +842,8 @@ interrupts = ; clocks = <&ccu CLK_BUS_I2C0>; resets = <&ccu RST_BUS_I2C0>; + pinctrl-names = "default"; + pinctrl-0 = <&i2c0_pins>; status = "disabled"; #address-cells = <1>; #size-cells = <0>; @@ -853,6 +855,8 @@ interrupts = ; clocks = <&ccu CLK_BUS_I2C1>; resets = <&ccu RST_BUS_I2C1>; + pinctrl-names = "default"; + pinctrl-0 = <&i2c1_pins>; status = "disabled"; #address-cells = <1>; #size-cells = <0>;