Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2041641rwb; Mon, 7 Nov 2022 08:29:59 -0800 (PST) X-Google-Smtp-Source: AMsMyM4GO5VzIkpYn0qrYhi4kCcz/LjkDzZHgmh+y2u8VHBbS1aKSl86BhjsEzbLYm7wTEPkxE71 X-Received: by 2002:a17:902:6bcc:b0:182:df88:e6c8 with SMTP id m12-20020a1709026bcc00b00182df88e6c8mr51537944plt.117.1667838598662; Mon, 07 Nov 2022 08:29:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667838598; cv=none; d=google.com; s=arc-20160816; b=o1BxuiQfOqLffUAh3Wo9dWafxyqZqAkwV0j3h3tQ9LtSuAW81TGylcpOlzVOBIvT3H 5TJB5sVwqcWuG9HpLqHP9OOXuiIf+UyodgQ146TWTqli04IrD9fd9fBGCAAdnI461CMb e5v3A+/btHpHofen1nFjB7sCbrYneh9Vt1aFvoFCYaCJN5lOPhtzdpko9thTsJRnn/HX 72QVuxuZ1JpKyBsVnCFy+zCydUlVP+rBBomznfwAiB64j/9DESDnOWma33OIuuFLAPBE o5HdE21+HRQaYrRMW2q6y0sxlLUK4O3NGGwGlfe1AFXd7cweypz+/Te3LaPYlHKocGZA /SlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=MB+1LtaQHqXhRDiT3KE/uX0PUwHmYCeNHAqsx+IYrt4=; b=YfZBywfCLosnPZdgsecJixWza9Xk1DK5V+viD+eYlaCJ+ivFNierA3mRG1zHfCQEB6 96h16C552scV0JkAcpjnkLjWSRKeOu57Z4ygvLY57re9/iWZr9ZsbbiZ3BlLM7j3CyE8 1tDe//KmBxv5u9D5YwuHRKnyOgcX5BCekxUEl9/PIYWsgfbFx26/9Jx9a6HbFPoKK2+I H416GTYg1kmMd5dFFZdey1kyWzDvyoVjoyR5gvfib8/G56o0RjB8cPMYSZDcslW69IDC vcoHtlJizwtLQ8wWti8yHEZlgLDBDW3p+2VV5GwK5ePpW0E9xqe0uN0FXi1QD15qxETG eckQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ls6-20020a17090b350600b00205e1caca43si14700765pjb.34.2022.11.07.08.29.46; Mon, 07 Nov 2022 08:29:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232792AbiKGPOb convert rfc822-to-8bit (ORCPT + 92 others); Mon, 7 Nov 2022 10:14:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55228 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232179AbiKGPO0 (ORCPT ); Mon, 7 Nov 2022 10:14:26 -0500 Received: from mail-qt1-f177.google.com (mail-qt1-f177.google.com [209.85.160.177]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A9BFC192A1; Mon, 7 Nov 2022 07:14:24 -0800 (PST) Received: by mail-qt1-f177.google.com with SMTP id a27so7002648qtw.10; Mon, 07 Nov 2022 07:14:24 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=UDCQsymOUHkvhEthEH/K4n29eCwFmJOVZ+/AnHagJl4=; b=DU3foriAFJt5mulZhMEpVRd6uDmFkdkEPPZukASvH+TaYW+W4eO+J0nr5LEHKxCuIA R75TF5agXTXtsqlOXdZzQZMDlIYPjNxKx3/lyZSVhaMF5xiUSewhQ9MC9dge0hfhNLif VWb/q0NXAXNEEgYJk/+Xhh3zi+U2OsdC87A4snsjo920MF+0e70c9K9EHhffuYwCWg0x ILjBcU71/kMKMftcYX0ssEKu7GfVSNav6wkXygf7Y1kT/e3jSxwoQ6pvAo0vze97i7Qw cMxurpTTrXiF/ki86fcD9mRxefGeqztzfvfQ1wkqHIgTZ1WOH5Sm5NkXmZbMtHGmDqHu gm3w== X-Gm-Message-State: ACrzQf0StRh/y8NlNlcp+FVYDSWY88C/Y97RJ5+8asMHFtZQ96ZQibNr gPg8MWFW0P2aRym5w7WNufsyYiHA7YjHfg== X-Received: by 2002:a05:622a:34e:b0:3a5:44b2:d9a3 with SMTP id r14-20020a05622a034e00b003a544b2d9a3mr22251627qtw.452.1667834063503; Mon, 07 Nov 2022 07:14:23 -0800 (PST) Received: from mail-yw1-f174.google.com (mail-yw1-f174.google.com. [209.85.128.174]) by smtp.gmail.com with ESMTPSA id y7-20020a05620a25c700b006ee7923c187sm7111816qko.42.2022.11.07.07.14.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 07 Nov 2022 07:14:22 -0800 (PST) Received: by mail-yw1-f174.google.com with SMTP id 00721157ae682-3691e040abaso107091127b3.9; Mon, 07 Nov 2022 07:14:21 -0800 (PST) X-Received: by 2002:a81:9c49:0:b0:34a:de:97b8 with SMTP id n9-20020a819c49000000b0034a00de97b8mr47671682ywa.384.1667834061609; Mon, 07 Nov 2022 07:14:21 -0800 (PST) MIME-Version: 1.0 References: <20221107135825.583877-1-herve.codina@bootlin.com> <20221107135825.583877-3-herve.codina@bootlin.com> In-Reply-To: <20221107135825.583877-3-herve.codina@bootlin.com> From: Geert Uytterhoeven Date: Mon, 7 Nov 2022 16:14:10 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 2/7] dt-bindings: clock: renesas,r9a06g032-sysctrl: Add h2mode property To: Herve Codina Cc: Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Greg Kroah-Hartman , Magnus Damm , Gareth Williams , linux-renesas-soc@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Thomas Petazzoni , Miquel Raynal Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS autolearn=no 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 Hi Hervé, On Mon, Nov 7, 2022 at 2:59 PM Herve Codina wrote: > Add the h2mode property to force the USBs mode ie: > - 2 hosts > or > - 1 host and 1 device > > Signed-off-by: Herve Codina Thanks for your patch! > --- a/Documentation/devicetree/bindings/clock/renesas,r9a06g032-sysctrl.yaml > +++ b/Documentation/devicetree/bindings/clock/renesas,r9a06g032-sysctrl.yaml > @@ -39,6 +39,16 @@ properties: > '#power-domain-cells': > const: 0 > > + renesas,h2mode: > + description: | > + Configure the USBs mode. > + - <0> : the USBs are in 1 host and 1 device mode. > + - <1> : the USBs are in 2 host mode. > + If the property is not present, the value used is the one already present > + in the CFG_USB register (from reset or set by the bootloader). > + $ref: /schemas/types.yaml#/definitions/uint32 > + enum: [0, 1] > + > '#address-cells': > const: 1 While the H2MODE register bit is indeed located in the sysctrl's address space, and handling it here makes it simpler for the drivers (especially w.r.t. the default handling), this is really a property of the switchable usbh/f core... Perhaps it can be moved there? Or not? Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds