From patchwork Fri Mar 24 08:04:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 666549 Delivered-To: patch@linaro.org Received: by 2002:a5d:4d08:0:0:0:0:0 with SMTP id z8csp448905wrt; Fri, 24 Mar 2023 05:55:09 -0700 (PDT) X-Google-Smtp-Source: AKy350as1Ac3BkIxwEvJyVmVljOPHHWdOYZuk8phnqGMGodf2Jj48647E959LO2XGxl1VSgypQzy X-Received: by 2002:a17:90b:3eca:b0:237:5a3c:e86c with SMTP id rm10-20020a17090b3eca00b002375a3ce86cmr3141358pjb.24.1679662509497; Fri, 24 Mar 2023 05:55:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679662509; cv=none; d=google.com; s=arc-20160816; b=xMgglaEaQBw40aK1a9s93Zec6Q7aCNY3TQarMOATnT9sHqcwv00eEft8j3MV74ytZW ajhhUAeLaVHTKckv+pORmz2ijvD55Dyvodx/ZrHxqa5whRtRb6o84iAfVboC1M0bvtrB boQdGl0LzOFeBmJ/0yPbGD30zBzYWGKZqMrU921vrtHryA4cXgd0t8Q3rLlPwdsR6Fga zKNV5ZODM7GcZJiNYsyUKmI5bh7K9qyRTC6FRqbb9akmy5x7q/5x19p5+NmGXT0/pLon ioG6ssofIp0gC1H5YbfZAOYhCwMWpbfkzHh+B5VncFB3AWjcZel7Smz/2eq4x0QWz/4e WD2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=7drIRunmPoLRF3wQhCynHUPN/5v/Zf06w2aCcvC+MEk=; b=qZQ6XkqOA7UihqgZokJAFSWZT4WMhwdOWZuCsVOMRhojgEM68Iwwuj3aMLYsCugoNw 0PxlMorUjv1732xHAt4XUGPjAqsRgZuXBa13TBBOk/Mbu2GmWwQ6CoCaDM1B5hHAFmRR kFX088YFnXfl/VYHp13bkGs/TTrcfAB/xjiwvIl6YGdqyKdnirg5V+u2OlZRgLBfWj4H 74dgEX/OzA0AuzaKOSJVSawNv/6++UROxhg13tTJCm9/xfB60d3mFLW1Xn4MFrkIrRkl GDn7NpryA5kyc9rnbDI5QicTa2Yrri0UnLsBHBUbmdfIhjwOUMIy0u54BCAuXGY0nD1n /nyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tPdrQUaZ; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id kp8-20020a170903280800b001a1deff6093si10135693plb.526.2023.03.24.05.55.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Mar 2023 05:55:09 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tPdrQUaZ; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id DE7A585CB7; Fri, 24 Mar 2023 13:54:53 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="tPdrQUaZ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3B44A859E5; Fri, 24 Mar 2023 09:05:18 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id DFBF2859B4 for ; Fri, 24 Mar 2023 09:05:14 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=bhupesh.sharma@linaro.org Received: by mail-pj1-x1033.google.com with SMTP id o6-20020a17090a9f8600b0023f32869993so4344420pjp.1 for ; Fri, 24 Mar 2023 01:05:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679645113; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=7drIRunmPoLRF3wQhCynHUPN/5v/Zf06w2aCcvC+MEk=; b=tPdrQUaZ2S+durK6/Adb8Nl2OIrZC3CJzqGsS2frx+jKZ/yaM3Yz4dKR69md0uQ3BV 58LEUc8xXZ4oyBAYjV7ofng1JSZTevNYUeDU+IOhuvXlGoD7KDzPag7gDM1dS2QmGcpZ O4nOgn/y02Tw+b85h4I4Sv1PHpBsKu/XgP9UBDVmEaD5cS7HpHDuulSXyqE1orALoMId MsT77ezHpwx7v3Bj1ob9LlnWy6aIr9w8miWONNnkNeUFeydVe7THHmKMAff7YFzUjGUX 5gOZ4y9AUdaKPZLZd7GG3UScyAAbJhDmuONZv5Fn/2exGbEvoUi59wlnCEIXIdc5JnVF j+Lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679645113; 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=7drIRunmPoLRF3wQhCynHUPN/5v/Zf06w2aCcvC+MEk=; b=4PIsTgxTMeV0CYEsEULMnUQ7tJH2Qf4SLEjth75zbAL1kaOP49kHGefxwYfDSSkbg+ G82+9qoA4W0m4RnDQBa/v+h8cbmsyMi+NTuLNogTROpVPQ2XBX3evF+CyqE5xhOyiB4A 0F+6dl3b5st8IxlwFC6m3busXJsapZgkZiULH/thv9ms6TP+2EEAGOTwYdMhr3aDQqGz SRMgnjqVl14WUB59c02t7ZV+JUhf9WfbCpDtZFER+rZdmq2kPpBZRsTRSEMnV0tzeJOB oe8bHvmyc4rYIBmcN2JvYTzX43MzqgrWPqN1+N938cpBjsw+UCwbbLg/eC3KjSTvkAoH 5AXA== X-Gm-Message-State: AAQBX9fyVkG1/H2rsQhfd+oRODfVybIa2LQNBZHsu68doHrsHdlQYoa5 q9g/vs65m30Pq6M84GPPxTK72dIAnTqTQX8oy3w= X-Received: by 2002:a17:902:f548:b0:1a0:4341:4cd9 with SMTP id h8-20020a170902f54800b001a043414cd9mr2203359plf.31.1679645112898; Fri, 24 Mar 2023 01:05:12 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1c60:d4c3:8671:83c0:33ae:5a96]) by smtp.gmail.com with ESMTPSA id s22-20020a170902989600b001a04a372fa0sm12205293plp.251.2023.03.24.01.05.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Mar 2023 01:05:12 -0700 (PDT) From: Bhupesh Sharma To: u-boot@lists.denx.de Cc: jh80.chung@samsung.com, peng.fan@nxp.com, rfried.dev@gmail.com, sjg@chromium.org, trini@konsulko.com, dsankouski@gmail.com, bhupesh.linux@gmail.com, bhupesh.sharma@linaro.org Subject: [PATCH 0/5] New boards support: Qualcomm RB2 board Date: Fri, 24 Mar 2023 13:34:13 +0530 Message-Id: <20230324080418.3856409-1-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 X-Mailman-Approved-At: Fri, 24 Mar 2023 13:54:51 +0100 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Add initial support for Qualcomm RB2 robotics board (see [1]). It is based on the Robotics version of the Snapdragon SM4250 Soc, i.e. QRB4210. Currently it supports standard u-boot and booting upstream linux kernel Subsequent patchset(s) will add more peripherals like USB, uSD card etc. As with the existing Snapdragon platforms, u-boot is chain-loaded in 64-bit mode via Android Boot Loader (ABL) which is an EFI application. For further details on chain-loading refer to platform specific documentation: - doc/board/qualcomm/qrb4210-rb2.rst [1]. https://www.qualcomm.com/products/internet-of-things/industrial/industrial-automation/qualcomm-robotics-rb2-platform#Overview Bhupesh Sharma (5): dt-bindings: clock: Import qcom,gcc-sm6115.h clocks: qcom: Add clock driver for SM6115 SoC reset: qcom: Add support for SM6115 SoC reset table pinctrl: qcom: Add pinctrl driver for SM6115 SoC board: qualcomm: Add support for QRB4210-RB2 arch/arm/dts/Makefile | 1 + arch/arm/dts/qrb4210-rb2-uboot.dtsi | 24 +++ arch/arm/dts/qrb4210-rb2.dtsi | 120 +++++++++++ arch/arm/mach-snapdragon/Kconfig | 11 + arch/arm/mach-snapdragon/Makefile | 3 + arch/arm/mach-snapdragon/clock-qrb4210-rb2.c | 110 ++++++++++ arch/arm/mach-snapdragon/clock-snapdragon.c | 1 + arch/arm/mach-snapdragon/clock-snapdragon.h | 2 + .../include/mach/sysmap-qrb4210rb2.h | 46 ++++ .../arm/mach-snapdragon/pinctrl-qrb4210-rb2.c | 59 +++++ arch/arm/mach-snapdragon/pinctrl-snapdragon.c | 1 + arch/arm/mach-snapdragon/pinctrl-snapdragon.h | 1 + arch/arm/mach-snapdragon/sysmap-qrb4210-rb2.c | 35 +++ board/qualcomm/qrb4210-rb2/Kconfig | 15 ++ board/qualcomm/qrb4210-rb2/MAINTAINERS | 6 + board/qualcomm/qrb4210-rb2/Makefile | 6 + board/qualcomm/qrb4210-rb2/qrb4210-rb2.c | 51 +++++ board/qualcomm/qrb4210-rb2/qrb4210-rb2.its | 64 ++++++ configs/qrb4210rb2_defconfig | 56 +++++ doc/board/qualcomm/index.rst | 1 + doc/board/qualcomm/qrb4210-rb2.rst | 79 +++++++ drivers/reset/reset-qcom.c | 18 ++ include/configs/qrb4210-rb2.h | 21 ++ include/dt-bindings/clock/qcom,gcc-sm6115.h | 201 ++++++++++++++++++ 24 files changed, 932 insertions(+) create mode 100644 arch/arm/dts/qrb4210-rb2-uboot.dtsi create mode 100644 arch/arm/dts/qrb4210-rb2.dtsi create mode 100644 arch/arm/mach-snapdragon/clock-qrb4210-rb2.c create mode 100644 arch/arm/mach-snapdragon/include/mach/sysmap-qrb4210rb2.h create mode 100644 arch/arm/mach-snapdragon/pinctrl-qrb4210-rb2.c create mode 100644 arch/arm/mach-snapdragon/sysmap-qrb4210-rb2.c create mode 100644 board/qualcomm/qrb4210-rb2/Kconfig create mode 100644 board/qualcomm/qrb4210-rb2/MAINTAINERS create mode 100644 board/qualcomm/qrb4210-rb2/Makefile create mode 100644 board/qualcomm/qrb4210-rb2/qrb4210-rb2.c create mode 100644 board/qualcomm/qrb4210-rb2/qrb4210-rb2.its create mode 100644 configs/qrb4210rb2_defconfig create mode 100644 doc/board/qualcomm/qrb4210-rb2.rst create mode 100644 include/configs/qrb4210-rb2.h create mode 100644 include/dt-bindings/clock/qcom,gcc-sm6115.h