From patchwork Fri May 3 10:47:51 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 348 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pl1-f197.google.com (mail-pl1-f197.google.com [209.85.214.197]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 9A88D3F063 for ; Fri, 3 May 2019 12:48:14 +0200 (CEST) Received: by mail-pl1-f197.google.com with SMTP id x5sf2786315pll.2 for ; Fri, 03 May 2019 03:48:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1556880492; cv=pass; d=google.com; s=arc-20160816; b=R9hqOsQ/rWZzi/SFpDj4TQ9A6Udrqyhd39/Pr4W9yGEQG//UI5nxbtMHSUqOUBFIhH TL17z1hSYXdB+pWrEMSHyTA82v9YKZBR0YXNLsx+WbTmW3lqP+EQkc2SoKWUCAE2JeHN h/QrDGOrJL305KOLdUjICpHNYSzx5jTOqitWJkaeFmkRyHZGvIw/kUKQsbV5vzvEPXv0 Q/TaH4CBCgCLE28KgxGqlMJooAJ0gX2ghGqT2Wv4ZW4t7bo8wVU2wcCbaEfLvl+9hzgB schRHlmJg4/GXpniT2HEBaUIb2/DE8zz6wx7M9kj11pmEW/MhE1fP0axiGdKxIq494Me UyVg== 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=dJEjAhExLUVJ17W0B+pFbZZazjHZd3R4upvaxN6Gjk4=; b=d4O3M0xNpyfa0wFQ3Iy/A2kbaR1nPez25gsI+zj+eJjo0Vcc5nJAb2DQ7hljgisFBk g4lSYjRU4j50pN5Ox7MF1P10prJRsowbwDAGdgTRmqq9MlJE+gOJmi4/zkHcVEm9WX3M D4z9Uwx9XwXnar7Y2y6yRB5G7CLOI78Ap2wxa1ruYnzFaKCAO0eRsJ+N0sMUaYvweBqm vBrTK6KfNLhqiZlleeWD7XBhZt5YtggZFsLWPndbZu2EOz+kKNDmOYGgHuzrhN6vkwz9 nAhnjzOGqe0vdGqqErSKEG7FoaISuMy7lsz6U+Q1f95GLNrRyTgaXVhKdJvcfIrjF2UM tScw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="RJK/xJPi"; 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=dJEjAhExLUVJ17W0B+pFbZZazjHZd3R4upvaxN6Gjk4=; b=k6YM2z4XWVzpNJE1mnNj08ValpVLpTC4N4BxzXher/R1oX/ed/Kp62x9kMh/CIwCS/ glls5Xy5iLxJ3EAWGyZ+GkZPb/PeACZ8Y9nYKMWLuH7TF3T+6xBDAtpih1+wvp49/zVb r8QZg+LvOzagcJ0orMl9xazERHxJmyvZ7LJds= 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=dJEjAhExLUVJ17W0B+pFbZZazjHZd3R4upvaxN6Gjk4=; b=CBuLoXPjTfWbvdCCCT0t1THITPejMpXHB8RR73LnEurZq4HPNAxP8S2DgrnfsJT3be Nau7sY7Kb1FQELQznAI1khSmagjm1ClfnVb1batWKTC9jijXhBx2PNjwUpcI5wii0uzD ipnu9RTfMPDXYuVbTeAslq2slg87z8w6mf50pGju9cu3Bk+cWURNlBrfOkf2bsTSXNgv 9GJ64IcrXnJ/sVU+M4eqgdP7wZ+d8ohj0ae/UA8AAcF1CdZw1ym76+h62Ha7rFA79m5o xDYy+eDaU7G8VGE6DccAxkwJF1Fw/zLTCrenO8lTIMCKZDmFmh8MmxIDXGoowOuygzFY HUHQ== X-Gm-Message-State: APjAAAWze6Yy+5gmoUPNt3H+JC4+g1YJYVNfc9xR7VLDdsGpsSG5POkg NM5Wirgx8iA3VxtohBxMFQ60g9kn X-Google-Smtp-Source: APXvYqyN/ydnlH83VYi/wJVSZIUkSxK24u/2Gdug0BItPoDGCU9y5z4atE/k3iUxJoU7zHJ5eLZuiw== X-Received: by 2002:a63:124b:: with SMTP id 11mr3232051pgs.115.1556880492180; Fri, 03 May 2019 03:48:12 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a62:b60a:: with SMTP id j10ls1355532pff.6.gmail; Fri, 03 May 2019 03:48:11 -0700 (PDT) X-Received: by 2002:a63:d512:: with SMTP id c18mr9636720pgg.252.1556880491796; Fri, 03 May 2019 03:48:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556880491; cv=none; d=google.com; s=arc-20160816; b=G4cY2wSWn5lJQHIWlEpmx3vsB+A1LjxJlGFRQq1hZEBWkpUm5jdHwIdQNGVkYnqLI6 09fT1rNs+lDYbGVfRa0MLPMPoxtA+/uR7Yjwc9T/ARQwDWbm1rrmjcrX6XkuNcmyQUhl v1vjkeAUC6p48l2N0QFnoZQtAooP3vXAg3Z02M4Qwg0Ph4o5rPz90jxxBFDGl4bxYyil mr5Q0NGCc5GaXfnh3P9aVnVTV1bkmwR81CTTABknzCi4g4inMcWkn0iOxOrkiSNzEE3M VfP5A6cZL3QiU04LirR5jffCTO1TSutLkoh1JviYFXesd6cbqMgMqaBa4t/2O0QraKdg 1kiQ== 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=CtRnF3C3SrPtDzWYrijbevMMvebx7nVoCcCzEGjiz+k=; b=RV2bQv+MyBIoJFXCB6aQDY8T6amnLRHbaIDKxyUHDHQIBLcxI6QGzuqc3N4hYTARCB lWSFFQufaGsP6e2p7+suSbpsYGH5s14Ffy7VFpnBS5x+r7HcIuoBIzWRpKFH3aMVis8U H5Gr32VT5db8SpoFN34rndcMsP36BMuIU0H4avV5Wt8dZbpWVsKjAkb7e1bbJxhhKCx4 LAPbkxytvRKYmqZwZ4CFMykYK53BahBUh+P1K+Il3T0ZpIB1mJiPH4lOVBGtRNINpJ/s MjWyReluD9meMopqt8s/3geo8pTI1ClClOUO9Ss9cf41OPbKIVtOcMk3xZ2Kmgvs5OXP 1b1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="RJK/xJPi"; 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 h11sor1575749pgs.70.2019.05.03.03.48.10 for (Google Transport Security); Fri, 03 May 2019 03:48:10 -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:8f4b:: with SMTP id r11mr9441799pgn.271.1556880490220; Fri, 03 May 2019 03:48:10 -0700 (PDT) Received: from localhost.localdomain ([49.206.203.165]) by smtp.gmail.com with ESMTPSA id k9sm1965479pga.22.2019.05.03.03.48.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 03 May 2019 03:48:09 -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 v5 1/3] arm64: dts: allwinner: a64: move I2C pinctrl to dtsi Date: Fri, 3 May 2019 16:17:51 +0530 Message-Id: <20190503104753.27562-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="RJK/xJPi"; 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. By moving these pinctrls the i2c1 node from Nanopi A64 just have a status, which is disabled already so remove the entire node from it. Signed-off-by: Jagan Teki --- Changes for v5: - drop the i2c1 node from nanopi-a64 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 | 6 ------ 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(+), 14 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..9b9d9157128c 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-nanopi-a64.dts @@ -120,12 +120,6 @@ }; /* i2c1 connected with gpio headers like pine64, bananapi */ -&i2c1 { - pinctrl-names = "default"; - pinctrl-0 = <&i2c1_pins>; - status = "disabled"; -}; - &i2c1_pins { bias-pull-up; }; 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 Fri May 3 10:47:52 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 349 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f199.google.com (mail-pf1-f199.google.com [209.85.210.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 024743F063 for ; Fri, 3 May 2019 12:48:18 +0200 (CEST) Received: by mail-pf1-f199.google.com with SMTP id s26sf2840004pfm.18 for ; Fri, 03 May 2019 03:48:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1556880496; cv=pass; d=google.com; s=arc-20160816; b=fASK4u4RXVAzvIVFkNoT1O07i1Ae++ifSteA9s/S2zKUAJvdaPvbOn75qSr33U1VjA YLFc5SKrMzq/ONgHU597cowzje36E1/aPq/Vcmpf1x/4X1xorV5KFCjxTYvlGJFA4bEO dZKJvS0K4qpiC/1YAyvIZmsKUYMfPO9y0bInPrgKvl+fzmbSPGakeGCS+Mqwb9eb/TQ2 LQdDlQF4vr0e5MSlmlji1eRm2J+XBVYmfD8rKSIQLpRIj5TuZPDQXI1XS0MoGIhlRflL SgMdeONU7DDpYDw8M1w1zVA26gZERFvArESHmg0rUVrXaGa7ExEZhhaxRvi3GWY7oVvi ejcA== 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=xnbJmVhFViDjMXGnzO6/ZrrslEuD5YsTmfL+FUjsvUI=; b=uT/8sySvIUekcsPp8cdJ+EVBzWFRTfpd+kYPukDv23MPnxA8jBZEhESwWDG63ELOq8 gvpEk6xtaiCRs5gjgUJYIWDx41CLrdyZhSUMqTbeox6oEGFUDDTgE4zeGOq+dMLuGt7o S3+keyNDoLhkUE+Z2kCxSsZH99nXfd6jusMNMjcEhr3jCfNgTtKMBGMX/7/pGmCCH+I8 8GeDDgKX/wDNU+FCkmX4HxopUu0kY6J1/nlLgbLlUUZ2iEfgQdnIes4NcNkitdb42TXU UH/DoF0v0lEzP32M77d5PlUHjw9V3KT4J2DqfBN6w05TraDA/2im1zpfzGICV8armSig eKUw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=mk7OvXbb; 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=xnbJmVhFViDjMXGnzO6/ZrrslEuD5YsTmfL+FUjsvUI=; b=KBlIcQAQzZz2KTNx9SxsfLEC/uJWMNKl75p1BhdL+zTdEQaMh9Mwl3i1GlHzmWGa/j 9CVm4buR20mgkSmF/VlaK8lCNO0CSVuC9FbrJzyz8dhUIc4fetsNFIgfI4BdUL1o7+gm aOgouLUmpcFc8p2mDtGA6ZOMDSnpB9IbZXnis= 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=xnbJmVhFViDjMXGnzO6/ZrrslEuD5YsTmfL+FUjsvUI=; b=WmninOCbTBmRFfNldLps3NCHzCRHrQbqD96aAHpcu4/bObMymTRIJFY30Tmdj3zN3U 7w24XnXKdfyWB8R9lThhZJOTD1ahqoslDSwIxytJua+t92sHHebmu9R5oDolmYHlzY74 ezb2sXcNH2NQt9FBBJLHIUl4o7dIFHx/ce9WKtoXZO/FXaOMhOVVWbUyl2iIB03ITznU fB5s8XAbDPUgC61VXrswoVyaBp/uO9MVJhAwyZk0zy3K+WJyPYbWo1KdharrWnqxHAZ1 3SRKacOrzsT5HOpROgpTiWQubV0WWQ1VGoC8o6E/WlftoQPMa3u2QQqU/zIs2wHys1Jk JmuA== X-Gm-Message-State: APjAAAW8591GM29eTvh07j5KRHdUkC5Z6jSkeQZfa9EutUc86qqnODdk /hgQBgk4/EK84VxFzMpI8chxxn5x X-Google-Smtp-Source: APXvYqx89W1ZOR+Mf1D4mWpqGI0Rmg67v7pW8oa9sc/VDaFIcu+7I4+aehSDLUOSsuGJn8aelinghg== X-Received: by 2002:a17:902:a3:: with SMTP id a32mr9353928pla.111.1556880496653; Fri, 03 May 2019 03:48:16 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a63:4d4a:: with SMTP id n10ls1134717pgl.9.gmail; Fri, 03 May 2019 03:48:16 -0700 (PDT) X-Received: by 2002:a65:584f:: with SMTP id s15mr5989546pgr.171.1556880496336; Fri, 03 May 2019 03:48:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556880496; cv=none; d=google.com; s=arc-20160816; b=ZQQUOIIcs+d/nbYim2sCNCkz8QLIDQT6YRoJPKjvkjylGg3V4tIQm7ySGRo/05zeoz qIRTcsdmWTKCjsozsgixDz16E5e3kYdVXSR9gqE5cz6h0mYP5OM3VyOEWcpghgR+gQTY lT7OU1OWH3m6j89s9k44nmvKD3N+cCEW2qoj7fTA3tYCGLodE0+x8QakJaoFWx2P98S6 BsSP5POA/gVNVmr47LcMqGvaYIkWcIvYpXrI/i3Coa+rAgVDNsZgdVlLKQyQn2GyCk+r hx/7oUVkS8fexzM2G8Ba7faC0j+E5gBfQHCdAQ2HNvNRVR/3PSC0EUM030fwnalldeHn Ntbw== 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=flSGHj+m/Po54A3Jce083UtgM5nOT0MXPFx0OmO6SII=; b=FzzsiAdmnjSIwoev4iw8eyP8JqpXaIDSTqwx/+yXf5NF1UdsqPl3e9ZbnyPh7ZnbH3 QMzFHXFM+b7Zc9FlqOjd5j6eaPylt7YdbG6jJzHi5XXHbjUOmdQ+h0SjUxsv7/qCdS0c d2AIT4QwaUCdOV5AhSGaSSKx7B6v9G5/yWz6mkQRi+NVXlHheKeHKjgFF4YFvxoOJByE CtE+1EKzAZWZMiNOXlXLHZmOlbp/BEZR0O1xZtNEck+NRkp7uY3u+mUHcmJEj13EaqJe m2QKjgVF9BQMWuQIgcmTfYDIo8VmazV8aJgmDnp6LiKpxsRJkYnVxBrgXPmT+W73CI/M KLgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=mk7OvXbb; 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 a34sor2041416pld.48.2019.05.03.03.48.16 for (Google Transport Security); Fri, 03 May 2019 03:48:16 -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:22f:: with SMTP id 44mr9254610plc.175.1556880496050; Fri, 03 May 2019 03:48:16 -0700 (PDT) Received: from localhost.localdomain ([49.206.203.165]) by smtp.gmail.com with ESMTPSA id k9sm1965479pga.22.2019.05.03.03.48.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 03 May 2019 03:48:15 -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 v5 2/3] arm64: dts: allwinner: a64-amarula-relic: Add GT5663 CTP node Date: Fri, 3 May 2019 16:17:52 +0530 Message-Id: <20190503104753.27562-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190503104753.27562-1-jagan@amarulasolutions.com> References: <20190503104753.27562-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=mk7OvXbb; 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 v5: - none 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 Fri May 3 10:47:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 350 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f197.google.com (mail-pf1-f197.google.com [209.85.210.197]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 261783F063 for ; Fri, 3 May 2019 12:48:24 +0200 (CEST) Received: by mail-pf1-f197.google.com with SMTP id d21sf2871048pfr.3 for ; Fri, 03 May 2019 03:48:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1556880503; cv=pass; d=google.com; s=arc-20160816; b=kGDRrtMvhXhjV7FQ1z+9+3bI71UcMNQrZgx+OTc7mvbOEFK/jI39hjDPRoPQsPhNOV NtTcAZ8hXPmp9MiflY6EYoSvEYKOECSqoIU1hp2ADINYP/+3qmlqa8uqAUI18Vr/0gPy vGdiIiAtFdZq3n84kIxkk2Kc/NT0tihkD2wjVTh9lbF0xagsJvgo6XvBiDJ4Ui0WNXyS WXjFjZ+JkwbToQLaunEmoX9PqtWp96DLzUcrC3XARhknH1EIIRGVz4Om+9v67q8j+hg3 xmR3dJXc7urSMgnibKc6Fg1hvjjSu3fM3seZGLkdCOzVsFDuPun1J2fFPCNTqeU1bwhu SHZA== 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=OfqdH8f+ua4m1bdlv7DUnraohowk+Zx0LU99P3BCXus=; b=bqCr7wyZxfUCyypR/OKlaL5raozUfAaU7u/nm4CX3Gf4MukaJYGescBWdKq0CLsCul popIlmJ3ilLUkHmBvKupxPO/YMxY1AQho0aF4duG4zhomxXD6cch19AEc0MXnSCmOxkP ymiSEZnLtetfW4IcyCpDWbk4kqZZBOrVpBfBc1HcNPanHWlbgH/AmPiA5gRZWvTkxEqH pFfvx+MdXy6Nt/Sm1S3VoBhbyVqmWkjvilbxuXQ+mOne7A+N/xvEyoNNFzJtSPMNDJ3s A9utZERoHf6Rx8sqQ6I3IQDypAlDLj3F97tsP5lTu5ox+iv79ucxOflp6V4jrn0NvIhL nvnA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=JaYHuUbP; 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=OfqdH8f+ua4m1bdlv7DUnraohowk+Zx0LU99P3BCXus=; b=gSvReqisW+FQ5M2HvWN5YyFi2+sjvPcUNV1ofAn0OVc2yOT6JpRx2E3zIKSXhyIiLN KM8BFU7emvqU/qoKo4WM3kwMA1TQcenRThHwb8R6FzC9WX2b3zRTHNGWlJgqU0QKvpO7 OIEH+DF7ATJg0iGYYD8t+3Fy1qP+a7WLURL9E= 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=OfqdH8f+ua4m1bdlv7DUnraohowk+Zx0LU99P3BCXus=; b=PIa3IlzGhz26lVz31PNH20XgPSsj7MWxfo8r/CUads1Di4zvadyhG+vXW2clP3A6NC ebu9RDEBYTwvYMSxVefTLdUx6NvSuxzvAvpVTU3NjbdeOToM0wbhtmWGoSpZpvsdPBll wy/LQ73Pou+nd5I1614d7V8AXucgyffLzrwlGw5OqYUHBzDIc4LLWpBxj9byJureqdbs fP7Y0REtxzpPifBrugCyxwwejPJzvGQAH9GyGML/wuEbKiehfxDItDSSXdSmWUK6m/nF eMRVmQZOyuuG+/bVkVAW4Y75XLX1tzQLloTNXK9j70HxfbOqVbPH8XmwYoBqjSXf434S 3KsQ== X-Gm-Message-State: APjAAAV/kEt6XRDCV9z9LJ33JoLrjMjHmubWh56NSIV7dpURCgH/OhzD CyiHC7x1+7UgajL4XfGZS5mkHawK X-Google-Smtp-Source: APXvYqwXESMjqpdhltDaH2DKuxgezBVBLXSRnvtygH2yp6FPEA3H9P/hR/6a13HxATlltoiKhd/+KQ== X-Received: by 2002:a63:6b49:: with SMTP id g70mr9526259pgc.340.1556880502934; Fri, 03 May 2019 03:48:22 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:bd8a:: with SMTP id q10ls1268248pls.5.gmail; Fri, 03 May 2019 03:48:22 -0700 (PDT) X-Received: by 2002:a17:902:7284:: with SMTP id d4mr9214801pll.249.1556880502568; Fri, 03 May 2019 03:48:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556880502; cv=none; d=google.com; s=arc-20160816; b=UsaG8OLXqLTY6+KvXe/E0TM15Y68M2s6fhtDWXISToOCjwm3gZR6rbX8zJI2r9LEQ2 pOkuMUzz4tXN5PN9rOYJVeFXeRHdyWW3wuxp8l+tmkgJUf7K8EtuUpQIsql4ZwPBMohC RI9mHN7N2WRbSwf9D5A1gM2P+ODshf6giZ+IKcugXZoidV4icmAOpF4PmYEMB9Tb1Yay YAS35MVB4thoAmAfjS36Nh90THfdREwj43HBhZAnllaiW+WtUIyasiAgu0bBxVmhptit d/bkzQnwUvdHorrZXjpe7l2SfKUzD+Ih3ue7NL6yNOPnifRzxoglFAx9rrFqK6UiLyvb M/6Q== 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=bzeisKrbd3NVmsuHkycqQpZOOZrTkWkXq9WqgrEgfB0=; b=nq7JmkGYO5sfiAwgf63ISXjqNId/mz5GrrsHajiTd+DyBii6WjXOa7gK4STT39VUjw bWswUoxBDjZUVfA8/WZKhMPfWhhWzx9ggcmrbi17eaO5DfD0u9Npi5xjU13WQr6hUh+i YKpOWPeT6T/wa0r6VZPnGdCT5sZfCIfjuWt/3dEbfAQ5732UThYTwDkRkNS6sls2xzBv GE509A9wJK++fc0ukKemWMeZ+xu8hf8ec1K3yI/sZG0BLcpaWTCSI4xh6RVQNVjWnxd9 wC8x53HfXkgl17EkUrgj3XFMekA3C55mK+6PJqHTdgBgM+nbcUZ9baXdVHRfjzSYv7So SWaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=JaYHuUbP; 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 j62sor2006787pfg.41.2019.05.03.03.48.22 for (Google Transport Security); Fri, 03 May 2019 03:48:22 -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:a62:b418:: with SMTP id h24mr9669983pfn.145.1556880502238; Fri, 03 May 2019 03:48:22 -0700 (PDT) Received: from localhost.localdomain ([49.206.203.165]) by smtp.gmail.com with ESMTPSA id k9sm1965479pga.22.2019.05.03.03.48.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 03 May 2019 03:48:21 -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 v5 3/3] arm64: dts: allwinner: a64-oceanic-5205-5inmfd: Enable GT911 CTP Date: Fri, 3 May 2019 16:17:53 +0530 Message-Id: <20190503104753.27562-3-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190503104753.27562-1-jagan@amarulasolutions.com> References: <20190503104753.27562-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=JaYHuUbP; 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 v5: - none Changes for v4: - drop i2c1 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>;