From patchwork Tue Jan 26 22:14:21 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 8128061 X-Patchwork-Delegate: horms@verge.net.au Return-Path: X-Original-To: patchwork-linux-renesas-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 713FFBEEE5 for ; Tue, 26 Jan 2016 22:14:28 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CFE6E20254 for ; Tue, 26 Jan 2016 22:14:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 23DC72025A for ; Tue, 26 Jan 2016 22:14:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752109AbcAZWO0 (ORCPT ); Tue, 26 Jan 2016 17:14:26 -0500 Received: from mail-lf0-f50.google.com ([209.85.215.50]:33045 "EHLO mail-lf0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751128AbcAZWOZ (ORCPT ); Tue, 26 Jan 2016 17:14:25 -0500 Received: by mail-lf0-f50.google.com with SMTP id s81so8516221lfd.0 for ; Tue, 26 Jan 2016 14:14:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogentembedded-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:organization:user-agent :in-reply-to:references:mime-version:content-transfer-encoding :content-type; bh=zoZ/ZeQ7vM5TOgiAY++ApU0uQD1uOgjZVgV9X58Pad0=; b=LoufrO7zjRGg8/X/zAdQmwyAFv3aAQ08Djy2yJf3lpNMEDkL1FMAtUlOM0T3GMiV68 cAPKbFHGZBeChtXnQHpCyQmjyWITMpxkMCb0pDA9zJ9FD2QUWzfWnkHGO3PmHJZ7A5IA v3G4KDXkAETjAzBkjHIboJe5wDbVWlnw+pUlrHYcUd6H9j+z9Rf5lNCrUNJJyP4/JCoQ NdvPLv69ii9JjCgmcJpg4PA/Dw1caX3Y7ItgT14DNTsyUV3lgiMblx5IyWZs3MHXpOR3 e6GhtHovtsc+mHo3FtBYJD10XxxAMH96c8lchwjNfZadzLVKD8tnvN/DmwD2RA4JdiBP /wkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=zoZ/ZeQ7vM5TOgiAY++ApU0uQD1uOgjZVgV9X58Pad0=; b=YxZU2nxu158FByHYXLr1s9mVaQnXFjxm/wsiyp1IDOBM1Jd51h/gkcADYWEGmsXmoP /+cgKqMYUfGDhLMEzMRhoiQqh2/bYhGHYziC+sVzRVev74sHykjIN98EZoWFgSvlbs53 lxmGQj25GFqBC6cZOVXemiy6Ucly+RADzcJIuTJFZ1Gn59ALrTQq/J5beIJAUE3+M7EV tecf8MyFfG85Xz8FI6TxEL9Q9PMCkzs1nw7ShTEgf1dv+/wgEp8NuwY6hmVmbr+q6rVx Kx+zAWPgvRcC2uw6hm8GDskOgqsjIU5kAqvBgsBqZNB4sZIcZS5yHCwao8OrtGed1qNc 9RpA== X-Gm-Message-State: AG10YOTEAVkILmgnSUFhyfB+R/1dLUSnpCZbeqZ+X9FGVTNnHNg1aB+fcA34nIewjY8HvQ== X-Received: by 10.25.44.205 with SMTP id s196mr9673588lfs.0.1453846463766; Tue, 26 Jan 2016 14:14:23 -0800 (PST) Received: from wasted.cogentembedded.com ([83.149.9.95]) by smtp.gmail.com with ESMTPSA id h8sm428161lbd.48.2016.01.26.14.14.22 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 26 Jan 2016 14:14:22 -0800 (PST) From: Sergei Shtylyov To: horms@verge.net.au, linux-renesas-soc@vger.kernel.org, robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, galak@codeaurora.org, devicetree@vger.kernel.org Cc: magnus.damm@gmail.com, linux@arm.linux.org.uk, linux-arm-kernel@lists.infradead.org Subject: [PATCH] ARM: dts: porter: add MAX3355 support Date: Wed, 27 Jan 2016 01:14:21 +0300 Message-ID: <4506196.xOgpYRO52t@wasted.cogentembedded.com> Organization: Cogent Embedded Inc. User-Agent: KMail/4.14.10 (Linux/4.2.8-200.fc22.x86_64; KDE/4.14.14; x86_64; ; ) In-Reply-To: <1674850.BZpGW9kEud@wasted.cogentembedded.com> References: <1674850.BZpGW9kEud@wasted.cogentembedded.com> MIME-Version: 1.0 Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Spam-Status: No, score=-6.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_HI,RCVD_IN_SORBS_WEB,RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Now that Maxim Integrated MAX3355 'extcon' driver and device tree bindings are upstream along with the 'extcon' hook in the Renesas USBHS driver, we can add MAX3355 device node to the Porter device tree and properly refer to it from the USBHS node instead of using "renesas,enable-gpio" property which only allowed checking the USB ID pin at the driver probe time; now this pin's state can be monitored dynamically! Signed-off-by: Sergei Shtylyov --- This patch is against 'renesas-devel-20160126-v4.5-rc1' tag of Simon Horman's 'renesas.git' repo. arch/arm/boot/dts/r8a7791-porter.dts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) Index: renesas/arch/arm/boot/dts/r8a7791-porter.dts =================================================================== --- renesas.orig/arch/arm/boot/dts/r8a7791-porter.dts +++ renesas/arch/arm/boot/dts/r8a7791-porter.dts @@ -90,6 +90,12 @@ 1800000 0>; }; + max3355: usb-otg { + compatible = "maxim,max3355"; + maxim,shdn-gpios = <&gpio2 4 GPIO_ACTIVE_HIGH>; + id-gpios = <&gpio5 31 GPIO_ACTIVE_HIGH>; + }; + hdmi-out { compatible = "hdmi-connector"; type = "a"; @@ -394,7 +400,7 @@ pinctrl-names = "default"; status = "okay"; - renesas,enable-gpio = <&gpio5 31 GPIO_ACTIVE_HIGH>; + extcon = <&max3355>; }; &usbphy {