From patchwork Tue Jun 6 17:09:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 2902 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pj1-f70.google.com (mail-pj1-f70.google.com [209.85.216.70]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 9F74F3F042 for ; Tue, 6 Jun 2023 19:09:38 +0200 (CEST) Received: by mail-pj1-f70.google.com with SMTP id 98e67ed59e1d1-258b62c7a6bsf5624278a91.3 for ; Tue, 06 Jun 2023 10:09:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1686071377; cv=pass; d=google.com; s=arc-20160816; b=DP0qSLoRpSpgvn0fEpCjwZXqBlsQkKKWYquC/k+jH01WTimNqxR+dxfVo/cSc4FVs4 /0j1r1YRVkjHh77e+bvJ1z16yoAvW4N2XkSFEoc95g+kOMvKC4PFV7VoMEsCOFSictMg ya+47Sfp3FNMVUwjNshe0lYzNqPWGxI+cfofYB/m9JKktlqAmTl24NsKeZFmsxhxxWRK Vik1RL1CnAjsRiEE9DD7z9Gjp9Gu7c7otW+1kzFyJWFi4ABh/8shD2BhLgIDksI31kx4 CAOuStckwMHKw7SPXElc9ihydlWNs1fD4AdxSauWwxcrl17kI+cSdaXJxwAIYkWF8FtS rJ8A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=VtWxHosnOxp9yNmYWGv7GnVHK130DX05O55Kr4xQk1w=; b=s1a5lL+saCrjMwXbIldmx17sw7ySBMlLVDmTnu6insjXOH9o4hECit7EjYzkmIyAno pWv9rdWom3K0+CnUR4EuzPkr1+ItBwkUlEAhaH+nIHNzd6iPFVZmk8ou6dQIrSwiqFUn ba3PHsCF1aEQL7AdAAPSBhZfa6o+6ifnG98DN6QA8G0GQo0w/mLqKiocOBb+C8E4C4w5 /dHLCpNwsuKiTZY3fIUnprNEjsme129pTY5Lf+3w0xODl9d03g/p3i1pCKCV+YAtL4id rbxy4/iGDJi9ai+71v6TdVK+zLlP2s5iM6OVljPzLvVlq01XxTrXZqo9qQSkKywhKyqs 337Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="F5cnz/s0"; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1686071377; x=1688663377; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=VtWxHosnOxp9yNmYWGv7GnVHK130DX05O55Kr4xQk1w=; b=nexyvkFSpCK7q2tAwC4FdgH4n6inWEj7jvjAw+JrXAoB4wu067bWEEl9dg5WrWur6U P+4z35tLZQOXYsb3Ki6ETcdOr+wR/SjSNq4L59sB2K5Foo+z2ZQi1NSOUNaRhQhHZ4SS OlFlP+GF782DJJQuwhGeBajImTmK2Xsld8PuQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686071377; x=1688663377; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :x-beenthere:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=VtWxHosnOxp9yNmYWGv7GnVHK130DX05O55Kr4xQk1w=; b=ciFkyI72FdcV2erp+xRbMJe5GFbSS2C1w+yBNoh8dV4nTiEmeqDLku4213oKgiuhjd 5nLUYK/vhO6nDutuPmYqnf6ksowGnj5rASk44QT569xECLuzpUUbOklKmlzu43cw/EvO W7Y5MKxURdlKKJvblyf0C3maYqUYs5EOYFbJogn7dwfNxPBOfxP/nJYrbFYPzpJiTCmF 4ID3ZvxlepXF5xm71d/WNLfbFz3RYFhMuDlPNnuOksldpJ5+zD83V087o2zOGyzHJEfZ 5p5TtEECO7Khw0dyB+qjnFBCpylVlEoGJFZSMvoJH0orv4olm9LytOpGDnD2zfsPDtf5 tlBA== X-Gm-Message-State: AC+VfDxEpNbzyGaU6pJJqJUNMJoRcOZQbOV5o+ZWndG8oeQwYkSr0Pu/ aZLuVTXvsMUdfF0IgdQ++t06E9MY X-Google-Smtp-Source: ACHHUZ7n9NE+pN7e2Vfmx1fBAzdLtv0Xau3rOSqnhXoWC6MNNmCZ3DZYJC9eaKZwzZpER0m4sLxMIw== X-Received: by 2002:a17:90a:190d:b0:258:9995:91cb with SMTP id 13-20020a17090a190d00b00258999591cbmr2121412pjg.49.1686071377142; Tue, 06 Jun 2023 10:09:37 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:90a:eb0e:b0:258:9cb3:81 with SMTP id j14-20020a17090aeb0e00b002589cb30081ls2467136pjz.0.-pod-prod-06-us; Tue, 06 Jun 2023 10:09:36 -0700 (PDT) X-Received: by 2002:a17:902:ed42:b0:1a9:21bc:65f8 with SMTP id y2-20020a170902ed4200b001a921bc65f8mr3100020plb.11.1686071375970; Tue, 06 Jun 2023 10:09:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686071375; cv=none; d=google.com; s=arc-20160816; b=lhN9S0x6ldLzpo7s4DXbJ0lUzYHqYXtFDwlOyXhXKP97Qsa0ouudhLFBRyfM/op2fT W6En/p6hbAdN+VhP4dvb38vFQAgqy2yyHqxXpOA9HmTrw5ZXjmZSQD/QW2XwOfaV8MBC d0tOUb8GLDOSS6ndHmc/LTQ1aZYCCynGeMOGu7FsSLVJ8gPLoMtKU8ce8xBikFD3tX5m mH2+k36mTCGLshwTR1K+LAu8XStVREJ+ub4y7Owo6Ai2U4isBtoE1yySfsPW+Zj2C8Qe Eq5NT53TVP7IGq3d9kGbPhSpO5lVI2WbGTau4l/h6LOpwLYOmTBzcITO55nyHv/wOFTs NLsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=HEq2+2UnVjASLYEKjXejp1C6RG3WQAGJYmykPiWu3OA=; b=dF23cO0R43/xx/+MV/VPCUOy9pXsNAEeLHjvuvishhAfK5LWBUJxk0uRYQPzu81wr+ 9Wk4K7Qg2H+PpVtzIrKiTTdY06tovs+XgQXuIGG0vlp/4ght12bXFSVv+0Nv4eHd8cBk +Ng+n32m7JktCNfGr8UIVEFfQdyxwDHfbBHJ+EI/w2OyTzSiVRhXENbLLJYgMGlvAsmI enAdJXFEfmqRSkef/0trfcFq9q5RiI8qezuJHcsNHzSxjt4R1qclHU8sVKnvmhHjzBCV Vlw1WODARaA74DmRWVCp6BIbgpsFovlFgOKz3cfJel5sikDbBPIlkwFvN2b8+wbIKRLm WLLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="F5cnz/s0"; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id l21-20020a170903005500b001b02e0ec4b4sor4761736pla.15.2023.06.06.10.09.35 for (Google Transport Security); Tue, 06 Jun 2023 10:09:35 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a17:902:d506:b0:1b1:9233:bbf5 with SMTP id b6-20020a170902d50600b001b19233bbf5mr3562544plg.57.1686071375644; Tue, 06 Jun 2023 10:09:35 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:2001:f7d3:5b78:1d82:fb5f:608c]) by smtp.gmail.com with ESMTPSA id bc8-20020a170902930800b001ab0159b9edsm8695129plb.250.2023.06.06.10.09.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Jun 2023 10:09:34 -0700 (PDT) From: Jagan Teki To: Kever Yang , Simon Glass , Philipp Tomsich Cc: Jonas Karlman , u-boot@lists.denx.de, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH v2 1/7] arm64: dts: rockchip: Drop unused rk3328-xhci node Date: Tue, 6 Jun 2023 22:39:12 +0530 Message-Id: <20230606170918.45581-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230606170918.45581-1-jagan@amarulasolutions.com> References: <20230606170918.45581-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="F5cnz/s0"; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , rk3328-xhci has been added due to the fact that the upstream dwc3 is unsupported. Moreover, the driver for rk3328-xhci is not added to the code tree. By considering these facts and unsupported rk3328-xhci this patch is dropping all related code from DT. However, the DWC3 is fixed now in dwc3-generic and RK3328 USB 3.0 is functional in upcoming patches. Let's drop it. Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- Changes for v2: - none arch/arm/dts/rk3328-evb-u-boot.dtsi | 5 ----- arch/arm/dts/rk3328-roc-cc-u-boot.dtsi | 14 -------------- arch/arm/dts/rk3328-rock-pi-e-u-boot.dtsi | 5 ----- arch/arm/dts/rk3328-rock64-u-boot.dtsi | 15 --------------- arch/arm/dts/rk3328-u-boot.dtsi | 11 ----------- 5 files changed, 50 deletions(-) diff --git a/arch/arm/dts/rk3328-evb-u-boot.dtsi b/arch/arm/dts/rk3328-evb-u-boot.dtsi index 4bfa0c2330..f9c729d3bd 100644 --- a/arch/arm/dts/rk3328-evb-u-boot.dtsi +++ b/arch/arm/dts/rk3328-evb-u-boot.dtsi @@ -44,8 +44,3 @@ /* Integrated PHY unsupported by U-boot */ status = "broken"; }; - -&usb_host0_xhci { - vbus-supply = <&vcc5v0_host_xhci>; - status = "okay"; -}; diff --git a/arch/arm/dts/rk3328-roc-cc-u-boot.dtsi b/arch/arm/dts/rk3328-roc-cc-u-boot.dtsi index 27a454f017..2062f34bf8 100644 --- a/arch/arm/dts/rk3328-roc-cc-u-boot.dtsi +++ b/arch/arm/dts/rk3328-roc-cc-u-boot.dtsi @@ -48,20 +48,6 @@ bootph-pre-ram; }; -&usb_host0_xhci { - vbus-supply = <&vcc_host1_5v>; - status = "okay"; -}; - -/* - * This makes XHCI responsible for toggling VBUS. This is needed to work - * around an issue where either XHCI only works with USB 2.0 or OTG doesn't - * work, depending on how VBUS is configured. Having USB 3.0 seems better. - */ -&vcc_host1_5v { - /delete-property/ regulator-always-on; -}; - /* Need this and all the pinctrl/gpio stuff above to set pinmux */ &vcc_sd { bootph-pre-ram; diff --git a/arch/arm/dts/rk3328-rock-pi-e-u-boot.dtsi b/arch/arm/dts/rk3328-rock-pi-e-u-boot.dtsi index 088e21c76a..1f220c6dcd 100644 --- a/arch/arm/dts/rk3328-rock-pi-e-u-boot.dtsi +++ b/arch/arm/dts/rk3328-rock-pi-e-u-boot.dtsi @@ -45,11 +45,6 @@ bootph-pre-ram; }; -&usb_host0_xhci { - vbus-supply = <&vcc_host_5v>; - status = "okay"; -}; - /* Need this and all the pinctrl/gpio stuff above to set pinmux */ &vcc_sd { bootph-pre-ram; diff --git a/arch/arm/dts/rk3328-rock64-u-boot.dtsi b/arch/arm/dts/rk3328-rock64-u-boot.dtsi index c20a99a620..849854302e 100644 --- a/arch/arm/dts/rk3328-rock64-u-boot.dtsi +++ b/arch/arm/dts/rk3328-rock64-u-boot.dtsi @@ -48,21 +48,6 @@ bootph-pre-ram; }; -&usb_host0_xhci { - vbus-supply = <&vcc_host_5v>; - status = "okay"; -}; - -/* - * This makes XHCI responsible for toggling VBUS. This is needed to work - * around an issue where either XHCI only works with USB 2.0 or OTG doesn't - * work, depending on how VBUS is configured. Having USB 3.0 seems better. - */ -&vcc_host_5v { - /delete-property/ regulator-always-on; - /delete-property/ regulator-boot-on; -}; - /* Need this and all the pinctrl/gpio stuff above to set pinmux */ &vcc_sd { bootph-pre-ram; diff --git a/arch/arm/dts/rk3328-u-boot.dtsi b/arch/arm/dts/rk3328-u-boot.dtsi index 668f8ca29d..ce96ce40a7 100644 --- a/arch/arm/dts/rk3328-u-boot.dtsi +++ b/arch/arm/dts/rk3328-u-boot.dtsi @@ -26,17 +26,6 @@ 0x0 0xff720000 0x0 0x1000 0x0 0xff798000 0x0 0x1000>; }; - - usb_host0_xhci: usb@ff600000 { - compatible = "rockchip,rk3328-xhci"; - reg = <0x0 0xff600000 0x0 0x100000>; - interrupts = ; - snps,dis-enblslpm-quirk; - snps,phyif-utmi-bits = <16>; - snps,dis-u2-freeclk-exists-quirk; - snps,dis-u2-susphy-quirk; - status = "disabled"; - }; }; &cru { From patchwork Tue Jun 6 17:09:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 2903 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f199.google.com (mail-pf1-f199.google.com [209.85.210.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id E647F3F042 for ; Tue, 6 Jun 2023 19:09:45 +0200 (CEST) Received: by mail-pf1-f199.google.com with SMTP id d2e1a72fcca58-65fd8267042sf531378b3a.0 for ; Tue, 06 Jun 2023 10:09:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1686071384; cv=pass; d=google.com; s=arc-20160816; b=lpKqdSMjoncYZ3dQ8xgonCVHAu5qqCPu48ImjHy9PDvj0JXaU+uGZwKQTec66OSYTa v3sKy9Ebo6O89GvSKdG3Oma0YZojRBUtRkyQf8Oj0cJduM1N2Vs3BKTaTndEDZdWtfyl +5ZqiRu6XPYZ1TUgCefO9IoBGrTfOsLWJZNUCBTwCAvi1DJDHjKTMCknOMdllo8zF0H4 p1dQKGex5i1+XvL+6qbRMBpthrdHG7WNRF4wACunvZRvSkHT+98Ub2wXNNNMtHWauoG2 Lt5KJseywb+EJseUDGUNE2KJBqWtiN+R6VLDp4SlzqQH3NZikdhOBKj0KsIm+5GxQW40 IJ9w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=/6uTJnK7F0MhZvUaVnr3G/SHq9Wn0zGLQ9GAt+6YyMs=; b=U5mtgaLQMPMhj7by3HRYyw8Vt+8+mqsnNpQwZ9TkRlMD+vimOYEuH9oigVLqOJA53N SrFEPha7M9n/rqw3hTdlyes8PTLOkJGK/n/aRCxBCjZ9N7rtIdCNGoxkTnPVq6rN0C7m +zKIif7WqcxUQRhYy5ZW108omg+q0IVTRxihCng8K6HVi/5Kemu1Z0VALPIdnTYskWmZ pERdvkh98R2yi9EwFPSUwoBUlCtu4M6CXkOLTPa0WS97gmNXgiP/i/jqc2DG/DvT7uQl P68dSRkYNPQaTre8mFtyTJLqRk7h5u7z/lzjrGjQLNCGvHYoY83fOpQ6cEJ75UaXKX3k zjkw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=acrEi+HD; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1686071384; x=1688663384; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=/6uTJnK7F0MhZvUaVnr3G/SHq9Wn0zGLQ9GAt+6YyMs=; b=IdjmBPcn7Q4l1HYon8dvCujuvz4z0lfwHLaFCCsIz9YQ72hyd8Uikpb5BH+VxseMJL emAMmnOTOWckyxMmbEE8zP+ptzsYd1zKIu5j27sphokc6N9Se4qLFk1fzZCxBC6Nghzm C/oMXgIKNM4Xcy221aXWEWMfkMjEpdg/bpDMA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686071384; x=1688663384; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :x-beenthere:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=/6uTJnK7F0MhZvUaVnr3G/SHq9Wn0zGLQ9GAt+6YyMs=; b=lfL5JEcwt8zbeJi0rWExaoBIwACkqg54NIjm2B9/OFmrqNaq/kPYcEMrnZNiT0umbr KcrP9tLhuYvPnyZhO8nmUZbmprz25mvVUUvH+HUXJJwyPhGyyTifuch2TW0wcv1Ms24x Bk7zokLSRLh0yV11fUotAbVqk327zh+FzmwmEtAvb3kZQ/1k5uiT24bkXgf7/J5YlYMm rF9aPFft67oTscbkb5JKAdwgQBWpe77SHaQePnEq69IKFlg2RIPsg83eW99QQdCdPVWl k+HBVqNeN+MHK1nq+6ZQ9owO6iCGmfZ0NI3tqIYIr86LRA5LFvb1FeUJHPamw76bWsg3 cRGg== X-Gm-Message-State: AC+VfDyBLvXy/+B9AFenux3RrUW+29/AbQK0tRDA79z7FIvS3YL3qcQ/ FPpeKm5YtccG4rntJWtVUZYspbYY X-Google-Smtp-Source: ACHHUZ4kmTvokKIEotJZrLy+BSDoXkEt7Ynq0clgD2fuA6P62Sa+pHxHkf+2onok6YCPyCWFgDzSsQ== X-Received: by 2002:a05:6a00:1409:b0:64c:c5f9:1533 with SMTP id l9-20020a056a00140900b0064cc5f91533mr2133430pfu.33.1686071384616; Tue, 06 Jun 2023 10:09:44 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a62:8649:0:b0:64d:33e1:b3c4 with SMTP id x70-20020a628649000000b0064d33e1b3c4ls10125pfd.0.-pod-prod-04-us; Tue, 06 Jun 2023 10:09:44 -0700 (PDT) X-Received: by 2002:a05:6a00:a8d:b0:647:370c:2c2a with SMTP id b13-20020a056a000a8d00b00647370c2c2amr2029807pfl.6.1686071383629; Tue, 06 Jun 2023 10:09:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686071383; cv=none; d=google.com; s=arc-20160816; b=Jn4/j3NXAHhr0bA50Hw7bT/GyP09fYxs1ZJtDzg0bKhYAVWtYBAakVAs60E9lSta5P 9kzS8bxlugKEtafUqSFM1r3nB0iNkmVswIi2Av4A7Z3FN+cLVdlvpWsILy11sRlpn/Hq ceO2Ig/Ivn4hRj1ei76yBTZo0/lM+m0YSz9Fj41U9TK/zLGQEPeOm9PwDzwfFWv7Wu+W bYAg+8KStSSbIU9HtABTUVNM4jsoW2bL0csq5dAf8G6T3DxCdLo/B1IaJioyrPQ8h9Kp ltKx/Yl/YSYTHWCvOV7KviQOGdB3KahItOXK8XBFyDYQ2h7aQMWdlpWTgNsrb8rv89nX GWJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=pQBCHCJ8cFvvXV++KgHfZMydPaS/exRCM0W28XYG+Js=; b=IRiA+BaHTTkKR6xhWshxwJYNzoMxzeWPL3HqXdYFNBGL+f/Hhw5LAT6yPxXthYmOYi E0bUFyx4yqugxyRXXcK3POeQmCBd9eXTRJNaURGnZz80JOi5rbH1i42oFE3Um7jDxUwY 2egYi9lkglXZ70HICNhu7I+TFeQlhj32YoQ1Tx2PiXw4zMPwn06ctdPLrA/CWzRhYIxL qk21AEctuqakGbwMUnhfnTFIqHm4u6S3c+h5w5NXr40irlqMP7ttCyRggXrFyLS9iXN2 PHc/dfwA/k9g5Gkz9VUYddZ2N0EsskHxtAbtaoNWjBPZlyOfPhqGd3yooE19Ygsyfq7P Jclw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=acrEi+HD; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id u124-20020a627982000000b0064fffa01539sor3304260pfc.9.2023.06.06.10.09.43 for (Google Transport Security); Tue, 06 Jun 2023 10:09:43 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a05:6a21:9982:b0:10f:500b:18a2 with SMTP id ve2-20020a056a21998200b0010f500b18a2mr281282pzb.48.1686071383240; Tue, 06 Jun 2023 10:09:43 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:2001:f7d3:5b78:1d82:fb5f:608c]) by smtp.gmail.com with ESMTPSA id bc8-20020a170902930800b001ab0159b9edsm8695129plb.250.2023.06.06.10.09.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Jun 2023 10:09:42 -0700 (PDT) From: Jagan Teki To: Kever Yang , Simon Glass , Philipp Tomsich Cc: Jonas Karlman , u-boot@lists.denx.de, linux-amarula@amarulasolutions.com, Jagan Teki , Tianling Shen , David Bauer , Loic Devulder , Chen-Yu Tsai , Banglang Huang , "Matwey V . Kornilov" Subject: [PATCH v2 2/7] configs: Drop unused XHCI_DWC3 for RK3328 boards Date: Tue, 6 Jun 2023 22:39:13 +0530 Message-Id: <20230606170918.45581-3-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230606170918.45581-1-jagan@amarulasolutions.com> References: <20230606170918.45581-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=acrEi+HD; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Driver support for rk3328 is not supported so drop this unused XHCI_DWC3. Cc: Tianling Shen Cc: David Bauer Cc: Loic Devulder Cc: Chen-Yu Tsai Cc: Banglang Huang Cc: Matwey V. Kornilov Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- Changes for v2: - none configs/evb-rk3328_defconfig | 1 - configs/nanopi-r2c-rk3328_defconfig | 1 - configs/nanopi-r2s-rk3328_defconfig | 1 - configs/roc-cc-rk3328_defconfig | 1 - configs/rock-pi-e-rk3328_defconfig | 1 - configs/rock64-rk3328_defconfig | 1 - 6 files changed, 6 deletions(-) diff --git a/configs/evb-rk3328_defconfig b/configs/evb-rk3328_defconfig index 580ee502dc..5ab7abff9e 100644 --- a/configs/evb-rk3328_defconfig +++ b/configs/evb-rk3328_defconfig @@ -93,7 +93,6 @@ CONFIG_SYSRESET=y # CONFIG_TPL_SYSRESET is not set CONFIG_USB=y CONFIG_USB_XHCI_HCD=y -CONFIG_USB_XHCI_DWC3=y CONFIG_USB_EHCI_HCD=y CONFIG_USB_EHCI_GENERIC=y CONFIG_USB_OHCI_HCD=y diff --git a/configs/nanopi-r2c-rk3328_defconfig b/configs/nanopi-r2c-rk3328_defconfig index 84710c185b..6af874ca2c 100644 --- a/configs/nanopi-r2c-rk3328_defconfig +++ b/configs/nanopi-r2c-rk3328_defconfig @@ -97,7 +97,6 @@ CONFIG_SYSRESET=y # CONFIG_TPL_SYSRESET is not set CONFIG_USB=y CONFIG_USB_XHCI_HCD=y -CONFIG_USB_XHCI_DWC3=y CONFIG_USB_EHCI_HCD=y CONFIG_USB_EHCI_GENERIC=y CONFIG_USB_OHCI_HCD=y diff --git a/configs/nanopi-r2s-rk3328_defconfig b/configs/nanopi-r2s-rk3328_defconfig index 21d7a073e2..7b0fadbce9 100644 --- a/configs/nanopi-r2s-rk3328_defconfig +++ b/configs/nanopi-r2s-rk3328_defconfig @@ -97,7 +97,6 @@ CONFIG_SYSRESET=y # CONFIG_TPL_SYSRESET is not set CONFIG_USB=y CONFIG_USB_XHCI_HCD=y -CONFIG_USB_XHCI_DWC3=y CONFIG_USB_EHCI_HCD=y CONFIG_USB_EHCI_GENERIC=y CONFIG_USB_OHCI_HCD=y diff --git a/configs/roc-cc-rk3328_defconfig b/configs/roc-cc-rk3328_defconfig index 6b3bc75ae9..477179e80e 100644 --- a/configs/roc-cc-rk3328_defconfig +++ b/configs/roc-cc-rk3328_defconfig @@ -102,7 +102,6 @@ CONFIG_SYSRESET=y # CONFIG_TPL_SYSRESET is not set CONFIG_USB=y CONFIG_USB_XHCI_HCD=y -CONFIG_USB_XHCI_DWC3=y CONFIG_USB_EHCI_HCD=y CONFIG_USB_EHCI_GENERIC=y CONFIG_USB_OHCI_HCD=y diff --git a/configs/rock-pi-e-rk3328_defconfig b/configs/rock-pi-e-rk3328_defconfig index 9c67d0c5fe..633d5417a9 100644 --- a/configs/rock-pi-e-rk3328_defconfig +++ b/configs/rock-pi-e-rk3328_defconfig @@ -103,7 +103,6 @@ CONFIG_SYSRESET=y # CONFIG_TPL_SYSRESET is not set CONFIG_USB=y CONFIG_USB_XHCI_HCD=y -CONFIG_USB_XHCI_DWC3=y CONFIG_USB_EHCI_HCD=y CONFIG_USB_EHCI_GENERIC=y CONFIG_USB_OHCI_HCD=y diff --git a/configs/rock64-rk3328_defconfig b/configs/rock64-rk3328_defconfig index 74a9cc0a7d..ae761d08a1 100644 --- a/configs/rock64-rk3328_defconfig +++ b/configs/rock64-rk3328_defconfig @@ -100,7 +100,6 @@ CONFIG_SYSRESET=y # CONFIG_TPL_SYSRESET is not set CONFIG_USB=y CONFIG_USB_XHCI_HCD=y -CONFIG_USB_XHCI_DWC3=y CONFIG_USB_EHCI_HCD=y CONFIG_USB_EHCI_GENERIC=y CONFIG_USB_OHCI_HCD=y From patchwork Tue Jun 6 17:09:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 2904 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f197.google.com (mail-pg1-f197.google.com [209.85.215.197]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 80E2D3F042 for ; Tue, 6 Jun 2023 19:09:51 +0200 (CEST) Received: by mail-pg1-f197.google.com with SMTP id 41be03b00d2f7-543a4c481b1sf859874a12.2 for ; Tue, 06 Jun 2023 10:09:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1686071390; cv=pass; d=google.com; s=arc-20160816; b=Md7ARycLBc+AMeb2z+kk6r1g245yFxR3mfd2RKW9XcQUFIzbFm1QIC/4ol6Gx3+no4 83+DL+CkWfoRMZIr919DgTVa1hcBXjCw9WmJy/W45B8SqoS9rgdWD6tBTzu/oN4cjhKj Ar9++HFihVws/leZY1N6hIUkmKXX6GGYg8SJcejj+vKpq9Z+uIgtJsKYjqYBK2S+Yn0z NPoyQsQVk04Uc2edBCyfda6kSWinyczRChCsaKyKDvNnxDoJz8M4m3SOrGCRwnQQpj7c dWVigS7oYD34UdxZnL6hLtpEQSNseXIM1BF4u9DvN2KmLm2MxpThFV4vHle0F2EovHCs 7IMA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=bqW2loBntY1GMy1Xk87YeB8TOI7ESHqhQ1pi5vAXdkA=; b=u1c8UmmEZ5DeN0OUl1TRL7UU3RdQpbHzbbQNNyey50+blCoar+/P64TNbTJrOo4klW ixgVPEZSUHeAh994vqPULcW3NkSskGq+tLO9LjHrt4PIt5ZLYdK0Oe3oIcjz2cUVkKBy OrB8vT6rsNVL3zzMCgkCArDWTGUt1Oh/Tmx8otl1a72lCJ7KyFR89wvFg+xyh0mc2bsg EE+oECg9kmRUCMxRofdeoLWRmRgXuFVjhiODnSzkg5kMkcHbN0zEWeChUPXZaFQCEZJ7 TZjN6R2iQFMN0yH9EIA1WNQF9dIMeISmjtLes26OPaGcJOwTUTeybMZ15hLpG4o0Ppew FRVw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Qihe9Z7L; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1686071390; x=1688663390; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=bqW2loBntY1GMy1Xk87YeB8TOI7ESHqhQ1pi5vAXdkA=; b=nBJ9Dftd2we0tQib5zIkXeK4Nb3LL3DrG1d78UPEfM1sB/5DrDCXkHqL1zIxAVAbOh CmdDsf3gmaQ0DnVlLID++6RAXFpsRdqjd0EhDREfiXOiSWe/0yCvI7ubcFp9ycL+XL8m YOJmT5t/d/+lzVO42xlzBd+McRhNbCVyjmHa0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686071390; x=1688663390; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :x-beenthere:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=bqW2loBntY1GMy1Xk87YeB8TOI7ESHqhQ1pi5vAXdkA=; b=f1GMUwDEZT6IYM0/3N0ddOaXKQaAwhsMvODLRz0dWpeuTsj7p06ZuIc8PZChEolJGD A6Ja4LVNw/1Wuwv1IyDK9t4nUESmwiBzQBPjqiwGgA3I7hXYOf8JuGAvKtrsY8CxodtT 1xmC3sxdk0eg2U3kC9G0FLYfFzTTgGsVm65rH93kQodsLMA5+jr04KycNJLB62ffRBp6 MIiXGloO0MKC+HdUvrXQ0lLuahPY3a4xp8fPteU4y2v+z+x66vn03JvB4chUgz9NXtQu E+zlqzWoX3aqJnEe8XulK8+BLUttUOW1f00ojXY6zT/aUyc2ICNb7eRsSCnrLjafKgf1 4G1w== X-Gm-Message-State: AC+VfDxMB1SpmkyiOldqZSsrORsMCsjzjVZes0PPZWhuxXLZc+rAn43i Ni5H/jtnwOGSoxKgOUBc0nI8Ls2X X-Google-Smtp-Source: ACHHUZ6Q30iizyD7c3f2Prre5hPoqjWs4Y4YJ6A7qBlL0LURZhBrHL/UxBd8IyFyMAllU7p9EdvEGA== X-Received: by 2002:a05:6a21:3394:b0:115:10d0:f189 with SMTP id yy20-20020a056a21339400b0011510d0f189mr297128pzb.26.1686071390159; Tue, 06 Jun 2023 10:09:50 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:903:41c7:b0:1b0:32ba:92d4 with SMTP id u7-20020a17090341c700b001b032ba92d4ls2907430ple.1.-pod-prod-09-us; Tue, 06 Jun 2023 10:09:49 -0700 (PDT) X-Received: by 2002:a05:6a20:440f:b0:10f:9317:1539 with SMTP id ce15-20020a056a20440f00b0010f93171539mr268392pzb.32.1686071389134; Tue, 06 Jun 2023 10:09:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686071389; cv=none; d=google.com; s=arc-20160816; b=VXViL0hponzCL4xbhAy25jJLaZ4ZJgvmSJasS+peFgPei0Xq75mA4YIoaPyK+Jfio2 9lQIk1GbUtycNzjx1k+N0G33ogNpg729/WawhhfRqIrkT64d89Gk1mQRpsTDirmyrcBq DnCBMMaR4Zb9A4LPbIITcTjBKUuJfNiNKJyDQmwPyWkdJF6Q/WUSpauKG2kg2TtUHSY2 2+9ltGbTZYslhY/qcgqrcc+bb4R+O+6RWh2KdqpVOlwvpwBwQSCOdedkfP4WPDt1VlA6 qLXEV1AkJN6txHx0JPY3a4fvZSw9CfHqqnF9LW+idp5pcBscgPFGs3KV4eYkKi8o6tUL YDdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=x5KIKqgQLBxv++/n2VT9Oei2mLKl8tH2ZW875+oFCC0=; b=lCfyM1KUeYMp9ldSQwk/5jTugj+FSq2KcnPMQ9eAldV0WHZzpP2sm7qLYE5x+GwF17 CkQbhbMzvFoiTiI9R8SS2JuH3hRMjDtFK1p6vi8wIBCPuNJiVLC6aYafEOX9ZVc8/jvv E7ZhrYMGpWRA97rr2lWAmBbcnFZcdBcEkPM5d5aR1lPHvSwDGE0IwXRwP+1LNM/1kIzo IMxg7RKIqAlKpWFosb0yNx5beDrn6t/Sn/pH8sxuGe6LYUVQCKwqrMELuBDdbGtStAsW o+xIUOAFLRHoxYOxneX7QrwgEOLvs/NAv5ZEpeLe1PLRS5QlrGljdcVNYXl4WM0+5QPi YRAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Qihe9Z7L; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id y19-20020a170902e19300b001b02d9733e0sor2309855pla.15.2023.06.06.10.09.49 for (Google Transport Security); Tue, 06 Jun 2023 10:09:49 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a17:902:d314:b0:1af:b049:b32e with SMTP id b20-20020a170902d31400b001afb049b32emr1210671plc.56.1686071388809; Tue, 06 Jun 2023 10:09:48 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:2001:f7d3:5b78:1d82:fb5f:608c]) by smtp.gmail.com with ESMTPSA id bc8-20020a170902930800b001ab0159b9edsm8695129plb.250.2023.06.06.10.09.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Jun 2023 10:09:48 -0700 (PDT) From: Jagan Teki To: Kever Yang , Simon Glass , Philipp Tomsich Cc: Jonas Karlman , u-boot@lists.denx.de, linux-amarula@amarulasolutions.com, Jagan Teki , Marek Vasut Subject: [PATCH v2 3/7] usb: dwc3-generic: Restrict single ctrl node for RK3328 Date: Tue, 6 Jun 2023 22:39:14 +0530 Message-Id: <20230606170918.45581-4-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230606170918.45581-1-jagan@amarulasolutions.com> References: <20230606170918.45581-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Qihe9Z7L; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Like Rockchip RK3568, the RK3328 also have single node to represent the glue and ctrl for USB 3.0. So, use the driver data to use single ctrl for RK3328 DWC3. Reviewed-by: Marek Vasut Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- Changes for v2: - collect Marek RB drivers/usb/dwc3/dwc3-generic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/dwc3/dwc3-generic.c b/drivers/usb/dwc3/dwc3-generic.c index 5f8c2613a4..dcf420bafd 100644 --- a/drivers/usb/dwc3/dwc3-generic.c +++ b/drivers/usb/dwc3/dwc3-generic.c @@ -621,7 +621,7 @@ static const struct udevice_id dwc3_glue_ids[] = { { .compatible = "ti,dwc3", .data = (ulong)&ti_ops }, { .compatible = "ti,am437x-dwc3", .data = (ulong)&ti_ops }, { .compatible = "ti,am654-dwc3" }, - { .compatible = "rockchip,rk3328-dwc3" }, + { .compatible = "rockchip,rk3328-dwc3", .data = (ulong)&rk_ops }, { .compatible = "rockchip,rk3399-dwc3" }, { .compatible = "rockchip,rk3568-dwc3", .data = (ulong)&rk_ops }, { .compatible = "qcom,dwc3" }, From patchwork Tue Jun 6 17:09:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 2905 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f197.google.com (mail-pf1-f197.google.com [209.85.210.197]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 13F723F042 for ; Tue, 6 Jun 2023 19:09:59 +0200 (CEST) Received: by mail-pf1-f197.google.com with SMTP id d2e1a72fcca58-65592a7cb54sf3379388b3a.0 for ; Tue, 06 Jun 2023 10:09:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1686071398; cv=pass; d=google.com; s=arc-20160816; b=BM3bik8u6NhVfief7W1VGNYxgKlYlkweakn4l4yIRiXaR8sY9xG4v8hI7f+GBWcnxz ou38Fk1oegxnBOP+XpYBHZqXEye+Gx4rvfSMicbfDxFDNIRNXmPpuDNsDvmab4eSUS2M ZImupji7gy7CIpGJ3UWF/OcJ6Bj0mClCtNvQBY1UAESFYWRSgKEPQZdGYuGRZE+MFOlb 3l9cCmJCg88zCzl+nRkPCy1lIb+vCt5xcna/VRUNcswIqFU7KrgpI9iAIqZqR7EYBHRa LtX7cspVO7KArKi3SJf+KVU7AAxHn7K3jiyAEwtMfAN/iUTP7xmjXpYjb3yLzS3RR/cs zvuQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=l0/wcMCyYjTc2ggg2PuSYAUxMTGqo9YQtJVmN1On2+E=; b=ouQcEbwEYWFnOl5t8yXltURL8Myyrfl/z+noGpsHJU+XoJ8CPggezr8eULIysVuue6 4rw6KH9PwlXqnqUFADeLbTdntRD7y8Opq66umvY8KSaihFJIrmNy03RvvdKdMr+80bgT Q26jH0fUTMJgQAYGwZyR9CZbPNL2ukPKwHScsWpK4neyROaENwwTgLbGxN23zwFR5ZWm FFwCQtS0nueDtgbwh1XUil56KJaEXLuJwpi94MtksWRtg1dnkDxbmvAel/yRZJJfrK1S 91FzN5pfYh/m6ncyaNl9tvypz7AtZJphCcS3J3vfYQFe63U0ob5C54svosSq7lC3CUDJ clHg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=rJZbhvye; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1686071398; x=1688663398; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=l0/wcMCyYjTc2ggg2PuSYAUxMTGqo9YQtJVmN1On2+E=; b=P7ntePXTSe38cRdbhWEnN8ruPuYYTQWG4XlZm0v4b59HzZxbpLqmiqNNbn5fzLlMqT eFDX6oCtmVilL/nJqHV/SdaqUdPBstFfzAHyTILK6IVtO8r54OZ6vmoP6H20sU0HToI+ d9sjBZ4vyrRIo1SOeKJGZJMVBxPnT7MFhCHsk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686071398; x=1688663398; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :x-beenthere:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=l0/wcMCyYjTc2ggg2PuSYAUxMTGqo9YQtJVmN1On2+E=; b=TR/+GjUM+fRbcT6wnitlPTV3RH8cboVgYwPlkRJmET8wAY8hJPk2d8dJvhHd3ihdyI D2uIM8GA+jV2Xm8A8G0Kp5U7I0/5uax5eN0fMvWRmnXDRpocnTujlNDnjitGuztZ5o8W w5fm6m5mXmUF1djzux3W6o8RUSNnnj4utIGrNxP3GYTWtqJVp7VqOxfSDg3ZRoD9njWY TRjlgjy9b7tZVm5sUaxyio/6RRadwYAjnVVKiAQ3o/ddomEEpBpC4ZOGpPq6TCZonTFw ibMe+mKmcD5ycC2MQqtPdq3sMpWYjWI6DaYgBVI59lHBhXyulfkE+uG4Dij2bG0rutQ9 JhAQ== X-Gm-Message-State: AC+VfDwbpNGnqDzOpqiYHgskemRp+Y3rvRBo2M9pGNACan28QJtGfgdL fpr6W6CyQOOmtwLFoJT+LuIGzcwc X-Google-Smtp-Source: ACHHUZ5LJkHBKl6OKCxq1pz3UHrGnuKFPq4Y8IiXEl/405fTVUUa+KNiDr5UF5J2Yzgx90U8gpenzg== X-Received: by 2002:a05:6a00:1143:b0:64d:4412:9923 with SMTP id b3-20020a056a00114300b0064d44129923mr3665932pfm.3.1686071397845; Tue, 06 Jun 2023 10:09:57 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a62:cdcb:0:b0:659:1fd1:a684 with SMTP id o194-20020a62cdcb000000b006591fd1a684ls322109pfg.1.-pod-prod-06-us; Tue, 06 Jun 2023 10:09:57 -0700 (PDT) X-Received: by 2002:a05:6a20:6714:b0:10a:e8c2:7227 with SMTP id q20-20020a056a20671400b0010ae8c27227mr282039pzh.45.1686071396676; Tue, 06 Jun 2023 10:09:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686071396; cv=none; d=google.com; s=arc-20160816; b=zK5h7YEk61XmZ2+uRX71aPC6ixkWAiwQ4H74rz7GiDqzGabJNQGPjOHq0NlVpdnewr utb2Br/x0glXe7xPvi1nWM6y7GQGY+Ycw8U5OjPt7oGAxOdmHhBJzxHbUMudt60mj8tE WURbVrb5F6+M16y5rc1o0ymxAV5yrnCwg/bnxJ5+er6XORScgIi6SX68AugRiRZzV050 UC2Y77GQBIJ8a5O/A5Tor71rcy/Uplvv2sascH+ILqByBJUyj90D4UpzO92+et6xPNPG CDk5ayq9UQa7Qdayir6Nzgv7chMqsnnEo97U7LZ/yH9chZsdfg3JHV3yQO6Xe75ijEF8 D95w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=1nyaUVsvBumEYHl2VNtMKQz3t4wk3ZrRYCr+MnIFQcQ=; b=a58nxgw9kaFxsNkZ5eOYESgmZh7aVHs7pWgUQNEiMFOaEX9e2zxDaj+dR1Q1lcwBYc unq0yNzN13o4K+9lyhshcZBpIpxH6BpxE1tnfUVN+70xHJ+mN/wByGt8ez8SARMieg4w izBoarb2aJ0Abg4xeDWjlq+ZpSYK8b3/rDdYgygCNa1nwzC6mCLi/Uh2PxsQ3WYSkDxK C/UiDu7spNihw6XvKKMRpqQ+ozZpGjzuukPg2Pn+4+qgf0AQZhXYL81giznJpJoxlfQk oq42z58eBwgfGPGDy3toqE7Ec/NsJYQwT3tccX5baITIunMiKVsm9ziXScPT6j67UJlR yfbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=rJZbhvye; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id j14-20020a633c0e000000b0051b84535458sor4441437pga.7.2023.06.06.10.09.56 for (Google Transport Security); Tue, 06 Jun 2023 10:09:56 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a17:902:bcc8:b0:1b0:122f:672b with SMTP id o8-20020a170902bcc800b001b0122f672bmr2782658pls.47.1686071396372; Tue, 06 Jun 2023 10:09:56 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:2001:f7d3:5b78:1d82:fb5f:608c]) by smtp.gmail.com with ESMTPSA id bc8-20020a170902930800b001ab0159b9edsm8695129plb.250.2023.06.06.10.09.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Jun 2023 10:09:55 -0700 (PDT) From: Jagan Teki To: Kever Yang , Simon Glass , Philipp Tomsich Cc: Jonas Karlman , u-boot@lists.denx.de, linux-amarula@amarulasolutions.com, Jagan Teki , Tianling Shen , David Bauer , Loic Devulder , Chen-Yu Tsai , Banglang Huang , "Matwey V . Kornilov" Subject: [PATCH v2 4/7] configs: Enable DWC3 USB 3.0 on RK3328 boards Date: Tue, 6 Jun 2023 22:39:15 +0530 Message-Id: <20230606170918.45581-5-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230606170918.45581-1-jagan@amarulasolutions.com> References: <20230606170918.45581-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=rJZbhvye; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Enable USB 3.0 in all RK3328 boards. => usb start starting USB... Bus usb@ff5c0000: ehci_generic usb@ff5c0000: Failed to get clocks (ret=-19) Port not available. Bus usb@ff5d0000: USB OHCI 1.0 Bus usb@ff600000: Register 2000140 NbrPorts 2 Starting the controller USB XHCI 1.10 Bus usb@ff580000: 1 USB Device(s) found scanning usb for storage devices... 1 Storage Device(s) found => usb tree USB device tree: 1 Hub (12 Mb/s, 0mA) U-Boot Root Hub 1 Hub (5 Gb/s, 0mA) | U-Boot XHCI Host Controller | +-2 Mass Storage (5 Gb/s, 224mA) SanDisk Dual Drive 040130e3ee554b7078843f4eb331646 1 Hub (480 Mb/s, 0mA) U-Boot Root Hub Cc: Tianling Shen Cc: David Bauer Cc: Loic Devulder Cc: Chen-Yu Tsai Cc: Banglang Huang Cc: Matwey V. Kornilov Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- Changes for v2: - none configs/evb-rk3328_defconfig | 2 ++ configs/nanopi-r2c-rk3328_defconfig | 2 ++ configs/nanopi-r2s-rk3328_defconfig | 2 ++ configs/roc-cc-rk3328_defconfig | 2 ++ configs/rock-pi-e-rk3328_defconfig | 2 ++ configs/rock64-rk3328_defconfig | 2 ++ 6 files changed, 12 insertions(+) diff --git a/configs/evb-rk3328_defconfig b/configs/evb-rk3328_defconfig index 5ab7abff9e..5183d65451 100644 --- a/configs/evb-rk3328_defconfig +++ b/configs/evb-rk3328_defconfig @@ -69,6 +69,7 @@ CONFIG_FASTBOOT_BUF_ADDR=0x800800 CONFIG_FASTBOOT_CMD_OEM_FORMAT=y CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y +CONFIG_MISC=y CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_ETH_DESIGNWARE=y @@ -100,6 +101,7 @@ CONFIG_USB_OHCI_GENERIC=y CONFIG_USB_DWC2=y CONFIG_USB_DWC3=y # CONFIG_USB_DWC3_GADGET is not set +CONFIG_USB_DWC3_GENERIC=y CONFIG_USB_GADGET=y CONFIG_USB_GADGET_DWC2_OTG=y CONFIG_SPL_TINY_MEMSET=y diff --git a/configs/nanopi-r2c-rk3328_defconfig b/configs/nanopi-r2c-rk3328_defconfig index 6af874ca2c..fb0b8719fb 100644 --- a/configs/nanopi-r2c-rk3328_defconfig +++ b/configs/nanopi-r2c-rk3328_defconfig @@ -71,6 +71,7 @@ CONFIG_FASTBOOT_BUF_ADDR=0x800800 CONFIG_FASTBOOT_CMD_OEM_FORMAT=y CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y +CONFIG_MISC=y CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_ETH_DESIGNWARE=y @@ -104,6 +105,7 @@ CONFIG_USB_OHCI_GENERIC=y CONFIG_USB_DWC2=y CONFIG_USB_DWC3=y # CONFIG_USB_DWC3_GADGET is not set +CONFIG_USB_DWC3_GENERIC=y CONFIG_USB_GADGET=y CONFIG_USB_GADGET_DWC2_OTG=y CONFIG_SPL_TINY_MEMSET=y diff --git a/configs/nanopi-r2s-rk3328_defconfig b/configs/nanopi-r2s-rk3328_defconfig index 7b0fadbce9..79cb17d751 100644 --- a/configs/nanopi-r2s-rk3328_defconfig +++ b/configs/nanopi-r2s-rk3328_defconfig @@ -71,6 +71,7 @@ CONFIG_FASTBOOT_BUF_ADDR=0x800800 CONFIG_FASTBOOT_CMD_OEM_FORMAT=y CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y +CONFIG_MISC=y CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_ETH_DESIGNWARE=y @@ -104,6 +105,7 @@ CONFIG_USB_OHCI_GENERIC=y CONFIG_USB_DWC2=y CONFIG_USB_DWC3=y # CONFIG_USB_DWC3_GADGET is not set +CONFIG_USB_DWC3_GENERIC=y CONFIG_USB_GADGET=y CONFIG_USB_GADGET_DWC2_OTG=y CONFIG_SPL_TINY_MEMSET=y diff --git a/configs/roc-cc-rk3328_defconfig b/configs/roc-cc-rk3328_defconfig index 477179e80e..f5912ceca9 100644 --- a/configs/roc-cc-rk3328_defconfig +++ b/configs/roc-cc-rk3328_defconfig @@ -72,6 +72,7 @@ CONFIG_FASTBOOT_BUF_ADDR=0x800800 CONFIG_FASTBOOT_CMD_OEM_FORMAT=y CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y +CONFIG_MISC=y CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_PHY_REALTEK=y @@ -109,6 +110,7 @@ CONFIG_USB_OHCI_GENERIC=y CONFIG_USB_DWC2=y CONFIG_USB_DWC3=y # CONFIG_USB_DWC3_GADGET is not set +CONFIG_USB_DWC3_GENERIC=y CONFIG_USB_GADGET=y CONFIG_USB_GADGET_DWC2_OTG=y CONFIG_SPL_TINY_MEMSET=y diff --git a/configs/rock-pi-e-rk3328_defconfig b/configs/rock-pi-e-rk3328_defconfig index 633d5417a9..e86a6f7b1a 100644 --- a/configs/rock-pi-e-rk3328_defconfig +++ b/configs/rock-pi-e-rk3328_defconfig @@ -73,6 +73,7 @@ CONFIG_FASTBOOT_BUF_ADDR=0x800800 CONFIG_FASTBOOT_CMD_OEM_FORMAT=y CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y +CONFIG_MISC=y CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_ETH_DESIGNWARE=y @@ -101,6 +102,7 @@ CONFIG_SYSINFO=y CONFIG_SYSINFO_SMBIOS=y CONFIG_SYSRESET=y # CONFIG_TPL_SYSRESET is not set +CONFIG_USB_DWC3_GENERIC=y CONFIG_USB=y CONFIG_USB_XHCI_HCD=y CONFIG_USB_EHCI_HCD=y diff --git a/configs/rock64-rk3328_defconfig b/configs/rock64-rk3328_defconfig index ae761d08a1..4acbca0140 100644 --- a/configs/rock64-rk3328_defconfig +++ b/configs/rock64-rk3328_defconfig @@ -71,6 +71,7 @@ CONFIG_FASTBOOT_BUF_ADDR=0x800800 CONFIG_FASTBOOT_CMD_OEM_FORMAT=y CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y +CONFIG_MISC=y CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_SPI_FLASH_GIGADEVICE=y @@ -107,6 +108,7 @@ CONFIG_USB_OHCI_GENERIC=y CONFIG_USB_DWC2=y CONFIG_USB_DWC3=y # CONFIG_USB_DWC3_GADGET is not set +CONFIG_USB_DWC3_GENERIC=y CONFIG_USB_GADGET=y CONFIG_USB_GADGET_DWC2_OTG=y CONFIG_SPL_TINY_MEMSET=y From patchwork Tue Jun 6 17:09:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 2906 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f199.google.com (mail-pg1-f199.google.com [209.85.215.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id BD2433F042 for ; Tue, 6 Jun 2023 19:10:03 +0200 (CEST) Received: by mail-pg1-f199.google.com with SMTP id 41be03b00d2f7-53f84f75bf4sf2259717a12.3 for ; Tue, 06 Jun 2023 10:10:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1686071402; cv=pass; d=google.com; s=arc-20160816; b=WsxfCa+yHZFGTmjWoskT7FGLAa0KNwH1hH9Rp4gN7ARloql2EK3UlTrwSP57kkFIzU 8iERJI61wtcrbp+mBsA0b3XIikbezVApGKeWb8QseTDx184Ric38/3z+vj21ueAo6ZOd 6+QB75Z6rhL5SVwEPsa7Ksl03RybYuWUfKkj2HBnk7I+ZfLgdHVYMNCXfmaePwHeJ2/H 5l5teudg2kT6yNZZvCuLBIAAzRS95vXo4DeTA5aYd3rTjgAw1AqmAxckLs1KfvaQeMzy nlpUcDAR0OVji8P3+zUV6zR/MdcGL+0IgaqoJHGTDP9NRDbiH7od9PsPIdGCD0cIazpy m4kg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=rzPDohmwku/wwf1G49hCyL5tIT+q5L8JJxkBQfD10+A=; b=YP1Qsla5SttU02GIt+7SPZ2tulGuJn/VLtndHnUxO9l10E+SA2e5EuIyc2J+UHrRw/ G9T7cAuE47NCLayrdkXs7Sbu2KYlksh59E9GvVnNTGBZR1LbLvO+ZHy+zrf2fFBipH+6 84ZXMmcoBJRVQDrLJ/Xjus3gUAf6vPOZo++2VlXH9NK7sGpAM+une4RrpPuwbdiPwP+s u4oI+Aj4aegaHo8rHYxP4aB5AWxvqtAgaEgN+PkOrsWk1dQTwIJuJQWTqYyb/XhKY7fL 1cpBaa3dxzbTEbFIt3LEygMx5H+YExMVsgUEZT/B8L/KmEWwHR9nGaK1LClUTK67Tky5 wAHg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=YX0RPVkm; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1686071402; x=1688663402; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=rzPDohmwku/wwf1G49hCyL5tIT+q5L8JJxkBQfD10+A=; b=EeNobEyIjfOhzk1qugPsHLSjSFv0rDB4AvfhtnvsHVTxkmKKRTy5g6sW67TaAiOUUJ p3wlhm6RcSnZrZsI2ZPzPoMZ+slJX95KSIjkuWmJs17s9d6zij5uCDc1xlRD2j/IHsEw 4TR171WI6mGNqbi1fwAmjUgWVLkPkALqSmkmc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686071402; x=1688663402; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :x-beenthere:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=rzPDohmwku/wwf1G49hCyL5tIT+q5L8JJxkBQfD10+A=; b=BG5WMJ3d5aarMsxeyvsuliAK7XQlrhaGXbwL6aT7eZfjHbHFGlLxSn4n77eB8A9Q9C UQQ4nltd9Yw711Y7lb2/DcEHYUSWN2Agq2TjTnweJMW9sykSRta8TjseolWirZXefNOH KcpvsEim7Y3O1XcIkI+6BPI/oYu4MdmFUG1tCZciD/KfNYMEmWb2tp7LX7K9YoYWe17G uUIkqzHYpNJmnrKWj1AVBedGidxdvaRCzSg0Ai60YS/PZEPG8bDLej8OPwO4eGoXCVxH XWAyx2tl+LL+670F4Nc+nKuV1kaICB0vf0LMnuOlHAaLiX1PGz28hSogzY8hvkYQpQ0N HzkQ== X-Gm-Message-State: AC+VfDw2RtOZZhTp8aHYqqCwQKQ59sKTBlS7ZL0aVCHoOWG0s2J7pB8U r2/2srOiqo+3QW7idGsir6+hWT7j X-Google-Smtp-Source: ACHHUZ69vGNV7DsQkh2RuYd+gYcldeATInUx6vl0fIMCaohqkxErS3+5ZQKqSC52X8VcmIYGZDLJAw== X-Received: by 2002:a05:6a20:4419:b0:103:ef39:a832 with SMTP id ce25-20020a056a20441900b00103ef39a832mr272278pzb.23.1686071402471; Tue, 06 Jun 2023 10:10:02 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:903:22cf:b0:1b0:3f34:8957 with SMTP id y15-20020a17090322cf00b001b03f348957ls2128977plg.0.-pod-prod-01-us; Tue, 06 Jun 2023 10:10:01 -0700 (PDT) X-Received: by 2002:a17:902:d509:b0:1b1:9f51:9ffb with SMTP id b9-20020a170902d50900b001b19f519ffbmr1942043plg.26.1686071401540; Tue, 06 Jun 2023 10:10:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686071401; cv=none; d=google.com; s=arc-20160816; b=nWXiGLwCEjmlzIZX2TeTywOTT+hz1sfXvaVExv/p2iaZkyyf63vD+Fxx9LfNFsNfi/ 6Fg9pmGyfni54iVmsHaqCDojA6w6630eVasfkzaz6KnERkXdbE+qeVba56RaaMdrqrDj 8COkfWmy5WHwxUre/gAL/agjPDwxW+9rjKdwaYrddNlAMeZFds9RNmcPQ+VgYCYSdgiv IfmXKIuQ6q4jbotXxuj7OX3kAw565pD+FCDC8VNSmzGrFvNSMjnjrEZJ1AJe8f+XP0Lx wxxCUSLOC437ItuFbK3a6LplQMMFfkbtl4TNUDNt6oKDjGWkBRx1vYgg1/Oo0zMWJV6T q/pw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=sr1K9l80upKXGWVzSR8+pyCAPneB1GI2wk0Q6eotpK8=; b=AjnbIb1Wyx5IBpgefLrxUdFMUXYeH9Oxlxv5EK6lzvUccHFwFov3cCNSoEBJJQ5k9h 68Xo46AgHvMI8WRk8bGbfYMz72LcgyA156poDaCnvcQ4t+2ZhweBVKr5x1dlKn0MoM5z 7v9zrfpFXGhEa5YmmM7A1d/jddzr86rZq7dYLII/ToMsyQso16FozRkAOXhQJvDWckXw 1FEPEw88VhtVBowT0m/YxvOa6Yu8po9Xwe1ps3hCBq6u9jTpNqkERxvfwVEtQLaosPTQ e9BwNjbrt/ep8oe5IMgH3CPKORQyaVD6afG236CZtDF74vlNE4/Tiw8D3VTYihlm+UnW TMSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=YX0RPVkm; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id e2-20020a170902f1c200b001a80af7be79sor2428135plc.9.2023.06.06.10.10.01 for (Google Transport Security); Tue, 06 Jun 2023 10:10:01 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a17:902:d34b:b0:1ac:6d4c:c26a with SMTP id l11-20020a170902d34b00b001ac6d4cc26amr1658742plk.14.1686071401261; Tue, 06 Jun 2023 10:10:01 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:2001:f7d3:5b78:1d82:fb5f:608c]) by smtp.gmail.com with ESMTPSA id bc8-20020a170902930800b001ab0159b9edsm8695129plb.250.2023.06.06.10.09.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Jun 2023 10:10:00 -0700 (PDT) From: Jagan Teki To: Kever Yang , Simon Glass , Philipp Tomsich Cc: Jonas Karlman , u-boot@lists.denx.de, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH v2 5/7] phy: rockchip-inno-usb2: Add USB2 PHY for RK3328 Date: Tue, 6 Jun 2023 22:39:16 +0530 Message-Id: <20230606170918.45581-6-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230606170918.45581-1-jagan@amarulasolutions.com> References: <20230606170918.45581-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=YX0RPVkm; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , USB2.0 Host and OTG controllers in RK3328 are using USB2PHY. Add support for it. Signed-off-by: Jagan Teki Reviewed-by: Xavier Drudis Ferran Reviewed-by: Kever Yang --- Changes for v2: - add clkout_ctl drivers/phy/rockchip/phy-rockchip-inno-usb2.c | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/drivers/phy/rockchip/phy-rockchip-inno-usb2.c b/drivers/phy/rockchip/phy-rockchip-inno-usb2.c index e43a5ba9b5..d8738f891d 100644 --- a/drivers/phy/rockchip/phy-rockchip-inno-usb2.c +++ b/drivers/phy/rockchip/phy-rockchip-inno-usb2.c @@ -345,6 +345,36 @@ bind_fail: return ret; } +static const struct rockchip_usb2phy_cfg rk3328_usb2phy_cfgs[] = { + { + .reg = 0x100, + .clkout_ctl = { 0x108, 4, 4, 1, 0 }, + .port_cfgs = { + [USB2PHY_PORT_OTG] = { + .phy_sus = { 0x0100, 15, 0, 0, 0x1d1 }, + .bvalid_det_en = { 0x0110, 3, 2, 0, 3 }, + .bvalid_det_st = { 0x0114, 3, 2, 0, 3 }, + .bvalid_det_clr = { 0x0118, 3, 2, 0, 3 }, + .ls_det_en = { 0x0110, 0, 0, 0, 1 }, + .ls_det_st = { 0x0114, 0, 0, 0, 1 }, + .ls_det_clr = { 0x0118, 0, 0, 0, 1 }, + .utmi_avalid = { 0x0120, 10, 10, 0, 1 }, + .utmi_bvalid = { 0x0120, 9, 9, 0, 1 }, + .utmi_ls = { 0x0120, 5, 4, 0, 1 }, + }, + [USB2PHY_PORT_HOST] = { + .phy_sus = { 0x104, 15, 0, 0, 0x1d1 }, + .ls_det_en = { 0x110, 1, 1, 0, 1 }, + .ls_det_st = { 0x114, 1, 1, 0, 1 }, + .ls_det_clr = { 0x118, 1, 1, 0, 1 }, + .utmi_ls = { 0x120, 17, 16, 0, 1 }, + .utmi_hstdet = { 0x120, 19, 19, 0, 1 } + } + }, + }, + { /* sentinel */ } +}; + static const struct rockchip_usb2phy_cfg rk3399_usb2phy_cfgs[] = { { .reg = 0xe450, @@ -498,6 +528,10 @@ static const struct rockchip_usb2phy_cfg rk3588_phy_cfgs[] = { }; static const struct udevice_id rockchip_usb2phy_ids[] = { + { + .compatible = "rockchip,rk3328-usb2phy", + .data = (ulong)&rk3328_usb2phy_cfgs, + }, { .compatible = "rockchip,rk3399-usb2phy", .data = (ulong)&rk3399_usb2phy_cfgs, From patchwork Tue Jun 6 17:09:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 2907 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f199.google.com (mail-pf1-f199.google.com [209.85.210.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 0D9B13F042 for ; Tue, 6 Jun 2023 19:10:10 +0200 (CEST) Received: by mail-pf1-f199.google.com with SMTP id d2e1a72fcca58-6537ff2c93fsf1573697b3a.2 for ; Tue, 06 Jun 2023 10:10:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1686071409; cv=pass; d=google.com; s=arc-20160816; b=nHqccHmW2nmY+CiPUnRWn04mX2Wv8o+AwHscRnG4ti3tCKPRpJhIxPP3M8j0ogUaTN 9xgNbII65WvfbLsgKLclWRCBzdGulUZEfzveVNEEYNXzLioHTtcKEulWFzuDu1lNVjKs IiJmoIPtJdoAq/dcaQzCMCRNzeoKnnoCtLi1h3BRxM053ykHhQKPPsi55lWo4QQeEwme Wx0PI99FdiXdp2uXItWFfK5FYC7FOGcnrMb+sW6lck0xqazoV/+xTq2t+82BzS8wNpvu ebf458y1h6cOkJQQCHU+WDK46xahn/ytuZQOom5bekvSE5GN1S22ykeZerPhfkx+/J5t Fa6A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=5zsb1vM6z3YdUarvvLtITfWAcHyvlt2fEF5GYvVWYa8=; b=llHd46blskiT5qS3CfwyL8gG52eP4zW9ZmtSfVXig9bPg1zena2OVWZO5zjnu4SFfO VDjOjkf/mXgyIVuYivtDPkSi8AoBZHahnfelcaa4fDasgcBtwH8vv1ipXYwtpSkioXAE 8sSea1FTHnEwG9cGuGV8h0BikZeAc/M0qMcv+jjNpic72+TGtYYEDiN/gj1vdYzIuF/N D3ntb0jWTmsT5MvC1W233ap3iyL4FEoocKxuj+7o21C3M0Gnl6dGQCghX+ja+48ePkWz 2gbKgpxVHEbzAlpLQULzkxmAyk4w4wKnl0fZWrykRdBChWajE1pZ8wJMGdccqZsyoXDj MXag== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=HYwJOy8O; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1686071409; x=1688663409; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=5zsb1vM6z3YdUarvvLtITfWAcHyvlt2fEF5GYvVWYa8=; b=fi3CEw+gyavHYYZIx+fKQoABIOK2AHYDWfj3dMGAwTleMQcKGc4vzuYPSpDxc2UhPx RVrqzu1rB3d/H2bgoWkY6fMkgri0XhDzOBDx15apM+W/hV2WLzO06ipVrCeNDi3eA/U0 J/dicYIK6bEox61tQ1MvHnBG+sPVjZofubZqc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686071409; x=1688663409; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :x-beenthere:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=5zsb1vM6z3YdUarvvLtITfWAcHyvlt2fEF5GYvVWYa8=; b=XU36x0qa9yIl1YC1nEXOTeyf16BqsTbrqU+Ze/T05E4LOx/4seyzwyQ+2/RfXoMW6k WsGexovrwEaalkYrcB/6cqXMZAxqkJS66zILXday33FW+R+27qskvkBxwweTLhJ85Ecn +fToooU0QYeVj5hNOrY/eHMxSHaI1MI6/e/LCyBBdAFa+5vRYPuRZMvA3betzaKdjN/z BSPS0u/7wJ9CPU4769NWaSf0k0cytDVvJ2Z7/YYW8G8DZCcM7VOjBl9aoUqbmu152Auq 5O4bj5xB3JNZ0Balx0dnAVI/3oHtC3DtRBxHXzc7mfv7uc3qFta1jyQvImRnOPi8b8Ka Yh4Q== X-Gm-Message-State: AC+VfDx7dqHrKGSpb82zIVJKu3Hk1xipQEfxeKWAozvfsBERjJesefTl vGbAZLEYe+i0m5Z9XMrCQPg8m9QT X-Google-Smtp-Source: ACHHUZ6cfV+hud93zgxxoB1KgAWTblR7sXy8eUSzXqyeVP4WKGKn4vn1w0xLxCGfl4OTYyCu3eFM3g== X-Received: by 2002:a05:6a20:9588:b0:101:17e2:5d4 with SMTP id iu8-20020a056a20958800b0010117e205d4mr197721pzb.39.1686071408816; Tue, 06 Jun 2023 10:10:08 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a62:8e0a:0:b0:64d:2937:defa with SMTP id k10-20020a628e0a000000b0064d2937defals304144pfe.1.-pod-prod-02-us; Tue, 06 Jun 2023 10:10:08 -0700 (PDT) X-Received: by 2002:a05:6a00:3a15:b0:64d:277c:4ab2 with SMTP id fj21-20020a056a003a1500b0064d277c4ab2mr1733654pfb.24.1686071407796; Tue, 06 Jun 2023 10:10:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686071407; cv=none; d=google.com; s=arc-20160816; b=ihKAkclBHX/E199dsnPdrQz+tK6vL8QkcydS/bxXdqbPcOCCWAVosNWMsXXUdMgRL+ pv4z+rn6GgTFFv8th1MAa0mP4W65YMai5ASRVx1sk1aux93NM3fARHRxcCQ3nfbaDeLH o63zO2yrSUlsxkEbf/w1YPFtSdoomR1Oa9UVTAZfstzp6fpBMC+1PwlUknTlJcqBdkWQ Jynkgw0WaLtt7vFoLgRQF7iBrTd61wM7Ixh3LF8hvC8FfM47mv7MzEbJ/EPDh4JoHi4V zdsDleICQbET6HcD78QkP98WZCQ1rb3NgR4mx75rSZAshalGEGxYLL7RDioPxrAZdUSS 9NNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=rfc9IxhVoWOq5xeGe6DdB+cIvzOmi20mIeg56QnB9jQ=; b=jmVyKx2iYrX5Y5TJomTiM7Z3lihBl1PBfzla7aIqRrX93OVPu4NBm26ApOA6Nuwpsd OqhTaC2MqOUOHRlAGwCQqXiz55heYnFsWwPqnkUTyXOR0gLAwjCEBS8CUUH+nxBJLVcp C0VPSziWaDaDg+bmIsBhZA3sDyxLnLRmz3PefbGDbt+uyA5u7I547huk8OQfhdXfVQYv prylmn6uI5gUjRZUQuGD/bKBj58oG9uAWvm95jTeZK3C1esRqq6YUYAq30Nx4IxZXfnL X7CrmF7PR1MERKmC7cpp4tA2vbX2UJwEls6b/8sed2XwnbqRyNGxWwcbq2psLqOuepSX 98YA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=HYwJOy8O; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id g20-20020a625214000000b00659e904e28csor1948566pfb.11.2023.06.06.10.10.07 for (Google Transport Security); Tue, 06 Jun 2023 10:10:07 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a17:903:1207:b0:1b1:9d43:ad4c with SMTP id l7-20020a170903120700b001b19d43ad4cmr2001817plh.40.1686071407498; Tue, 06 Jun 2023 10:10:07 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:2001:f7d3:5b78:1d82:fb5f:608c]) by smtp.gmail.com with ESMTPSA id bc8-20020a170902930800b001ab0159b9edsm8695129plb.250.2023.06.06.10.10.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Jun 2023 10:10:06 -0700 (PDT) From: Jagan Teki To: Kever Yang , Simon Glass , Philipp Tomsich Cc: Jonas Karlman , u-boot@lists.denx.de, linux-amarula@amarulasolutions.com, Jagan Teki , Lukasz Majewski , Sean Anderson Subject: [PATCH v2 6/7] clk: rockchip: rk3328: Handle usb480m phy clock Date: Tue, 6 Jun 2023 22:39:17 +0530 Message-Id: <20230606170918.45581-7-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230606170918.45581-1-jagan@amarulasolutions.com> References: <20230606170918.45581-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=HYwJOy8O; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Handle USB480M clock ID in set_rate() and set_parent() to allow the dt assigned-clocks and assigned-clock-parents work on rk3328.dtsi Cc: Lukasz Majewski Cc: Sean Anderson Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- Changes for v2: - add USB480M to set_parent drivers/clk/rockchip/clk_rk3328.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clk/rockchip/clk_rk3328.c b/drivers/clk/rockchip/clk_rk3328.c index 969b7a8581..ef97381f0e 100644 --- a/drivers/clk/rockchip/clk_rk3328.c +++ b/drivers/clk/rockchip/clk_rk3328.c @@ -681,6 +681,7 @@ static ulong rk3328_clk_set_rate(struct clk *clk, ulong rate) case ACLK_GMAC: case PCLK_GMAC: case SCLK_USB3OTG_SUSPEND: + case USB480M: return 0; default: return -ENOENT; @@ -771,6 +772,7 @@ static int rk3328_clk_set_parent(struct clk *clk, struct clk *parent) case SCLK_MAC2IO_EXT: return rk3328_gmac2io_ext_set_parent(clk, parent); case DCLK_LCDC: + case USB480M: case SCLK_PDM: case SCLK_RTC32K: case SCLK_UART0: From patchwork Tue Jun 6 17:09:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 2908 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f200.google.com (mail-pf1-f200.google.com [209.85.210.200]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 8B19C3F042 for ; Tue, 6 Jun 2023 19:10:17 +0200 (CEST) Received: by mail-pf1-f200.google.com with SMTP id d2e1a72fcca58-6533f8d4c29sf4483093b3a.0 for ; Tue, 06 Jun 2023 10:10:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1686071416; cv=pass; d=google.com; s=arc-20160816; b=S7bMs2F+PPQxYkMgMq57zdLubXIjUMxxvdfMZiUAmPVh8WKM2VzRzNBkTAbT+Qgsmx eXbISU8MRapguE4I6VUCj7A1fR5mSFs6ftO4HQrsU3AbK++zUTfbYKpZGQ2GbBZEoABv yN7lklhYyOwpwoSmzbMsf+kbxXsoNaJS4HI6Z5Ct0AmpjyChrXB6zJbuSF9R1a1gAI8u OCnwdbt93ezWrH+kDipNGXHzijCh2Au7uY8gW1qurk7lLH31wQ/TXripoiV6SRfOguRX ug5PCZeE+S8FLL4ehyBihTA4gCx/jC1Lx5rIbrRTRDyy1jeu7cdBBgdtl+/5BNitnHxq 1ViQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=Bx+AQESo5AGWPgRsUkeXSpdvc+ZBkEUjCBVSVA0IEoY=; b=XKXMVq5jctct/lYXrRT6fzeF5qZZw/mcAhP7NK9MfpOyb16yBBmgUgBjLupE2eBPcS w+/xVR/UGRP/BkJWs2u76QiqnmbSRw8AF5e6bxbN3gljRUPlsvTodye/cSqWPGOSysvB aFPFWGRHWlg/RI/mfMER57Hrdp5ZSNZIWbYf/X0k8f+SDMKu6AglnA4E+sjlDak1LSIO lVS8ZQa8NJxWhxFUN/zM5t0G7/WWoFexr0P8tbN8tNYPrb3c3pOuqCFYSlnTHiG/5s9o Sir1Ew3AJDKFkGYnT8CF9TWnEAIoFvNfRExQMvj1ro8d0ossCgi2LuWoTILLGJxVX9iZ +eiQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Hx24G9Hh; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1686071416; x=1688663416; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=Bx+AQESo5AGWPgRsUkeXSpdvc+ZBkEUjCBVSVA0IEoY=; b=kh3fo8IMrlSGAQBo+1WSBbyqNiMyAWbB3VVdkWKSrxzbts+zSe2PsBDHAE6LorOyO2 5+VxmNcrbKlTiXsAWWDTxaQX+gttdIMNwFNy4uyNQN7QzETaFIdSFgJT0FlLD5hw5Od+ wAkzCvDcL78zBsfRNCv3Hrk6SnfopkUdHLHZE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686071416; x=1688663416; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :x-beenthere:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Bx+AQESo5AGWPgRsUkeXSpdvc+ZBkEUjCBVSVA0IEoY=; b=U92tu2ohGfLoTQv8bZRyqFeUuL4tHQ3/Xdd4nW4o6Ce3R6Hdtmv+bHzfbDmA+CTq3U DE2Mq1cmr4q8hz0M9zfDDjjKqalCEoDxXZWzyirWa+nQXXg+cN6FjFY6321kO/EEhDvJ 3bEztlwxXopmt88BCkrkFqDvIdzNNUhwlwZEVNWx+sQNdDXKk29HGZM8tVVt/wZApvBW 6bHwLEOLdCdjEu7LKgErHb+6h/EZw1miVDFCGUmvzkUDbC61yFw28LeWqpkUJSC3tpKQ eo86eeuTokqhA9klT+zh28FPocnupXoEobfY9+NMIBKhb1Q5uBtJPoJAsil+pFewxEBG Vcug== X-Gm-Message-State: AC+VfDwhMNrHAPnDZRvwqPZJX6Qokx4tvJH/SmGwfY1DxrkUsVNN7mxp 9PL+PgGSg067EcmS431dA6mobBwo X-Google-Smtp-Source: ACHHUZ748+f4fhTPtqawm/lV8pxzV96bsC0kAI0JSYnu+cQfMa/hmPWXyZ//m6weBn5sd0DXpWNRRw== X-Received: by 2002:a05:6a20:3d94:b0:106:11fa:192c with SMTP id s20-20020a056a203d9400b0010611fa192cmr307120pzi.61.1686071416380; Tue, 06 Jun 2023 10:10:16 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:90b:4f4d:b0:250:af56:cc86 with SMTP id pj13-20020a17090b4f4d00b00250af56cc86ls444504pjb.1.-pod-prod-03-us; Tue, 06 Jun 2023 10:10:15 -0700 (PDT) X-Received: by 2002:a17:902:b413:b0:1aa:d971:4623 with SMTP id x19-20020a170902b41300b001aad9714623mr2486389plr.38.1686071415355; Tue, 06 Jun 2023 10:10:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686071415; cv=none; d=google.com; s=arc-20160816; b=ehI0WXoNWg8gUHdCLjleDQyS4yaTpMj3proOYhr6fv0mItLoSDmAE8AerqxSFurqNi hYSBRMKYsB8RcTf7xBG2PzfJTxHpsmDEiLnfdQf7S6CnxJ+sP8mlYavAJLXfagPQmzf7 dx3usV61IoaPLaqrzOJXlz01g/ghTNi0N4XG5CqzAJAM0pNwJAI9s99Lcmc4mU0IkYXK Mmp5BUuBGXbLkIG5iHhKYUPGxdG388QYvk8/TATrRrOjvGH0BILTI51UiSgOqNVvOqdt 0sSDGQeD4R4Om3ehBaJe6wcmddDFG9IhhnAgqszx9ffScpqOUlyWx9XRpyEUk0+5ZxZ+ /jCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=80pYqNdJ5lCjCACnDvqCVoLb9LyL5m3WjF6g4jpy/B4=; b=llDClKxAcmO/Jcpt4zKiDRlE92IlOwVrfAlUP9PG/dbT6+qwuA8S0f6jA8VnJDqoYJ j4wgeW3jFUeEB+bVB7N+WDaye9yWxPGJ+7On1HXUyjqrSNyCNIVPEqeSOHWh3QsXp3kH P4DqWE8faSAf8ux1XXrP1YFsUuextDDWiVWRG0CPIRVkNDYKwOz+DqpQSzRVaoYlB4j3 Cp3SHMwqDID8nMrZV8LxtpsmLaJHOoFu+ZfEJmDCHdxvELbuyl0ZHzR3pDBL57VhGFVG /Ylle7Vj3Bmykj5RSkvMwAIpR9iDhMAL/v+HbCyRXx7sUnOfr9VBJyaO5NQ0mVmwTXn4 WsmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Hx24G9Hh; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id k5-20020a170902f28500b001b02afaf18esor4727199plc.0.2023.06.06.10.10.15 for (Google Transport Security); Tue, 06 Jun 2023 10:10:15 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a17:903:208a:b0:1ad:c736:2090 with SMTP id d10-20020a170903208a00b001adc7362090mr2304297plc.3.1686071415049; Tue, 06 Jun 2023 10:10:15 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:2001:f7d3:5b78:1d82:fb5f:608c]) by smtp.gmail.com with ESMTPSA id bc8-20020a170902930800b001ab0159b9edsm8695129plb.250.2023.06.06.10.10.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Jun 2023 10:10:14 -0700 (PDT) From: Jagan Teki To: Kever Yang , Simon Glass , Philipp Tomsich Cc: Jonas Karlman , u-boot@lists.denx.de, linux-amarula@amarulasolutions.com, Jagan Teki , Tianling Shen , David Bauer , Loic Devulder , Chen-Yu Tsai , Banglang Huang , "Matwey V . Kornilov" Subject: [PATCH v2 7/7] configs: rockchip: Enable USB2PHY for RK3328 boards Date: Tue, 6 Jun 2023 22:39:18 +0530 Message-Id: <20230606170918.45581-8-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230606170918.45581-1-jagan@amarulasolutions.com> References: <20230606170918.45581-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Hx24G9Hh; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Enable USB2PHY for all RK3328 boards. => usb start starting USB... Bus usb@ff5c0000: USB EHCI 1.00 Bus usb@ff5d0000: USB OHCI 1.0 Bus usb@ff600000: generic_phy_get_bulk : no phys property Register 2000140 NbrPorts 2 Starting the controller USB XHCI 1.10 Bus usb@ff580000: USB DWC2 scanning bus usb@ff5c0000 for devices... 2 USB Device(s) found scanning bus usb@ff5d0000 for devices... 1 USB Device(s) found scanning bus usb@ff600000 for devices... 2 USB Device(s) found scanning bus usb@ff580000 for devices... 2 USB Device(s) found scanning usb for storage devices... 2 Storage Device(s) found => usb tree USB device tree: 1 Hub (480 Mb/s, 0mA) | u-boot EHCI Host Controller | +-2 Mass Storage (480 Mb/s, 500mA) TS-RDF5A Transcend 000000000009 1 Hub (12 Mb/s, 0mA) U-Boot Root Hub 1 Hub (5 Gb/s, 0mA) | U-Boot XHCI Host Controller | +-2 Mass Storage (5 Gb/s, 224mA) SanDisk Dual Drive 040130e3ee554b7078843f4eb331646 1 Hub (480 Mb/s, 0mA) | U-Boot Root Hub | +-2 Human Interface (12 Mb/s, 98mA) Logitech USB Receiver => dm tree -s Class Index Probed Driver Name ----------------------------------------------------------- syscon 1 [ + ] syscon |-- syscon@ff450000 phy 0 [ + ] rockchip_usb2phy | `-- usb2phy@100 clk 2 [ + ] rockchip_usb2phy_clo | |-- usb480m_phy phy 1 [ + ] rockchip_usb2phy_por | |-- otg-port phy 2 [ + ] rockchip_usb2phy_por | `-- host-port sysinfo 0 [ + ] sysinfo_smbios |-- smbios usb 3 [ + ] dwc2_usb |-- usb@ff580000 usb_hub 3 [ + ] usb_hub | `-- usb_hub usb_dev_ge 0 [ + ] usb_dev_generic_drv | `-- generic_bus_3_dev_2 usb 0 [ + ] ehci_generic |-- usb@ff5c0000 usb_hub 0 [ + ] usb_hub | `-- usb_hub usb_mass_s 0 [ + ] usb_mass_storage | `-- usb_mass_storage blk 2 [ + ] usb_storage_blk | |-- usb_mass_storage.lun0 partition 4 [ + ] blk_partition | | |-- usb_mass_storage.lun0:1 partition 5 [ + ] blk_partition | | `-- usb_mass_storage.lun0:2 bootdev 3 [ ] usb_bootdev | `-- usb_mass_storage.lun0.bootdev usb 1 [ + ] ohci_generic `-- usb@ff5d0000 usb_hub 1 [ + ] usb_hub `-- usb_hub Cc: Tianling Shen Cc: David Bauer Cc: Loic Devulder Cc: Chen-Yu Tsai Cc: Banglang Huang Cc: Matwey V. Kornilov Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- Changes for v2: - update commit message. configs/evb-rk3328_defconfig | 1 + configs/nanopi-r2c-rk3328_defconfig | 1 + configs/nanopi-r2s-rk3328_defconfig | 1 + configs/roc-cc-rk3328_defconfig | 1 + configs/rock-pi-e-rk3328_defconfig | 1 + configs/rock64-rk3328_defconfig | 1 + 6 files changed, 6 insertions(+) diff --git a/configs/evb-rk3328_defconfig b/configs/evb-rk3328_defconfig index 5183d65451..8f53aadbb6 100644 --- a/configs/evb-rk3328_defconfig +++ b/configs/evb-rk3328_defconfig @@ -74,6 +74,7 @@ CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_ETH_DESIGNWARE=y CONFIG_GMAC_ROCKCHIP=y +CONFIG_PHY_ROCKCHIP_INNO_USB2=y CONFIG_PINCTRL=y CONFIG_SPL_PINCTRL=y CONFIG_DM_PMIC=y diff --git a/configs/nanopi-r2c-rk3328_defconfig b/configs/nanopi-r2c-rk3328_defconfig index fb0b8719fb..583179d7c5 100644 --- a/configs/nanopi-r2c-rk3328_defconfig +++ b/configs/nanopi-r2c-rk3328_defconfig @@ -76,6 +76,7 @@ CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_ETH_DESIGNWARE=y CONFIG_GMAC_ROCKCHIP=y +CONFIG_PHY_ROCKCHIP_INNO_USB2=y CONFIG_PINCTRL=y CONFIG_SPL_PINCTRL=y CONFIG_DM_PMIC=y diff --git a/configs/nanopi-r2s-rk3328_defconfig b/configs/nanopi-r2s-rk3328_defconfig index 79cb17d751..f7ed71e412 100644 --- a/configs/nanopi-r2s-rk3328_defconfig +++ b/configs/nanopi-r2s-rk3328_defconfig @@ -76,6 +76,7 @@ CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_ETH_DESIGNWARE=y CONFIG_GMAC_ROCKCHIP=y +CONFIG_PHY_ROCKCHIP_INNO_USB2=y CONFIG_PINCTRL=y CONFIG_SPL_PINCTRL=y CONFIG_DM_PMIC=y diff --git a/configs/roc-cc-rk3328_defconfig b/configs/roc-cc-rk3328_defconfig index f5912ceca9..4ac3c9403b 100644 --- a/configs/roc-cc-rk3328_defconfig +++ b/configs/roc-cc-rk3328_defconfig @@ -79,6 +79,7 @@ CONFIG_PHY_REALTEK=y CONFIG_PHY_GIGE=y CONFIG_ETH_DESIGNWARE=y CONFIG_GMAC_ROCKCHIP=y +CONFIG_PHY_ROCKCHIP_INNO_USB2=y CONFIG_PINCTRL=y CONFIG_SPL_PINCTRL=y CONFIG_DM_PMIC=y diff --git a/configs/rock-pi-e-rk3328_defconfig b/configs/rock-pi-e-rk3328_defconfig index e86a6f7b1a..277f691d4d 100644 --- a/configs/rock-pi-e-rk3328_defconfig +++ b/configs/rock-pi-e-rk3328_defconfig @@ -78,6 +78,7 @@ CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_ETH_DESIGNWARE=y CONFIG_GMAC_ROCKCHIP=y +CONFIG_PHY_ROCKCHIP_INNO_USB2=y CONFIG_PHY=y CONFIG_PINCTRL=y CONFIG_SPL_PINCTRL=y diff --git a/configs/rock64-rk3328_defconfig b/configs/rock64-rk3328_defconfig index 4acbca0140..5e36612bb8 100644 --- a/configs/rock64-rk3328_defconfig +++ b/configs/rock64-rk3328_defconfig @@ -77,6 +77,7 @@ CONFIG_MMC_DW_ROCKCHIP=y CONFIG_SPI_FLASH_GIGADEVICE=y CONFIG_ETH_DESIGNWARE=y CONFIG_GMAC_ROCKCHIP=y +CONFIG_PHY_ROCKCHIP_INNO_USB2=y CONFIG_PINCTRL=y CONFIG_SPL_PINCTRL=y CONFIG_DM_PMIC=y