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>; From patchwork Thu Apr 18 17:47:19 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 237 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f198.google.com (mail-pf1-f198.google.com [209.85.210.198]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 48DF540B29 for ; Thu, 18 Apr 2019 19:47:37 +0200 (CEST) Received: by mail-pf1-f198.google.com with SMTP id g1sf1831149pfo.2 for ; Thu, 18 Apr 2019 10:47:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1555609655; cv=pass; d=google.com; s=arc-20160816; b=ahNFr0dfzkSlorBfrlNsXCfkMFHmyssKphNY6oEKgJg+7l28fqHO033/JwiwBr50dp fuCJF2pD1b2uENpE27EO8C8KNIq1wN1Qb4CwQVXZtDbYEGjttnuXw1pvYZAzQ66n02D+ 2UgXVx69SkYlm+Ze5C2crcmxAgMARcUlFgwHRJFQWmH/gxQCWEK0Zqs5ktO6nihRgxBz LzDrXKwfJrDf+tcs2la8WdakLVbAQPOniklTTgyGy24N4k6iTQpeEp7E28R/qXZxBx59 T4tkoxD/5dxEgRRg2aZBXYtWt9L/Wgf7erKnvq1NYAWuaG4eaIkTkfdHp9sflPjLOGsD ElkQ== 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:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=aXWRiu6n9FfZyrXbWUx0mBs0QxwB5HkrdcYz0vng1C4=; b=jdNSsam5kTaPcR0lbjKwiupPlp9+dAF64E1teJ3hD+2L88pnQi8b50zq7zeAaeZ5MC 1Fzn9+mfCJkusnmidsdU9gLCPE9uYI8lT+l6Z3py7Ir5havL7O5Op5aoVFjFCDWfcX9e tdIJzvmGeABXx4uC82I5t4nFklRemcRfSbDzzp3GhlhRyHUYOylq7prZv1KxMPEAE0Zz sMzNY2GNlzsoZUTfpOObQGD6uMo5B5KaA+hC1Ru2de6uNQH13GTt9sxpPl0Yx9KA2KlD 9YXDjMM6hjlakAJnFenB4cCsXu+svsVXLktOebUE3vfUODMh9Ss9ETCkrf8s1ZV/OVPu Is+A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=n2GAQy6A; 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:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=aXWRiu6n9FfZyrXbWUx0mBs0QxwB5HkrdcYz0vng1C4=; b=oqbuAESyGi7Ct3YRztB137AQ9P1QsxCZOgLhpaw5giadUunmF2+wWYLFnmhHmqyL3x peEKO27moKh/EzoIjPR6oex+rB7JcK5poyex5Z4ju3nB+9qnT97ymY+J/EEL2WRnSjC3 TYaz1CPBj5vVuBeA6wKXvuR+k/SCzSzJXLv8A= 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:in-reply-to :references: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=aXWRiu6n9FfZyrXbWUx0mBs0QxwB5HkrdcYz0vng1C4=; b=a4nA7dcdFY1OehLsdqCpEfAUBZmG35jMLwayymeCGEJgzIYqJXCS1AKL6cqm/q3gCG qVlUJKqqz1sKhly10mBSrgEPEK0zd2Dp3uXwuxthZ771EXpywmfGoMEiTWaH5N3UrWM5 MY5zVyVziKQ3JXoKqW+lmlyvL5alfZ8Vnr0L6iUXH0F2vz39i4gWHd0ftOsM3TlwMrby XinYSQ3DaeQWADddSFry+aBf3N4N7tK2uZRhxIePkt2QxsXRVCAtV0xvkobIItEoPbD6 f7vJ+yBqZcuU49lM9tihEkEl83zqo02SAm4i0wUm0S1L+F1XdD1CMQ/MbgzXWJSW+eLe khGw== X-Gm-Message-State: APjAAAX48FwRaCB/PvJW3ke2Yzn21dihWXKxo5L8JuKO0pJi4Hh9QlPx /y+DSzYoJQtAiScXXPlSAbUVVerX X-Google-Smtp-Source: APXvYqwHFGjr2UTnsOd+usggdOv1u+omtRNbGoqHpYYk7BcyJZDuDCBKwA+93cqFwexIKRCus0GAQQ== X-Received: by 2002:a17:902:9a85:: with SMTP id w5mr54777084plp.157.1555609655777; Thu, 18 Apr 2019 10:47:35 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a62:1282:: with SMTP id 2ls857215pfs.4.gmail; Thu, 18 Apr 2019 10:47:35 -0700 (PDT) X-Received: by 2002:a63:6842:: with SMTP id d63mr87271353pgc.49.1555609655360; Thu, 18 Apr 2019 10:47:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555609655; cv=none; d=google.com; s=arc-20160816; b=cmStEXZ5r2E56D+Q2RwwSAVDFnYrf8O+AXTepc5OFoqMiC/Gw8I2zFpg1fJLAkfmdP vxuZNo2OYEFzSW+MH8PCjlBdd/cD4p2Xlhfok9AtRcnmY1QTDFQXerkbAh8CdEsj4njv 7fp05Rv2mq3aJvk9R9EUjlGl8i1scjV/6wfwb3tkZWJ/3HQMjUrvIAEfRhO8IRHATbMu zqTUk398jCey0i4xjqMp0kbF5N9bT4HgHV8w3fOLcgjQRDDC+oQ+2g85fYk3QcU4XoWe vATfXQzjky5bKjrYbDJo286UHE7/gtjGE5B1+iJk+mpMd8nYcsV7xqlrbLa4PDA+Wd9B 8U2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=bgyCo4kvfvwJMN5IY06/QZqxQNQ+gwbYmank+FUuDRs=; b=H1TjFrNxojNmCUhlGm2k40pmnj2g2NC7FcLQiOBSQGHxhTTDibpMEB2MX2L48PhP4g dfYXMzkm+htqWu7CNKIORMZyBUeXefyaxlTuicLFwvrR0GBbe2jGYB4tNvecpa6ejpPS hn9BhliLMh/GgO5XYXaKKxeNoaoet8qSmBTZt15LN0KHI4r+irfpx2xgDMbJtkG/1mDf iw7yv0qPF8uJmWvmhs+TaoC7eiGKGm9VSMHU2JCfMEFcYcFtgwWTL+CklnJ7TvBBPIRt 65KmgepsUJMAECyRTZWuWKCpUdNadQvUZYlEx0N1+nBtS2aROelBnZan+OEdmjp8qQSX +Vlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=n2GAQy6A; 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 i190sor2772000pge.43.2019.04.18.10.47.35 for (Google Transport Security); Thu, 18 Apr 2019 10:47:35 -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:a65:6645:: with SMTP id z5mr65454449pgv.251.1555609655055; Thu, 18 Apr 2019 10:47:35 -0700 (PDT) Received: from localhost.localdomain ([115.97.185.144]) by smtp.gmail.com with ESMTPSA id j4sm5223547pgi.71.2019.04.18.10.47.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Apr 2019 10:47:34 -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 2/3] arm64: dts: allwinner: a64-amarula-relic: Add GT5663 CTP node Date: Thu, 18 Apr 2019 23:17:19 +0530 Message-Id: <20190418174720.17230-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190418174720.17230-1-jagan@amarulasolutions.com> References: <20190418174720.17230-1-jagan@amarulasolutions.com> 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=n2GAQy6A; 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: , Add Goodix GT5663 capacitive touch controller node on Amarula A64-Relic board. The CTP connected to board with, - SDA, SCK from i2c1 - GPIO-LD0 as AVDD28 supply - PH4 gpio as interrupt pin - PH8 gpio as reset pin - X axis is inverted - Y axis is inverted Signed-off-by: Jagan Teki --- Changes for v4: - drop i2c1 pinctrl Changes for v3: - Use 2.8v for reg_ldo_io0 Changes for v2: - drop i2c1, bias-pull-up .../allwinner/sun50i-a64-amarula-relic.dts | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) 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 c41131c03231..5634245d11db 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dts @@ -97,6 +97,22 @@ bias-pull-up; }; +&i2c1 { + status = "okay"; + + touchscreen@5d { + compatible = "goodix,gt5663"; + reg = <0x5d>; + AVDD28-supply = <®_ldo_io0>; /* VCC-CTP: GPIO0-LDO */ + interrupt-parent = <&pio>; + interrupts = <7 4 IRQ_TYPE_EDGE_FALLING>; + irq-gpios = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* CTP-INT: PH4 */ + reset-gpios = <&pio 7 8 GPIO_ACTIVE_HIGH>; /* CTP-RST: PH8 */ + touchscreen-inverted-x; + touchscreen-inverted-y; + }; +}; + &mmc1 { pinctrl-names = "default"; pinctrl-0 = <&mmc1_pins>; @@ -260,6 +276,13 @@ regulator-name = "vdd-cpus"; }; +®_ldo_io0 { + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <2800000>; + regulator-name = "vcc-ctp"; + status = "okay"; +}; + ®_rtc_ldo { regulator-name = "vcc-rtc"; }; From patchwork Thu Apr 18 17:47:20 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 238 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f199.google.com (mail-pg1-f199.google.com [209.85.215.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id B127240B21 for ; Thu, 18 Apr 2019 19:47:40 +0200 (CEST) Received: by mail-pg1-f199.google.com with SMTP id 18sf1766198pgx.11 for ; Thu, 18 Apr 2019 10:47:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1555609659; cv=pass; d=google.com; s=arc-20160816; b=XlgJt2rino8DKe9u5XYDDoP/8RYnt98dz3j0zaLHWY5EYVcBgJnuLTE8Bi8d5NCS/C tYdSVlalNfdrH/PLY5Y/5IAUZF+eUYDbDjkcfLmBueEBFXrm+Lex7IuGZsbIuWYMklAk o63ToGsCYdacO4UWGwbHIVofEFwguvQeHQJbsbWU1bH2CV2AFpvv4LSgL/hKAWNT/VEw mWdzsFq8QibyfuiYkSblJFxrJIZxWPsR0lxcfFKiDlNVeaY53SylXPMy3oxNK84RHwCP dC5fHroB/AR4+JLZhFPknf655AhIDF9tv/acAOwbQD7RqBCahytcLaWvn55dnGhLBhXj 5HpA== 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:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=6tUEK/HtEaqWMVq7kqjZ0Une6TTUA+C29k8wHJDAeuY=; b=iPS35K0OexrEP83attzVeny+HoS/30e1Vkgp04lUH2OUC2xu3uQ/1vl/7sfW4TOfYZ F94WHem2UTGlYZb5UnYVp716DzwaNu3IJ3kQEFs+I8zPveHPkFkduWysvofPDTV7oPKa IurjDovyopN7p+JJHQcBIdKo/1tRz8ZPctM8VFgqwJgf7q8/hDgAOZ/j2JvXs2Glp8DB 7awF57xJX5URGa+cS586V9rwXmvNdWq/M5KWeE7EFrL5P5X1DioY+n1iq5M7Dfj055KX S06S/rnhsR2BNyulcT0pHrtUpt7UyF1wzpkVx4rUCcdkKYhsmfI/fMhbw/COQOPiXzWn oCXg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=IBJkS7mO; 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:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=6tUEK/HtEaqWMVq7kqjZ0Une6TTUA+C29k8wHJDAeuY=; b=FpsyyD1xV3buqWiecV9h4MjajPLZDQh+xeV7ZrygGnisZX/f+zeuzy54VSkgjU8ris s2DetU+FDwrbbQieaQJTfRtbqtRgKPbFRj30UDykmiLb7skvz7FZ/NvU/aeulXiNHOST hIRpgoXcNjEMeimjd847LbNZ0GbDwxbJJuf34= 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:in-reply-to :references: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=6tUEK/HtEaqWMVq7kqjZ0Une6TTUA+C29k8wHJDAeuY=; b=R+8FwcqpQcvpaFxsJgsmMDVD+WreNxABh83p7V57V6LTIjpRq1mB1LZyf0gBr9WTKn FaW4OfaFBaclLKXBQDhZRiYZD96P7KFH316C0qmhsIxDnSH2vAGlbbl151wjWCxRvQr+ LNX37yIiQUzJwZfSu1H3hC5agLbpf32GezeVErp2Tg+Sdo51jox+RZXx6+AFuF922rxK 4O15Tf1/h6s3v2Y3vwdv7ZPWvjinB1qf15z8eQEyE+KfVqJA1tX/RkKMQT0MMo6c+MT+ A8jgQYvku1eema/JvAdKCGJMrdgAWKPGi+UjZv0e+dgUA/AmCynOv6vTOuMeV1EU8PxH m7MQ== X-Gm-Message-State: APjAAAU449g7yQErmtVKFAN5dSTnPRwc1wTERTI3V3u7EXQjnaRbiJrt 4j6LfLaP9qksBkdYS5JCgb98llKG X-Google-Smtp-Source: APXvYqwBnfPH526V6Oz791DnIIYarne2j6YgtmAQdESTQCfPTRXS/o73Lo8uN7GdWqiCWKmR68UqqA== X-Received: by 2002:a17:902:9002:: with SMTP id a2mr7699926plp.317.1555609659530; Thu, 18 Apr 2019 10:47:39 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:988b:: with SMTP id s11ls825699plp.13.gmail; Thu, 18 Apr 2019 10:47:39 -0700 (PDT) X-Received: by 2002:a17:902:ec0b:: with SMTP id cy11mr97047319plb.21.1555609659199; Thu, 18 Apr 2019 10:47:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555609659; cv=none; d=google.com; s=arc-20160816; b=0zIoDR+0EMwW8X5VKfgGovzjEgtbEmxubw8/MJKlFMKRwjQQdZ3SDf1mFBXSgjtZYq okoKOqjIpzQZdEJl6u5LtPtVGDIA59mbbV2Qz573PnXy1889lYqP4jsbTVug2eYPBIH7 mYlE8Fa/H0OFEGiiIFLRhmG/BVMihiQGz9hMSagvkVIZ9epEVhOKGXOJ1H5Sj+OsTIiY wn2rHCwUCha80M9RAeK+7hcxRWWw7LIViV0Z6NUQlgOMCNJn3I6KPV0Lq9kEjwNH+put vMV9Wmnyx8aYZ+Lka8jJ5oUGsv+T6TfFpSsqW6dtgBe+6D63rBzQeiLmUDc59op04VNq ENZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=vTSnpVfPDJjqTfZA3qDasHHVtLoc8OViA7pV96ip3mc=; b=qn7NeW9YDnhPdp8+/5CmGf5przwqy3+dvl6kEwZyVN5f84knKSoZDwVPwk1yeQ+fst CX/7HZV32ARWCEwLw7mkuZ2flxVABnow6bo/tnumoOxwXMt+49+0aHbEkOhJj5y/42KH Tgaw/eX5zNNGlL0HkIQw1TGXv9VB/1buoNrLHpdCEoo/sEKmOeVjMZyAoYtYJc5cwWBc yR81I9J+1b7ZOozBdSGdq0GJ9Ekae/yLNrbLBRRUtsv/ZNVjigB1zdKnCUW+/AZpzMhg xSO0DGAJ5lbG0yPNWaW/VxOwrm/+i+Qb4c9vdTUDh1nZfU7vnznwa2PEed56F+s2SdaV Mr8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=IBJkS7mO; 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 a37sor2732845pgl.72.2019.04.18.10.47.39 for (Google Transport Security); Thu, 18 Apr 2019 10:47:39 -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:a63:ed48:: with SMTP id m8mr76181642pgk.104.1555609658841; Thu, 18 Apr 2019 10:47:38 -0700 (PDT) Received: from localhost.localdomain ([115.97.185.144]) by smtp.gmail.com with ESMTPSA id j4sm5223547pgi.71.2019.04.18.10.47.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Apr 2019 10:47:38 -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 3/3] arm64: dts: allwinner: a64-oceanic-5205-5inmfd: Enable GT911 CTP Date: Thu, 18 Apr 2019 23:17:20 +0530 Message-Id: <20190418174720.17230-3-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190418174720.17230-1-jagan@amarulasolutions.com> References: <20190418174720.17230-1-jagan@amarulasolutions.com> 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=IBJkS7mO; 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: , Goodix GT911 CTP is bound with Oceanic 5205 5inMFD board. The CTP connected to board with, - SDA, SCK from i2c0 - GPIO-LD0 as AVDD28 supply - PH4 gpio as interrupt pin - PH11 gpio as reset pin - X axis is inverted - Y axis is inverted Signed-off-by: Jagan Teki --- Changes for v4: - drop i2c0 pinctrl Changes for v3: - Use 2.8v for reg_ldo_io0 Changes for v2: - drop i2c1, bias-pull-up .../sun50i-a64-oceanic-5205-5inmfd.dts | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-oceanic-5205-5inmfd.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-oceanic-5205-5inmfd.dts index 6a2154525d1e..787ebd805a3b 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-oceanic-5205-5inmfd.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-oceanic-5205-5inmfd.dts @@ -37,6 +37,22 @@ status = "okay"; }; +&i2c0 { + status = "okay"; + + touchscreen@5d { + compatible = "goodix,gt911"; + reg = <0x5d>; + AVDD28-supply = <®_ldo_io0>; /* VDD_CTP: GPIO0-LDO */ + interrupt-parent = <&pio>; + interrupts = <7 4 IRQ_TYPE_EDGE_FALLING>; + irq-gpios = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* CTP-INT: PH4 */ + reset-gpios = <&pio 7 11 GPIO_ACTIVE_HIGH>; /* CTP-RST: PH11 */ + touchscreen-inverted-x; + touchscreen-inverted-y; + }; +}; + &mdio { ext_rgmii_phy: ethernet-phy@1 { compatible = "ethernet-phy-ieee802.3-c22"; @@ -52,6 +68,13 @@ regulator-name = "vcc-phy"; }; +®_ldo_io0 { + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <2800000>; + regulator-name = "vdd-ctp"; + status = "okay"; +}; + &uart0 { pinctrl-names = "default"; pinctrl-0 = <&uart0_pb_pins>;