From patchwork Thu May 4 08:26:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 89993 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp145530vqo; Thu, 4 May 2023 01:31:37 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5gGtm8AErM5DeV2o0f6exfawu80TVPba6jslnjzpUOB5V0k/kq3kYaGSoFl6Ifu6W8w+ph X-Received: by 2002:a05:6a20:438a:b0:ef:95de:b877 with SMTP id i10-20020a056a20438a00b000ef95deb877mr1551196pzl.10.1683189096757; Thu, 04 May 2023 01:31:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683189096; cv=none; d=google.com; s=arc-20160816; b=UNoVP8h0j4Ob6cyDe4l2cJ1YYRZGxd99XLJPBFE6s+JNIzOZ/n1ujDmoFcIBV/9bvo TqT5tDMghUK9Zt/xmvS9adPoWD7XsEGHsoFPSQiPNa9EeBSlXAv3uAiUypJg7zRRkLuY ACFfhZFbRapO1Wa4Y3dulZ8xDkVW6VvYvWKjxiowIutlNMuulczq7URlmQsIuwlsZ75K 7WPNxa4OQhqyLxITxxJ6UibV4GRjQ15okJjVy2ksQH1AdJVzqGduEthg0PrLtZhBIfz5 pRT2s0EL9zQHt17wTLCF0OQCXWM6Z8ViP9MQ6gUDuc/RdBuiAAnHzGiIQYKzSiwGz8m0 gPMg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=tpKnP1YDIVbRZiADGr23D8oPufyg/cq5r9T3i6z6bvI=; b=COojgORsxOJJYvcd2R7AiqMWcVkS9Rh4JrJhfQPWLAiozk1SDCKfnwAsl7vza4cALi HC6gBJRzunxqCVLOhoogUiHMxKodNtlsJip5wDvOyIXNW1BEQp6IdFuRI82FlvGLw7KT 2KWVFqs9+NsQTNAWkSCUOGdiqJysN6AI4NidBY1sk1xHLsXZWMoBIZMg60Tq5HwtWW3P 2eFVDRFrPPTsFDrQDw08jZCW5UWCjvQvKS9v/1MUaFbP+/S97xN3vyslKAccVJr6QpT5 qMfodK8zPwY6cnAnu6zgQlUQg3u5hDu1NECbCcjqKG+56EtqsGBVjG7msE6gFGgsJeiv vW+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SqxCUtKD; 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 c6-20020a655a86000000b0051384f6edeasi34073031pgt.537.2023.05.04.01.31.22; Thu, 04 May 2023 01:31:36 -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=SqxCUtKD; 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 S230021AbjEDIag (ORCPT + 99 others); Thu, 4 May 2023 04:30:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38396 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230001AbjEDIaK (ORCPT ); Thu, 4 May 2023 04:30:10 -0400 Received: from mail-pf1-x42a.google.com (mail-pf1-x42a.google.com [IPv6:2607:f8b0:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 861BB5FD1 for ; Thu, 4 May 2023 01:27:19 -0700 (PDT) Received: by mail-pf1-x42a.google.com with SMTP id d2e1a72fcca58-63b5465fc13so200593b3a.3 for ; Thu, 04 May 2023 01:27:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683188839; x=1685780839; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=tpKnP1YDIVbRZiADGr23D8oPufyg/cq5r9T3i6z6bvI=; b=SqxCUtKDUckciWmrviJ3XhnAkxxA1WC+AmYMmH0dT+ADSNmyojxdmp2LSd/3s7CzZG 9D8GZERaj+o65tILZzOpY8F6UiueQ/rFMgRi/dAaejXt9BtCqEG54BjOO4ClcZdX36PN hcX/BppDb1EXnPq3/EUKvJyrPBDpQmKr7fCc5J+pf3VKTPb6r150uBQzInr1LEDbcI8n zryM1VuBSmSfmk3ea31151Uo/Fsc72TPQub9AsAfBpMDYvEy1NsNV8qED5OxVM6j76Pi E2gisu2Zz9TpvDqwoNkGnpO7uZA9cx1sh1PqQWXnjB9Nyls7qYZwbXzw7dLiF2T+GZl5 2l1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683188839; x=1685780839; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=tpKnP1YDIVbRZiADGr23D8oPufyg/cq5r9T3i6z6bvI=; b=A4NrHLG9zaJRGSodeAG7+QN8hGTVceBQs5VuqzU43R/y+QAyHYrdLz14XqA1qWs1cO CHM30WxxQ6J75jpnVpbHFtDl8OyqE3Kw1DmLKskBf35HhBn54Rolrjg07eLN44Y+hEfb /5t8dRQWUKgp4/wC15V9qf0pcn/t3GxlvXzI8OZAR4H/eWv3AQd96d7HkN6LTTxFtAMV c24Mk9xEuD87MPVt2zn2s6O+gW6sXN6R2lJlmofK5PAYnNTmbzotvgyzVtBOsxMshYVZ l5a+F/c9b/NceKCruhqPZRA7VZsLjlMQ5/GgOOiI1lyHSAs/e3RIk+wgbQuQjCAmtuPn HDMQ== X-Gm-Message-State: AC+VfDxp8rbuj/bKoJ5y/fOX6ns5udvQpZlAUPbmHCHKXsjtfAilo5sg CfK7efANjSDnMChHPHFH4O+PLg== X-Received: by 2002:aa7:888d:0:b0:63b:859f:f094 with SMTP id z13-20020aa7888d000000b0063b859ff094mr1782227pfe.20.1683188838921; Thu, 04 May 2023 01:27:18 -0700 (PDT) Received: from localhost.localdomain ([223.233.65.180]) by smtp.gmail.com with ESMTPSA id s1-20020a056a00178100b00625d84a0194sm24913973pfg.107.2023.05.04.01.27.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 May 2023 01:27:18 -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, linux-usb@vger.kernel.org, krzysztof.kozlowski+dt@linaro.org, krzysztof.kozlowski@linaro.org Subject: [PATCH v3 2/5] dt-bindings: soc: qcom: eud: Add SM6115 / SM4250 support Date: Thu, 4 May 2023 13:56:41 +0530 Message-Id: <20230504082644.1461582-3-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230504082644.1461582-1-bhupesh.sharma@linaro.org> References: <20230504082644.1461582-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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?1764951690203770816?= X-GMAIL-MSGID: =?utf-8?q?1764951690203770816?= Add dt-bindings for EUD found on Qualcomm SM6115 / SM4250 SoC. On this SoC (and derivatives) the enable bit inside 'tcsr_check_reg' needs to be set first to 'enable' the eud module. So, update the dt-bindings to accommodate the third register property (TCSR Base) required by the driver on these SoCs. Also for these SoCs, introduce a new bool property 'qcom,secure-mode-enable', which indicates that the mode manager needs to be accessed only via the secure world. Signed-off-by: Bhupesh Sharma --- .../devicetree/bindings/soc/qcom/qcom,eud.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Documentation/devicetree/bindings/soc/qcom/qcom,eud.yaml b/Documentation/devicetree/bindings/soc/qcom/qcom,eud.yaml index f2c5ec7e6437..3b92cdf4e306 100644 --- a/Documentation/devicetree/bindings/soc/qcom/qcom,eud.yaml +++ b/Documentation/devicetree/bindings/soc/qcom/qcom,eud.yaml @@ -18,17 +18,33 @@ properties: items: - enum: - qcom,sc7280-eud + - qcom,sm6115-eud - const: qcom,eud reg: + minItems: 2 items: - description: EUD Base Register Region - description: EUD Mode Manager Register + - description: TCSR Base Register Region + + reg-names: + minItems: 2 + items: + - const: eud-base + - const: eud-mode-mgr + - const: tcsr-base interrupts: description: EUD interrupt maxItems: 1 + qcom,secure-mode-enable: + type: boolean + description: + Indicates that the mode manager needs to be accessed only via the secure + world (through 'scm' calls). + ports: $ref: /schemas/graph.yaml#/properties/ports description: