From patchwork Sat Jul 4 09:56:18 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1437 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 E60EE3F1E6 for ; Sat, 4 Jul 2020 11:56:42 +0200 (CEST) Received: by mail-pg1-f199.google.com with SMTP id s8sf7494677pgs.9 for ; Sat, 04 Jul 2020 02:56:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1593856601; cv=pass; d=google.com; s=arc-20160816; b=hRkfk9NCK/qBUSVxPlL9vZTjh7oZxgFgXNhtQflXkbBkD0fx0LFCMmTQx47ZOgeFEG CfZgA8RN3ZQ0tlmsilO4Cvjs9seNGYc+fCGkBGTA6l2m17nHVVuUhgp20CUTTmZSsDqV 2C4o0p4uc2ouPBSc/d6ZmpBjXmy/DxsUXRdSIxacgoF949sV6CVbETnRVN22lmm+l2Mo 8L7IktBM5gn+eXAmL1tfkxU1nvuuzHy+N/OtGy3H8GRXr4NOV+dsqwUO2CKwB5SQMmmg 1BUbc7ulkocGb1oWhteRilZE4vVuzrdjJfgYnMwi+fUqKjKm7j1mLFTLQHyc7wrzlwT+ hbNw== 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=OWxq4rxJwxvei2PIKb+TS7+zpr5mA5w/SVVRWdQUcAo=; b=OA6y4NLs3xSQyIEQmvTgYvQBi7HLr6iF+q/lBRH16k+tad3VV8FhVFkTQIjvsUs1uw +IbfCh7v15jEDXVu9mtw8Ut4wM/j1LNOTFvAMVzqDQBlr8X6dk7jrtfGoP5jPfjM/s5D XXDpiJzPZJwBSPQoStHOZuyV0h/+yDiK3tSeZEXypu4zNfAPHq+XbIrTNjQOenS78xyA nOjKmnAFy+h6vCS0/QGq3lgEHZZuwsEL1eEzB3itmVehnwQ7EMSOgg3dMHm6uG95tY+M 5Y+/kTyDj8GkRPCRSc74Mq361u1oi45zq2KoCmyGY+cj68nTYg5FIfvMfu0boIAcCQiI Plvg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Dw2tzH9G; 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=OWxq4rxJwxvei2PIKb+TS7+zpr5mA5w/SVVRWdQUcAo=; b=dc9WOhkYGdJiietw0+u3qkIWfa5RUXGGLw01NthjuGyjnQQT2tUkZsVMVhlScWnRqU hq10idZwv9FhM7UAxgW9yhcjIohDFaCRRBsJDSW8B11vyds3xWtECVhPPtcnLeh76SG1 z7YIrdEPWwadQMkVoCVjWhwYK4SgQvoCNT0yw= 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=OWxq4rxJwxvei2PIKb+TS7+zpr5mA5w/SVVRWdQUcAo=; b=ZeblIy6eRfNhsimK4YssCIoHrIskQLhSn4MbdxFoDJi535ozucdHsz0mlatZU/b+a1 FsFAqO1DS8g2JUCe36FJtVOssmefc5qokc0HOgAtecOt/s3ifDb7ITJBL45BmBN7Y8IY PoUqGJ7j+6ULJkYWeIyjnUXTbdznXkbfwvxnCy4l75kGMv4PcNYT0z9TSWt5r5VDV1a3 hpxnhSabYHJ5PJNMCO2uJkIMC0+H81j6KvJOlotjFZg5KQbDxtWxjbTxxMmXOC7uM3jC id2++35Dt0SA/8XBL/TFuWWO2j1SOy5efN7eBGd91tFj4Y0/qvX5ULsyUYT83b7kCsfZ Gzdg== X-Gm-Message-State: AOAM533jet+uPgR2a9UzsiRTTZtftzktdvWUMikvLQg8fREs/IhCR5Pf os1SsfXlZdu+8uAZZ/S+yj6GgRjl X-Google-Smtp-Source: ABdhPJxtpV7ApLDWfd4fmRJeVaeONgCQVA80Fi6g4Qtk4r90F9WN4MmR6jt0VMqDqYdzRKF0gaYDDA== X-Received: by 2002:a17:902:9a43:: with SMTP id x3mr34306137plv.108.1593856600724; Sat, 04 Jul 2020 02:56:40 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a62:ea02:: with SMTP id t2ls1847023pfh.6.gmail; Sat, 04 Jul 2020 02:56:40 -0700 (PDT) X-Received: by 2002:a62:e206:: with SMTP id a6mr29625790pfi.24.1593856600280; Sat, 04 Jul 2020 02:56:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593856600; cv=none; d=google.com; s=arc-20160816; b=Hu0sQMX4D4vvzdMv7guYBG/rUTFk5hG96hzYuNdcEWr6m80FzVgma1XxqZcfISHFNk Yas1C3xAQKx2kGDmT1uU5OriG8TtNx+yyFEc43RUfAblJREy6cJZ6GFKd+R02VNHySxP BrhufUI6W0ouQis2z8cpTNfkhdt0WVHfmh/M0F2Ews9PrAu4FgpmEDgOKJWsUr1xNye1 Zf/G7cN1HiRy5CWRarwys+l5jpLw7ynhwX57uk5ln0RASwESZm1T82BLoDleAN9+lE+9 P8r960DsnsM1kN9f5WsuK8NaSQ+Ad6GY9PdM78jc2PIOIzVwQgAhX2Xz0ynG0VnDfYPk K/VA== 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=DLjCzGoFPMdbYYDaSDjKoYN+kjyqA5RMXC52YJAeII8=; b=Hm5XF+PuOAlzbXKUUN+ro2GiVdnDFGiBGmOTUeCAXfEIxgqiJA7+N33yuhFdMF0XZT PrwH/Ty5uqnI0Ez1KswQnT+dGCGqj3UO8y3fx6xrO7uxV7dwZyHlLxBylhAdtG2pVz18 p3OwTuWbQTFJsgFInbPOzTVIZNUzvM8WImiLUnQTDxYbctFkvDawNr++xpCqrYtER/oU ZvMJ7zbfyRu0aU6TVmKzJqBcta6eG3FoKWQVK9/hYlbcxZXd3HOePHTjlShDkS0QaPBH Cl/ygHh6SEl9+qu+Wwl6hx7o7fbDeDRSgo0nM777xueCu7yAcZebqIK9cbjkbz1agR78 Cfgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Dw2tzH9G; 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 m187sor18537126pfb.40.2020.07.04.02.56.39 for (Google Transport Security); Sat, 04 Jul 2020 02:56:39 -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:a62:5c02:: with SMTP id q2mr37304228pfb.232.1593856599134; Sat, 04 Jul 2020 02:56:39 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:bdf4:3289:4b66:dcc0]) by smtp.gmail.com with ESMTPSA id t184sm14302575pfd.49.2020.07.04.02.56.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Jul 2020 02:56:38 -0700 (PDT) From: Jagan Teki To: Heiko Stuebner , Rob Herring , mylene.josserand@collabora.com, Robin Murphy Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, Suniel Mahesh , William Wu , Michael Trimarchi , linux-amarula , Jagan Teki Subject: [PATCH v2] ARM: dts: rockchip: Add usb host0 ohci node for rk3288 Date: Sat, 4 Jul 2020 15:26:18 +0530 Message-Id: <20200704095618.72371-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=Dw2tzH9G; 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. Cc: William Wu Signed-off-by: Jagan Teki --- Changes for v2: - Updated NOTE comments. arch/arm/boot/dts/rk3288.dtsi | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/rk3288.dtsi b/arch/arm/boot/dts/rk3288.dtsi index 0cd88774db95..f0774d9afb67 100644 --- a/arch/arm/boot/dts/rk3288.dtsi +++ b/arch/arm/boot/dts/rk3288.dtsi @@ -614,7 +614,16 @@ usb_host0_ehci: usb@ff500000 { status = "disabled"; }; - /* NOTE: ohci@ff520000 doesn't actually work on hardware */ + /* NOTE: doesn't work on RK3288, but fixed on RK3288W */ + 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",