Received: by 10.223.185.116 with SMTP id b49csp862344wrg; Tue, 20 Feb 2018 09:03:18 -0800 (PST) X-Google-Smtp-Source: AH8x226JW7v5gAnNv2xZVsVD39H3V0IoXpHhnsNlNL+vwOdVrhoN94jPomWKkRJiySMtIUjXhq8A X-Received: by 2002:a17:902:6b81:: with SMTP id p1-v6mr244578plk.79.1519146198706; Tue, 20 Feb 2018 09:03:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519146198; cv=none; d=google.com; s=arc-20160816; b=eiwqfJDWfz2Ur9shwYpVy5ysYONf5o69ellf2VprGAEA8s3e7hO2MpRgOSF59+NR9W ojq4FrG7FmMkTDkwnF6NPBtCV0KbytSUmDehxKcSYZWqwWLO4bm7cMN8KIUyXANL+YUV mXwdqqBcU9sqtVXOZzTf3egZ1HyouXfbqBVhwXiR0nCELmv0LIa2pxS77bUEcA98mQN1 1LiMtb1+ZYcuAT0XZa4kgZT93qLyjb/vqPm8rjQGf498OlnXiRoJ4cK2bP+QiyQaFkYo deXDty44iJFkf7K3LTQhEy9ROsgdkBbSMRiG2JWkpOIJjSJz1Yg3gnYiK+yRRoDv5+dC ijsA== 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=LL6DbrCzD7PxzjFSp92EC4os4wW3OorX4KjE7l3fO1G19eu36zqrdk3+oTXyWx0m9b 5N5iYv4jGFt0P1yCMX1oB+QN895w7ZOeGPZtQRUi26cFgsIyoAzT8c9XaJgWslqg0KcH WAp/9ym/kyLIzD0Xm4v6KP5rPHj3KFJiEBV4E3KAu0GHegMJWlie9b9qxN6+1jgHVFus kYN2DG4q0SvvAqmG8oTL5754YzmmVbv6CFTQ9i9HeC4BoTZt0KX+ubcRSpzM560qzgyg z/CXYLUFDAEEqtVnIzowk7W7cxC/uNfOdXho+4pf4gtMb8EIpwybXFyOZaIYCd3z9+mb 3ElA== 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 z8si2772677pgr.57.2018.02.20.09.02.39; Tue, 20 Feb 2018 09:03:18 -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 S1753345AbeBTRBk (ORCPT + 99 others); Tue, 20 Feb 2018 12:01:40 -0500 Received: from bastet.se.axis.com ([195.60.68.11]:33964 "EHLO bastet.se.axis.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752079AbeBTRBh (ORCPT ); Tue, 20 Feb 2018 12:01:37 -0500 Received: from localhost (localhost [127.0.0.1]) by bastet.se.axis.com (Postfix) with ESMTP id 54354183CF; Tue, 20 Feb 2018 18:01:35 +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 XUkuxJ0U7MOP; Tue, 20 Feb 2018 18:01:34 +0100 (CET) Received: from boulder03.se.axis.com (boulder03.se.axis.com [10.0.8.17]) by bastet.se.axis.com (Postfix) with ESMTPS id 7AC381840C; Tue, 20 Feb 2018 18:01:34 +0100 (CET) Received: from boulder03.se.axis.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 5AA621E076; Tue, 20 Feb 2018 18:01:34 +0100 (CET) Received: from boulder03.se.axis.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4E72D1E072; Tue, 20 Feb 2018 18:01:34 +0100 (CET) Received: from seth.se.axis.com (unknown [10.0.2.172]) by boulder03.se.axis.com (Postfix) with ESMTP; Tue, 20 Feb 2018 18:01:34 +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 40BD41B5A; Tue, 20 Feb 2018 18:01:34 +0100 (CET) Received: by lnxartpec1.se.axis.com (Postfix, from userid 20283) id 3CCC5401B8; Tue, 20 Feb 2018 18:01:34 +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 5/8] ARM: dts: artpec: add and utilize artpec6 pin controller Date: Tue, 20 Feb 2018 18:00:46 +0100 Message-Id: <20180220170049.22809-6-niklas.cassel@axis.com> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20180220170049.22809-1-niklas.cassel@axis.com> References: <20180220170049.22809-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