Received: by 10.223.185.116 with SMTP id b49csp630502wrg; Wed, 21 Feb 2018 04:27:42 -0800 (PST) X-Google-Smtp-Source: AH8x224c2OXTmIVh5nQ4Fk1HU0dLg9Dr4tVvX9jo/yMhCTyNU7OCC1DZ1lup7iOhWviA9bLfslCV X-Received: by 10.99.99.132 with SMTP id x126mr2560448pgb.86.1519216061936; Wed, 21 Feb 2018 04:27:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519216061; cv=none; d=google.com; s=arc-20160816; b=f7LgYCD8kYMGySSZOOYy/BqB7RApMJ44nffo8NSc3s7ezfns93Mz9bSifYUOF1tin0 7ahbSIRoAuOXZqNzPlcgT8LC4oQBJIM5g9QHxea1OYMCR1GanbByWTaY0oRKG7UjlZWx SrPJLjPVESTe38b1K6uR1+Ha68moOiwGFuXQHSQx7fvdwJjq4vm+XvbfDfv3jL6fEIk7 TnAlD7l/6A8L2Eg/amt3F0pZ1AzxFZ1auarhjRrb7a0qAKYckmonxnmJmVtENuFHZfcb uK1aC5sF9q+S0HkETvkwGAXR/dOHN00qFcmL/LEAywxw5ovmUUMiGkxYmLLFVf4mh2YD 4h/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=M+VFJwPNxb+9SgcnlZLWvcBVo+bNP3K7cDp5JDqav8E=; b=BLI+gORnhfZ0auGyVL+d0oNnvbAhKphyORDNpCqOCtX/Vqn1fxIOusHAgfQb3M7d3z C2jC6eG5lTuIrneex09T+Tneu9dRldICKo8u6huD4oKd3UiiymjkPUA1FqTq6VPi2EJm upzlpxT7kqxpcLcOFb+y8s/3NNzm+DnH7PeRDpUnUbFv8Zt5V2H69+y/ohwMGZ8MoXhJ jHD/+VJpUhsib6r3bDbau883C1POyhPs1TdeHmQCQ+Ld4YmJ5z6KOoOBnYJPAkvv+QAX 7T4+rkdmUbLJaV2p0T7IvhgB6mBAH15kPO/PJETLFIQUuhPoygCIlA4Q7Fzj2dEohG7A 3Sdw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d4si1592751pfd.134.2018.02.21.04.27.27; Wed, 21 Feb 2018 04:27:41 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752886AbeBUJBd (ORCPT + 99 others); Wed, 21 Feb 2018 04:01:33 -0500 Received: from bastet.se.axis.com ([195.60.68.11]:43256 "EHLO bastet.se.axis.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752493AbeBUJAc (ORCPT ); Wed, 21 Feb 2018 04:00:32 -0500 Received: from localhost (localhost [127.0.0.1]) by bastet.se.axis.com (Postfix) with ESMTP id EFEA21843C; Wed, 21 Feb 2018 10:00:30 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at bastet.se.axis.com Received: from bastet.se.axis.com ([IPv6:::ffff:127.0.0.1]) by localhost (bastet.se.axis.com [::ffff:127.0.0.1]) (amavisd-new, port 10024) with LMTP id 5mgRwz0BeZlt; Wed, 21 Feb 2018 10:00:30 +0100 (CET) Received: from boulder02.se.axis.com (boulder02.se.axis.com [10.0.8.16]) by bastet.se.axis.com (Postfix) with ESMTPS id 4C95218435; Wed, 21 Feb 2018 10:00:30 +0100 (CET) Received: from boulder02.se.axis.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 2AD461A080; Wed, 21 Feb 2018 10:00:30 +0100 (CET) Received: from boulder02.se.axis.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 1E6FC1A073; Wed, 21 Feb 2018 10:00:30 +0100 (CET) Received: from seth.se.axis.com (unknown [10.0.2.172]) by boulder02.se.axis.com (Postfix) with ESMTP; Wed, 21 Feb 2018 10:00:30 +0100 (CET) Received: from lnxartpec1.se.axis.com (lnxartpec1.se.axis.com [10.88.4.10]) by seth.se.axis.com (Postfix) with ESMTP id 11D511BF8; Wed, 21 Feb 2018 10:00:30 +0100 (CET) Received: by lnxartpec1.se.axis.com (Postfix, from userid 20283) id 0DBAB401B8; Wed, 21 Feb 2018 10:00:30 +0100 (CET) From: Niklas Cassel To: arm@kernel.org, Jesper Nilsson , Lars Persson , Niklas Cassel , Rob Herring , Mark Rutland , Russell King Cc: linux-arm-kernel@axis.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 5/8] ARM: dts: artpec: add and utilize artpec6 pin controller Date: Wed, 21 Feb 2018 09:59:57 +0100 Message-Id: <20180221090000.18091-6-niklas.cassel@axis.com> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20180221090000.18091-1-niklas.cassel@axis.com> References: <20180221090000.18091-1-niklas.cassel@axis.com> X-TM-AS-GCONF: 00 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add node for the pin controller used in the artpec6 SoC, and start using it for the exising UARTs. Signed-off-by: Niklas Cassel --- arch/arm/boot/dts/artpec6.dtsi | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/arch/arm/boot/dts/artpec6.dtsi b/arch/arm/boot/dts/artpec6.dtsi index 981aecd27b0b..7a6d8f39823a 100644 --- a/arch/arm/boot/dts/artpec6.dtsi +++ b/arch/arm/boot/dts/artpec6.dtsi @@ -180,6 +180,32 @@ status = "disabled"; }; + pinctrl: pinctrl@f801d000 { + compatible = "axis,artpec6-pinctrl"; + reg = <0xf801d000 0x400>; + + pinctrl_uart0: uart0grp { + function = "uart0"; + groups = "uart0grp2"; + bias-pull-up; + }; + pinctrl_uart1: uart1grp { + function = "uart1"; + groups = "uart1grp0"; + bias-pull-up; + }; + pinctrl_uart2: uart2grp { + function = "uart2"; + groups = "uart2grp1"; + bias-pull-up; + }; + pinctrl_uart3: uart3grp { + function = "uart3"; + groups = "uart3grp0"; + bias-pull-up; + }; + }; + amba@0 { compatible = "simple-bus"; #address-cells = <0x1>; @@ -238,6 +264,8 @@ clocks = <&clkctrl ARTPEC6_CLK_UART_REFCLK>, <&clkctrl ARTPEC6_CLK_UART_PCLK>; clock-names = "uart_clk", "apb_pclk"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_uart0>; status = "disabled"; }; uart1: serial@f8037000 { @@ -247,6 +275,8 @@ clocks = <&clkctrl ARTPEC6_CLK_UART_REFCLK>, <&clkctrl ARTPEC6_CLK_UART_PCLK>; clock-names = "uart_clk", "apb_pclk"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_uart1>; status = "disabled"; }; uart2: serial@f8038000 { @@ -256,6 +286,8 @@ clocks = <&clkctrl ARTPEC6_CLK_UART_REFCLK>, <&clkctrl ARTPEC6_CLK_UART_PCLK>; clock-names = "uart_clk", "apb_pclk"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_uart2>; status = "disabled"; }; uart3: serial@f8039000 { @@ -265,6 +297,8 @@ clocks = <&clkctrl ARTPEC6_CLK_UART_REFCLK>, <&clkctrl ARTPEC6_CLK_UART_PCLK>; clock-names = "uart_clk", "apb_pclk"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_uart3>; status = "disabled"; }; }; -- 2.14.2