From patchwork Tue Jul 18 06:10:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 121781 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c923:0:b0:3e4:2afc:c1 with SMTP id j3csp1537009vqt; Mon, 17 Jul 2023 23:17:05 -0700 (PDT) X-Google-Smtp-Source: APBJJlFrHhCDrlN+CIjF9vdMBwsOLF6OOy8EmFdGYPBJm2EGVCY6gYvggFXfnS1O+6FM0qYBR1gd X-Received: by 2002:a05:6a21:9993:b0:133:b3db:c78b with SMTP id ve19-20020a056a21999300b00133b3dbc78bmr11265431pzb.36.1689661025064; Mon, 17 Jul 2023 23:17:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689661025; cv=none; d=google.com; s=arc-20160816; b=f8JWCFhCivEUZR1oLzEMbYk+ylQj2CnAwSXAbtoXF5Dd9R7eSUG1m7C+lYTjI3yiCS nBUtMyJOlWQIkwfYP0k2vZqR+gccmTgRG2JQQw2cbu2oVOXFwOnep5IHyFyhb2bThb8L Y0KNGKVv4PA713K4yEk5G3A8p1Is8uRYruiZCGOwCQKJGnmfz+5kT93MbU5eYSupNkID ND5YqBEW5QvBZ+rv6A7F20S8cqO7Dv2pHxe0/MBuoXTrFBrCKkRExaxczN1J08aDdhRb oajc5fDr5KCqJAJoepY03CKMO/xcqbITNv9L4fmqFiySxI+qf8yvP/a+jZlR2+7Wyocq dd+g== 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=R3U8YGGir0L/mdYZ0L+59VSzteiUJkc0KitjLit6CXs=; fh=m/g2beIBC/gUlgiFZ33vN+mjSQx49mQUAjZ4Ony+ssI=; b=UTZBiHZUfK+mibqs0dJf+FfEqcLhx4vGSQU9PmFDwmCttH6H0upKT+PjekwGWD7BHo WhMMwabZpeVFvKPfg55SmtdxpfCO+FmdsoTYij8N3t/Ou0tzXeqm3H0D168ij/bgVRCy diXZ4H0jjClO1D6c68qOyOfLNjtDckCM0mRBqr6jJ4LnKp28JfEIMvrvKiQaz1BlNpi7 un5bR3ZgVhvWwBz2e+lXF02IMmMchdurwwKsHUIO0hl5M6zu4lZvZQK5n6FXZM65dt71 k9/AaM0S8F0Xw6/DElWNBma2wS7juJhfmuCj3FSiA6QCY8rQkMoiRjp5ZgLEzZb17QDi N77g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=asFylN+n; 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 ik15-20020a170902ab0f00b001b874c5f7a8si1057627plb.653.2023.07.17.23.16.51; Mon, 17 Jul 2023 23:17:05 -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=asFylN+n; 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 S231325AbjGRGLa (ORCPT + 99 others); Tue, 18 Jul 2023 02:11:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53638 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231228AbjGRGLS (ORCPT ); Tue, 18 Jul 2023 02:11:18 -0400 Received: from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com [IPv6:2607:f8b0:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D3DB710E3 for ; Mon, 17 Jul 2023 23:11:16 -0700 (PDT) Received: by mail-pf1-x42b.google.com with SMTP id d2e1a72fcca58-6687096c6ddso3338267b3a.0 for ; Mon, 17 Jul 2023 23:11:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1689660676; x=1692252676; 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=R3U8YGGir0L/mdYZ0L+59VSzteiUJkc0KitjLit6CXs=; b=asFylN+n0kUr9plq5cxM4Pwogu2AbP35sKK923oj7CnWW/DgT7MjZAsGYRthUkBd4d b8Hi3b4raiSvXdLqaqVpkHASKj0XLIIetKlI7q+BvECvA1B+ANvmy6x3WLIlMKxJwiLR IxeDloi3MvSFsCTk/6O4bHX6mqTJuhrN02OLk9442NPyIlMAs5SErx0oetDzzz3a4AwN O6CdOWctwj3IIYCoaNLxVQE13xu0UOfPc/w1I9dSKbhSujiAP4XuDxWvj/eCxshmbUzd qFddJJ/n4iZuwksLcThBDYi9hpPMxtvZOffw2AhgTx8AZm8KIwLdnAjy35lm85+QNyXH TxmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689660676; x=1692252676; 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=R3U8YGGir0L/mdYZ0L+59VSzteiUJkc0KitjLit6CXs=; b=IoYJFzd5YinSNcPqVg0qhbTxgTCbB47DgkMtF/IGigGix9Ukjxk+sWcOEzVufCkw/n mT7qbt/QbfhgWWLV8MmANocTulSYi1pGUHIhwC83ERAyYwH7NLBBdZP6hYnlDHwoEv5c Iha+E8RQWw1QApghCyENvJNbrmIXF+zcdmOyEcyH8xeyHv3cqjUCCv2eiEtMBHadOv/L FkZvyMT3D5YO4oVF2KjV2gHxRv/K003aZYqLYoN94BslmtV2xOCGdpmyNBzFqYzLO2of hNpk+5xNDMXWDOQZBHpRXi9CP9aH26X1S2bK89lagC4iSD5E9hW2E4bXB9UapO8EuRCF vFag== X-Gm-Message-State: ABy/qLbsOWgotle6On2EcgJVCRWtLe3qEyRSYpS3kTWT9xwUthpYOV12 OG03bG+icSfKa+6esjUiGFsxCg== X-Received: by 2002:a05:6a20:12ce:b0:135:4df7:f165 with SMTP id v14-20020a056a2012ce00b001354df7f165mr2429388pzg.21.1689660675802; Mon, 17 Jul 2023 23:11:15 -0700 (PDT) Received: from localhost.localdomain ([223.233.68.54]) by smtp.gmail.com with ESMTPSA id h21-20020a62b415000000b0067db7c32419sm778106pfn.15.2023.07.17.23.11.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Jul 2023 23:11:15 -0700 (PDT) From: Bhupesh Sharma To: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-usb@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+dt@linaro.org, krzysztof.kozlowski@linaro.org, quic_schowdhu@quicinc.com, gregkh@linuxfoundation.org, stephan@gerhold.net Subject: [PATCH v9 2/7] dt-bindings: soc: qcom: eud: Document vendor-specific 'secure mode' property Date: Tue, 18 Jul 2023 11:40:47 +0530 Message-Id: <20230718061052.1332993-3-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230718061052.1332993-1-bhupesh.sharma@linaro.org> References: <20230718061052.1332993-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_BLOCKED, 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: INBOX X-GMAIL-THRID: 1771737999014037531 X-GMAIL-MSGID: 1771737999014037531 On some SoCs (like the SM6115 / SM4250 SoC), the enable bit inside 'tcsr_check_reg' needs to be set first to 'enable' EUD mode. So introduce a vendor-specific dt-property 'qcom,secure-eud-reg' which specifies the base address of the TCSR reg space and the offset of the 'tcsr_check_reg'. Signed-off-by: Bhupesh Sharma Reviewed-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/soc/qcom/qcom,eud.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Documentation/devicetree/bindings/soc/qcom/qcom,eud.yaml b/Documentation/devicetree/bindings/soc/qcom/qcom,eud.yaml index f2c5ec7e6437b..ca38d219e57d5 100644 --- a/Documentation/devicetree/bindings/soc/qcom/qcom,eud.yaml +++ b/Documentation/devicetree/bindings/soc/qcom/qcom,eud.yaml @@ -45,6 +45,14 @@ properties: $ref: /schemas/graph.yaml#/properties/port description: This port is to be attached to the type C connector. + qcom,secure-eud-reg: + $ref: /schemas/types.yaml#/definitions/phandle-array + items: + - items: + - description: phandle to TCSR hardware block + - description: offset of the secure mode manager register + description: TCSR hardware block + required: - compatible - reg