From patchwork Mon Nov 14 11:15:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Herve Codina X-Patchwork-Id: 19712 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2088065wru; Mon, 14 Nov 2022 03:20:19 -0800 (PST) X-Google-Smtp-Source: AA0mqf6ZFk7pzFwRmrCKArPL/ugopXetN+lkkN6KszF1yIEpVwijjZfxDRCTIvpVwisByr+GLWX9 X-Received: by 2002:a05:6402:d51:b0:462:3340:758f with SMTP id ec17-20020a0564020d5100b004623340758fmr11098889edb.37.1668424818885; Mon, 14 Nov 2022 03:20:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668424818; cv=none; d=google.com; s=arc-20160816; b=gcZ/DgkFoqrKs5WTE9uk3Z8YqJ4TXehCQ5/jU9yyR+9wJrRHWKgzZynUlmkDYiSlze sKS4e2IRBQ8skDcI09AOBni3ZPv54VFaMZdXMzLwMTau+cQM2SzlD76lkm4So3S53Zjz 2TdFbPxWtuSzPvW9M7MO2SfohfikHST9r28KtCO1I0A3c1b8p2yjGeoc8laJqfxOVYr5 yurt4F/remKohXHYG+FQD4N/raYadbabu7xH5XBfxyeuVhZcE0/BOya6eW5sBYeqMpuz X7QyI4rvMPnMNCcgycsbxQpKMIoDLrnxlAdWoNbKoo6E66rHg5gephUFI2jy6pFMy45z WL2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=rIVbSyIZp3imXtExKvo6Q6tMSTGJpwHSvojy2YkLNKY=; b=wEZBngdojUKX/MKBsPSMBtdnhiLShJXlurfo7NdMgD/kSiwl+s4bBheoAfCmtYkmss 0x0bZsGJbx4ReXnB0gHBA/Zuz5B20xZiSLIc9XVGdbfUWACcQ5/8bxp1DQMwat67veqz LM5f5XwXy5RaXCITTVi/WPcqWp/o7F11FYzH0TDGOo/rTBu9ouZE6Va/amO587eSB0V1 r7osuTnKLcy6SXZ17jYlK/d/L8I+AhzuaNK7/45DM5z++Aqxb1sgxt6J2qJa/0kaCAYR So+XnrSYnesXcXvS7ISgF136KTq6MrmlqCRmed32zoIoQENJlpKkfag1z6i8tfn9skqc WRqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=oK5Tgccp; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dp16-20020a170906c15000b007adbeb3798asi7842603ejc.482.2022.11.14.03.19.55; Mon, 14 Nov 2022 03:20:18 -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; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=oK5Tgccp; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235826AbiKNLTV (ORCPT + 99 others); Mon, 14 Nov 2022 06:19:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236986AbiKNLRa (ORCPT ); Mon, 14 Nov 2022 06:17:30 -0500 Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A70E21264; Mon, 14 Nov 2022 03:15:31 -0800 (PST) Received: (Authenticated sender: herve.codina@bootlin.com) by mail.gandi.net (Postfix) with ESMTPA id 65E936000D; Mon, 14 Nov 2022 11:15:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1668424530; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=rIVbSyIZp3imXtExKvo6Q6tMSTGJpwHSvojy2YkLNKY=; b=oK5TgccplQbeUnRe5w0VER8tpOM+JeVb7gYR9spS/2E+xBFr96Bvr4+5xjqDTDe6LnN7l0 mkozKP6IFSmHc5JZV/8up090HkHIEZJedIryDPj+m/MX9/sXNkh3mlUuZjZKXbMkuUa7vv P0XoE/j7O8i24EdplurCC9RlRsI22/z55z7Easx8g6+nB7YKNsfZRbFEys7Z5OA2jgvfvR DdpVOoR+YZOtd9ZsdHYXPLHtelIiCeNVtqDQfpYR5qiOvOq/WsZVcu8dQz8mtN/s3DOTNJ b4ciRmoCNBOwmp8YlVAhjGaW/MqEpaaR8bjVoYw5kKKk/7rQJwQ4lmnYONPxEw== From: Herve Codina To: Geert Uytterhoeven , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Herve Codina , Greg Kroah-Hartman , Magnus Damm , Gareth Williams Cc: 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 Subject: [PATCH v2 2/7] dt-bindings: clock: renesas,r9a06g032-sysctrl: Add h2mode property Date: Mon, 14 Nov 2022 12:15:08 +0100 Message-Id: <20221114111513.1436165-3-herve.codina@bootlin.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221114111513.1436165-1-herve.codina@bootlin.com> References: <20221114111513.1436165-1-herve.codina@bootlin.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749470222851339768?= X-GMAIL-MSGID: =?utf-8?q?1749470222851339768?= Add the h2mode property to force the USBs mode ie: - 2 hosts or - 1 host and 1 device Signed-off-by: Herve Codina Reviewed-by: Geert Uytterhoeven --- .../bindings/clock/renesas,r9a06g032-sysctrl.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Documentation/devicetree/bindings/clock/renesas,r9a06g032-sysctrl.yaml b/Documentation/devicetree/bindings/clock/renesas,r9a06g032-sysctrl.yaml index 95bf485c6cec..f9e0a58aa4fb 100644 --- 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