From patchwork Fri Jun 24 18:00:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 584712 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 2251EC43334 for ; Fri, 24 Jun 2022 18:00:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231598AbiFXSAo (ORCPT ); Fri, 24 Jun 2022 14:00:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230346AbiFXSAn (ORCPT ); Fri, 24 Jun 2022 14:00:43 -0400 Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A4FD04B419 for ; Fri, 24 Jun 2022 11:00:41 -0700 (PDT) Received: by mail-ed1-x529.google.com with SMTP id c65so4532659edf.4 for ; Fri, 24 Jun 2022 11:00:41 -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:mime-version :content-transfer-encoding; bh=vntvT1EFiEzAEBGG+P45Ozydw6Gmi9zo/BJZoNn0nqM=; b=nmlzUYrxV1auNu9X3Exh/og9NchcUL3bMBLQXY9/L3/2N7WPmfC/kwyJEs8GaIKtQ2 n4UzIzcjKjm+5ywq4+WUEfAXegHQ58H2sGjZDAwH6T4lswkVsQoCLY+NV67IOwsfKcNO J72w9QptU7Q57vloXmZxRjNJtil/1R66du2Or3HPKa4Ucgy0HpGfA3hYtqKKIpYWfTLx XYgptjvTGIO+MUsvTGHgVFktuesaOxg5fO93CeRzSAoWYhPjUbJqgnA34jxs5Jyl3k6N PnxrcyWNmh1VQ4Ys1CyFWn36MhRh46LioIzL0id1808uK5731zn1IYv+a6OclrJd6I0M UYcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=vntvT1EFiEzAEBGG+P45Ozydw6Gmi9zo/BJZoNn0nqM=; b=w08nQUJO30Frtt1yyGib0hbsJ4ogqLNSQHIQc8VOdyOblZgV6T4t/qBUSOHUFLl6MY EMWU48wSF8yFufip15tGtLz+kTT213+otnbJMg/t2QIeSmuqzUG9J8dWcGgjuIVOE+90 I/pha7qI3Xg9H8VQFHU/uYum3gwTxBvRtl9A7wjVemC5fC4y0jaG6SsC6Uj0cgmuvvOk oXZ1fAdFfpI8OHo+AFaGLEsxYRHPfJhaqhQXvXR0XSNJ1hgELQH1oPgJs3J+Bh8Vz/OK nJhk1eUvL59CBACy5ePoc+xjlkqRXsBWWo9Nf6/DoQruBws74lMnnjWDQe8hRrQdk5FY tpag== X-Gm-Message-State: AJIora/L0kFi6GiqsX13ymi/uosRWL3/l3rl4enPSN7ER2+TJ0qA0Ozj ShB5Zx3vVBAnTjcaINPz477qnw== X-Google-Smtp-Source: AGRyM1tDDQY0OLBSTdH3fSFT8Df9ltKldqvwwl0mdMPOHV4h1Cajj/JEAyLzIqtbEBB29k/5sSa5QQ== X-Received: by 2002:a05:6402:2753:b0:431:9c8b:5635 with SMTP id z19-20020a056402275300b004319c8b5635mr409203edd.152.1656093640210; Fri, 24 Jun 2022 11:00:40 -0700 (PDT) Received: from localhost.localdomain (xdsl-188-155-176-92.adslplus.ch. [188.155.176.92]) by smtp.gmail.com with ESMTPSA id p22-20020a170906839600b00711d5bc20d5sm1420681ejx.221.2022.06.24.11.00.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Jun 2022 11:00:39 -0700 (PDT) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH v5 0/3] dt-bindings: arm: qcom: qcom,board-id and qcom,msm-id Date: Fri, 24 Jun 2022 20:00:33 +0200 Message-Id: <20220624180036.102510-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Hi, Changes since v4 ================ 1. Change the qcom,board-id oneOf (oneOf at higher level) so newer dtschema is happy. Changes since v3 ================ 1. Patch #1: Define all SoC IDs, based on Qualcomm socid driver (Konrad). Keep Dmitry Rb tag, even though it is quite a change. 2. New patch #2: use bindings in the socid driver. The patch fails on checkpatch: "Macros with complex values should be enclosed in parentheses" but that's expected considering the macro contents. Changes since v2 ================ 1. Adjust description of new fields after review (Dmitry). 2. Change name of msm8996 define (Dmitry). 3. Add Rb tags. Changes since v1 ================ 1. Make the qcom,board-id and qcom,msm-id properties deprecated and limited to certain SoCs (Rob). 2. Extend the qcom,board-id schema to match OnePlus variant - four elements - and drop DTS patches splitting four into two touples (Stephan). Description =========== The discussion [1] brought several arguments for keeping the qcom,board-id and qcom,msm-id properties. Keeping means we should document them, so the DT schema checks pass. I revived old patch [2] with several changes and improvements. The commit msg hopefully collects feedback from the discussion. Best regards, Krzysztof [1] https://lore.kernel.org/r/a3c932d1-a102-ce18-deea-18cbbd05ecab@linaro.org/ [2] https://lore.kernel.org/all/1425503602-24916-1-git-send-email-galak@codeaurora.org/ Krzysztof Kozlowski (3): dt-bindings: arm: qcom: document qcom,msm-id and qcom,board-id soc: qcom: socinfo: create soc_id table from bindings arm64: dts: qcom: msm8992-xiaomi-libra: split qcom,msm-id into tuples .../devicetree/bindings/arm/qcom.yaml | 120 ++++++++ .../boot/dts/qcom/msm8992-xiaomi-libra.dts | 2 +- drivers/soc/qcom/socinfo.c | 259 +++++++++--------- include/dt-bindings/arm/qcom,ids.h | 146 ++++++++++ 4 files changed, 400 insertions(+), 127 deletions(-) create mode 100644 include/dt-bindings/arm/qcom,ids.h