From mboxrd@z Thu Jan 1 00:00:00 1970 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 326F3C433EF for ; Fri, 24 Jun 2022 18:00:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231259AbiFXSAo (ORCPT ); Fri, 24 Jun 2022 14:00:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229830AbiFXSAm (ORCPT ); Fri, 24 Jun 2022 14:00:42 -0400 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9BFFE49B69 for ; Fri, 24 Jun 2022 11:00:41 -0700 (PDT) Received: by mail-ed1-x534.google.com with SMTP id fd6so4529407edb.5 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=HlSGtY9vpl5hOgNVxF9Ryqjy68Gz7QI02y+A4XP+o080Lt1dqCScWrgpQDwt4D9/MP T0Vui7wC6SYI89d/7g8tcucYTWb3TLST4cBjeifuXQzlEsbWSDr5Py6/cVQrxeQbrlwS xVgYZTNPWcgzEL5a/xDFfPUUpXF+yypwH9IF0kyvQxR1Zm0gQ0wvxd7B/i5Dg8A+rWym CN8Zc5uP0L1R3gF1/5e1JLQLeGvujmgt1zZxGIretPzkQn1b74XU9P2De9yvHw1/TGJE r19llLSgLA1H1WauANt9HwpXKSmAWAU3qJ7pVqnB5BFu74G1PbdG+8A22HWh3oTvRdW8 n1mg== X-Gm-Message-State: AJIora+QLlpkHcn5ne2rtukBZjX++rIqCXsNWdFJygrZkihAxopBXqLB nQninP22o7vIsUD0AtunmgV+Mg== 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 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: devicetree@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 -- 2.34.1