Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp1513134rdb; Mon, 2 Oct 2023 11:50:59 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHzuPHCJTp3o/JviAYQfZMDebVsIBkHzEhPClpKhlr7703OjaCoTQpp1BwWaJ43lppEPAZ5 X-Received: by 2002:a9d:7c83:0:b0:6b9:b0f6:eab8 with SMTP id q3-20020a9d7c83000000b006b9b0f6eab8mr13580668otn.5.1696272659418; Mon, 02 Oct 2023 11:50:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696272659; cv=none; d=google.com; s=arc-20160816; b=baO/EW3baGmINcC9RFsnANdOHJni6C+PztPlSlD3tdxCk5RGTzJdIfSc3Rd1TWZsnO 2c7F2ZaHPVC5jpG2dPd04cEFHwHvgqOwN4k8vVSYqTbu5m0wqL11EQhb37yRSFr4FwC9 BgfQY3h6rw3TlrmTslJ5wKo2lK900yURPs8xkP9hhZApckw9D9bp6cRYT8j/7yEmk++f tqQmhoY1ZU4InnRG4jvTVV3F/CNzYUDp3YZm8j3DF5HvtHddvOKTHRcm9b4Qw9BmzE60 VBKumfZnjS63ndxGqSwRK07x1wJdzamAHrOncPfuHPAA3efkFMc0Cpz0cEXfEAOP2xXW w21A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=VTzn0VZxPe2ZlmQyYeU7fBFWSnbGBhH+/9ECuquytSU=; fh=v/peuotf0+ufQPuv3z4j4QeOIyybTpzFgvGkJNx2yak=; b=GtlNiB7wlHJXXQgTEiymkJjBvhS+inaZuxuJjdfo5QRYbr3pBrnLO2t9+cX5XfDCOf KTG8TCQXvkTU4wFm6dyEORFm8i2WKb/2vWWEwpkuVoqP+tcxE3vZ+BSLzyUyDZWre4AF 6n74PI0PDYRjJEPA0GVi6bheKcs5ldWLhfLl7uXAMuiS7a3kayUMMhBE15LyDiY0tjyQ 1/4e8eROBXpHMY5pcokTztbEOfPwsyjlBfh91/7ZxY2cDMfyqQMf8uLoUDVWi3rybJyy egwqBadHbVvTMI47wWEfHRxQH1JNV7R1D9nJKvVsB9dtN1Rz6jaZxv0PAQnOYLzO+uBr GBzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Oe7AKrsw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id az1-20020a056a02004100b0057745d87b53si28424606pgb.686.2023.10.02.11.50.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Oct 2023 11:50:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Oe7AKrsw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 917A7802CFA9; Mon, 2 Oct 2023 10:00:43 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238603AbjJBRAg (ORCPT + 99 others); Mon, 2 Oct 2023 13:00:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35386 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238598AbjJBRAd (ORCPT ); Mon, 2 Oct 2023 13:00:33 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E78CD9 for ; Mon, 2 Oct 2023 10:00:28 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B4EA1C433C8; Mon, 2 Oct 2023 17:00:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696266028; bh=3UbyqZIFaU6RJC2KOuQvJj8u1FhIUKRifoIKRVKlW9k=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Oe7AKrswQVKt5UlDiKVSxuiRD2QnAnHROWGMNBPHHdFj6b3rzg71vcTho3JhcVpsJ EQj/R+RDo3YeYG/I7SMUvMI/WkfXl5pDsWO40OyzoWY6AJnkW8/4cMYv9qbyq/Ly9/ /EyvByBCPqTrQ1iVbv0oUG1vE4Hv0vUVoDglY5NZne5XaIz8YUJfClfz8caBlHvTZy 4poorrJtt3NdkTsnEWCDrdYShiBq+NmrlbiPJBnXPuDAQLKGbSeF9u/xTf4pGvS7C1 wQKOoVsi6SfgJcOtpmUBrY5LbynOLWobJ1JIF2gZkbJ2ABeR8YREvJlCr0vqcuYii3 KYCpwq72VoR8g== Received: (nullmailer pid 1934730 invoked by uid 1000); Mon, 02 Oct 2023 17:00:25 -0000 Date: Mon, 2 Oct 2023 12:00:25 -0500 From: Rob Herring To: Piyush Mehta Cc: gregkh@linuxfoundation.org, michal.simek@amd.com, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, peter.chen@kernel.org, linus.walleij@linaro.org, paul@crapouillou.net, arnd@arndb.de, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, git@amd.com Subject: Re: [RFC PATCH 1/3] dt-binding: usb: ulpi-phy: add ulpi-phy binding Message-ID: <20231002170025.GA1928031-robh@kernel.org> References: <20230929064852.16642-1-piyush.mehta@amd.com> <20230929064852.16642-2-piyush.mehta@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230929064852.16642-2-piyush.mehta@amd.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Mon, 02 Oct 2023 10:00:43 -0700 (PDT) On Fri, Sep 29, 2023 at 12:18:50PM +0530, Piyush Mehta wrote: > Create an ulpi-phy binding to read and write PHY registers with explicit > control of the address and data using the usb.VIEWPORT register. > > Signed-off-by: Piyush Mehta > --- > This binding patch was created to support generic platforms. This binding > will be modified in accordance with patch [3/3] procedures. One of the > approch may be Create a zynq phy platform driver in "driver/usb/phy" with > driver source "phy-ulpi-zynq-usb.c" and then the binding will be particular > to the Xilinx/AMD zynq platform. > > This binding was built with the Zynq hardware design example in consideration > of as a generic platform. The viewport provide access the Chipidea controller > to interface with the ULPI PHY. > --- > .../devicetree/bindings/usb/ulpi-phy.yaml | 48 +++++++++++++++++++ > 1 file changed, 48 insertions(+) > create mode 100644 Documentation/devicetree/bindings/usb/ulpi-phy.yaml > > diff --git a/Documentation/devicetree/bindings/usb/ulpi-phy.yaml b/Documentation/devicetree/bindings/usb/ulpi-phy.yaml > new file mode 100644 > index 000000000000..490b2f610129 > --- /dev/null > +++ b/Documentation/devicetree/bindings/usb/ulpi-phy.yaml > @@ -0,0 +1,48 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/usb/ulpi-phy.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: ULPI PHY- Generic platform > + > +maintainers: > + - Piyush Mehta > + > +properties: > + compatible: > + const: ulpi-phy > + > + reg: > + maxItems: 1 > + > + '#phy-cells': > + const: 0 > + > + external-drv-vbus: > + description: > + If present, configure ulpi-phy external supply to drive 5V on VBus. > + type: boolean > + > + view-port: > + $ref: /schemas/types.yaml#/definitions/uint32 > + description: > + Address to read and write PHY registers with explicit control of > + the address and data using the usb.VIEWPORT register. > + > +required: > + - compatible > + - reg > + - view-port > + > +additionalProperties: false > + > +examples: > + - | > + phy0@e0002000 { > + compatible = "ulpi-phy"; > + #phy-cells = <0x00>; > + reg = <0xe0002000 0x1000>; > + view-port = <0x170>; I don't understand. Do you have an MMIO address and the VIEWPORT address to the PHY? You need both? There's already a defined binding for ULPI bus: Documentation/devicetree/bindings/usb/ulpi.txt Why can't you use/expand that? Rob