From patchwork Tue Jan 31 15:18:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Marangi X-Patchwork-Id: 50925 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2811305wrn; Tue, 31 Jan 2023 07:22:40 -0800 (PST) X-Google-Smtp-Source: AK7set8rngZE1jVkaE3mkHcQWeDn/8OCf8nq7rCtG2Mix0OcvLzryarUx6cucsGENxw+Xjc84b8Q X-Received: by 2002:a17:906:30c4:b0:883:b1b4:e798 with SMTP id b4-20020a17090630c400b00883b1b4e798mr11483354ejb.10.1675178560134; Tue, 31 Jan 2023 07:22:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675178560; cv=none; d=google.com; s=arc-20160816; b=bPrvCUfMasz069jAT3vl0auvfY7P7nJOZVqC9BT4WRlHb5m31iPpZK7BdRim0TsUQt QEKyIZlmoBbDu6+BIuPlu9kN+Cfv6MXI7QGq+QPso/w2XU3LIKKJU2AXl4q5OztYTDYW C0/nH38PM4ODw81dNuoUeEfLdh9NqS0zIfRfK4IyJhwrjk3pDW5Wh357oMefdaha8qqQ 6wDhJd7K+5FjTR+p2xA2CVB3oEGgK/ra3CVnPN5UCvuOYjo5K48B/ryaQBeXsaubrSY/ Ri5dyUR6POZhPs7pjnmncSLOCzOiRIyE2/y5P+ArthJgPZD3QotGfAgU5ukBCNAcGyQp MNAg== 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=oje2X12UqN3hFAptDZ/80EkF8Fd5akHgh1yM49ZX7sI=; b=EDE+hrWlZVRj2lq7CALhSFV0iMUCfD6sVC2GCD0/kYfnzggK0TGs5lHX1EANjsrj62 63WsteG5wldwezTzZUGI7ZTautD5pOfBPSro6oE+3DQKGayKoCFXV2dAWI2R4RdRojR6 IPAkQmzrjr9GujkbpleD1v/051ZZpH27sVgx3d1U+xJr/VGGMXCY8gQitHjBNvPl1Sb1 md3uahFXh6DOIWJwQVzZVpzpnU768jwc/ul6D3dhAhU4cXwjceZONtyfIYWDDJJhZDHP JYraPYz07+UbLoeJ2a6jsA+h/jwgkVGPN/IHX4YgUEIUWYCQ2OS4qov0MEeSk9Wz1mkt pNsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=qDYj2LrT; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id wl1-20020a170907310100b00855da26bccasi17574842ejb.974.2023.01.31.07.22.15; Tue, 31 Jan 2023 07:22:40 -0800 (PST) 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=@gmail.com header.s=20210112 header.b=qDYj2LrT; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233241AbjAaPVN (ORCPT + 99 others); Tue, 31 Jan 2023 10:21:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59646 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232828AbjAaPUn (ORCPT ); Tue, 31 Jan 2023 10:20:43 -0500 Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 525AF589A3; Tue, 31 Jan 2023 07:18:35 -0800 (PST) Received: by mail-wm1-x329.google.com with SMTP id q8so10575032wmo.5; Tue, 31 Jan 2023 07:18:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; 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=oje2X12UqN3hFAptDZ/80EkF8Fd5akHgh1yM49ZX7sI=; b=qDYj2LrT6Ak6dKZ1tobe/lJRGSirc3zbzWWt7vWbDrgrRqUMwzUJgHn1y+o7ksZwH6 8IubtJkhGTi9+cotasj3KIpQNuNk5R9ODlngRYnuM1APSr462lhbRd23jGJSxcaI04Rf 77qHQ0wxkmrCxvERRpS5Aqvf4pq2MrGFwasiTYGsqyFNoEUKiwkgGko7GtL9qxWq/Tww rpTd1RMqwwGc5Xo7d+m8P1tPpr4hNHjlBcou+uu6uwwp2418YnwIV0/BkSw6EUymI19M cvCqRlDhwfE3YGR18WLtAczZAziKnEjRWmRDcrSAqhlMEhddew40yTM2wSpf1Q1X5MCq D7UA== 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 :subject:date:message-id:reply-to; bh=oje2X12UqN3hFAptDZ/80EkF8Fd5akHgh1yM49ZX7sI=; b=SATrndbHHuEC+SdnWbGC5J0aPk/8S9AbwkR6qQTOZHDNQXOOaaa7GKzWsdjUXxHbPL T0TvQ6kQUmuqEcTXPWMCIG6g83qslLHQdh23muU6//GCAhnk9RdDr7q0dr+SsvVC4NuY sDGp6yCidAASTw5HAT1jLmoTGk+Pu4F6dU9lwwPxJhTkPkNyXoQmszknWdKTO0Uhgd96 pPI4MyLIIE8IVyl1IOU4NqlgczA6TqoevSeJfYgRm37q/EU74/mAidzbiH/LsIw67DFy bZDVAEgHbqS/SoKQb1zZ5XeQv5ZzbADczUgBmpUkRsZFfngtixK1d8Pbt8cWQ9yUWMeY G9HQ== X-Gm-Message-State: AFqh2krLSrOFSuf0258G8JUsw6Z1+ThavZg4BAjoo/5CkfJ27Sm96jRy KTIxuvfP9wwT2SSKz1zwukk= X-Received: by 2002:a05:600c:22c6:b0:3da:fc30:bfc5 with SMTP id 6-20020a05600c22c600b003dafc30bfc5mr55192039wmg.13.1675178313585; Tue, 31 Jan 2023 07:18:33 -0800 (PST) Received: from localhost.localdomain (93-34-88-241.ip49.fastwebnet.it. [93.34.88.241]) by smtp.googlemail.com with ESMTPSA id x9-20020a05600c21c900b003dc434b39c7sm2854861wmj.0.2023.01.31.07.18.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Jan 2023 07:18:33 -0800 (PST) From: Christian Marangi To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Ilia Lin , "Rafael J. Wysocki" , Viresh Kumar , Rob Herring , Krzysztof Kozlowski , Nishanth Menon , Stephen Boyd , Yassine Oudjana , linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Christian Marangi , Krzysztof Kozlowski Subject: [PATCH v5 3/3] dt-bindings: opp: opp-v2-kryo-cpu: enlarge opp-supported-hw maximum Date: Tue, 31 Jan 2023 16:18:19 +0100 Message-Id: <20230131151819.16612-3-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230131151819.16612-1-ansuelsmth@gmail.com> References: <20230131151819.16612-1-ansuelsmth@gmail.com> 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,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham 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?1756552033913098506?= X-GMAIL-MSGID: =?utf-8?q?1756552033913098506?= Enlarge opp-supported-hw maximum value. In recent SoC we started matching more bit and we currently match mask of 112. The old maximum of 7 was good for old SoC that didn't had complex id, but now this is limiting and we need to enlarge it to support more variants. Document all the various mask that can be used and limit them to only reasonable values instead of using a generic maximum limit. Signed-off-by: Christian Marangi Reviewed-by: Krzysztof Kozlowski --- Changes v5: - No change Changes v4: - Add review tag from Krzysztof Changes v3: - Fix dt_binding_check for missing 0x5 and 0x6 value Changes v2: - Document additional bit format .../devicetree/bindings/opp/opp-v2-kryo-cpu.yaml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/opp/opp-v2-kryo-cpu.yaml b/Documentation/devicetree/bindings/opp/opp-v2-kryo-cpu.yaml index b4947b326773..bbbad31ae4ca 100644 --- a/Documentation/devicetree/bindings/opp/opp-v2-kryo-cpu.yaml +++ b/Documentation/devicetree/bindings/opp/opp-v2-kryo-cpu.yaml @@ -50,12 +50,22 @@ patternProperties: opp-supported-hw: description: | A single 32 bit bitmap value, representing compatible HW. - Bitmap: + Bitmap for MSM8996 format: 0: MSM8996, speedbin 0 1: MSM8996, speedbin 1 2: MSM8996, speedbin 2 - 3-31: unused - maximum: 0x7 + 3: MSM8996, speedbin 3 + 4-31: unused + + Bitmap for MSM8996SG format (speedbin shifted of 4 left): + 0-3: unused + 4: MSM8996SG, speedbin 0 + 5: MSM8996SG, speedbin 1 + 6: MSM8996SG, speedbin 2 + 7-31: unused + enum: [0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, + 0x9, 0xd, 0xe, 0xf, + 0x10, 0x20, 0x30, 0x70] clock-latency-ns: true