From patchwork Fri Aug 19 08:32:00 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 598556 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 8CE27C32772 for ; Fri, 19 Aug 2022 08:32:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347670AbiHSIco (ORCPT ); Fri, 19 Aug 2022 04:32:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347479AbiHSIck (ORCPT ); Fri, 19 Aug 2022 04:32:40 -0400 Received: from mail-lj1-x232.google.com (mail-lj1-x232.google.com [IPv6:2a00:1450:4864:20::232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 10AF7E992B for ; Fri, 19 Aug 2022 01:32:24 -0700 (PDT) Received: by mail-lj1-x232.google.com with SMTP id x10so3890083ljq.4 for ; Fri, 19 Aug 2022 01:32:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=txjXCRtOELuunkCVXNi0V+0kB2LPofpz702NPuFtQkk=; b=WRo0rSEUtXYkkgU2C5eUCi8no3l41nxekq4KYhtKWXLw17rKIRxMDevgKTOadNaswI T5IhnPrrfeK1kO8NO8FSkT3yKAlnLbGPc4jiAyA/jwCvs/o5V3kEub3lebz7qvSE5yO5 av0KlJhL4k3Ot0DwqQB0fZGserk+d7JyKPGy3/TvwkPivyF2DzkU48PHf0RRmXt5fVaO qUyngmY5mosnEunSSgpKyjcnpBfr+KXuTDiCopqBClqAWQSR5vbQF57NDeRXwRokZiBd k5zShAn096Y713nnFW9rb9+VYA90JBlAT35gmsypAQARbothyuMm5WutD7DrOhWo0Zbe EIUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=txjXCRtOELuunkCVXNi0V+0kB2LPofpz702NPuFtQkk=; b=iE6I4qVVoNC9rdjgE13CPK/cX5q1Bezp14GO95yennfxOXIR6jI5vTENBBP+KvZjI+ Z6ePMEXLAbZY27lUc/R3G7xx+GmlXhQRbta4GOI7Jsl44/7amxmswZZnuKLDMyOl+dbj awK8lftTF3jbwZabYaUTHdwK0q+V7qkdp/+J3hugXBbrPiB1CvHwaAeOx5zJTVhoQRlS 43KHJWn0xKMjEtQcWusPUrST0uL0tR+JcxIQIB46nPTz6kXmJCzWRavHqd0gknow/Uei y3I7BlUrTpo8No8EdKvV9F96sHN0ngKcyFKAFebH5KIVaqeyCJ4APSzrDpfixKA3VKnu ArsA== X-Gm-Message-State: ACgBeo1BkNgfkgXxep/jSsA3lY+Qex7QmJ9RHuI5Mgi63CG5f2iELeVQ tuBNB5eEbwWSZpxx6Ru1XFtzTA== X-Google-Smtp-Source: AA6agR60V4CvViYgSN+CSY/0Z+KZgBs1aH1KfkqRX4Lh7lZX4cZinLOIDaoJsobPydS9XPWJzZ6JBA== X-Received: by 2002:a05:651c:50e:b0:25f:f52b:3c91 with SMTP id o14-20020a05651c050e00b0025ff52b3c91mr2042344ljp.391.1660897943626; Fri, 19 Aug 2022 01:32:23 -0700 (PDT) Received: from krzk-bin.. (d1xw6v77xrs23np8r6z-4.rev.dnainternet.fi. [2001:14bb:ac:e5a8:ef73:73ed:75b3:8ed5]) by smtp.gmail.com with ESMTPSA id j8-20020a19f508000000b00492a54f0be1sm545355lfb.284.2022.08.19.01.32.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Aug 2022 01:32:23 -0700 (PDT) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Lee Jones , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [RFT PATCH v3 07/16] arm64: dts: qcom: sc7180: split TCSR halt regs out of mutex Date: Fri, 19 Aug 2022 11:32:00 +0300 Message-Id: <20220819083209.50844-8-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220819083209.50844-1-krzysztof.kozlowski@linaro.org> References: <20220819083209.50844-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The TCSR halt regs are next to TCSR mutex (in one address block called TCSR_MUTEX), so before converting the TCSR mutex into device with address space, we need to split the halt regs to its own syscon device. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sc7180.dtsi | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sc7180.dtsi b/arch/arm64/boot/dts/qcom/sc7180.dtsi index 49f28cb531f6..5d2dd21da79c 100644 --- a/arch/arm64/boot/dts/qcom/sc7180.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7180.dtsi @@ -1464,10 +1464,15 @@ ipa: ipa@1e40000 { tcsr_mutex_regs: syscon@1f40000 { compatible = "syscon"; - reg = <0 0x01f40000 0 0x40000>; + reg = <0 0x01f40000 0 0x20000>; }; - tcsr_regs: syscon@1fc0000 { + tcsr_regs_1: sycon@1f60000 { + compatible = "qcom,sc7180-tcsr", "syscon"; + reg = <0 0x01f60000 0 0x20000>; + }; + + tcsr_regs_2: syscon@1fc0000 { compatible = "qcom,sc7180-tcsr", "syscon"; reg = <0 0x01fc0000 0 0x40000>; }; @@ -1932,8 +1937,8 @@ remoteproc_mpss: remoteproc@4080000 { <&pdc_reset PDC_MODEM_SYNC_RESET>; reset-names = "mss_restart", "pdc_reset"; - qcom,halt-regs = <&tcsr_mutex_regs 0x23000 0x25000 0x24000>; - qcom,spare-regs = <&tcsr_regs 0xb3e4>; + qcom,halt-regs = <&tcsr_regs_1 0x3000 0x5000 0x4000>; + qcom,spare-regs = <&tcsr_regs_2 0xb3e4>; status = "disabled";