Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp2835558rdb; Tue, 12 Sep 2023 13:42:10 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEmHY0OYxLOIAu60GnkXfFwd21YnSoTZEIlzE+nLQaMxo55smM3DyyWhDY3/x/4aa7Q2XD1 X-Received: by 2002:a17:90a:fa49:b0:26b:513a:30b0 with SMTP id dt9-20020a17090afa4900b0026b513a30b0mr1042383pjb.10.1694551330217; Tue, 12 Sep 2023 13:42:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694551330; cv=none; d=google.com; s=arc-20160816; b=UB3/RPdkPw4K5GWs3RaTrKYz92LOpvNJARjaIwnQJnRxVq/in1p6UiHHChslmS9Vzi 5Df2BzzIs0sJkLxMUfgS2D9AZ/zjzKatKwY9TXTDHYhHN3XNnwSnSyC/KOQCg1cquwfU nfY8UnIlPKhqhwHBNqd1kC+9Ma+3ixCYvG67IOXGHV+ZoSBvLcCVX31vVFC3MpeXSAND eb+t1Xz4WtkVwF9NTmiPlSfGltKBbiHVpdOxx+7mZZ2TCvY4XL+kNWrLbrvoaDDcFbN9 zMwqmzYIdJx89v1mWLgvYyGZAcAeuLROAOCceSc1fXAJjeWQb7eOon06F5LhuDkrKbKK AjZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=8oOmaRH71IMZ26alS1qE8GpU6J2LrlB7OGsNZJKokX4=; fh=T4sJ51eHd1LeiHqbrFDqIKfdNNHuZzwupHGdoHO2EU0=; b=D6Sz7gnbs8K3EteKLE5wtLB6Tt0VSk9OfDLdhGwWgH+RPWZNpKLRkOsws7ncnmnyY1 pjSOWOq0dFl2AFmSZaIVIUCdtxsANjAMlUtyIMxCBfpnq24SU04SSa8Ku/W83gZMQzDS mbyh6sc46l37ClFYQ+DkcbelRKsT4ZIqCQVMmOIuXYX21zA4qCB2hGbbf4Zs2iIAmbDZ xX8Ub6qMIsbYFq9LhyJwGDv9Wwiatj6hpbdEamwp2h1VP9nS75/+cfEQr4jksPatgAWA XcAOOBZhqkfVgyxDhyewbNcmToNCKDfz7JjcK1xt0X8sG5GH+zQOHXll13xMaVqfyqjG boJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b="kRYt/gRI"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id fw1-20020a17090b128100b0026d4415b926si48148pjb.83.2023.09.12.13.42.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 13:42:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b="kRYt/gRI"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 0E1B98211213; Tue, 12 Sep 2023 10:10:01 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236975AbjILRJq (ORCPT + 99 others); Tue, 12 Sep 2023 13:09:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39916 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236653AbjILRJp (ORCPT ); Tue, 12 Sep 2023 13:09:45 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4190810F9; Tue, 12 Sep 2023 10:09:39 -0700 (PDT) Received: from [192.168.0.106] (unknown [186.235.7.101]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: koike) by madras.collabora.co.uk (Postfix) with ESMTPSA id C963E66072FA; Tue, 12 Sep 2023 18:09:33 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1694538578; bh=xAT9JbuYW6emcmFF+W5rqg4ZaSjjD8QM385HOKSfF2s=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=kRYt/gRI/hdUZHPqKZKwpqOHmREs13rcuDFHe3fIGcMlQADqID0BeykBLS8uI3Bfq BIAyglyc8E9xhISn4AqH6nEDEdhdN9YHyocqq/VIqm7JP8lwmw9TGYi7R2ixMAuYAP 9hU+h4SMOU2GR5Q8FVKi4Ug0kkOGn7jUhDD0cENC9Oz9SFnolEYjUC6+sN8sKa05Uc DFOGdK8InK2Q0fQDqaTLN1ecZYwnMy8DW+fmAVGlgp/55C1fX2bBZd2Mcf+mT8ybqJ 4K/KEIH58DKXabT/rRRDvE4965O/PqfBaaCSvnFD0ZTHTI12txGCIWngvLX8afao0X RaojSupULYKWA== Message-ID: Date: Tue, 12 Sep 2023 14:09:29 -0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.0 Subject: Re: [PATCH] arm64: dts: qcom: apq8016-sbc: Add overlay for usb host mode Content-Language: en-US To: Vignesh Raman , Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: guilherme.gallo@collabora.com, sergi.blanch.torne@collabora.com, daniels@collabora.com, emma@anholt.net, robdclark@gmail.com, Dmitry Baryshkov , Maxime Ripard , David Heidelberg , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230911161518.650726-1-vignesh.raman@collabora.com> From: Helen Koike In-Reply-To: <20230911161518.650726-1-vignesh.raman@collabora.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Tue, 12 Sep 2023 10:10:01 -0700 (PDT) X-Spam-Status: No, score=-2.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email On 11/09/2023 13:15, Vignesh Raman wrote: > Due to the presence of the fastboot micro cable in the CI farm, > it causes the hardware to remain in gadget mode instead of host mode. > So it doesn't find the network, which results in failure to mount root > fs via NFS. Just a context for others, this was part of this patch series https://lore.kernel.org/r/20230908152225.432139-1-vignesh.raman@collabora.com > > Add an overlay dtso file that sets the dr_mode to host, allowing the > USB controllers to work in host mode. With commit 15d16d6dadf6 > ("kbuild: Add generic rule to apply fdtoverlay"), overlay target can > be used to simplify the build of DTB overlays. It uses fdtoverlay to > merge base device tree with the overlay dtso. apq8016-sbc-usb-host.dtb > file can be used by drm-ci, mesa-ci. > > Suggested-by: Dmitry Baryshkov > Suggested-by: Maxime Ripard > Signed-off-by: Helen Koike > Signed-off-by: David Heidelberg > Signed-off-by: Vignesh Raman Acked-by: Helen Koike > --- > arch/arm64/boot/dts/qcom/Makefile | 4 ++++ > arch/arm64/boot/dts/qcom/apq8016-sbc-usb-host.dtso | 8 ++++++++ > 2 files changed, 12 insertions(+) > create mode 100644 arch/arm64/boot/dts/qcom/apq8016-sbc-usb-host.dtso > > diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile > index 2cca20563a1d..99190a6ba6ff 100644 > --- a/arch/arm64/boot/dts/qcom/Makefile > +++ b/arch/arm64/boot/dts/qcom/Makefile > @@ -1,5 +1,9 @@ > # SPDX-License-Identifier: GPL-2.0 > dtb-$(CONFIG_ARCH_QCOM) += apq8016-sbc.dtb > + > +apq8016-sbc-usb-host-dtbs := apq8016-sbc.dtb apq8016-sbc-usb-host.dtbo > + > +dtb-$(CONFIG_ARCH_QCOM) += apq8016-sbc-usb-host.dtb > dtb-$(CONFIG_ARCH_QCOM) += apq8016-sbc-d3-camera-mezzanine.dtb > dtb-$(CONFIG_ARCH_QCOM) += apq8039-t2.dtb > dtb-$(CONFIG_ARCH_QCOM) += apq8094-sony-xperia-kitakami-karin_windy.dtb > diff --git a/arch/arm64/boot/dts/qcom/apq8016-sbc-usb-host.dtso b/arch/arm64/boot/dts/qcom/apq8016-sbc-usb-host.dtso > new file mode 100644 > index 000000000000..a82c26b7eae8 > --- /dev/null > +++ b/arch/arm64/boot/dts/qcom/apq8016-sbc-usb-host.dtso > @@ -0,0 +1,8 @@ > +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) > + > +/dts-v1/; > +/plugin/; > + > +&usb { > + dr_mode = "host"; > +};