Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp197824pxv; Thu, 15 Jul 2021 02:10:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx8SyecaVCHOxlIp4CjH0h++z7THZCikXa8la9/52u4Rk5cCr0p8GMB24kzGx7rPR2AhNnD X-Received: by 2002:a5d:8888:: with SMTP id d8mr2465720ioo.170.1626340224527; Thu, 15 Jul 2021 02:10:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626340224; cv=none; d=google.com; s=arc-20160816; b=QE8OqA69g+y7guH/4ncPmUjCOOBfXLdyFCQTpqfJ8VG12eSljdm1ds1QF++sY1MrB3 t2Bauzc7fv60NL3aW8TypaWQ8LzEYhVXWVppEiqCPNVnIS17MrTHeWLPkMKi/hZK80ob bLeDxqJ8SoQVhWQ/qLCtPwQTsJgRl1WdB29uW1QmG7VMwl4Pvc9nNQj7NEC715oJMrzJ Ahhznk3xwxGIyVWHiJ7/Q8b55pfyrPt310jUtz0VJib4uM9Wx43KoMrDcYR/2IjSLyZu CtucmA60BFnbU5Dv+DcF/VevL2VzpqjT5FH3IJeBE6EURdDZcB+EYrzrgLvjDwKH5KTB jW2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=kSV3C4ZUsk5wzPXh6o/c9Nmr7OfiOur2+Wz9NCWnPN4=; b=bAxrXKCDZsLYrOMKp/DqbRAD2/TAU3KBUMOkoKH999xZ/fU3uYfrKlARQvvwvhOZPg Tyvk0CZHddRrd8kWEtNFTta6QYOsMoj7vmyYM0aS9eorObmHk4YgDyVgcQRBb5j37PiS jbVaTToKPwX9QKwcV+2oZbMatlQ2vafz9asrEtCRlQavenu8J9UXPs7+aPJRbjyCB59k pb4g+EgcG9ArAWtZaonZ2zfg59PV+zSwFwWiK/FEsSnKTdTctWxb0RUfUn6ophiekMio nAHdsCeH2edOjwY1mlQvHv7ffNh4Mu2PNPyj/qNmr/duEE/6AluyPlGB94+B5fPjgXHw IuHA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c18si6533637iod.12.2021.07.15.02.10.10; Thu, 15 Jul 2021 02:10:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240887AbhGOJLV (ORCPT + 99 others); Thu, 15 Jul 2021 05:11:21 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:39846 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S240811AbhGOJLM (ORCPT ); Thu, 15 Jul 2021 05:11:12 -0400 X-UUID: 02198b48fa0e46dfaad654d02069c5e3-20210715 X-UUID: 02198b48fa0e46dfaad654d02069c5e3-20210715 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 2082326475; Thu, 15 Jul 2021 17:08:14 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs05n1.mediatek.inc (172.21.101.15) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 15 Jul 2021 17:08:13 +0800 Received: from localhost.localdomain (10.17.3.153) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 15 Jul 2021 17:08:12 +0800 From: Chunfeng Yun To: Greg Kroah-Hartman , Rob Herring , Felipe Balbi CC: Chunfeng Yun , Matthias Brugger , Thinh Nguyen , , , , , , Yuwen Ng , Eddie Hung Subject: [PATCH v3 02/13] dt-bindings: usb: mtu3: add optional property to disable usb2 ports Date: Thu, 15 Jul 2021 17:07:47 +0800 Message-ID: <1626340078-29111-3-git-send-email-chunfeng.yun@mediatek.com> X-Mailer: git-send-email 1.8.1.1.dirty In-Reply-To: <1626340078-29111-1-git-send-email-chunfeng.yun@mediatek.com> References: <1626340078-29111-1-git-send-email-chunfeng.yun@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add support to disable specific usb2 host ports, it's useful when a usb2 port is disabled on some platforms, but enabled on others for the same SoC, another case is that the different package may support different number of ports. Signed-off-by: Chunfeng Yun --- Due to there is property 'mediatek,u3p-dis-msk', prefer to use a similar name for the similar opertions, not spell out 'mask' as suggested by Rob. v2~3: no changes --- Documentation/devicetree/bindings/usb/mediatek,mtu3.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/usb/mediatek,mtu3.yaml b/Documentation/devicetree/bindings/usb/mediatek,mtu3.yaml index 2cac7a87ce36..3e6f2750f48d 100644 --- a/Documentation/devicetree/bindings/usb/mediatek,mtu3.yaml +++ b/Documentation/devicetree/bindings/usb/mediatek,mtu3.yaml @@ -166,6 +166,12 @@ properties: description: The mask to disable u3ports, bit0 for u3port0, bit1 for u3port1, ... etc + mediatek,u2p-dis-msk: + $ref: /schemas/types.yaml#/definitions/uint32 + description: The mask to disable u2ports, bit0 for u2port0, + bit1 for u2port1, ... etc; but can't disable u2port0 if dual role mode + is enabled, so will be skipped in this case. + # Required child node when support dual-role patternProperties: "^usb@[0-9a-f]+$": -- 2.18.0