From patchwork Mon Jul 17 15:24:36 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulrich Hecht X-Patchwork-Id: 9845485 X-Patchwork-Delegate: horms@verge.net.au Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id BBD9F6037F for ; Mon, 17 Jul 2017 15:25:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AEEFA27480 for ; Mon, 17 Jul 2017 15:25:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A3C7528464; Mon, 17 Jul 2017 15:25:20 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 43AE427480 for ; Mon, 17 Jul 2017 15:25:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751336AbdGQPZT (ORCPT ); Mon, 17 Jul 2017 11:25:19 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:35087 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751358AbdGQPY7 (ORCPT ); Mon, 17 Jul 2017 11:24:59 -0400 Received: by mail-wm0-f67.google.com with SMTP id u23so23732911wma.2; Mon, 17 Jul 2017 08:24:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=kdxIIu8jgpKZGzbo/cOxVBbu90LmGP4nyOWa2xyd200=; b=PUhVCE9UGLCQcpCQ6YcXvWCh3vs0v9qkKUF2A/TpYk0FbzFGd7jQm4b526w6T3Log5 EVVvBWVSVJQpnltVOLb17+V8ZS3cuNLf6PxrqqQDGZMeu4krxmehwWQWgHsC6JM9GaN7 0XxyCioTzt3x4XxmtOp91WKfe0bHJ1ikPugDw+nn49Z3FoIFJ03J9zf5l9CPp38g3YO4 UNpeHgCSRWTZw5lFlqftJrN9UivFHiVpoUU3S3U4P7qZALhJiit9VRQAyv8z7twJQGBo YDJgepQjuTHhSh/IcRjYiTjy9Xo13xEQOHyEqSfE6CrSFyegxH0kLCee6c5YLgHt2B3p qy1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=kdxIIu8jgpKZGzbo/cOxVBbu90LmGP4nyOWa2xyd200=; b=OD4ddwymAzIq/gRGc5EOpkWTQMtgoMyIRPPeU2DIw4yISBKr7ZErnBNsjBDSWi4heL 9K+77RQqKpOST7NuWj0OBHWuh5Qmn30reeh2J2kicTwVGFkcutGIu+LmLh2655WIyS3f lDR34hvYLr9Sf+Gzcy/6zAGGdHJf8iHAN3hROnPEiEar6Z5RA/kOMP8E6cFW+FGIZOd1 1QCC5XgRUVCJy3OnNitcMXXd0q9A3TyOXIlfWA15mQO2zY3jI0ynWxFMF+8at4N+8G4/ mXoZ1+dn7AmOVTi5ex4lBSdYhcr5QjcP6fZruvXbfqlk/7H8n44xJdLTqSN5Z1YQ/jWt asIw== X-Gm-Message-State: AIVw111jClbFjvxk7AF0QMErm9AIlXuDKQxm1v4e5h4+Zr23IzOHF/QX qUrycEf53zwDHStuYi0= X-Received: by 10.28.215.206 with SMTP id o197mr4593839wmg.18.1500305097377; Mon, 17 Jul 2017 08:24:57 -0700 (PDT) Received: from groucho.site (ipbcc169a0.dynamic.kabel-deutschland.de. [188.193.105.160]) by smtp.gmail.com with ESMTPSA id 13sm10802102wrl.57.2017.07.17.08.24.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 17 Jul 2017 08:24:56 -0700 (PDT) From: Ulrich Hecht To: linux-serial@vger.kernel.org Cc: linux-renesas-soc@vger.kernel.org, magnus.damm@gmail.com, laurent.pinchart@ideasonboard.com, wsa@the-dreams.de, robh@kernel.org, peda@axentia.se, geert@linux-m68k.org, linux-i2c@vger.kernel.org, Ulrich Hecht Subject: [RFC v2 6/6] ARM: dts: blanche: add SCIF1 and MAX9260 deserializer Date: Mon, 17 Jul 2017 17:24:36 +0200 Message-Id: <1500305076-15570-7-git-send-email-ulrich.hecht+renesas@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1500305076-15570-1-git-send-email-ulrich.hecht+renesas@gmail.com> References: <1500305076-15570-1-git-send-email-ulrich.hecht+renesas@gmail.com> Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Adds serial port SCIF1 and the MAX9260 deserializers connected to it. Signed-off-by: Ulrich Hecht --- arch/arm/boot/dts/r8a7792-blanche.dts | 52 +++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/arch/arm/boot/dts/r8a7792-blanche.dts b/arch/arm/boot/dts/r8a7792-blanche.dts index 9b67dca..2ae9a87 100644 --- a/arch/arm/boot/dts/r8a7792-blanche.dts +++ b/arch/arm/boot/dts/r8a7792-blanche.dts @@ -21,6 +21,7 @@ aliases { serial0 = &scif0; serial1 = &scif3; + serial2 = &scif1; }; chosen { @@ -186,6 +187,16 @@ gpio = <&gpio11 12 GPIO_ACTIVE_HIGH>; enable-active-high; }; + + mux: mux-controller { + compatible = "gpio-mux"; + #mux-control-cells = <0>; + + mux-gpios = <&gpio5 12 GPIO_ACTIVE_HIGH>, + <&gpio5 13 GPIO_ACTIVE_HIGH>, + <&gpio5 14 GPIO_ACTIVE_HIGH>, + <&gpio5 15 GPIO_ACTIVE_HIGH>; + }; }; &extal_clk { @@ -202,6 +213,11 @@ function = "scif0"; }; + scif1_pins: scif1 { + groups = "scif1_data"; + function = "scif1"; + }; + scif3_pins: scif3 { groups = "scif3_data"; function = "scif3"; @@ -246,6 +262,42 @@ status = "okay"; }; +&scif1 { + pinctrl-0 = <&scif1_pins>; + pinctrl-names = "default"; + + status = "okay"; + + mux-controls = <&mux>; + + #address-cells = <1>; + #size-cells = <0>; + gmsl-deserializer@0 { + compatible = "maxim,max9260"; + reg = <0x8>; + }; + gmsl-deserializer@1 { + compatible = "maxim,max9260"; + reg = <0x9>; + }; + gmsl-deserializer@2 { + compatible = "maxim,max9260"; + reg = <0xa>; + }; + gmsl-deserializer@3 { + compatible = "maxim,max9260"; + reg = <0xb>; + }; + gmsl-deserializer@4 { + compatible = "maxim,max9260"; + reg = <0x4>; + }; + gmsl-deserializer@5 { + compatible = "maxim,max9260"; + reg = <0x5>; + }; +}; + &scif3 { pinctrl-0 = <&scif3_pins>; pinctrl-names = "default";