From patchwork Wed Aug 25 22:25:53 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 502317 Delivered-To: patch@linaro.org Received: by 2002:a02:6f15:0:0:0:0:0 with SMTP id x21csp1022483jab; Wed, 25 Aug 2021 15:24:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxJ9l1lwXysyxn4NS1eel1Fn+37OrD2wsm0vui0UA05adG4LZNB+DWGRBluUF8iSEB+triZ X-Received: by 2002:a92:da46:: with SMTP id p6mr397979ilq.161.1629930289028; Wed, 25 Aug 2021 15:24:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629930289; cv=none; d=google.com; s=arc-20160816; b=WxzOVkY2YcFgkcz7rLxaOIU2vExMSaDE5VcvSqv4ymAwjDF3uTuD5tk6ME5VO0c6Qk 2FP4yX+GeTOKZMwTkOfSGU+RjRIPDxRkQV61hoIKIfng1DvGyo5r/sosJp37hef3rvDg D6YeHZ+cox3V4BfkBVNPIPaWtwFFF1/2zBQqJFmVrBAshkSUJ6iKD0VfKGZvZ9vWVNlm riWhofJocAqSs3m3YVFPuC+xTWUjfXla8T67c72zKdOcnCcBmMkxpDVTzUXd239tc4AO 6CAUmblg4UxLvtyd6UMMCw0+8qXmtB7CqCmXMb4iVjcrj65UAHhhUfMgAz8TjgJQilaO zJTw== 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=vXLLp5GIbOEgi1J75PRebsAuxo8nGrsWkSS0/ujVn1w=; b=VWhmtVkJ3ijOJD6KTEOgR6jNgWzYyuHIUKH6oeQA50+npXoq5rDlFbSwaCEv1lDmxd e5DpKy++ldFwCo0mXorzBagUvYtFnyvvOiVuOZ/Gu6y5UCuKLiG/w0I3GbLboDZ2WG5g SQcIiGkq6kpuQXGkntmMX3gKdGBTMTG+a6T9OX+4Eao/1hHeBDdOEduMk2ikHSJjxqAb TobgCdCEAx/ZTzNzCf0RPkzJDuKyFXsgDDIk6nY4KpgRBGcS0eVrTYYib5EyBgdCV0Oi CFaCS+jSWH3pg8EZ2oLiAPBXl/k5U/iRDc5AL9a6JjW/GoQ+QQwjGx5iw1qYzFaU/QaM NehA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lmAfSC2C; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q14si1019876ilm.44.2021.08.25.15.24.48; Wed, 25 Aug 2021 15:24:49 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lmAfSC2C; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 S232591AbhHYWZd (ORCPT + 7 others); Wed, 25 Aug 2021 18:25:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232030AbhHYWZc (ORCPT ); Wed, 25 Aug 2021 18:25:32 -0400 Received: from mail-oi1-x22b.google.com (mail-oi1-x22b.google.com [IPv6:2607:f8b0:4864:20::22b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F3C1C0613CF for ; Wed, 25 Aug 2021 15:24:46 -0700 (PDT) Received: by mail-oi1-x22b.google.com with SMTP id v2so1544079oie.6 for ; Wed, 25 Aug 2021 15:24:46 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=vXLLp5GIbOEgi1J75PRebsAuxo8nGrsWkSS0/ujVn1w=; b=lmAfSC2C4y4sGEBFjrDXuzJzhQOQyubDGp7PohABf7xAjOKBnEoY1LXs7EQtQ936LU K4gVPvR7wk3xiaRIbCF9TNFaSH7LOzwH37FtYfcNAEp5MbCcGtyJUQSoVXedi+y/xZQw EhIxcTEPMdcR6wYGjR/dhpUTZ/pC3+nkgIxwYRQNoOf45s17kbktLkIq0w24s0yYsJPv ZvusE/wXq7V0Y/ZGMOEUg94DN8e3Z+veiqQTJ2BHfGwHasOmkBiP0YZoOE9V7hCZhW5I DdMy8zGVug/mo3IfMj+L6vQi5eB9pGKvB+1ogeSDYXLSlytC03HEcr+UPZ4OvPOgNrMt DFHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=vXLLp5GIbOEgi1J75PRebsAuxo8nGrsWkSS0/ujVn1w=; b=Jz8CTgII+tUtJtcptT8aARJ15JFlo+ziHeDL+JbdEL9MoyJNa7AuXlxZQar5IG3Ik0 in8Kfh5rCqJc3rmVt4Th4+yKzAmc0PRMBjv4HyQnncsPg/iDnRYed0wtgA/EBxz7NU0Y dQhZ5BRbrmvg4CdyNDmzep5gG2ks/HG8PA8TZkVkSoHMmT9fFxyf1S27SEoofBevpY0S xpLIr+U75A8jBosPAINiQlEZNneqvnF84JRmBYgqGPpSIt7K5PNTEhWJhkVs6C226oSp JGRaTpSNW9wipcjV3m9LsDN1jlrjUiFEL58q0P0Ug6k3p4V8AkLvh/JVGIT485dQuU7z JXzA== X-Gm-Message-State: AOAM5308X6bdv49OFwMN/ykfNxPD2O7TwZQ/pb+ngHhtUXhi9ExwQpC4 qNELDHdZh4aoaqbg4MEfY8wkFA== X-Received: by 2002:a05:6808:1886:: with SMTP id bi6mr218519oib.138.1629930285445; Wed, 25 Aug 2021 15:24:45 -0700 (PDT) Received: from localhost.localdomain (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id u19sm263721oiv.28.2021.08.25.15.24.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Aug 2021 15:24:44 -0700 (PDT) From: Bjorn Andersson To: Rob Clark , Sean Paul , David Airlie , Daniel Vetter , Rob Herring , Stephen Boyd , Abhinav Kumar Cc: Kuogee Hsieh , Tanmay Shah , Chandan Uddaraju , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Rob Herring Subject: [PATCH v2 1/5] dt-bindings: msm/dp: Change reg definition Date: Wed, 25 Aug 2021 15:25:53 -0700 Message-Id: <20210825222557.1499104-2-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210825222557.1499104-1-bjorn.andersson@linaro.org> References: <20210825222557.1499104-1-bjorn.andersson@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org reg was defined as one region covering the entire DP block, but the memory map is actually split in 4 regions and obviously the size of these regions differs between platforms. Switch the reg to require that all four regions are specified instead. It is expected that the implementation will handle existing DTBs, even though the schema defines the new layout. Reviewed-by: Stephen Boyd Reviewed-by: Rob Herring Signed-off-by: Bjorn Andersson --- Changes since v1: - Include the p1 region (although unused by the implementation for now) .../bindings/display/msm/dp-controller.yaml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) -- 2.29.2 diff --git a/Documentation/devicetree/bindings/display/msm/dp-controller.yaml b/Documentation/devicetree/bindings/display/msm/dp-controller.yaml index 64d8d9e5e47a..f915dc080cbc 100644 --- a/Documentation/devicetree/bindings/display/msm/dp-controller.yaml +++ b/Documentation/devicetree/bindings/display/msm/dp-controller.yaml @@ -19,7 +19,12 @@ properties: - qcom,sc7180-dp reg: - maxItems: 1 + items: + - description: ahb register block + - description: aux register block + - description: link register block + - description: p0 register block + - description: p1 register block interrupts: maxItems: 1 @@ -100,7 +105,11 @@ examples: displayport-controller@ae90000 { compatible = "qcom,sc7180-dp"; - reg = <0xae90000 0x1400>; + reg = <0xae90000 0x200>, + <0xae90200 0x200>, + <0xae90400 0xc00>, + <0xae91000 0x400>, + <0xae91400 0x400>; interrupt-parent = <&mdss>; interrupts = <12>; clocks = <&dispcc DISP_CC_MDSS_AHB_CLK>,