From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.0 required=3.0 tests=BAYES_00,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 411E0C6369E for ; Thu, 12 Nov 2020 01:48:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id EBF7D20791 for ; Thu, 12 Nov 2020 01:47:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728605AbgKLBdZ (ORCPT ); Wed, 11 Nov 2020 20:33:25 -0500 Received: from mail-ot1-f65.google.com ([209.85.210.65]:38526 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727202AbgKKWum (ORCPT ); Wed, 11 Nov 2020 17:50:42 -0500 Received: by mail-ot1-f65.google.com with SMTP id a15so3761213otf.5; Wed, 11 Nov 2020 14:50:42 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=oe8Trn0rh4GUI+osEdBmwuarl9l3QobQEYdZ1Nxtnys=; b=LLMbDHiniYE2Vw5G8QKw9cgPjhY4OqQebMdbBG/EQCcm2j0SLJWd7UVy8Cd7XD1TAk 4xecgWxZ/clmc/1hyOPdTQgL63ZTWIPsksI2gpeq0txS0xphLUKJwk4gWLygmMPN16gl idXVBVvmlzx7Z2JRb+/MMMdRqKUDObWiZeNj6Tg8Rvh9QNyg+is/PSzfMa/mTqG92pFb PMgHi9up074kHxynad7OdLc546MFsEJ6eCI4RB+YW4/ez+DNTA6F8Z/hG5Y1graIGpv6 oml0MT5bjc0vRpmfuamMx5nU/mpP/x5C6YKRCdOtoHTqTL2ks07DISmPfpymet2hbVzs VmgQ== X-Gm-Message-State: AOAM530tWJlaNBEDXtevKiTu+5sRH/lW0m16GDMkdOOPUOsaVLMAB4d9 CdkPfqFsaOT4a5dcLYVN7Q== X-Google-Smtp-Source: ABdhPJySmi0OCWmbGuGKV0MBO/vl/T6YZudO7K0ZMEqS/69OE5D0SaQbbltnyj5oOkEcZlTcPN9YKQ== X-Received: by 2002:a9d:8d7:: with SMTP id 81mr19790315otf.345.1605135041695; Wed, 11 Nov 2020 14:50:41 -0800 (PST) Received: from xps15 (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id m10sm866796oon.27.2020.11.11.14.50.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Nov 2020 14:50:40 -0800 (PST) Received: (nullmailer pid 2190873 invoked by uid 1000); Wed, 11 Nov 2020 22:50:39 -0000 Date: Wed, 11 Nov 2020 16:50:39 -0600 From: Rob Herring To: Frank Lee Cc: tiny.windzz@gmail.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Kishon Vijay Abraham I , Vinod Koul , Maxime Ripard , Chen-Yu Tsai Subject: Re: [RESEND PATCH 12/19] dt-bindings: Add bindings for USB phy on Allwinner A100 Message-ID: <20201111225039.GA2185181@bogus> References: <1ce71bac2732620f8fe77b23ca84e062385e7e8a.1604988979.git.frank@allwinnertech.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1ce71bac2732620f8fe77b23ca84e062385e7e8a.1604988979.git.frank@allwinnertech.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 10, 2020 at 02:39:42PM +0800, Frank Lee wrote: > From: Yangtao Li > > Add a device tree binding for the A100's USB PHY. > > Signed-off-by: Yangtao Li > --- > .../phy/allwinner,sun50i-a100-usb-phy.yaml | 105 ++++++++++++++++++ > 1 file changed, 105 insertions(+) > create mode 100644 Documentation/devicetree/bindings/phy/allwinner,sun50i-a100-usb-phy.yaml > > diff --git a/Documentation/devicetree/bindings/phy/allwinner,sun50i-a100-usb-phy.yaml b/Documentation/devicetree/bindings/phy/allwinner,sun50i-a100-usb-phy.yaml > new file mode 100644 > index 000000000000..cc9bbebe2bd7 > --- /dev/null > +++ b/Documentation/devicetree/bindings/phy/allwinner,sun50i-a100-usb-phy.yaml > @@ -0,0 +1,105 @@ > +# SPDX-License-Identifier: GPL-2.0 Dual license new bindings. checkpatch.pl will tell you which ones. > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/phy/allwinner,sun50i-a100-usb-phy.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Allwinner A100 USB PHY Device Tree Bindings > + > +maintainers: > + - Yangtao Li > + > +properties: > + "#phy-cells": > + const: 1 > + > + compatible: > + const: allwinner,sun50i-a100-usb-phy > + > + reg: > + items: > + - description: PHY Control registers > + - description: PHY PMU0 registers > + - description: PHY PMU1 registers > + > + reg-names: > + items: > + - const: phy_ctrl > + - const: pmu0 > + - const: pmu1 > + > + clocks: > + items: > + - description: USB OTG PHY bus clock > + - description: USB Host 0 PHY bus clock > + > + clock-names: > + items: > + - const: usb0_phy > + - const: usb1_phy > + > + resets: > + items: > + - description: USB OTG reset > + - description: USB Host 1 Controller reset > + > + reset-names: > + items: > + - const: usb0_reset > + - const: usb1_reset > + > + usb0_id_det-gpios: > + description: GPIO to the USB OTG ID pin Needs 'maxItems: 1' > + > + usb0_vbus_det-gpios: > + description: GPIO to the USB OTG VBUS detect pin > + > + usb0_vbus_power-supply: > + description: Power supply to detect the USB OTG VBUS > + > + usb0_vbus-supply: > + description: Regulator controlling USB OTG VBUS > + > + usb1_vbus-supply: > + description: Regulator controlling USB1 Host controller Are ID and VBus actually connected to the phy h/w? Really, all this should be in a USB connector node for which we have bindings. > + > +required: > + - "#phy-cells" > + - compatible > + - clocks > + - clock-names > + - reg > + - reg-names > + - resets > + - reset-names > + > +additionalProperties: false > + > +examples: > + - | > + #include > + #include > + #include > + > + phy@5100400 { > + #phy-cells = <1>; > + compatible = "allwinner,sun50i-a100-usb-phy"; > + reg = <0x05100400 0x14>, > + <0x05101800 0x4>, > + <0x05200800 0x4>; > + reg-names = "phy_ctrl", > + "pmu0", > + "pmu1"; > + clocks = <&ccu CLK_USB_PHY0>, > + <&ccu CLK_USB_PHY1>; > + clock-names = "usb0_phy", > + "usb1_phy"; > + resets = <&ccu RST_USB_PHY0>, > + <&ccu RST_USB_PHY1>; > + reset-names = "usb0_reset", > + "usb1_reset"; > + usb0_id_det-gpios = <&pio 7 10 GPIO_ACTIVE_HIGH>; /* PH10 */ > + usb0_vbus_power-supply = <&usb_power_supply>; > + usb0_vbus-supply = <®_drivevbus>; > + usb1_vbus-supply = <®_usb1_vbus>; > + }; > -- > 2.28.0 > From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9310DC388F9 for ; Wed, 11 Nov 2020 22:52:15 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 23E2820679 for ; Wed, 11 Nov 2020 22:52:15 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="ccvTtdMz" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 23E2820679 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=FXm1m3LP1pKZcRK3l9YAFvi30tca+A/Pt0RSCzq6I1o=; b=ccvTtdMzU7AyJ1rHEf6P8Podb 45ZkEQAP8cnx7Rtl+/t48Fb0G9XJrp7msTW/A1Uo5P4LMParBydd3u88VtPcD1FusVqjFxfMsNIIy ac4SJBIKwivGe60VQr/+H/MIccU7t59LurliVvzUqnmcabuomMsRWdde11bXQdACZDMYs43nArgLd 3GeZaHRnzoNQOQwtrwmuxjn2bhe5v9iVoCD3z6Yhr3HcGEvH5+Vv8hoEulrSL3RNPZOD2CtXlecpF lQu/N5pQFmmzy6mmo0wGDeSxiZijumBzzJA/5hlHUouggrlt3hImt9WJANQ6lDPQ4TeE2odnHZbAd YfwLHcFaA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kcywv-0001W0-2U; Wed, 11 Nov 2020 22:50:45 +0000 Received: from mail-ot1-f67.google.com ([209.85.210.67]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kcyws-0001VB-4c for linux-arm-kernel@lists.infradead.org; Wed, 11 Nov 2020 22:50:43 +0000 Received: by mail-ot1-f67.google.com with SMTP id a15so3761212otf.5 for ; Wed, 11 Nov 2020 14:50:42 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=oe8Trn0rh4GUI+osEdBmwuarl9l3QobQEYdZ1Nxtnys=; b=OHzeECw7WkRUOx6o/iDpHLJlkHiBanncjy7zHNmLjD4jYNun6clUksa8/K6klhBLfT KHj3Q0rdbuVEsGyA+4bJFJ0zHL5AKOgtQNAluD/+eBfJdO0bjw2uZJqMaMYUudj9mc03 dv5rvlgHwhHgoPGiEeHSIGhjR3/vVjJx+IJ8VxvGfHSlv+GbjmWqJqC+a23L12B8zu/L jsfXie4RpwVVkGKKlahHgUN+87EObGRdqqLbdly8z72uRwxVrI455LSdMDAbckUJAeiy 9omzfpl51AHvBdEitI1spsa9A9e3YxKlKmkioP9Cq2vdrXxjIKN/hDt8nphwAlz3Zg7/ 8TLw== X-Gm-Message-State: AOAM532qETfLC/YQ6uUfMhssNGT00yUjeNCd9papmrUquJ+jhzmUmc97 tj+5NbuGJLz7Rdfh4kDhtg== X-Google-Smtp-Source: ABdhPJySmi0OCWmbGuGKV0MBO/vl/T6YZudO7K0ZMEqS/69OE5D0SaQbbltnyj5oOkEcZlTcPN9YKQ== X-Received: by 2002:a9d:8d7:: with SMTP id 81mr19790315otf.345.1605135041695; Wed, 11 Nov 2020 14:50:41 -0800 (PST) Received: from xps15 (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id m10sm866796oon.27.2020.11.11.14.50.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Nov 2020 14:50:40 -0800 (PST) Received: (nullmailer pid 2190873 invoked by uid 1000); Wed, 11 Nov 2020 22:50:39 -0000 Date: Wed, 11 Nov 2020 16:50:39 -0600 From: Rob Herring To: Frank Lee Subject: Re: [RESEND PATCH 12/19] dt-bindings: Add bindings for USB phy on Allwinner A100 Message-ID: <20201111225039.GA2185181@bogus> References: <1ce71bac2732620f8fe77b23ca84e062385e7e8a.1604988979.git.frank@allwinnertech.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1ce71bac2732620f8fe77b23ca84e062385e7e8a.1604988979.git.frank@allwinnertech.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201111_175042_227372_0D1CADEF X-CRM114-Status: GOOD ( 20.01 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, tiny.windzz@gmail.com, linux-kernel@vger.kernel.org, Maxime Ripard , Kishon Vijay Abraham I , Vinod Koul , Chen-Yu Tsai , linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, Nov 10, 2020 at 02:39:42PM +0800, Frank Lee wrote: > From: Yangtao Li > > Add a device tree binding for the A100's USB PHY. > > Signed-off-by: Yangtao Li > --- > .../phy/allwinner,sun50i-a100-usb-phy.yaml | 105 ++++++++++++++++++ > 1 file changed, 105 insertions(+) > create mode 100644 Documentation/devicetree/bindings/phy/allwinner,sun50i-a100-usb-phy.yaml > > diff --git a/Documentation/devicetree/bindings/phy/allwinner,sun50i-a100-usb-phy.yaml b/Documentation/devicetree/bindings/phy/allwinner,sun50i-a100-usb-phy.yaml > new file mode 100644 > index 000000000000..cc9bbebe2bd7 > --- /dev/null > +++ b/Documentation/devicetree/bindings/phy/allwinner,sun50i-a100-usb-phy.yaml > @@ -0,0 +1,105 @@ > +# SPDX-License-Identifier: GPL-2.0 Dual license new bindings. checkpatch.pl will tell you which ones. > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/phy/allwinner,sun50i-a100-usb-phy.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Allwinner A100 USB PHY Device Tree Bindings > + > +maintainers: > + - Yangtao Li > + > +properties: > + "#phy-cells": > + const: 1 > + > + compatible: > + const: allwinner,sun50i-a100-usb-phy > + > + reg: > + items: > + - description: PHY Control registers > + - description: PHY PMU0 registers > + - description: PHY PMU1 registers > + > + reg-names: > + items: > + - const: phy_ctrl > + - const: pmu0 > + - const: pmu1 > + > + clocks: > + items: > + - description: USB OTG PHY bus clock > + - description: USB Host 0 PHY bus clock > + > + clock-names: > + items: > + - const: usb0_phy > + - const: usb1_phy > + > + resets: > + items: > + - description: USB OTG reset > + - description: USB Host 1 Controller reset > + > + reset-names: > + items: > + - const: usb0_reset > + - const: usb1_reset > + > + usb0_id_det-gpios: > + description: GPIO to the USB OTG ID pin Needs 'maxItems: 1' > + > + usb0_vbus_det-gpios: > + description: GPIO to the USB OTG VBUS detect pin > + > + usb0_vbus_power-supply: > + description: Power supply to detect the USB OTG VBUS > + > + usb0_vbus-supply: > + description: Regulator controlling USB OTG VBUS > + > + usb1_vbus-supply: > + description: Regulator controlling USB1 Host controller Are ID and VBus actually connected to the phy h/w? Really, all this should be in a USB connector node for which we have bindings. > + > +required: > + - "#phy-cells" > + - compatible > + - clocks > + - clock-names > + - reg > + - reg-names > + - resets > + - reset-names > + > +additionalProperties: false > + > +examples: > + - | > + #include > + #include > + #include > + > + phy@5100400 { > + #phy-cells = <1>; > + compatible = "allwinner,sun50i-a100-usb-phy"; > + reg = <0x05100400 0x14>, > + <0x05101800 0x4>, > + <0x05200800 0x4>; > + reg-names = "phy_ctrl", > + "pmu0", > + "pmu1"; > + clocks = <&ccu CLK_USB_PHY0>, > + <&ccu CLK_USB_PHY1>; > + clock-names = "usb0_phy", > + "usb1_phy"; > + resets = <&ccu RST_USB_PHY0>, > + <&ccu RST_USB_PHY1>; > + reset-names = "usb0_reset", > + "usb1_reset"; > + usb0_id_det-gpios = <&pio 7 10 GPIO_ACTIVE_HIGH>; /* PH10 */ > + usb0_vbus_power-supply = <&usb_power_supply>; > + usb0_vbus-supply = <®_drivevbus>; > + usb1_vbus-supply = <®_usb1_vbus>; > + }; > -- > 2.28.0 > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel