From patchwork Thu Jun 23 10:53:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 584364 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 33929C433EF for ; Thu, 23 Jun 2022 10:54:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231292AbiFWKyJ (ORCPT ); Thu, 23 Jun 2022 06:54:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52254 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231258AbiFWKyI (ORCPT ); Thu, 23 Jun 2022 06:54:08 -0400 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D699E4B844 for ; Thu, 23 Jun 2022 03:54:06 -0700 (PDT) Received: by mail-ej1-x62e.google.com with SMTP id ay16so20862245ejb.6 for ; Thu, 23 Jun 2022 03:54:06 -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=ITqWXPM0CMutsVQgWnD+dufUaUOFlV5N4sbMJ4eWGxc=; b=LBG1ZLEW6BFd+jvGvjrJU1oXS33K++g2frwy0dEaIVaujicywMYeScGmpjkyr/cd9L OkNUVjFZQtz6k4pMKqLIZpHrijNdToZnVo+EKLfVVxQJpg0+5Vt0wVA93X8zwNTTaYe2 157z6rXWbggVB4nEnHqJfDEmwEu8Q2xOx5p5I4qwx4T/Dgw2zcGFs2XffsppfZupqg7c edXqDVXcDmtj3l0qkHvocpFH0lBpzqDI4EsZTCQRgXUpudVRC6t/7kHG/B40lmponObN f7QLGBQQG3Yj6Ci/ZMFeRduqZH9FWx61VtKCbCEOsftqcc0oIgS2SpwUJ84l6pTCjxlq Ll6g== 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=ITqWXPM0CMutsVQgWnD+dufUaUOFlV5N4sbMJ4eWGxc=; b=Fvd3Xwb5yBRTh7PRnHrIFrlEHp29JgZ95C34e14itMPwimwwvPud3bZqWZ76c5/SPP 8a/PKWx0TGvj47i2xZTSwIO6aInSniSYFQuV9w1iI+rLrABkWR6ElUGM7kUPezfV51JY M77UawX26M8g8J+/WrYXkzNanXBIwuyLGVdcppB7PLMrL+Ul4u21sTXmc2L9Wgiz+sso z5i/OBzXIU9XBrMXcbJjmvQhwMMx19pEk6Br/0MoZrG8tId6DP+SCJC9ezAXCmVIYd3q MnnXu9DWumhx7rmvpWPRoH3Lky6Vpy7QvRNYzptUliEiNV/0R50d6YdHUGcnhI53OD2V w39Q== X-Gm-Message-State: AJIora/hXufw5EulGOHAlaL7kLdi7a6dbv/fLzK/9EKxDs/wHOHeGp2/ P5v0hv79wDMsTc0ff/RVmOOQRg== X-Google-Smtp-Source: AGRyM1vbv2UsG+PPRTCgO6q66zSNufB51hMleDw8etsnFIZ0GMqq+d+Gqvdhi9dVLDt9P86ejDK1cQ== X-Received: by 2002:a17:907:3f84:b0:724:2ec:b474 with SMTP id hr4-20020a1709073f8400b0072402ecb474mr3175563ejc.644.1655981645363; Thu, 23 Jun 2022 03:54:05 -0700 (PDT) Received: from localhost.localdomain (xdsl-188-155-176-92.adslplus.ch. [188.155.176.92]) by smtp.gmail.com with ESMTPSA id k27-20020a17090632db00b00721d8e5bf0bsm7854096ejk.6.2022.06.23.03.54.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jun 2022 03:54:04 -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: Konrad Dybcio , Amit Pundir , Trilok Soni , Rob Clark , Stephan Gerhold , Stephen Boyd , Dmitry Baryshkov , Krzysztof Kozlowski Subject: [PATCH v4 0/3] dt-bindings: arm: qcom: qcom,board-id and qcom,msm-id Date: Thu, 23 Jun 2022 12:53:58 +0200 Message-Id: <20220623105401.168122-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Hi, 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 | 121 ++++++++ .../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, 401 insertions(+), 127 deletions(-) create mode 100644 include/dt-bindings/arm/qcom,ids.h