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: 1433 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pl1-f200.google.com (mail-pl1-f200.google.com [209.85.214.200]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id AEBB13F03F for ; Thu, 2 Jul 2020 11:03:36 +0200 (CEST) Received: by mail-pl1-f200.google.com with SMTP id r11sf9432661plo.13 for ; Thu, 02 Jul 2020 02:03:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1593680615; cv=pass; d=google.com; s=arc-20160816; b=Q9nyIyur4rajqohX6oyhof3j2opZr3+TxDpzTxPzjJbz5QWhzdusxAy4P4d6r5w8qR DLSc7MO+FQN5qHoIrUBcjuY+8SfHvVWwL4xutqnhtZmxy4PkUdZSm7rAbKJZbujwfX3O aAnkuc7+TjMlcVCKC8wuJifQvUYm/nK2YPyPzUbjTRnGs7czyZ6dXdNdIWeiw3NXqzeG fWYMzckxM+kuv9f1N4OxroEcr7jaahkWuYwTI1Nas/jgSzTnpm7pFfmBSlZZ605+Cl1v lNDk+ZOTasLMcIl/ftpS18RqLPwO9V12uCuCos5dWBmEEKdFLWSEWzkZo/GCf/ASLFYK PZQw== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=BpUbQAkl/c3iFWb6dlXu4c2EAx8xmZaAcsTG6OQj37E=; b=RX+JekMCz3sePpZqde4eFEP3k9t0jJ5CirMfFzBC1ps3yrYDQN+uBTl2jIquoVBUR/ 9nsix77cc+pJGEEyUAoAaV8wlSWFi5RYKw1cS7FK0KiyW0g1C9BmmqJOeJhr6lSP/WSZ MiPsJU7sRJRvBNjg/TMWgsaeRuLP9rEL6bdHtnWQQSlAJWgnG/71N8n3CIKZxss7nBes 0hRjI2Cu34UkFYsVY8YLMbDdc4O/0TMZCUu+KriYTo35X5ky5nG+BqBu6pA0Bd5WsizL eDnf7xA28oJSpQ2WPP41hPczE7OaAhLKLrj80Awz+bzz//6Nad/UUYFSHnqxEimvVpP9 ocYQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="ON/Ul8j0"; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com 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:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=BpUbQAkl/c3iFWb6dlXu4c2EAx8xmZaAcsTG6OQj37E=; b=lXetO/sS/bgwjy6ChjP3fFoVl9J7vrQEVMe+SkqtS6DH/qxYedKRHQJds3wtnYxD7N 3ukLamMXVDZ8xJNpupgwSQN7FI3wmrJlj5N2Jf9y71bdZFdIbsNi5obn3qW543qaLO/k iNdFjoUM96NKccpsg9cDxSlxHBymtRtkhNFEw= 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 :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:x-spam-checked-in-group:list-post:list-help :list-archive:list-unsubscribe; bh=BpUbQAkl/c3iFWb6dlXu4c2EAx8xmZaAcsTG6OQj37E=; b=OP14Jig0Los4XoRJVvSJvHbyu/cY513Z+U7WNAIUrvMqoLKg8u0Oxi185Za351Juzo CRCmwi5zszCdspf54XPjUN7JSBCr09s9Jf/iylZu4kXDYBYZI0zsQT0SJUymHmncj32Z VhxZPvga/t2564f5dmx/eM7oROxPWwpYwWoU0ewNf3XKswvTstWYT0q8xumcjAxHObNv QCPIW+oxLhIgLAcovaw49pF0AbYHeY3iozaVhlzgqv7TWTcKO71Ukk/aez77T8fGEVp2 NdcQCnRlRSfo9SxgZ2Fk1M6djdm3bymSiWmmMWQDMGijBJLbIS2+yacl7evUnoC3+dmv 8Faw== X-Gm-Message-State: AOAM532/W/2ipKGry/3boxkgJAXKHlOuSBGsTPUF9UU2+ouI6p8rq4f7 o+N4tzKTLDizBCLkLuJUofEeqtc+ X-Google-Smtp-Source: ABdhPJzZXtQiS2+S7GuA3oWeKOwtBoqUosj7CeXXnYqE/cxdNNYieXTya57yuTSZkNo03qCfunWKbQ== X-Received: by 2002:a63:144c:: with SMTP id 12mr23518192pgu.189.1593680614856; Thu, 02 Jul 2020 02:03:34 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a63:582:: with SMTP id 124ls1820666pgf.6.gmail; Thu, 02 Jul 2020 02:03:34 -0700 (PDT) X-Received: by 2002:a63:b90a:: with SMTP id z10mr22617254pge.277.1593680614289; Thu, 02 Jul 2020 02:03:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593680614; cv=none; d=google.com; s=arc-20160816; b=d20lPK/1BjUw75boaQeTedLu+JmgqvRP7rxtpXLuDT1pW0n3OuZyEwyjdXc7tY6UgW AaRRVwqynmmtUNa0p3Ox9CiTL2HRbUWKzoy4h4QIVyHst3aW2J5On3J9pCGMWJNJj2BD kdLlTMeaDiTL2z5xEdl9HsDTmX3Y321OPi53Fr7JuKjO4KNiO5o3aeii5nJAYcH9Pt1f 2VC7qdW5sa66GhqSXDbw9FPmagMHrZjjUCW8vADmILJaNklvkNMpoU1CedvPeSA8NSCP XrmVnmYAH5wZfb41sMX51ASjs9JMSdKQ1FCMwG2eA6+ZAQ6coYVbB7ldXmkV4Z9AAa4F Ng1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=YjUk73CIPNmxb/gdoNk6S5t7bf881nraTdpuxxoiTMI=; b=ahQ4zgRFahGs6iN6d07J5U7B38xXGnFMu4AuyKWOVZUfhKq51DoTgnx6mqSXBN3mr3 0k3tDKfAgX4iKMvaqgKS0yGpbhmU4ViDIxQ7CXMA3Hd+0CrZ1eyZVTpAMtaXvrl5eClB Adf99JEUS4IDwJp3alktrIYdAzcXBt2wggyrtpFzTrZVpVUBAcNa2Jb2x6nO7GjL4rYW j7CNdb4HJBNu3h7+bInRdzKvP1j7DUEZgzZt92GHfa2QcTPZL2BaYQJ5sUr5WgD2+EmE RVpsobqkO0ljKiMyKakumxboXlpzEsBXGdlBTnbeDAGfCGn2i65x46MUK6FMpUEgCZ75 hlgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="ON/Ul8j0"; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id 184sor10602503pfa.82.2020.07.02.02.03.33 for (Google Transport Security); Thu, 02 Jul 2020 02:03:33 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; 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 Cc: Suniel Mahesh , Michael Trimarchi , linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-amarula , Jagan Teki , William Wu 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-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="ON/Ul8j0"; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@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: , 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",