Received: by 10.213.65.68 with SMTP id h4csp1082560imn; Wed, 28 Mar 2018 20:10:30 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+3vUHk0ovU8n5Q9qwa1N2AaNBHmjox2evwNeuAH/1dRrgvfGR6RckbuJ8FbKhpq2tAqqux X-Received: by 10.99.64.3 with SMTP id n3mr3732494pga.13.1522293030624; Wed, 28 Mar 2018 20:10:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522293030; cv=none; d=google.com; s=arc-20160816; b=0CuMjWmDVepeUJNfJ8c4qupnsMYUFiFlYjxmrV0LsHicoTWmPAiQkba5BNRDRJ/1ph ONQSWd5hVad/5SFCZfplgrAJK4kzMtLj21ohoqHeG8R4Ro9cfEjrinTkuyl3VWpXLn0G 7h5EOCFyAAVnISQBsGPK0GeQcucQasrShZZZCwXkkfXEJ2GhEY6wbDDmxy/aOzLWlBXG NosxR5CwqIaXf9Jp4HZwX8mz/hdhrzvcYzPtFTQ8EzeOyP68XQBKaLJloCS44P2qN4UU yXq/xymhVZMeRGeKyTTn1OdTXKrCbCwf5meLXhsakltP1MQh/h2ehdsJMGu5SLMmOEnz 2bjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:references:in-reply-to:mime-version :dmarc-filter:arc-authentication-results; bh=7Kh15krY4W799ZZB3ENa0Bo0WHGkPRwv0wp41Eamk6c=; b=Fdk2DY8hRsu58woLNoyOjVbESt1J88bo7g8170HVBYMfLmBX7d/M8tt3L3vAO8AYz7 YnZWW7Nof5/nArDmlWegV2hJfv6G+Foup0zBBwjuPIpckKJJXuQqLfhnOjQzyMobOuOY qZx2TZVyikZSmm6VD605MHCVrmIrOHQ1UJKn9/0a7QyEXdU6L8MW6JLj05WfYcE/CD6J arFir+kk9vkT8MVN/rRusiU6NQp7Lr+oPB2G0egqOZc4xIuSyPLdYepoIZT9O9QJJA+i pN2XtGs/CyvqIpsP5G5nYYPDXYy6DzgvMqq1jem0MSHTsRs4tDnKap6hHatYeO8vRGmy s6vA== 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 16si3691789pfh.354.2018.03.28.20.10.16; Wed, 28 Mar 2018 20:10:30 -0700 (PDT) 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 S1751205AbeC2DJ1 convert rfc822-to-8bit (ORCPT + 99 others); Wed, 28 Mar 2018 23:09:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:49988 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750881AbeC2DJZ (ORCPT ); Wed, 28 Mar 2018 23:09:25 -0400 Received: from mail-qk0-f177.google.com (mail-qk0-f177.google.com [209.85.220.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B13C22172B; Thu, 29 Mar 2018 03:09:24 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B13C22172B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=robh@kernel.org Received: by mail-qk0-f177.google.com with SMTP id s78so4652542qkl.8; Wed, 28 Mar 2018 20:09:24 -0700 (PDT) X-Gm-Message-State: ALQs6tATlM51ylhtAOzMJiSfRvrcwOUJbeqiRwtydaZnUHCGHaS1S5zi CM3x7tvnbM/peDhManXQVrHBfGS4TNrqiwcF6Q== X-Received: by 10.55.31.165 with SMTP id n37mr8398684qkh.184.1522292963912; Wed, 28 Mar 2018 20:09:23 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.213.166 with HTTP; Wed, 28 Mar 2018 20:09:03 -0700 (PDT) In-Reply-To: References: <1521537304-7531-1-git-send-email-leechu729@gmail.com> <1521537304-7531-3-git-send-email-leechu729@gmail.com> <20180326222336.jqix6k4pyqy4bg36@rob-hp-laptop> From: Rob Herring Date: Wed, 28 Mar 2018 22:09:03 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v4 2/2] dt-bindings: usb: rt1711h device tree binding document To: =?UTF-8?B?5p2O5pu45biG?= Cc: Greg KH , Heikki Krogerus , Guenter Roeck , Mark Rutland , =?UTF-8?B?c2h1ZmFuX2xlZSjmnY7mm7jluIYp?= , =?UTF-8?B?Y3lfaHVhbmco6buD5ZWf5Y6fKQ==?= , Jun Li , Mats Karrman , "linux-kernel@vger.kernel.org" , Linux USB List , devicetree@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 27, 2018 at 9:30 AM, 李書帆 wrote: > Hi Rob, > > 2018-03-27 6:23 GMT+08:00 Rob Herring : >> On Tue, Mar 20, 2018 at 05:15:04PM +0800, ShuFan Lee wrote: >>> From: ShuFan Lee >>> >>> Add device tree binding document for Richtek RT1711H Type-C chip driver >>> >>> Signed-off-by: ShuFan Lee >>> --- >>> .../devicetree/bindings/usb/richtek,rt1711h.txt | 30 ++++++++++++++++++++++ >>> 1 file changed, 30 insertions(+) >>> create mode 100644 Documentation/devicetree/bindings/usb/richtek,rt1711h.txt >>> >>> changelogs between v2 & v3 >>> - add dt-bindings for rt1711h typec driver >>> >>> diff --git a/Documentation/devicetree/bindings/usb/richtek,rt1711h.txt b/Documentation/devicetree/bindings/usb/richtek,rt1711h.txt >>> new file mode 100644 >>> index 000000000000..7da4dac78ea7 >>> --- /dev/null >>> +++ b/Documentation/devicetree/bindings/usb/richtek,rt1711h.txt >>> @@ -0,0 +1,30 @@ >>> +Richtek RT1711H TypeC PD Controller. >>> + >>> +Required properties: >>> + - compatible : Must be "richtek,rt1711h". >>> + - reg : Must be 0x4e, it's slave address of RT1711H. >>> + >>> +Recommended properties : >>> + - interrupt-parent : the phandle for the interrupt controller that >>> + provides interrupts for this device. >>> + - interrupts : where a is the interrupt number and b represents an >>> + encoding of the sense and level information for the interrupt. >>> + >>> +Optional properties : >>> + - rt,intr-gpios : IRQ GPIO pin that's connected to RT1711H interrupt. >>> + if interrupt-parent & interrupts are not defined, use this property instead. >> >> Drop this. You should simply always have interrupts property. > Does this also imply that we could always assume client->irq is ready > for request? No idea. > Therefore, there's no need to check client->irq and get gpio through > rt,intr-gpios. Looked to me like the gpio is just converted to an irq and used for nothing else in the driver. If that's the case, then there's no point in it being a gpio. Rob