From patchwork Mon Feb 1 19:41:03 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Jonker X-Patchwork-Id: 374333 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5FECBC4332D for ; Mon, 1 Feb 2021 19:42:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2CB6E64EBD for ; Mon, 1 Feb 2021 19:42:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232143AbhBATmE (ORCPT ); Mon, 1 Feb 2021 14:42:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231750AbhBATmA (ORCPT ); Mon, 1 Feb 2021 14:42:00 -0500 Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 55CC7C061756; Mon, 1 Feb 2021 11:41:20 -0800 (PST) Received: by mail-ed1-x531.google.com with SMTP id d2so20304831edz.3; Mon, 01 Feb 2021 11:41:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=DUZ2th2akMgZXbhWAwF/Rtcar/hbaUZaN5WHosC7d0E=; b=FpMiGYgOnjuHnqzhenAl+dL9jsvG4qjBPhjQSn+4DFsiE1JbaMcJ2J0lfmBzrmPWyc XBubKNA99rgSNCJNCFgCQF/aUeqgBiofpmcFXgs85iB4Kl/ypAXEpUl4IQlsYgDBozLJ KOD1XWL+irKNEUnIVqrefzUD452xosSNYvblX9/TkeeIBEscfzcm1suUMnVfduZ1hbIe M8de96kFqguI2YJR3kgUyBKTKUEnpum/+sufyBS8qq1R5SWeIGX9Nd4w5B6cJlIiCaLE 7yEJqpRkMkPrVe4CitED5PDO+gogW9+AiU4GZVvrqN1ZH6R/Hx3OK6JHKmAjz7LhDdW+ jn9A== 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:in-reply-to :references; bh=DUZ2th2akMgZXbhWAwF/Rtcar/hbaUZaN5WHosC7d0E=; b=TWHTys6CjIiyK+qlPu4e6F2fRTsL1fummRwWZjKNLhNQ3w9RTfLgWAHMGmlukk26I/ 6ecsE94K5qzkVBHuXBpdG9P7SX1HEkw7eUJG+GMzj3AxVE5pUsuOvsEJ7o3avJBGv8fG DFbbf8hPopQBAXiHASjd2QXdh9tnL2f8EPlCgEswJFyH8eE2Q4Plg8eKaWOI5Sr6LCeq bVjL+DKIEOM9wrA1UAOzboEaeCgp/w/U1tFQ1t9Q2RHw7jPTHCwAGlrz1LNqvjpV+VYX /ngTAaYES3p6e64q68prtNZuiLeBkSuG39eexJ1SvVtp7lNn8EZssEUDOcE6odbIvHTg ymDw== X-Gm-Message-State: AOAM530tFVGVirgnjZ/fsdTUU0t6T2n+DuFUfWiGltckyLbEiMyjPe7N bI0C1gqqzU5NNQfAonfjK8A= X-Google-Smtp-Source: ABdhPJwUQXBgh7rOTE/IACXYOLiBGDAt4h5HEasE30HrnMCW6UEC67IVNg1/Tdp65F3x0MVLj/nOZA== X-Received: by 2002:a50:e04d:: with SMTP id g13mr7090744edl.358.1612208479118; Mon, 01 Feb 2021 11:41:19 -0800 (PST) Received: from debian.home (81-204-249-205.fixed.kpn.net. [81.204.249.205]) by smtp.gmail.com with ESMTPSA id du6sm6702799ejc.78.2021.02.01.11.41.18 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Feb 2021 11:41:18 -0800 (PST) From: Johan Jonker To: heiko@sntech.de Cc: robh+dt@kernel.org, gregkh@linuxfoundation.org, balbi@kernel.org, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 3/5] usb: dwc3: of-simple: add compatible for rk3328 Date: Mon, 1 Feb 2021 20:41:03 +0100 Message-Id: <20210201194105.32673-3-jbx6244@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20210201194105.32673-1-jbx6244@gmail.com> References: <20210201194105.32673-1-jbx6244@gmail.com> Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Cameron Nemo Add a compatible to be hooked into by the Rockchip rk3328 device tree. The rk3399 compatible cannot be reused because the rk3328 SoCs may require a specialized driver in the future and old device trees must remain compatible with newer kernels. Signed-off-by: Cameron Nemo Signed-off-by: Johan Jonker --- drivers/usb/dwc3/dwc3-of-simple.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/dwc3/dwc3-of-simple.c b/drivers/usb/dwc3/dwc3-of-simple.c index e62ecd22b..93bc34328 100644 --- a/drivers/usb/dwc3/dwc3-of-simple.c +++ b/drivers/usb/dwc3/dwc3-of-simple.c @@ -171,6 +171,7 @@ static const struct dev_pm_ops dwc3_of_simple_dev_pm_ops = { }; static const struct of_device_id of_dwc3_simple_match[] = { + { .compatible = "rockchip,rk3328-dwc3" }, { .compatible = "rockchip,rk3399-dwc3" }, { .compatible = "xlnx,zynqmp-dwc3" }, { .compatible = "cavium,octeon-7130-usb-uctl" }, From patchwork Mon Feb 1 19:41:05 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Jonker X-Patchwork-Id: 374334 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B9BA1C433E9 for ; Mon, 1 Feb 2021 19:42:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 902ED64EC4 for ; Mon, 1 Feb 2021 19:42:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232197AbhBATmH (ORCPT ); Mon, 1 Feb 2021 14:42:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231864AbhBATmC (ORCPT ); Mon, 1 Feb 2021 14:42:02 -0500 Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E2E8AC0613ED; Mon, 1 Feb 2021 11:41:21 -0800 (PST) Received: by mail-ed1-x52c.google.com with SMTP id s3so6564397edi.7; Mon, 01 Feb 2021 11:41:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=mllDDoFqrKsaQ7KlxScyjYXTToCMmRRcsUF13aNpIwo=; b=lOq2v9Lwl5m1ENUAEOwokF4SpIw39mkXEtSS3xvZQt9PTK8ta89rTe4PBQbsZ+1K2d DA7GGQISOUJMllrvPP5H5VbogNvgccK2OMJsUzr4NCgoNg3pNM8k0SGe+HRI8ttTVNRH LZlK6nRYuj/Bk8mvyaqPEduEYzgv9Vdfy8Seta5HjZXOydQEStn68fVG/QVtRhjVRmL0 sqN8AB4o0ndeL5qczfEq5827rQTijdZmfblpnV3iCm+pJg+dHMNx2ML7unBR7fHa4Ebb YpCoO5mtYRvneAXajWTTNuBt3UETAsXfqkWKszKElZKvLbSSrFmixl3+izQzyswgNXn+ xbzA== 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:in-reply-to :references; bh=mllDDoFqrKsaQ7KlxScyjYXTToCMmRRcsUF13aNpIwo=; b=kxPI93HECn4z7X5dDF1B5YhE4hFSgTYoJ3DJY4D/hREtljYiZIpSZjExC9sMjclefn sR9gFM7WbDj0W7BR8xUX+7NKLHcw4Gjc7z4SqaHfTOZG9KUPA1ULtjr33OoiJuYunuBP aWnRG8WcZG57d0lx9nNnywXJ7hrBmS9rJYcZQNdwwCLXKNN3infyKVDqohF9Db7vbJHR G659cFFrsbfmaHP4uLx4ATE5xv1P9XvRM0uYn0Ci2pUBlyUcyBGBYnqR8I2ugin3/dO3 RNabyZOt6EI4VglKEHHOoCIiDAbEL77GTYZBtSt7QR+CCeChzhXaJ30tMgpt0oe//WLT a8Cw== X-Gm-Message-State: AOAM5329kXgKEpw5IH6trMBYlH4RYDyocOycxhbJwv4QiJ4ZX/qge+Ec HGpc/99nGjcPY9s7NmFchMY= X-Google-Smtp-Source: ABdhPJzflGvb9KJYZGMytp1I8l3QpW1wrHny5906kgyPSsIc4FpU96o1x39WcYNA3eK15Jfh5c97ZQ== X-Received: by 2002:a05:6402:11d3:: with SMTP id j19mr20525720edw.314.1612208480752; Mon, 01 Feb 2021 11:41:20 -0800 (PST) Received: from debian.home (81-204-249-205.fixed.kpn.net. [81.204.249.205]) by smtp.gmail.com with ESMTPSA id du6sm6702799ejc.78.2021.02.01.11.41.20 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Feb 2021 11:41:20 -0800 (PST) From: Johan Jonker To: heiko@sntech.de Cc: robh+dt@kernel.org, gregkh@linuxfoundation.org, balbi@kernel.org, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 5/5] dts64: rockchip: enable dwc3 usb for A95X Z2 Date: Mon, 1 Feb 2021 20:41:05 +0100 Message-Id: <20210201194105.32673-5-jbx6244@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20210201194105.32673-1-jbx6244@gmail.com> References: <20210201194105.32673-1-jbx6244@gmail.com> Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Enable dwc3 usb for A95X Z2. Signed-off-by: Johan Jonker --- arch/arm64/boot/dts/rockchip/rk3318-a95x-z2.dts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3318-a95x-z2.dts b/arch/arm64/boot/dts/rockchip/rk3318-a95x-z2.dts index 30c73ef25..b26c653c6 100644 --- a/arch/arm64/boot/dts/rockchip/rk3318-a95x-z2.dts +++ b/arch/arm64/boot/dts/rockchip/rk3318-a95x-z2.dts @@ -357,6 +357,15 @@ status = "okay"; }; +&usbdrd3 { + status = "okay"; +}; + +&usbdrd_dwc3 { + dr_mode = "host"; + status = "okay"; +}; + &usb_host0_ehci { status = "okay"; };