From nobody Wed Feb 11 06:49:19 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 03577C7619A for ; Wed, 5 Apr 2023 15:51:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239146AbjDEPvi (ORCPT ); Wed, 5 Apr 2023 11:51:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37862 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239135AbjDEPvL (ORCPT ); Wed, 5 Apr 2023 11:51:11 -0400 Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE65619AC for ; Wed, 5 Apr 2023 08:51:03 -0700 (PDT) Received: by mail-lf1-x135.google.com with SMTP id d7so2235483lfj.3 for ; Wed, 05 Apr 2023 08:51:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680709862; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=xTfPf29tnwbydeddtxy3rMEnXluAPIWBZ5CTrs3xI8k=; b=sRvVNCsDZ0ZlhWStZ6R8OwsxOo5wOvM6EVbi/fYmhpMgf6y/5RbHqTjt/FlWs3G6cS IAibunnr7ILmsrM6EFVcV2fGLABauuDMk4jc3wrBqgicM59Q/5i6A73k+vYCb2KovdTR L9bW2x0NBA2NSEh+xEyj4xcwfmRuXCBg/FNj40Oio01C8KJ0i6pzD2Zd/AuJbu7wDiAV gE9/RVtZbHxrRBJu25B+bGjH2e04oj3c6t/mLl0jF7hgsaeYKg3euxEfU9JxzZlJEESg nEiRP5UT/9fxYd08j8TdvHIHYy+eA/ExCbNSECEqgv6NYi/EBKEkppWg4dYcCteogTCw DfSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680709862; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=xTfPf29tnwbydeddtxy3rMEnXluAPIWBZ5CTrs3xI8k=; b=a0Vg+SYHFJ0hjoxCrTHTmFu+xJqoSNhJAVDf6W5BAhpM6Xif23lKK+DxWUEU6uoG+F cNQ90jjIOcosqXWlMmvpnzIKFMmhdXFnl5rQAqjb9URKOnP6NAwh4yHdXBTeVqjPqxxw vQMZZYCmkyLsHqGUYNI6nnqq2NxWh07d8kIJGleannoxbzBpRMx1owLy+S8Ug9eaYDRY iDSYGSs+gDXhomNpr13DvtgtQKRMW1KqSypoGp1SzP2M77+c/u0MKkK4Gtoc9j+YIjCy MYZUIOkY9W9L4Rzity0RrGSuV+gHwgXaoDq9GTIPB+Osflmo0EC5lWwJ99kU4Xd4ozHn uDAw== X-Gm-Message-State: AAQBX9eeWDVAVceLaHayCAaBl30qDNM/hIlXPk3uCL1UpZ9cBQJ6yEOh 9bXyIfToVl64HtcKitFPQlw7radZrGOENOvCgKg= X-Google-Smtp-Source: AKy350a7YodObssGQkTdiZ/Au3AWVlkhKV4kmKrtL+Xd9siQb4SnjapbtevtCgjO65JivXWTg+IQCg== X-Received: by 2002:ac2:5d46:0:b0:4ea:e296:fe9e with SMTP id w6-20020ac25d46000000b004eae296fe9emr1647369lfd.9.1680709862348; Wed, 05 Apr 2023 08:51:02 -0700 (PDT) Received: from [192.168.1.101] (abxh37.neoplus.adsl.tpnet.pl. [83.9.1.37]) by smtp.gmail.com with ESMTPSA id o28-20020ac2495c000000b004eb2db994e7sm2869344lfi.239.2023.04.05.08.51.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Apr 2023 08:51:02 -0700 (PDT) From: Konrad Dybcio Date: Wed, 05 Apr 2023 17:50:34 +0200 Subject: [PATCH v2 5/5] arm64: dts: qcom: Add initial QTI RB1 device tree MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20230403-topic-rb1_qcm-v2-5-dae06f8830dc@linaro.org> References: <20230403-topic-rb1_qcm-v2-0-dae06f8830dc@linaro.org> In-Reply-To: <20230403-topic-rb1_qcm-v2-0-dae06f8830dc@linaro.org> To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Robert Marko , Das Srinagesh Cc: Bhupesh Sharma , Vladimir Zapolskiy , Marijn Suijten , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1680709854; l=3548; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=rcgGXCqBpdi+rXuFSqHjCoOhi1FGiWNalz4gX3uEVPQ=; b=XTOsV6pxALvtz+ctQD4JVaAehGJXVPUF3+zvh8TOJ+T75Gy635wEghnJnN7ldIWBcipQaB2KkA2M kZrzxcpxCsaxG0RZ25o1LGSlNsMwpB1/W+XWQmAyFozwSW5Ao6gH X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add an initial device tree for the QTI RB1 development board, based on the QRB2210 (QCM2290 derivative) SoC. This device tree targets the SoM revision 4, a.k.a. the Mass Production SKU. To get a successful boot, run: cat arch/arm64/boot/Image.gz arch/arm64/boot/dts/qcom/qrb2210-rb1.dtb >\ .Image.gz-dtb mkbootimg \ --kernel .Image.gz-dtb \ --ramdisk some_initrd \ --output rb1-boot.img \ --pagesize 4096 \ --base 0x8000 \ --cmdline 'some cmdline' fastboot boot rb1-boot.img There's no dtbo or other craziness to worry about. For the best dev experience, you can erase boot and use fastboot boot everytime, so that the bootloader doesn't mess with you. If you have a SoM revision 3 or older (there should be a sticker on it with text like -r00, where r is the revision), you will need to apply this additional diff: aliases { - serial0 =3D &uart0; + serial0 =3D &uart4; /* UART connected to the Micro-USB port via a FTDI chip */ - &uart0 { + &uart4 { That should however only concern preproduction boards. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/qrb2210-rb1.dts | 112 +++++++++++++++++++++++++++= ++++ 1 file changed, 112 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qrb2210-rb1.dts b/arch/arm64/boot/dts= /qcom/qrb2210-rb1.dts new file mode 100644 index 000000000000..ef3616093289 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/qrb2210-rb1.dts @@ -0,0 +1,112 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) +/* + * Copyright (c) 2023, Linaro Ltd + */ + +/dts-v1/; + +#include "qcm2290.dtsi" +#include "pm2250.dtsi" + +/ { + model =3D "Qualcomm Technologies, Inc. Robotics RB1"; + compatible =3D "qcom,qrb2210-rb1", "qcom,qrb2210", "qcom,qcm2290"; + + aliases { + serial0 =3D &uart0; + sdhc1 =3D &sdhc_1; + sdhc2 =3D &sdhc_2; + }; + + chosen { + stdout-path =3D "serial0:115200n8"; + }; + + gpio-keys { + compatible =3D "gpio-keys"; + label =3D "gpio-keys"; + + pinctrl-0 =3D <&key_volp_n>; + pinctrl-names =3D "default"; + + key-volume-up { + label =3D "Volume Up"; + linux,code =3D ; + gpios =3D <&tlmm 96 GPIO_ACTIVE_LOW>; + debounce-interval =3D <15>; + linux,can-disable; + wakeup-source; + }; + }; +}; + +&pm2250_resin { + linux,code =3D ; + status =3D "okay"; +}; + +&qupv3_id_0 { + status =3D "okay"; +}; + +&sdhc_1 { + pinctrl-0 =3D <&sdc1_state_on>; + pinctrl-1 =3D <&sdc1_state_off>; + pinctrl-names =3D "default", "sleep"; + non-removable; + supports-cqe; + no-sdio; + no-sd; + status =3D "okay"; +}; + +&sdhc_2 { + cd-gpios =3D <&tlmm 88 GPIO_ACTIVE_LOW>; + pinctrl-0 =3D <&sdc2_state_on &sd_det_in_on>; + pinctrl-1 =3D <&sdc2_state_off &sd_det_in_off>; + pinctrl-names =3D "default", "sleep"; + no-sdio; + no-mmc; + status =3D "okay"; +}; + +&tlmm { + sd_det_in_on: sd-det-in-on-state { + pins =3D "gpio88"; + function =3D "gpio"; + drive-strength =3D <2>; + bias-pull-up; + }; + + sd_det_in_off: sd-det-in-off-state { + pins =3D "gpio88"; + function =3D "gpio"; + drive-strength =3D <2>; + bias-disable; + }; + + key_volp_n: key-volp-n-state { + pins =3D "gpio96"; + function =3D "gpio"; + bias-pull-up; + output-disable; + }; +}; + +/* UART connected to the Micro-USB port via a FTDI chip */ +&uart0 { + compatible =3D "qcom,geni-debug-uart"; + status =3D "okay"; +}; + +&usb { + status =3D "okay"; +}; + +&usb_hsphy { + status =3D "okay"; +}; + +&xo_board { + clock-frequency =3D <38400000>; +}; --=20 2.40.0