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: 8128071 Return-Path: X-Original-To: patchwork-linux-arm@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 24226BEEE5 for ; Tue, 26 Jan 2016 22:16:16 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 41A112025A for ; Tue, 26 Jan 2016 22:16:15 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 74C3620259 for ; Tue, 26 Jan 2016 22:16:14 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1aOBsx-00027D-G1; Tue, 26 Jan 2016 22:14:51 +0000 Received: from mail-lf0-x22b.google.com ([2a00:1450:4010:c07::22b]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aOBss-00025e-Sj for linux-arm-kernel@lists.infradead.org; Tue, 26 Jan 2016 22:14:49 +0000 Received: by mail-lf0-x22b.google.com with SMTP id c192so114733013lfe.2 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=UeeXXxQJWdzz2WkathxoIz7CDrix7MQykPPliKnWbuAZC80eGw4jDgXF71+kRrmqVI ic4XXGCnKhxh4/uJidEEeVcJCxqazmyBm6Ovn7nGqD2wmkVb5xJtI5Cix5dBB+qkp6XP qJLLfedPb5WaTSEN+zPdojHIesAUIanLgvwiRZi3s2xkzKEZ+4/Ak4MVUX9HftNH1ZCo mkg4TpFoOnXkqyAsQtpt/DB8m6ZZLvqNcYyOFofRGVpbvnqsgq64YuLmTeXQBa2Y+tiY QwYtg4dKuvjZlKD1RoggcKYYO1fyp+9gzMUFk1CFrHZ6EYOGC5vhc+GcoQvgNBZ523DR yEnQ== X-Gm-Message-State: AG10YOQ84qKq+HAqOI37SACh5GU2DoNNG3DkWvD71qyP3PTuc9vejjTW/Qyr64rRBVVmTA== 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160126_141447_268312_AA2C4157 X-CRM114-Status: GOOD ( 12.15 ) X-Spam-Score: -1.8 (-) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux@arm.linux.org.uk, magnus.damm@gmail.com, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RCVD_IN_SORBS_WEB,RP_MATCHES_RCVD,T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham 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 {