From patchwork Thu Jul 2 09:02:59 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 11638333 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0685B912 for ; Thu, 2 Jul 2020 09:03:45 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D3CAD2088E for ; Thu, 2 Jul 2020 09:03:44 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="qs4EXMgy"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b="ON/Ul8j0" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D3CAD2088E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=W/sY8AeXX04Pccu/AnKZxJyHsCGzrvSitQ1cGECPJHk=; b=qs4EXMgykvSQqLqu9YzuRCXgvP DCHQxX6HXKP1r9JkMTZ5aE7yGLpRa3Ojyv3hq6nuRJkJhZVCSny52cvZ8y1vzV0JZGVto7px7w9ih Zh1Ihe3dAxlREt4xqK7qPZa+9t4aTWT0W2ZlS/wXcsQfMvgX453+1hT8B2dEjfi9sCt5NeHMWwS5p XnVezuQ0G683/q7Gb9YFaJjqC0pxhAyoAcnM1d5DfynKSNscmCbTjdS7GppbrNj6MbiZKH3rhi7Ot ZL4bCIUaWag6cmLmPgJjeYvzFOSyTz+NRRtTHSNGuyHQJl7KlSIm1qb6npSwlbhm4rAZEL2HGncU3 BOPWgXUA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jqv87-0005yh-9Q; Thu, 02 Jul 2020 09:03:39 +0000 Received: from mail-pf1-x442.google.com ([2607:f8b0:4864:20::442]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jqv83-0005xX-8x for linux-rockchip@lists.infradead.org; Thu, 02 Jul 2020 09:03:37 +0000 Received: by mail-pf1-x442.google.com with SMTP id a14so7691554pfi.2 for ; Thu, 02 Jul 2020 02:03:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=YjUk73CIPNmxb/gdoNk6S5t7bf881nraTdpuxxoiTMI=; b=ON/Ul8j0o0JNHF2o/1DvmtpFLhAUE8RtMf1CyujbGLJ/IZ/TdWmSeyQpdm68wMyz88 54AnCx5tqWP50x9DvQTOGkR2icvM5j4pw/hgMISV79yE7rngu6CkjpqgOyxWS0bf8aXd /zXU9/Wp7OpjxGbcYPW8lCUzedugMJxnhFBsQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=YjUk73CIPNmxb/gdoNk6S5t7bf881nraTdpuxxoiTMI=; b=OLpOI46A4EGuZi8ZHu5nSMDyhkIGFEtSwD449v5bcGithq46wb9bPX3sS3ke5mXvQ2 BRM3u7jx8AFZAwsueuE9paGt+AqF329kGf06WfeslMUdg80OHbZd4BLtNwniK5xw2Q7x wFeC3qN0Nid2WSBnBVvfG6tWjdJqCajlaXKDJH+LaVEEg3pGevIGRQeRU/7Zrm4T7zyp KL3HUJOgOc+DMdcEVjilpl5memscsg3OizShwpMRlovYx2HsDWDQbAwHb3C+RfqGdW5V kNK5dVzMUCTCcdhR0OY0hFLhWYGxrFUUie4H+2UXHOVh1C+rcnwd49RdH7iLkXviVbbh 6V1g== X-Gm-Message-State: AOAM532erbwCUw26qg2gCrhTp/3gBL0GKYBKIerxmPqnaC2YGtWDJ0fF 9UOiQnswAWDB5gu/TdqAavXolg== X-Google-Smtp-Source: ABdhPJw6Koh/B5/rpA4HQqjMOhYVzJ/2d/c9CUB3NCC7j0V6gZGi+4cBT5v8CIzZQiKZ+68ySxna8A== X-Received: by 2002:aa7:9a84:: with SMTP id w4mr16671552pfi.13.1593680613239; Thu, 02 Jul 2020 02:03:33 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:a961:9b2e:1b93:8ca7]) by smtp.gmail.com with ESMTPSA id y7sm7594800pjy.21.2020.07.02.02.03.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Jul 2020 02:03:32 -0700 (PDT) From: Jagan Teki To: Heiko Stuebner , Rob Herring , mylene.josserand@collabora.com Subject: [PATCH] ARM: dts: rockchip: Add usb host0 ohci node for rk3288 Date: Thu, 2 Jul 2020 14:32:59 +0530 Message-Id: <20200702090259.36595-1-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200702_050336_105627_B6611F45 X-CRM114-Status: UNSURE ( 9.70 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:442 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, Jagan Teki , Suniel Mahesh , William Wu , Michael Trimarchi , linux-amarula , linux-arm-kernel@lists.infradead.org Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org rk3288 and rk3288w have a usb host0 ohci controller. Although rk3288 ohci doesn't actually work on hardware, but rk3288w ohci can work well. So add usb host0 ohci node in rk3288 dtsi and the quirk in ohci platform driver will disable ohci on rk3288. The bootloader must update the compatible in order to bypass host0_ohci in legacy rk3288 platform. Cc: William Wu Signed-off-by: Jagan Teki --- Note: - U-Boot patch for compatible update https://patchwork.ozlabs.org/project/uboot/patch/20200702084820.35942-1-jagan@amarulasolutions.com/ arch/arm/boot/dts/rk3288.dtsi | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/rk3288.dtsi b/arch/arm/boot/dts/rk3288.dtsi index 0cd88774db95..fd0066d07dfc 100644 --- a/arch/arm/boot/dts/rk3288.dtsi +++ b/arch/arm/boot/dts/rk3288.dtsi @@ -614,7 +614,19 @@ usb_host0_ehci: usb@ff500000 { status = "disabled"; }; - /* NOTE: ohci@ff520000 doesn't actually work on hardware */ + /** + * NOTE: ohci@ff520000 doesn't actually work on hardware + * hardware, but can work on rk3288w hardware. + */ + usb_host0_ohci: usb@ff520000 { + compatible = "generic-ohci"; + reg = <0x0 0xff520000 0x0 0x100>; + interrupts = ; + clocks = <&cru HCLK_USBHOST0>; + phys = <&usbphy1>; + phy-names = "usb"; + status = "disabled"; + }; usb_host1: usb@ff540000 { compatible = "rockchip,rk3288-usb", "rockchip,rk3066-usb",