From patchwork Tue Apr 19 01:08:59 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 564093 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 27F3FC433FE for ; Tue, 19 Apr 2022 01:09:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241999AbiDSBLt (ORCPT ); Mon, 18 Apr 2022 21:11:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234301AbiDSBLs (ORCPT ); Mon, 18 Apr 2022 21:11:48 -0400 Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 82DED2DAAD for ; Mon, 18 Apr 2022 18:09:07 -0700 (PDT) Received: by mail-wr1-x429.google.com with SMTP id e21so20399930wrc.8 for ; Mon, 18 Apr 2022 18:09:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=GmpnlnXiabbCuL2JoS5FmYSX790/z1KDUW433qN4L/M=; b=fdAedFAf8l7TrsOUMuMQYhCGPg+pBU4OoZiW7fp/zeRrltbjEJHQVHA7pHmbYrDDHo hK8/ORVIc5DvTolSDQ6OW4jiIJRWpl+JITkv9nkrksuwidQa7wmHKh8VlJomfrPaoNZE sfhtPM+9Lkzj6uycGfnwRb+tNMiSHU7VW4qzR6Abx3gMZ8DcCCMjY/pu3aFzT2l61NHY FAAdCV4NYFbqR7qaDt2vNOyQ1LmiH554LV55/T3x6gR36+NQPzPDPM0F+77yIDcXfKjS /J3HkNuOVh/eYwrdgZT8HKIBHAxqMw3TMOuYATEyPKOINRzgV8YIJdOvjKgIWF7g5Tto k67A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=GmpnlnXiabbCuL2JoS5FmYSX790/z1KDUW433qN4L/M=; b=riaZTq5DqvWuJGqSWUhIX+D8DPEZX+OXvHXszorKMeKS/UY443lOP+cd4Wxmdk+ezA 78xSyZXNyFJxNgVv9JfIiKaI30YWHjtaNg8lmgDJ756FXq9oa+0FNKXxctguJnmKnLHw ReOoH1aqClJ9EDE2WGUw/mdVcTV6dZwKiigY+CYEJgySKhgputmieEgEzVEWjpoWCtt/ pX9dJBOOUox0dBR6DgDIHJpbeDQNpCZccH3vBnWXptUDln6h20KxVXXrW7XbjXEk5vTB t9n/ucTcExNYU6ZsWvDtK/ikAGpRTYoleLoic5c8DmpET4uEEbM0z6PTDDH7YM9h9DIT Lhlw== X-Gm-Message-State: AOAM532/JOaWNJMaHKXkeK8Ahge82t9td/LKqgNQhStBWqjacw8x3Tky FBtLeSaWCTz+zfa4BMsWHy1UGQ== X-Google-Smtp-Source: ABdhPJyOdMsCA96qSG6IZg3f81A/9UzUeKL68iykatPIWDRT2BMxb0rEYjPhr3Pv0MdzX3yeBYDh5g== X-Received: by 2002:a5d:654a:0:b0:20a:8d85:abd9 with SMTP id z10-20020a5d654a000000b0020a8d85abd9mr7525928wrv.419.1650330545994; Mon, 18 Apr 2022 18:09:05 -0700 (PDT) Received: from sagittarius-a.chello.ie (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id m6-20020a05600c4f4600b003918d69b334sm12030732wmq.42.2022.04.18.18.09.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Apr 2022 18:09:05 -0700 (PDT) From: Bryan O'Donoghue To: agross@kernel.org, bjorn.andersson@linaro.org, robh+dt@kernel.org, krzk+dt@kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Cc: shawn.guo@linaro.org, jun.nie@linaro.org, benl@squareup.com, jwillcox@squareup.com, jgates@squareup.com, mchen@squareup.com, zac@squareup.com, bryan.odonoghue@linaro.org Subject: [PATCH v1 0/4] Add MSM8939 SoC support with two devices Date: Tue, 19 Apr 2022 02:08:59 +0100 Message-Id: <20220419010903.3109514-1-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org This series adds in MSM8939 SoC support with two supported devices. - CPU MSM8939 is a non-PSCI compliant device. As such in the downstreaming shipped image custom code is used to bring non-boot cores out of reset. This drop specifies the boot-method as spin-table instead and is completely standard. To accomplish this, we rely on lk2nd. https://github.com/msm8916-mainline/lk2nd/pull/142 - Serial - i2c - USB - eMMC - MDP/DSI - WiFi - Bluetooth What's not included - CPR We have CPR working in a 4.19 kernel quite well but for now it feels like putting the cart before the horse to gate the SoC and boards on CPR. - Venus I've been told this works but I haven't tried it myself and right now consider it maybe working but probably not 100%. - Sound We have a copy-exactly from the 4.19 kernel here in the DTS. I haven't run the sound through any sort of reasonable test. Vincent Knecht has some PostmarketOS kernels which use a 5.17 version of this DTS to get sound up so, I think sound is in good shape. - CAMSS There are slight differences between msm8916 and msm8939 for CAMSS. It doesn't feel like tons of work but, right now it is work we haven't even started. - Devices I've booted on the Square device obviously and this is my regular hardware for upstream development. I've also booted on the Sony Xperia M4 Aqua including mutli-core bring-up, WiFi and ADB. Dependencies for this drop: qcom-cpufreq-nvmem: Add msm8939 with some fixups link: https://lore.kernel.org/linux-arm-msm/20220418162226.2983117-1-bryan.odonoghue@linaro.org/T/#t Fix apq8016 compat string link: https://lore.kernel.org/linux-arm-msm/20220418230956.3059563-1-bryan.odonoghue@linaro.org/T/#t dt-bindings: soc: qcom: smd-rpm: Fix missing MSM8936 compatible link: https://lore.kernel.org/linux-arm-msm/20220418231857.3061053-1-bryan.odonoghue@linaro.org/T/#u Bootable tree here: https://git.linaro.org/people/bryan.odonoghue/kernel.git/log/?h=v5.18-rc2%2bapq8039-without-cpr Bryan O'Donoghue (4): dt-bindings: arm: qcom: Document MSM8939 SoC binding arm64: dts: Add msm8939 SoC arm64: dts: Add aqp8039-t2 board arm64: dts: Add msm8939 Sony Xperia M4 Aqua .../devicetree/bindings/arm/qcom.yaml | 7 + arch/arm64/boot/dts/qcom/Makefile | 3 + .../boot/dts/qcom/apq8039-t2-pinctl.dtsi | 277 +++ arch/arm64/boot/dts/qcom/apq8039-t2.dts | 326 +++ .../qcom/msm8939-sony-xperia-kanuti-tulip.dts | 489 ++++ arch/arm64/boot/dts/qcom/msm8939.dtsi | 2017 +++++++++++++++++ 6 files changed, 3119 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/apq8039-t2-pinctl.dtsi create mode 100644 arch/arm64/boot/dts/qcom/apq8039-t2.dts create mode 100644 arch/arm64/boot/dts/qcom/msm8939-sony-xperia-kanuti-tulip.dts create mode 100644 arch/arm64/boot/dts/qcom/msm8939.dtsi