From patchwork Tue Apr 11 07:28:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 7993 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2392195vqo; Tue, 11 Apr 2023 00:41:16 -0700 (PDT) X-Google-Smtp-Source: AKy350Z3fnCKuqniYotgbtZnOIWhzS9Fwak3RSYdgVioIRYyYKOfr1arrbievCUUWfbuw5mUk4or X-Received: by 2002:a62:4ece:0:b0:635:5b1c:64de with SMTP id c197-20020a624ece000000b006355b1c64demr8544874pfb.2.1681198876612; Tue, 11 Apr 2023 00:41:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681198876; cv=none; d=google.com; s=arc-20160816; b=tokiGdjFYm8gU4P2rY+1AkX/IJ8Td6T20fRNzwDx1Hz0w8v98f3SSHmdTGzSDYG3ak lHtFjX9p6uH8MlQVIEGcqPp/dQ73z+fwklKd1WLQdBiWVhVir+0Yr3kt4Vpxith1qiQh mkVtpbxeiFgKcn0HC8RfBMJApVb9tmrOMb0t83An/IuvIkJoz4IYYJbRpYefFIUAlEyC NOXFUkMd85BI0E7/dlnH2ufQbwAKGoEHIYwemAG5Y3OyQjh9+O4gdnaPbUD9TNSWLq2J 760DYNXcIj4tg3FSATpsKSWQ4Bc8OS5s+0Wdai3p9A7H9I2xXnLIcCgqTwkLM0un4YoS 2h9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=gYIzKSwGvXgmY04hGg8wntK0YcMOF3CTzRnRLf+lmfo=; b=t7K/WCQKNx37Ra+DTbi27hjK5vSvZYzxX4rZZydgVu78hAdrNuJzs3Z3kWb+UM8Fy2 V3rJ6Gvswqav9ru9JVQPIl61LXLcLYx3Ah6y71sFv562JriYXWfRfE+iMEJLmYvmNeV8 ttvahhUGO865n02oa84bLHNAOu773caEMhD7JW75Ws8BjlQSf2zoTSC0A491bfV2C26b vwb9J2dv5ljAnqhor2DGOp9SNkoLb0IemKVjI1fUo5Ip1ImvuwzL8QN7c4jJS1NSlikj GMYnH8D5uQC3OtkeEwaDWLAqO2eSipYmSeD+lVENRlmAbdhPRsVnVc/nqO8ntyRRSh4e tVVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=e6OfinFL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t3-20020a637803000000b005180ddeec2esi7677839pgc.669.2023.04.11.00.41.04; Tue, 11 Apr 2023 00:41:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=e6OfinFL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229771AbjDKH25 (ORCPT + 99 others); Tue, 11 Apr 2023 03:28:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229624AbjDKH2z (ORCPT ); Tue, 11 Apr 2023 03:28:55 -0400 Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com [IPv6:2607:f8b0:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3DDBF10D9 for ; Tue, 11 Apr 2023 00:28:54 -0700 (PDT) Received: by mail-pl1-x634.google.com with SMTP id q2so11904713pll.7 for ; Tue, 11 Apr 2023 00:28:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1681198134; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=gYIzKSwGvXgmY04hGg8wntK0YcMOF3CTzRnRLf+lmfo=; b=e6OfinFL6B6gdg/sJAGuLAhGXAyEHGQoZxFCxUIg+v9m0JVdVVaV9DIHI4uJiIHqkU 5lw43+apQZR1B7d/GX2LyV0NikJvmvv4D+MtE4GFcUagGspsqEdHY4ZkAgakMI1x5HEx NnD2hGbX+okDo3T4dF0ALSiQr3ScWMnfEclK/VueuB1FngF2hgHcUzQysAG5oSNlAw/D h1lJNs1JKLB3p1hzkohhHCg9HtDHzEpeePkD1IEou3QsRpWvoI6uo0Y6jUPGMqu7Pdqw fVBOdLXMgRriDdfpJB4kWbf7ZZXKSn5cEBRVM8TRK/nKrG0s+7zy1rpFiR199UV26UbZ rs5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681198134; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=gYIzKSwGvXgmY04hGg8wntK0YcMOF3CTzRnRLf+lmfo=; b=EyxI5A//8yvzSicu8TJ293ZhYCKZ+OiH2aKN147Z0lFv52EN293gx9fdUgAyg8Kbbn jHHRiBFPLxGEF6PeI8m8Ot86WKAVeoN18/QCfQFnnU2OR5ILdjcniKiN/so9SCYV95u+ CM1UAXQMxPBiEMgc4WGPr2a4YNoW+kt3B779XSmn4d6NwEUZV/8oURM1tR6ciLOCvnGM 6FJgr8YubrSwFneP0MpJ+PhoNlcjWDO8rmm+UnrW0iNoIrb36YT7nzsX0ZMjrWQeXxEJ voBbIcHl7uQ6P63XZWnlo9LbmW6rO+Rk2ogHNjvnYXpXF/rYDjGpgIzBfYOz6NJj4yos HWdQ== X-Gm-Message-State: AAQBX9cvSFiZE4EN0fVnHsP0+rdHsx/3d6AArrr6Ii6UmxdmEtW/hRvn 0M1ulP+62OTWa+LuSmWUZN6jmA== X-Received: by 2002:a17:903:1c4:b0:1a0:7584:f46f with SMTP id e4-20020a17090301c400b001a07584f46fmr25167435plh.9.1681198133612; Tue, 11 Apr 2023 00:28:53 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1c60:6a11:8ba1:beba:def7:a4ae]) by smtp.gmail.com with ESMTPSA id s7-20020a170902988700b001a043e84bf0sm8946612plp.209.2023.04.11.00.28.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Apr 2023 00:28:53 -0700 (PDT) From: Bhupesh Sharma To: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Cc: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, linux-kernel@vger.kernel.org, bhupesh.linux@gmail.com, bhupesh.sharma@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski@linaro.org Subject: [PATCH v3 0/3] arm64: dts: qcom: Add Qualcomm RB2 board dts Date: Tue, 11 Apr 2023 12:58:37 +0530 Message-Id: <20230411072840.2751813-1-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762864793249860507?= X-GMAIL-MSGID: =?utf-8?q?1762864793249860507?= Changes since v2: ----------------- - v2 can be viewed here: https://lore.kernel.org/linux-arm-msm/20230315210145.2221116-1-bhupesh.sharma@linaro.org/ - Addressed review comments from Bjorn about load conditions for vmmc ldos and added [PATCH 3/3] accordingly in v3. - Collected Krzysztof's Ack for [PATCH 1/3]. Changes since v1: ----------------- - v1 can be viewed here: https://lore.kernel.org/linux-arm-msm/20230314210828.2049720-1-bhupesh.sharma@linaro.org/ - Addressed review comments from Konrad and fixed the board dts and also added a new 'qcom,qrb4210' compatible. - Although Krzysztof provided an Ack for [PATCH 1/2] from the v1 series, since this series introduces the new 'qcom,qrb4210' compatible, so I have dropped the same for now. Add an initial device tree for Qualcomm RB2 board (see [1]). It is based on the Robotics version of the Snapdragon SM4250 Soc, i.e. QRB4210. Currently it enables: - eMMC via SDHC1, - uSD card via SDHC2, - RPM regulators, - Debug UART (via micro USB port). Subsequent patchset(s) will add more peripherals like USB, etc. This patchset is dependent on the QRB4210 SocInfo patchset sent out earlier (see [2]). To get a successful boot run: $ cat arch/arm64/boot/Image.gz arch/arm64/boot/dts/qcom/\ qrb4210-rb2.dtb > ./Image-adp.gz+dtb $ mkbootimg --kernel ./Image-adp.gz+dtb \ --ramdisk ./some-initramfs-image.rootfs.img \ --output ./rb2-boot.img --pagesize 4096 \ --base 0x80000000 --cmdline 'SOME_CMDLINE' $ fastboot boot ./rb2-boot.img [1]. https://www.qualcomm.com/products/internet-of-things/industrial/industrial-automation/qualcomm-robotics-rb2-platform#Overview [2]. https://lore.kernel.org/linux-arm-msm/20230315160151.2166861-1-bhupesh.sharma@linaro.org/ Bhupesh Sharma (3): dt-bindings: arm: qcom: Document the Qualcomm qrb4210-rb2 board arm64: dts: qcom: Add base qrb4210-rb2 board dts arm64: dts: qcom: qrb4210-rb2: Increase load on l22 and l24 for uSD and eMMC .../devicetree/bindings/arm/qcom.yaml | 8 + arch/arm64/boot/dts/qcom/Makefile | 1 + arch/arm64/boot/dts/qcom/qrb4210-rb2.dts | 227 ++++++++++++++++++ 3 files changed, 236 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/qrb4210-rb2.dts