From patchwork Tue Dec 6 05:52:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Icenowy Zheng X-Patchwork-Id: 30088 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2649222wrr; Mon, 5 Dec 2022 21:54:19 -0800 (PST) X-Google-Smtp-Source: AA0mqf5AdfvKjxTyglRRAi5fgXMBLO7ihvkIuMHsLMLtvCKGITj0S4RcGFE6NF5O5p5uBDoFhP5z X-Received: by 2002:a17:90b:3d83:b0:219:e761:9604 with SMTP id pq3-20020a17090b3d8300b00219e7619604mr5403568pjb.85.1670306059581; Mon, 05 Dec 2022 21:54:19 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1670306059; cv=pass; d=google.com; s=arc-20160816; b=BVDxkqwg9k7fGgurPzGHJdaitInqbXP37NxHK34DgEzlDB6homlueJ47eeSaIP3887 v0Du3QZSRNHz3TvcLevy8AhbrzMvsOANxALOhTodieJjGcNKeawKwFCiU3DUEEb0vCib KeWw+ewsBCdJTOsz/q0VpH2oaW5kzrbZZURT1SAwkuQs/XzuWzxUG730Gop9gWliDi4T d21OZAr/rFIOtqUPhdicuwJrAJuzXA/IASdvcyDV50eLwHeigB6QDqz5buEOr6Irm0p/ hXIAl7kSfeg4WWigXXuEJM1P7/OHJekl3lDvwsrmZ2BJlXhCgjafeE3DNLr/3b3WEerx 3sYQ== ARC-Message-Signature: i=2; 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=Nf6OciPn+Q4SzoDCtvn0OwyYqpJMxtrBoYZGMDOSbGM=; b=I72s5S9ijNBBA6/ssFI/ug5uE/xbpRHqLIFgst/hrFrbiSQnUkJKMWkjI+JUqDfa3H zDrccI1AZRVkpAhkfgdK/oLDcpJ1N3OiRrHxdFVIui+JMseAQ2A753BmvTpoRUvqDSgl yiyjU48E2omAg+rCzvP+lqNIDx35MN/2FKyBQWZoWpksIFwaU3LwMPpr/XUCTeXtbIRX 3gPm/dQndsXmBmLOy5PqIHEjqm9fVEZ7fXmk9vkvC2stbWY5NfPZTKaHucDkRyV7OEPk /1Lka8usz9FrbrZNDG7Gso8DwLizlK/+mr85LP1E1BssBCfhAYcN+oOM41xi8TqfNklW WB5A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@icenowy.me header.s=zmail header.b=Rv3X3GIu; arc=pass (i=1 spf=pass spfdomain=icenowy.me dkim=pass dkdomain=icenowy.me dmarc=pass fromdomain=icenowy.me>); 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m10-20020a170902bb8a00b0018919169bc4si15289080pls.430.2022.12.05.21.54.06; Mon, 05 Dec 2022 21:54:19 -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=@icenowy.me header.s=zmail header.b=Rv3X3GIu; arc=pass (i=1 spf=pass spfdomain=icenowy.me dkim=pass dkdomain=icenowy.me dmarc=pass fromdomain=icenowy.me>); 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 S233247AbiLFFxQ (ORCPT + 99 others); Tue, 6 Dec 2022 00:53:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38668 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233037AbiLFFxJ (ORCPT ); Tue, 6 Dec 2022 00:53:09 -0500 Received: from sender4-op-o16.zoho.com (sender4-op-o16.zoho.com [136.143.188.16]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F2454264BD; Mon, 5 Dec 2022 21:53:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670305971; cv=none; d=zohomail.com; s=zohoarc; b=LgPrIMdu1a2HDm75QSpHI+g0IFbzDjqdeNcvlB3ewsmW7GHNL8gNquWbktLdy3z9b2740NcHSd+ghxiOwmC8N7f9Jnj0Nff8bN933QGOGxwiMWam+JJOackGlLHvISkQGchpPMhRb4gYJLcA09iRLkmlyaC24EuWYTM+7aGiLCE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1670305971; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=Nf6OciPn+Q4SzoDCtvn0OwyYqpJMxtrBoYZGMDOSbGM=; b=dHzyVqxqNP8ZoKMLWhjmjtqE/7rMtjfSiJ/V634LIh3DXxPt4sJxs7K4mwJbkpi59bR7/XvgBzw4smEWmyh9sd2aE+v2nK/OQQqsRKOO36E8gYVUsUyYRoVSlnVupsOJNZhug4njN6IFZEf+ffDqwBOUCXvlAYdYRpLQ5JDPGbE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=icenowy.me; spf=pass smtp.mailfrom=uwu@icenowy.me; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1670305971; s=zmail; d=icenowy.me; i=uwu@icenowy.me; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-Id:Message-Id:In-Reply-To:References:MIME-Version:Content-Transfer-Encoding:Reply-To; bh=Nf6OciPn+Q4SzoDCtvn0OwyYqpJMxtrBoYZGMDOSbGM=; b=Rv3X3GIuvfOJCo1ZvjgwIoY3NPnFcejwyHTKF0MlPPzkYQS53n2TGwEH5u7wzgdo ofziV1xyUQDfCUoOTSHhQN+/O7e5Yogk5nXFN/u8qlwkFNzlz0Nlthq66pJQ9CzkZDo j+dbiUzjMKEVMyMhDwyTbbsJE1sT7XUpCERM04ys= Received: from edelgard.fodlan.icenowy.me (120.85.99.143 [120.85.99.143]) by mx.zohomail.com with SMTPS id 167030597083732.965150430843664; Mon, 5 Dec 2022 21:52:50 -0800 (PST) From: Icenowy Zheng To: Rob Herring , Krzysztof Kozlowski , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Greg Kroah-Hartman , Matthias Kaehlcke , Andre Przywara Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Icenowy Zheng , Krzysztof Kozlowski Subject: [PATCH v3 1/6] dt-bindings: vendor-prefixes: add Genesys Logic Date: Tue, 6 Dec 2022 13:52:23 +0800 Message-Id: <20221206055228.306074-2-uwu@icenowy.me> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221206055228.306074-1-uwu@icenowy.me> References: <20221206055228.306074-1-uwu@icenowy.me> MIME-Version: 1.0 X-ZohoMailClient: External X-Spam-Status: No, score=-0.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,URIBL_BLACK 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751442846721653436?= X-GMAIL-MSGID: =?utf-8?q?1751442846721653436?= Genesys Logic, Inc. is a manufacturer for interface chips, especially USB hubs. https://www.genesyslogic.com.tw/ Signed-off-by: Icenowy Zheng Acked-by: Krzysztof Kozlowski --- No changes in v3. Changes in v2: - Add Krzysztof's ACK. Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-prefixes.yaml index 10c178d97b02..00493b962bd7 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml @@ -494,6 +494,8 @@ patternProperties: description: GE Fanuc Intelligent Platforms Embedded Systems, Inc. "^gemei,.*": description: Gemei Digital Technology Co., Ltd. + "^genesys,.*": + description: Genesys Logic, Inc. "^geniatech,.*": description: Geniatech, Inc. "^giantec,.*": From patchwork Tue Dec 6 05:52:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Icenowy Zheng X-Patchwork-Id: 30089 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2649243wrr; Mon, 5 Dec 2022 21:54:23 -0800 (PST) X-Google-Smtp-Source: AA0mqf7v3JQF73b01pBQfGPCARKDGYJX3RRKxTFsbJsitKRKbB3Y0h9ALKO3VfqQpyIkXdfrRW2k X-Received: by 2002:a17:902:8604:b0:186:fe2d:f3cb with SMTP id f4-20020a170902860400b00186fe2df3cbmr71633350plo.132.1670306063135; Mon, 05 Dec 2022 21:54:23 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1670306063; cv=pass; d=google.com; s=arc-20160816; b=zN7QrnBgZO9mvxCvWiIkvX8NZrhONP8RYUiz1x4jGvNzXPQR/KmPtP1Rrrk/XrCFUh U0ZRJ22ckzbM+bA4+cx+xorkDlHT2sSAyAOXTvUrKN6kOJAtgZE/4eARalMHUp0iW7we MSE3CL/vVQ1k24QPjNzdXuV9mtW7ybzZXAi7LiI8x1HUzyUxjyUl4DQHlwrnRS14wCHy ElUVGD2nIOtOf7++ZwFaW0CfTbcv9gdqkv7+Y855oM8c1BrQ3K+XISs5j2N9dW8mNvC+ B7ZbvaNSbRpIoHg296Ez4S4kIzvb1Dvvi3Nf84E+ztEq7flhWEYGnYf3AzQVs/PUK/rE /mwQ== ARC-Message-Signature: i=2; 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=BuIw4xDgq4VV/tg/CyfdQWLefl/clo1mTq+M3vk5PqY=; b=xZ7gLTq7ZhdSM14ac8Gt2/A9nXopvn0GvAMN6YAglCaoYpYXnWhZVR1F3bvnqDNUHR +JPE/VV3npc606dGu+zjVYxlCh44BMiO9+gtH4SJ2HIAa6hM5TprUUoPIsy5NLQY8iCf Q29tfUbm/1UHhq0bZB7S13ftBJFPcOdgFuBfbZMDPRBQb0iTnbUiKgB6CKcpPLBlnWBF V/qwT6T8IDaktQ/Lzak5NZ/s1otcEaD1dlKprRz4ofWr0YaIpVShEpMxd6zDonJS8chA YUzaWjt3xfR50pF66IGa7xFK3fKKcYyiOIt+mn5OtsmzgUBRP5jibnItbfsb8sAKX7lE dVYQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@icenowy.me header.s=zmail header.b=LOWNcfXr; arc=pass (i=1 spf=pass spfdomain=icenowy.me dkim=pass dkdomain=icenowy.me dmarc=pass fromdomain=icenowy.me>); 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f64-20020a636a43000000b00461b7568ad2si14327560pgc.527.2022.12.05.21.54.09; Mon, 05 Dec 2022 21:54:23 -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=@icenowy.me header.s=zmail header.b=LOWNcfXr; arc=pass (i=1 spf=pass spfdomain=icenowy.me dkim=pass dkdomain=icenowy.me dmarc=pass fromdomain=icenowy.me>); 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 S230182AbiLFFxf (ORCPT + 99 others); Tue, 6 Dec 2022 00:53:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233443AbiLFFxa (ORCPT ); Tue, 6 Dec 2022 00:53:30 -0500 Received: from sender4-op-o16.zoho.com (sender4-op-o16.zoho.com [136.143.188.16]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A7C626AD2; Mon, 5 Dec 2022 21:53:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670305995; cv=none; d=zohomail.com; s=zohoarc; b=IXR+/KxxXp9HGmlxDhlYiIY7RdIlDRqki80PPtRNA2DhfRCHGHSOpPQBPlAslwJ6rtkZQuTuyk1Nd9nObvlAjmmddKzf84hJ7v9vztEYUG16oy4/fpPJvDZa1jOPZfPt3yokeIsbKEhuGnWoynpJIdocxsxRmr+VNq/mSxmmiho= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1670305995; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=BuIw4xDgq4VV/tg/CyfdQWLefl/clo1mTq+M3vk5PqY=; b=jyL6ZUdo3zlWA8k11LtSRvoH2AQK2y0eQtysyl4cFpnkR+zmuNx5TqFZ9sRZfEUO1+ZBeLrA0yp7sT0A6pKzHHh3ZC0ahkiC3TkRUCBbB7esP0+4vVRbDhr9PNrLrhepoWqjrtvfW1bPMGBuzo6bncVvRgP3Plu9fa7r3B4dDXc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=icenowy.me; spf=pass smtp.mailfrom=uwu@icenowy.me; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1670305995; s=zmail; d=icenowy.me; i=uwu@icenowy.me; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-Id:Message-Id:In-Reply-To:References:MIME-Version:Content-Transfer-Encoding:Reply-To; bh=BuIw4xDgq4VV/tg/CyfdQWLefl/clo1mTq+M3vk5PqY=; b=LOWNcfXrbnfUjGAeWSk6wCdxWeK52iK5u2oc34nP+iNuhlBe3nZxoWT1oA6MRc0i RXtMZ7rW0mTbqusodtyOZKu5ft9W8HNI/dnZrOZijVLTQHzXJyNApAnhz83LpVpqwqQ rCuJI2dsuqNVbZId3GMqtTONAlFY+YciwdOy+GP8= Received: from edelgard.fodlan.icenowy.me (120.85.99.143 [120.85.99.143]) by mx.zohomail.com with SMTPS id 1670305993579283.89111808030043; Mon, 5 Dec 2022 21:53:13 -0800 (PST) From: Icenowy Zheng To: Rob Herring , Krzysztof Kozlowski , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Greg Kroah-Hartman , Matthias Kaehlcke , Andre Przywara Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Icenowy Zheng Subject: [PATCH v3 2/6] dt-bindings: usb: Add binding for Genesys Logic GL850G hub controller Date: Tue, 6 Dec 2022 13:52:24 +0800 Message-Id: <20221206055228.306074-3-uwu@icenowy.me> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221206055228.306074-1-uwu@icenowy.me> References: <20221206055228.306074-1-uwu@icenowy.me> MIME-Version: 1.0 X-ZohoMailClient: External X-Spam-Status: No, score=-0.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,URIBL_BLACK 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751442850484634811?= X-GMAIL-MSGID: =?utf-8?q?1751442850484634811?= The Genesys Logic GL850G is a USB 2.0 Single TT hub controller that features 4 downstream ports, an internal 5V-to-3.3V LDO regulator (can be bypassed) and an external reset pin. Add a device tree binding for its USB protocol part. The internal LDO is not covered by this and can just be modelled as a fixed regulator. Signed-off-by: Icenowy Zheng Reviewed-by: Krzysztof Kozlowski Reviewed-by: Krzysztof Kozlowski --- Changes in v3: - Re-introduce GPIO flags. Changes in v2: - Misc fixes suggested by Krzysztof, including property descriptions, single-item "items" and fixing the example's gpio property. - Fixed $id. .../bindings/usb/genesys,gl850g.yaml | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/genesys,gl850g.yaml diff --git a/Documentation/devicetree/bindings/usb/genesys,gl850g.yaml b/Documentation/devicetree/bindings/usb/genesys,gl850g.yaml new file mode 100644 index 000000000000..a9f831448cca --- /dev/null +++ b/Documentation/devicetree/bindings/usb/genesys,gl850g.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/genesys,gl850g.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Genesys Logic GL850G USB 2.0 hub controller + +maintainers: + - Icenowy Zheng + +allOf: + - $ref: usb-device.yaml# + +properties: + compatible: + enum: + - usb5e3,608 + + reg: true + + reset-gpios: + description: GPIO controlling the RESET# pin. + + vdd-supply: + description: + the regulator that provides 3.3V core power to the hub. + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + #include + usb { + dr_mode = "host"; + #address-cells = <1>; + #size-cells = <0>; + + hub: hub@1 { + compatible = "usb5e3,608"; + reg = <1>; + reset-gpios = <&pio 7 2 GPIO_ACTIVE_LOW>; + }; + }; From patchwork Tue Dec 6 05:52:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Icenowy Zheng X-Patchwork-Id: 30090 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2649304wrr; Mon, 5 Dec 2022 21:54:33 -0800 (PST) X-Google-Smtp-Source: AA0mqf7PbaslwVzX8cV0r/Z5Y+Wnc1SjIHEjSwYbgEcFB5hxI3Pc5U9D0fGqXvwhoC77r2NGKtN4 X-Received: by 2002:a17:902:ce90:b0:186:ab02:664c with SMTP id f16-20020a170902ce9000b00186ab02664cmr69793903plg.49.1670306072780; Mon, 05 Dec 2022 21:54:32 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1670306072; cv=pass; d=google.com; s=arc-20160816; b=XPV7bp6YC6+t8LyznYXKqJ3rVi6XVEjn1rs2NU5mH9bF0Q1LqRo7X3q2F4xNFNAvfQ lx6mZMRYn1yRcxPnK83v52FFvA/IIDQqaXTL2A6U+9x0hM9nnxbidXP+apBynnWyFKiT zhpiDyQ89S4NX8f6/b9J5DZCPb1UgeApBGqKpHxTchGfyYvXOzw/MmWlWJ/SfXGAWg4F NAiA21st7OFefFAtwWMBR/h5/vAFAWNcJNfOCNZ0jjU9mpfeMuW/bzaSgSIpJmY1YlXK oDxaUyGo/LUpG+5IHSj025AkCecZil/3d4GOEdx6KOwgzs9roMjAVrSaf1xLvAO23rzb oVcw== ARC-Message-Signature: i=2; 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=sHOF3TnzHZw0V45RTpvLywHN3uvsUJ95l1ZKet1nhw8=; b=NMNBpGqtkcD83C1V5fzmYme8Jyr028LsLs7KG6L/o1P1z0AxUXr3Z3VJs0pVAILdPC ZP859LWQAW9G7W+3FwzFrHouQ4vC9wgj9uMy1b2xvQlpSbfjlk/I8maWpEjajEuHNj7/ G9rvxh2RbBQu3MOcg/YF5ax/308dycszwsr/Ryicb4Gp82FI/isuVs7Pi3pkZTMQF5bS WApwMTbztstt+YE5pJAjzcjWbI6f6DMqt4Gks1DJ1hA0aU8XCgbNLC+PMJzAHaq55UYI v5iC2+Bxic6f0HqJY54CiFsC/Lj6wIx1Urz8CCG8YH6tqJbQ09dex4CPs5o3kVI6i5W2 ybSQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@icenowy.me header.s=zmail header.b=fQqAhkGD; arc=pass (i=1 spf=pass spfdomain=icenowy.me dkim=pass dkdomain=icenowy.me dmarc=pass fromdomain=icenowy.me>); 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l62-20020a638841000000b004787836f4d6si11734318pgd.396.2022.12.05.21.54.19; Mon, 05 Dec 2022 21:54:32 -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=@icenowy.me header.s=zmail header.b=fQqAhkGD; arc=pass (i=1 spf=pass spfdomain=icenowy.me dkim=pass dkdomain=icenowy.me dmarc=pass fromdomain=icenowy.me>); 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 S233169AbiLFFxp (ORCPT + 99 others); Tue, 6 Dec 2022 00:53:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233289AbiLFFxn (ORCPT ); Tue, 6 Dec 2022 00:53:43 -0500 Received: from sender4-op-o16.zoho.com (sender4-op-o16.zoho.com [136.143.188.16]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DDDE92183D; Mon, 5 Dec 2022 21:53:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670306004; cv=none; d=zohomail.com; s=zohoarc; b=bOJVzM1mCf/q6YgpYL0S9bwVSnEDutixt55QYLDc6L9NJEOrs3ZdP9wCKQuVoqOiAMmcvnzrGsJk/eBRafvTG4F4KaOkeZ57hPuIepErLMOVE/qtyg0XKQutnsl7bJ7aQjjiC664H11T31SdcEE1N2gZd61NTTcy5Wo4lUMJIV4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1670306004; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=sHOF3TnzHZw0V45RTpvLywHN3uvsUJ95l1ZKet1nhw8=; b=bNlzX62+GtE6mglu/Lmzh16ZTker1h/w5KZ6rDh7OiVvqQHSXxAIXE0K5WfldqXb/5xj483woHL6gXwlUYXxEFEPXZrnJDUHmhrkG+YIcIrTxysUJ6vSFFDJcR6+joF9zoZFgTbZE5JeyTmqg9hsIXFvszjzpcRisIeUqI3DQ8A= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=icenowy.me; spf=pass smtp.mailfrom=uwu@icenowy.me; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1670306004; s=zmail; d=icenowy.me; i=uwu@icenowy.me; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-Id:Message-Id:In-Reply-To:References:MIME-Version:Content-Transfer-Encoding:Reply-To; bh=sHOF3TnzHZw0V45RTpvLywHN3uvsUJ95l1ZKet1nhw8=; b=fQqAhkGDjoV36ub2QrIa5MucBnNXYh2NrHnJaNGhf1zw/w34Ok5IyJsdo+jbTPvm ruaGI/2teRuhix3vpc16qsfivBuYrTuwfjojRyJBr5Xac2OuClpMONmv8Pv7pTqUWHL P0KLIi4tAlFa0dvxdA1HRmc/yz/Db8AlEDwiiGyY= Received: from edelgard.fodlan.icenowy.me (120.85.99.143 [120.85.99.143]) by mx.zohomail.com with SMTPS id 1670306003064295.21778497328853; Mon, 5 Dec 2022 21:53:23 -0800 (PST) From: Icenowy Zheng To: Rob Herring , Krzysztof Kozlowski , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Greg Kroah-Hartman , Matthias Kaehlcke , Andre Przywara Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Icenowy Zheng Subject: [PATCH v3 3/6] usb: misc: onboard_usb_hub: add Genesys Logic GL850G hub support Date: Tue, 6 Dec 2022 13:52:25 +0800 Message-Id: <20221206055228.306074-4-uwu@icenowy.me> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221206055228.306074-1-uwu@icenowy.me> References: <20221206055228.306074-1-uwu@icenowy.me> MIME-Version: 1.0 X-ZohoMailClient: External X-Spam-Status: No, score=-0.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,URIBL_BLACK 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751442860637052472?= X-GMAIL-MSGID: =?utf-8?q?1751442860637052472?= Genesys Logic GL850G is a 4-port USB 2.0 STT hub that has a reset pin to toggle and a 3.3V core supply exported (although an integrated LDO is available for powering it with 5V). Add the support for this hub, for controlling the reset pin and the core power supply. Signed-off-by: Icenowy Zheng Acked-by: Matthias Kaehlcke --- Changes in v3: - Add Matthias's ACK. Changes in v2: - Sort things, by names or vendor IDs. drivers/usb/misc/onboard_usb_hub.c | 2 ++ drivers/usb/misc/onboard_usb_hub.h | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/drivers/usb/misc/onboard_usb_hub.c b/drivers/usb/misc/onboard_usb_hub.c index d63c63942af1..94e7966e199d 100644 --- a/drivers/usb/misc/onboard_usb_hub.c +++ b/drivers/usb/misc/onboard_usb_hub.c @@ -331,6 +331,7 @@ static struct platform_driver onboard_hub_driver = { /************************** USB driver **************************/ +#define VENDOR_ID_GENESYS 0x05e3 #define VENDOR_ID_MICROCHIP 0x0424 #define VENDOR_ID_REALTEK 0x0bda #define VENDOR_ID_TI 0x0451 @@ -407,6 +408,7 @@ static void onboard_hub_usbdev_disconnect(struct usb_device *udev) } static const struct usb_device_id onboard_hub_id_table[] = { + { USB_DEVICE(VENDOR_ID_GENESYS, 0x0608) }, /* Genesys Logic GL850G USB 2.0 */ { USB_DEVICE(VENDOR_ID_MICROCHIP, 0x2514) }, /* USB2514B USB 2.0 */ { USB_DEVICE(VENDOR_ID_REALTEK, 0x0411) }, /* RTS5411 USB 3.1 */ { USB_DEVICE(VENDOR_ID_REALTEK, 0x5411) }, /* RTS5411 USB 2.1 */ diff --git a/drivers/usb/misc/onboard_usb_hub.h b/drivers/usb/misc/onboard_usb_hub.h index 34beab8bce3d..62129a6a1ba5 100644 --- a/drivers/usb/misc/onboard_usb_hub.h +++ b/drivers/usb/misc/onboard_usb_hub.h @@ -22,10 +22,15 @@ static const struct onboard_hub_pdata ti_tusb8041_data = { .reset_us = 3000, }; +static const struct onboard_hub_pdata genesys_gl850g_data = { + .reset_us = 3, +}; + static const struct of_device_id onboard_hub_match[] = { { .compatible = "usb424,2514", .data = µchip_usb424_data, }, { .compatible = "usb451,8140", .data = &ti_tusb8041_data, }, { .compatible = "usb451,8142", .data = &ti_tusb8041_data, }, + { .compatible = "usb5e3,608", .data = &genesys_gl850g_data, }, { .compatible = "usbbda,411", .data = &realtek_rts5411_data, }, { .compatible = "usbbda,5411", .data = &realtek_rts5411_data, }, { .compatible = "usbbda,414", .data = &realtek_rts5411_data, }, From patchwork Tue Dec 6 05:52:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Icenowy Zheng X-Patchwork-Id: 30092 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2649434wrr; Mon, 5 Dec 2022 21:55:01 -0800 (PST) X-Google-Smtp-Source: AA0mqf4FBmF5IE/8D3pS4btk+q6DKJPU7Ctsn1wQ52o6p2tg7iub86aTemNcSni6coPt7uRjA5Wk X-Received: by 2002:a17:90a:fa46:b0:200:1df3:a7a9 with SMTP id dt6-20020a17090afa4600b002001df3a7a9mr96596302pjb.202.1670306101557; Mon, 05 Dec 2022 21:55:01 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1670306101; cv=pass; d=google.com; s=arc-20160816; b=OjGHS+z2p+x+80pO7jEJdf/pq5FMcYsVo4i95Qy3OydCE8HE2huZ3LXTSnO9goxaKN SXCKx9ZRfQIfXZMUCma3UBx09r2GVf2ajTmgRY2fkisNosB4BFgAECivC+4rjQy2HUkH FzQoqNyLeHZ3eV+UEqtr+iGZPc/qTq7m2BYT0xZQckckWh5vpT3BLHRBFY3G9cJfYNrq cIU1ozolCAJ1//T2lTBHATn8eTeVLHqlDky38nTagz0lNL1WxEA3pg0vjwb3BpgDkUxy +wu0arIye1WvxqyP3R+o0/AErbAlxnaozV5lOYGPjTX1foyVH+QByOr48Ivhhl1mN5sh T9rg== ARC-Message-Signature: i=2; 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=n9EsSsfTAb5w74KGhohbVO5OnW1OjaivOEPhHgU7AxQ=; b=dBmIZHNoB5hLvnMg8fB+OvgP093G+CPmupbqxANCzindBrNWSmOru+a9mWi83g8zSx GXAGU0uQl3K5FazApL6RVLPOMDnO7mCIsuBRIImPOozI2AC8a7T7JicOycER77e1s3W1 BQit2QRHbfpGqNca7FwAQQ1ntmsSHCHn0PN1L50nflNrnbTHdIudoERyMCBytVAD4VZu 2xDERF4FIRBDqeVa3HKlr1As3J5CE6OicT4lD9Bt74wNZQkoXDWIQS6JwbGNEnCQMMiZ bdVqztJXrTwn4Zf9eMhgEgSYRYCzgdIJJbjfcgtVZtBMkujKBdTYkFhoozrVxTSQR2mh o18w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@icenowy.me header.s=zmail header.b=DS+payvw; arc=pass (i=1 spf=pass spfdomain=icenowy.me dkim=pass dkdomain=icenowy.me dmarc=pass fromdomain=icenowy.me>); 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q9-20020a170902788900b0017f685b47b8si15229166pll.151.2022.12.05.21.54.48; Mon, 05 Dec 2022 21:55:01 -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=@icenowy.me header.s=zmail header.b=DS+payvw; arc=pass (i=1 spf=pass spfdomain=icenowy.me dkim=pass dkdomain=icenowy.me dmarc=pass fromdomain=icenowy.me>); 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 S233563AbiLFFyI (ORCPT + 99 others); Tue, 6 Dec 2022 00:54:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233417AbiLFFx6 (ORCPT ); Tue, 6 Dec 2022 00:53:58 -0500 Received: from sender4-op-o16.zoho.com (sender4-op-o16.zoho.com [136.143.188.16]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 873FB26AE9; Mon, 5 Dec 2022 21:53:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670306012; cv=none; d=zohomail.com; s=zohoarc; b=LWx241g1yaXXo7OSmi3pYAeuW0hkDLdcAxCpH0VLVKhDkStuog1CUccVUDNjbvloI3OsZUIgQ6oMMNOD+Ya7UZ+C6+hvzn6nicaLx1ao78Dm4ap1PKhd8vCoefuLFz2Tn6zxn9Cf676+ZxJxjIdPChai++Pv2uFnV5D11OSa12I= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1670306012; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=n9EsSsfTAb5w74KGhohbVO5OnW1OjaivOEPhHgU7AxQ=; b=YFiG8ec/49RlIQYtyoOGHcniicxqqv0yOfKLmLG1GgZLPEijN0fKSOR7uR95ngk+28+g/wfxIWoPxIrEFJw9fbbwatlb/Tl4Yhlj6mUy0OX732SXBOnt15a1nvw2yfRyGTWxWsCouq8k3hqT1ukLt5SiGvD9D8ywJlnCSByIxzk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=icenowy.me; spf=pass smtp.mailfrom=uwu@icenowy.me; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1670306012; s=zmail; d=icenowy.me; i=uwu@icenowy.me; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-Id:Message-Id:In-Reply-To:References:MIME-Version:Content-Transfer-Encoding:Reply-To; bh=n9EsSsfTAb5w74KGhohbVO5OnW1OjaivOEPhHgU7AxQ=; b=DS+payvwpcoReSf2npVEVaqkxQrPO44CJ6379eAXj71V6DpXmdxmgiJMgF7pXpdp ubwdyIht6JEUBKtIfFmtu4og8jK7d90MIxK/ArPogO8MGDbCXaJAG0L4KQf/hniPR0r D1JeII/iM8enL0cLigmA0r2Nac7fIy29ptJfTh5I= Received: from edelgard.fodlan.icenowy.me (120.85.99.143 [120.85.99.143]) by mx.zohomail.com with SMTPS id 1670306010110854.4400070958802; Mon, 5 Dec 2022 21:53:30 -0800 (PST) From: Icenowy Zheng To: Rob Herring , Krzysztof Kozlowski , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Greg Kroah-Hartman , Matthias Kaehlcke , Andre Przywara Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Icenowy Zheng , Krzysztof Kozlowski Subject: [PATCH v3 4/6] vendor-prefixes: Add Shenzhen Rongpin Electronics Co., Ltd Date: Tue, 6 Dec 2022 13:52:26 +0800 Message-Id: <20221206055228.306074-5-uwu@icenowy.me> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221206055228.306074-1-uwu@icenowy.me> References: <20221206055228.306074-1-uwu@icenowy.me> MIME-Version: 1.0 X-ZohoMailClient: External X-Spam-Status: No, score=-0.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,URIBL_BLACK 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751442890935249397?= X-GMAIL-MSGID: =?utf-8?q?1751442890935249397?= Add the vendor prefix for Shenzhen Rongpin Electronics Co., Ltd, which specializes in ARM SoMs and EVBs. Website: http://www.rpdzkj.com/ Signed-off-by: Icenowy Zheng Acked-by: Krzysztof Kozlowski --- No changes in v3. Changes in v2: - Add Krzysztof's ACK. Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-prefixes.yaml index 00493b962bd7..e9c31bc8f069 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml @@ -1107,6 +1107,8 @@ patternProperties: description: ROHM Semiconductor Co., Ltd "^ronbo,.*": description: Ronbo Electronics + "^rongpin,.*": + description: Shenzhen Rongpin Electronics Co., Ltd "^roofull,.*": description: Shenzhen Roofull Technology Co, Ltd "^roseapplepi,.*": From patchwork Tue Dec 6 05:52:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Icenowy Zheng X-Patchwork-Id: 30091 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2649345wrr; Mon, 5 Dec 2022 21:54:43 -0800 (PST) X-Google-Smtp-Source: AA0mqf560ztHBVnJR8SLXxLjPnRFbepnyodlHswSCSECy0MMLJI/0sDLjmEQc15Ypa1SiNBcw2Zv X-Received: by 2002:a17:902:b117:b0:189:e426:4635 with SMTP id q23-20020a170902b11700b00189e4264635mr4295619plr.46.1670306082772; Mon, 05 Dec 2022 21:54:42 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1670306082; cv=pass; d=google.com; s=arc-20160816; b=FngGRHWbJBRhvpaiB/Ce0qLqhbVLH8u2Q4++vhe+OmrjBtvzhxHmOPf1z60NlQUhJf K875b10In8g89TUQHcp8ndvZ6mREQcTNmUZzUuq1516pwR5bDJPBSG3gjfphzNrWa2/Q uJsGXCfB9K3Pp0TnuEl3xCVLWeXXBAT0EcPohnOVnz0vSMlEuTM/QXfzfPxETcuaJy84 ydna92PjujuTykeLKB6NUG1ktq45NpEjdjRdnriUPXnG6QDDwee0xgZKVvKWAqKW4nRr nGWD4rtQIaFh3gnPlwZZM2fK0VOfaH5zKtUB0fJLuRaf06g/jrYpQNJQrPI3hswW7VTp Ir7w== ARC-Message-Signature: i=2; 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=/k1Z2WEqHllTXos8B4dmbQlQ4/WttliYjSasnsZMvhQ=; b=qI/72sEG1XV54vOH8Yvcfc0NdyMrYjRS/29eZ6ixcdsBYCSzPxRLGSb0B/UYu2VKTx Moerojm1iQ1CHTH9pWY6DfyukGiz5lJK2xe+OOWuGL5b/hvdxVk/dIsiOuLtIYjErJF4 QQLvjedfGHoYWm+Vy14C2n768uFr0dXj2110eRkrOkTOkm5aChM91DqyFG7b3zJYmVru ARCnJ3DOuACdixD/9TkRuml2ivitjgvzCDzy5QiZCAmm7Rtui3exKxqJ2SToWRzXr+wr O1IZRE1mW2ZtLJagR75i13OZYDiEoe8PDpcf7DaSFH8hD5GKhnr5U2Q/2zyVIgV/XJz9 51TA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@icenowy.me header.s=zmail header.b="N/qlKYX8"; arc=pass (i=1 spf=pass spfdomain=icenowy.me dkim=pass dkdomain=icenowy.me dmarc=pass fromdomain=icenowy.me>); 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c15-20020a056a00248f00b00557bb4f6977si17956469pfv.106.2022.12.05.21.54.29; Mon, 05 Dec 2022 21:54:42 -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=@icenowy.me header.s=zmail header.b="N/qlKYX8"; arc=pass (i=1 spf=pass spfdomain=icenowy.me dkim=pass dkdomain=icenowy.me dmarc=pass fromdomain=icenowy.me>); 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 S233443AbiLFFyG (ORCPT + 99 others); Tue, 6 Dec 2022 00:54:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39458 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233396AbiLFFx6 (ORCPT ); Tue, 6 Dec 2022 00:53:58 -0500 Received: from sender4-op-o16.zoho.com (sender4-op-o16.zoho.com [136.143.188.16]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 753E027142; Mon, 5 Dec 2022 21:53:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670306020; cv=none; d=zohomail.com; s=zohoarc; b=LtRxaus840eTgSFHKHI4FiRq3Sc28LDH0d/vsir1aLsM47Dz5lTsmzu9KAKU9UaUn70G3vMEVybA19G2NMezI3cxJeNnXPctmgsredCuDwcU2INW0D6GvUPfE6Ay/U4Ke07sJ8aaLB3EIP93ewd6jY7B+luxviKo9UfqI41kHU0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1670306020; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=/k1Z2WEqHllTXos8B4dmbQlQ4/WttliYjSasnsZMvhQ=; b=aZgxRZV+Ut4+VNrJQIBc6M3Ogxo/14bI9TvtCotaf8hrbakldORtxHAntcopZzbE/u3h+WJ+lbcGHbmPJEUPtkK1sAF+SmCqW//vkqIpgugVSJ6CHAKmKrXw77bnJQkKWvvVec3dgTkQDgiDo0oe/rSG98vI66VPOshpnOjb1mk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=icenowy.me; spf=pass smtp.mailfrom=uwu@icenowy.me; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1670306020; s=zmail; d=icenowy.me; i=uwu@icenowy.me; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-Id:Message-Id:In-Reply-To:References:MIME-Version:Content-Transfer-Encoding:Reply-To; bh=/k1Z2WEqHllTXos8B4dmbQlQ4/WttliYjSasnsZMvhQ=; b=N/qlKYX8tYoyB7VdKKHgswYT4lcoDv2xLKWQP2j+JWExnbTnCRCQCrCg5KzDlOHE m7pjEqIlcUMMMUTLGuNwnRP/J7cnP6n3ARLuuyk+wO4YE3QdHsiHwdRtA/w5s8Z3fTb IcL6O8waDQp2ylfJh6vFFeVMWuQ/kcMIAfz9zWAA= Received: from edelgard.fodlan.icenowy.me (120.85.99.143 [120.85.99.143]) by mx.zohomail.com with SMTPS id 167030601851298.70551810068184; Mon, 5 Dec 2022 21:53:38 -0800 (PST) From: Icenowy Zheng To: Rob Herring , Krzysztof Kozlowski , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Greg Kroah-Hartman , Matthias Kaehlcke , Andre Przywara Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Icenowy Zheng , Krzysztof Kozlowski Subject: [PATCH v3 5/6] dt-bindings: arm: sunxi: add Rongpin RP-H6B board Date: Tue, 6 Dec 2022 13:52:27 +0800 Message-Id: <20221206055228.306074-6-uwu@icenowy.me> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221206055228.306074-1-uwu@icenowy.me> References: <20221206055228.306074-1-uwu@icenowy.me> MIME-Version: 1.0 X-ZohoMailClient: External X-Spam-Status: No, score=-0.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,URIBL_BLACK 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751442870838581659?= X-GMAIL-MSGID: =?utf-8?q?1751442870838581659?= Rongpin RP-H6B is a development board with RP-H6C SoM, which uses an Allwinner H6 SoC. Add compatible strings for it, including the board-specific compatible and the SoM compatible. Signed-off-by: Icenowy Zheng Acked-by: Krzysztof Kozlowski Reviewed-by: Samuel Holland --- Changes in v3: - Add Samuel's Reviewed tag. Changes in v2: - Add Krzysztof's ACK. Documentation/devicetree/bindings/arm/sunxi.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/sunxi.yaml b/Documentation/devicetree/bindings/arm/sunxi.yaml index 3ad1cd50e3fe..482631815f2f 100644 --- a/Documentation/devicetree/bindings/arm/sunxi.yaml +++ b/Documentation/devicetree/bindings/arm/sunxi.yaml @@ -792,6 +792,12 @@ properties: - const: rervision,h3-dvk - const: allwinner,sun8i-h3 + - description: Rongpin RP-H6B development board + items: + - const: rongpin,rp-h6b + - const: rongpin,rp-h6c + - const: allwinner,sun50i-h6 + - description: Sinlinx SinA31s Core Board items: - const: sinlinx,sina31s From patchwork Tue Dec 6 05:52:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Icenowy Zheng X-Patchwork-Id: 30093 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2649554wrr; Mon, 5 Dec 2022 21:55:26 -0800 (PST) X-Google-Smtp-Source: AA0mqf7gugISMT1hO+fFVFGUSI4QS/QQhP+YvRxqD1vpVjsyibW5JRuGHh07U0N8UOV2E6QFEj30 X-Received: by 2002:a63:6286:0:b0:478:c84a:ade1 with SMTP id w128-20020a636286000000b00478c84aade1mr5156567pgb.66.1670306126131; Mon, 05 Dec 2022 21:55:26 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1670306126; cv=pass; d=google.com; s=arc-20160816; b=RxsjBLibPElRPrb22FU8TUtYHvfdyYctX2xeCaOa5lbgq57rEIMp+BgtOdpHOzZKqg MrGnPO3o3KJXKeCWSoGrYNPhGn54VDyKt1d4W7H30eKt0Wy3532WSb/P5Yf7Zv3jktBM yjQrme9Bpufzj7/vA1S+lnMz4iCd5kIFiRf2UJaPkJshSZDk0D9EXB0h1mG+5CMsjT+2 XzvVg9us+uvIc4Xt7UjwElXBq+kYVlcWhhe/J3U3hov0YPTOc3d/tjg/FUg0PzBxwkwr sjb/VwJqOJfaxDyCqQjU4WA+k9wd2AyMpXT15fds3ssvhn6Btt+lChYrsVqqC9+o2Iyx sHJQ== ARC-Message-Signature: i=2; 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=vuHrhe8sB7Z7bW3U1yDEbRSCB55mkUv5FyHpwlQ4u1o=; b=cCkhSyvscsmQ6AgFvTxiyYytkv+cei6q5Z2X+ebftHY1EuTYbcdu1wu5T1xLuKCKKZ GPQgW4Uws258uhK261hr0r3uinaObCNvngodIsUMw8FM3tvIJ3f4gHRz72CUbxS0Dd1j VJ9mJvXBBNNx39cNAo0JoeY5zqEI0OomxXhxEP0Ivld6+DGFtduQyPaIrNdr7vBjBTLp QdnGA3dicy3/IkJ185jxWmHkUKlw9q3Y198C774qZ7s3NQp0kLdh6AEhjEIsA/2dtEBL zirOv/53SL5k/DzQL7pOl29E0KsIgwDM1xVuTUeYPRGjS9lptyBRCOlVVCeu2gZyz9Ry 8f9g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@icenowy.me header.s=zmail header.b="QLfd/Cnw"; arc=pass (i=1 spf=pass spfdomain=icenowy.me dkim=pass dkdomain=icenowy.me dmarc=pass fromdomain=icenowy.me>); 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i21-20020a635415000000b004767ae4f4aasi16862435pgb.486.2022.12.05.21.55.12; Mon, 05 Dec 2022 21:55:26 -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=@icenowy.me header.s=zmail header.b="QLfd/Cnw"; arc=pass (i=1 spf=pass spfdomain=icenowy.me dkim=pass dkdomain=icenowy.me dmarc=pass fromdomain=icenowy.me>); 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 S233740AbiLFFy1 (ORCPT + 99 others); Tue, 6 Dec 2022 00:54:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233668AbiLFFyO (ORCPT ); Tue, 6 Dec 2022 00:54:14 -0500 X-Greylist: delayed 72 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Mon, 05 Dec 2022 21:54:12 PST Received: from sender4-op-o16.zoho.com (sender4-op-o16.zoho.com [136.143.188.16]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4896A27149; Mon, 5 Dec 2022 21:54:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670306036; cv=none; d=zohomail.com; s=zohoarc; b=GW7U3CyC7xDvRppKEBI+TffDuNqtHQT007H2QB+NvJWy7X1z1/ILWmyXbhrNHsVBOa3ciDWUuKboMl73N6s9kAoCwbkS27D6dKr1jmqcgcagdb3nnfd8W09nj/RyKqc+agtpiynHGQgCJi7+kdTHaJ52nHUD4hMKV3UHE/kzAqI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1670306036; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=vuHrhe8sB7Z7bW3U1yDEbRSCB55mkUv5FyHpwlQ4u1o=; b=P6+Qjqavs400VfMRUR7axbv9GbsQQ8a/A3CuLLnPRym7U+hDr+lWwLbDfNWGSooqoqngQRNTf71samBT1tWb37jTpF4AkDYvvWNKrt5/EG53cFwA279uzg330Y4NfV2y2s8alh6fKF9lL02mL6OfEKfSxyndsxi7HcdFrYm+SbU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=icenowy.me; spf=pass smtp.mailfrom=uwu@icenowy.me; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1670306036; s=zmail; d=icenowy.me; i=uwu@icenowy.me; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-Id:Message-Id:In-Reply-To:References:MIME-Version:Content-Transfer-Encoding:Reply-To; bh=vuHrhe8sB7Z7bW3U1yDEbRSCB55mkUv5FyHpwlQ4u1o=; b=QLfd/CnwZe4M5aPUNAGseZdjknn0shpOV/bDS3LFo//SKkcwIyWTx7bxsHMECCV+ REqxUiCeJ7i15IDnoA32eLRFd7EOgjoA/7SRQi5Q7WWnoSJFRu31RxLXamBirXzvqeh hlgJPNNCx2FN8f+YwZqUr/wnEJt94J9YrVKys/iU= Received: from edelgard.fodlan.icenowy.me (120.85.99.143 [120.85.99.143]) by mx.zohomail.com with SMTPS id 167030603523316.540396765307833; Mon, 5 Dec 2022 21:53:55 -0800 (PST) From: Icenowy Zheng To: Rob Herring , Krzysztof Kozlowski , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Greg Kroah-Hartman , Matthias Kaehlcke , Andre Przywara Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Icenowy Zheng Subject: [PATCH v3 6/6] arm64: dts: allwinner: h6: add Rongpin RP-H6C SoM and RP-H6B board Date: Tue, 6 Dec 2022 13:52:28 +0800 Message-Id: <20221206055228.306074-7-uwu@icenowy.me> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221206055228.306074-1-uwu@icenowy.me> References: <20221206055228.306074-1-uwu@icenowy.me> MIME-Version: 1.0 X-ZohoMailClient: External X-Spam-Status: No, score=-0.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,URIBL_BLACK 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751442916221671141?= X-GMAIL-MSGID: =?utf-8?q?1751442916221671141?= Rongpin RP-H6C is an Allwinner H6 SoM by Rongpin, with Allwinner H6 SoC, AXP805 PMIC, LPDDR3 memory and eMMC storage on it. RP-H6B is their official evaluation board of RP-H6C, with an onboard GL850G USB hub, Ampak AP6212 Wi-Fi module and some circuits about LVDS display. It also exports the OTG USB port, the USB 3.0 port, PCIe bus (as mPCIe slot), internal Ethernet PHY, analog audio/video and HDMI port. Add a DTSI file for the SoM and a DTS for the full board. Signed-off-by: Icenowy Zheng Acked-by: Samuel Holland --- Changes in v3: - Fixed bogus comment in 3v3 regulator of AXP. It's also renamed to just vcc-3v3 instead of vcc-3v3-2. - Used new binding for LED. Changes in v2: - Name all regulator nodes regulator-xxx. - Fixed underscores in node names. arch/arm64/boot/dts/allwinner/Makefile | 1 + .../boot/dts/allwinner/sun50i-h6-rp-h6b.dts | 241 ++++++++++++++++++ .../boot/dts/allwinner/sun50i-h6-rp-h6c.dtsi | 179 +++++++++++++ 3 files changed, 421 insertions(+) create mode 100644 arch/arm64/boot/dts/allwinner/sun50i-h6-rp-h6b.dts create mode 100644 arch/arm64/boot/dts/allwinner/sun50i-h6-rp-h6c.dtsi diff --git a/arch/arm64/boot/dts/allwinner/Makefile b/arch/arm64/boot/dts/allwinner/Makefile index 6a96494a2e0a..e289fedcac29 100644 --- a/arch/arm64/boot/dts/allwinner/Makefile +++ b/arch/arm64/boot/dts/allwinner/Makefile @@ -36,6 +36,7 @@ dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-orangepi-lite2.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-orangepi-one-plus.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-pine-h64.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-pine-h64-model-b.dtb +dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-rp-h6b.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-tanix-tx6.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-tanix-tx6-mini.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h616-orangepi-zero2.dtb diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-rp-h6b.dts b/arch/arm64/boot/dts/allwinner/sun50i-h6-rp-h6b.dts new file mode 100644 index 000000000000..a1198a8ef267 --- /dev/null +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-rp-h6b.dts @@ -0,0 +1,241 @@ +// SPDX-License-Identifier: (GPL-2.0+ or MIT) +/* + * Copyright (C) 2022 Icenowy Zheng + */ +/dts-v1/; + +#include "sun50i-h6-rp-h6c.dtsi" + +#include +#include + +/ { + model = "Rongpin RP-H6B baseboard"; + compatible = "rongpin,rp-h6b", "rongpin,rp-h6c", + "allwinner,sun50i-h6"; + + aliases { + ethernet0 = &emac; + serial0 = &uart0; + /* + * Prioritize the external RTC because it's powered + * by a cell battery. + */ + rtc0 = &hym8563; + rtc1 = &rtc; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + hdmi_connector: connector { + compatible = "hdmi-connector"; + type = "a"; + + port { + hdmi_con_in: endpoint { + remote-endpoint = <&hdmi_out_con>; + }; + }; + }; + + leds { + compatible = "gpio-leds"; + + led { + function = LED_FUNCTION_STATUS; + color = ; + gpios = <&r_pio 0 3 GPIO_ACTIVE_LOW>; /* PL3 */ + /* + * On the schematics this LED is marked as "lit when + * powering on and blinking when running". + */ + linux,default-trigger = "heartbeat"; + }; + }; + + /* + * The VDD_5V power rail is connected to the internal regulator + * of GL850G, to power up the 3.3V core of it. + */ + reg_v33_hub: regulator-v33-hub { + compatible = "regulator-fixed"; + regulator-name = "v33-hub"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + vin-supply = <®_vdd_5v>; + }; + + /* + * This board inputs 5V to AP6212 via a SS34 diode. Use this + * regulator as the model of the internal regulator of AP6212. + */ + reg_vcc3v3_ap6212: regulator-vcc3v3-ap6212 { + compatible = "regulator-fixed"; + regulator-name = "vcc3v3-ap6212"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + vin-supply = <®_ps>; + }; + + reg_vdd_5v: regulator-vdd-5v { + compatible = "regulator-fixed"; + regulator-name = "vdd-5v"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + startup-delay-us = <100000>; + gpio = <&r_pio 0 5 GPIO_ACTIVE_HIGH>; + enable-active-high; + vin-supply = <®_ps>; + }; + + /* For mPCIe slot WWAN modules / PCIe cards */ + reg_vdd_3g: regulator-vdd-3g { + compatible = "regulator-fixed"; + regulator-name = "vdd-3g"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + startup-delay-us = <100000>; + gpio = <&r_pio 0 7 GPIO_ACTIVE_HIGH>; + enable-active-high; + vin-supply = <®_ps>; + /* + * As a hack for lacking of control of a hub downstream + * port's Vbus. + */ + regulator-always-on; + }; + + wifi_pwrseq: wifi-pwrseq { + compatible = "mmc-pwrseq-simple"; + reset-gpios = <&r_pio 1 3 GPIO_ACTIVE_LOW>; /* PM3 */ + post-power-on-delay-ms = <200>; + }; +}; + +&de { + status = "okay"; +}; + +&ehci0 { + status = "okay"; +}; + +&ehci3 { + status = "okay"; + #address-cells = <1>; + #size-cells = <0>; + + hub@1 { + /* Genesys Logic GL850G usb hub */ + compatible = "usb5e3,608"; + reg = <1>; + vdd-supply = <®_v33_hub>; + reset-gpios = <&pio 7 2 GPIO_ACTIVE_LOW>; + }; +}; + +&hdmi { + status = "okay"; +}; + +&hdmi_out { + hdmi_out_con: endpoint { + remote-endpoint = <&hdmi_con_in>; + }; +}; + +&i2c0 { + status = "okay"; + + hym8563: rtc@51 { + compatible = "haoyu,hym8563"; + reg = <0x51>; + #clock-cells = <0>; + }; +}; + +&mmc0 { + pinctrl-names = "default"; + pinctrl-0 = <&mmc0_pins>; + vmmc-supply = <®_cldo1>; + cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; + bus-width = <4>; + status = "okay"; +}; + +&mmc1 { + pinctrl-names = "default"; + pinctrl-0 = <&mmc1_pins>; + vmmc-supply = <®_vcc3v3_ap6212>; + vqmmc-supply = <®_bldo3>; + mmc-pwrseq = <&wifi_pwrseq>; + non-removable; + bus-width = <4>; + status = "okay"; + + brcmf: wifi@1 { + reg = <1>; + compatible = "brcm,bcm4329-fmac"; + interrupt-parent = <&r_pio>; + interrupts = <1 0 IRQ_TYPE_LEVEL_LOW>; /* PM0 */ + interrupt-names = "host-wake"; + }; +}; + +&ohci0 { + status = "okay"; +}; + +/* Converted from 12v with a fixed DC-DC on the baseboard */ +®_ps { + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; +}; + +&uart0 { + pinctrl-names = "default"; + pinctrl-0 = <&uart0_ph_pins>; + status = "okay"; +}; + +/* Bluetooth */ +&uart1 { + pinctrl-names = "default"; + pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>; + uart-has-rtscts; + status = "okay"; + + bluetooth { + compatible = "brcm,bcm43438-bt"; + max-speed = <1500000>; + clocks = <&rtc CLK_OSC32K_FANOUT>; + clock-names = "lpo"; + vbat-supply = <®_ps>; + vddio-supply = <®_bldo3>; + device-wakeup-gpios = <&r_pio 1 2 GPIO_ACTIVE_HIGH>; /* PM2 */ + shutdown-gpios = <&r_pio 1 4 GPIO_ACTIVE_HIGH>; /* PM4 */ + interrupt-parent = <&r_pio>; + interrupts = <1 1 IRQ_TYPE_EDGE_FALLING>; /* PM1 */ + interrupt-names = "host-wakeup"; + }; +}; + +&uart1_pins { + bias-pull-up; +}; + +&uart1_rts_cts_pins { + bias-pull-up; +}; + +&usb2otg { + dr_mode = "host"; + status = "okay"; +}; + +&usb2phy { + usb0_vbus-supply = <®_vdd_5v>; + status = "okay"; +}; diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-rp-h6c.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h6-rp-h6c.dtsi new file mode 100644 index 000000000000..c91437b97f23 --- /dev/null +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-rp-h6c.dtsi @@ -0,0 +1,179 @@ +// SPDX-License-Identifier: (GPL-2.0+ or MIT) +/* + * Copyright (C) 2019-2022 Icenowy Zheng + */ + +#include "sun50i-h6.dtsi" +#include "sun50i-h6-cpu-opp.dtsi" +#include "sun50i-h6-gpu-opp.dtsi" + +/ { + ext_osc32k: ext-osc32k-clk { + #clock-cells = <0>; + compatible = "fixed-clock"; + clock-frequency = <32768>; + clock-output-names = "ext_osc32k"; + }; + + /* Marked 3.4v~5.5v on SoM schematics */ + reg_ps: regulator-ps { + compatible = "regulator-fixed"; + regulator-name = "ps"; + }; +}; + +&cpu0 { + cpu-supply = <®_dcdca>; +}; + +&gpu { + mali-supply = <®_dcdcc>; + status = "okay"; +}; + +&mmc2 { + pinctrl-names = "default"; + pinctrl-0 = <&mmc2_pins>; + vmmc-supply = <®_cldo1>; + vqmmc-supply = <®_bldo2>; + non-removable; + cap-mmc-hw-reset; + bus-width = <8>; + status = "okay"; +}; + +&pio { + vcc-pc-supply = <®_bldo2>; + vcc-pd-supply = <®_aldo2>; + vcc-pg-supply = <®_bldo3>; +}; + +&r_pio { + /* + * FIXME: We can't add that supply for now since it would + * create a circular dependency between pinctrl, the regulator + * and the RSB Bus. + * + * vcc-pl-supply = <®_aldo1>; + */ + vcc-pm-supply = <®_bldo3>; +}; + +&r_rsb { + status = "okay"; + clock-frequency = <400000>; + + axp805: pmic@745 { + compatible = "x-powers,axp805", "x-powers,axp806"; + reg = <0x745>; + interrupt-parent = <&r_intc>; + interrupts = ; + interrupt-controller; + #interrupt-cells = <1>; + x-powers,self-working-mode; + vina-supply = <®_ps>; + vinb-supply = <®_ps>; + vinc-supply = <®_ps>; + vind-supply = <®_ps>; + vine-supply = <®_ps>; + aldoin-supply = <®_ps>; + bldoin-supply = <®_ps>; + cldoin-supply = <®_ps>; + + regulators { + reg_aldo1: aldo1 { + regulator-always-on; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-name = "vcc-pl"; + }; + + reg_aldo2: aldo2 { + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-name = "vcc-ac200"; + regulator-enable-ramp-delay = <100000>; + }; + + aldo3 { + /* unused */ + }; + + reg_bldo1: bldo1 { + regulator-always-on; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-name = "vcc-bias-pll"; + }; + + reg_bldo2: bldo2 { + regulator-always-on; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-name = "vcc-efuse-pcie-hdmi-io"; + }; + + reg_bldo3: bldo3 { + regulator-always-on; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-name = "vcc-dcxoio"; + }; + + bldo4 { + /* unused */ + }; + + reg_cldo1: cldo1 { + regulator-always-on; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-name = "vcc-3v3"; + }; + + cldo2 { + /* unused */ + }; + + cldo3 { + /* unused */ + }; + + reg_dcdca: dcdca { + regulator-always-on; + regulator-min-microvolt = <810000>; + regulator-max-microvolt = <1160000>; + regulator-ramp-delay = <2500>; + regulator-name = "vdd-cpu"; + }; + + reg_dcdcc: dcdcc { + regulator-min-microvolt = <810000>; + regulator-max-microvolt = <1080000>; + regulator-name = "vdd-gpu"; + }; + + reg_dcdcd: dcdcd { + regulator-always-on; + regulator-min-microvolt = <960000>; + regulator-max-microvolt = <960000>; + regulator-name = "vdd-sys"; + }; + + reg_dcdce: dcdce { + regulator-always-on; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + regulator-name = "vcc-dram"; + }; + + sw { + /* unused */ + }; + }; + }; +}; + +&rtc { + clocks = <&ext_osc32k>; +};