From patchwork Tue Aug 30 06:57:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 601145 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 7F6BEECAAA1 for ; Tue, 30 Aug 2022 06:57:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230084AbiH3G5w (ORCPT ); Tue, 30 Aug 2022 02:57:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47802 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229817AbiH3G5u (ORCPT ); Tue, 30 Aug 2022 02:57:50 -0400 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA377BFE99 for ; Mon, 29 Aug 2022 23:57:48 -0700 (PDT) Received: by mail-lf1-x132.google.com with SMTP id bq23so14240750lfb.7 for ; Mon, 29 Aug 2022 23:57:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc; bh=gCwpNLDMpXQSS7AiyBMzYy6/b6a5lM4AHUWEyRxEheE=; b=RwL+hWZspNoAeIKIIerlBy1vzvjnmuMqwt4V941FymEbufeHzTvJsDNrL8ufJosAzO aSVYjZx46D2WWv90IkfOtpI66OMcpn0YHcYR1SV4Xr/2ZEIJ9SxXJoRjGC8gHYFTnTvp djMIT1ZjB+hp8djE/DoNznsnZ+cnes3cdyOtZfLso35ekQUOdyeMoi+l3PFbfSPzQOzO aXMx6i4yRwL7Ou3gspuW9dT7EnLhmxOjBfgmo1WJnrTXqqDpLepXLI978+mC7ciZhzXA MybZ04pLKbt1ukYLXIOW9Mv8n+1IBTa3npReU5oEGQ/bD6Ioy7lpfFeYvSrF2M1N7uz/ woWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc; bh=gCwpNLDMpXQSS7AiyBMzYy6/b6a5lM4AHUWEyRxEheE=; b=XYlDPvJ7biEsCrZE0irLOLpvjpXgmoYa6BhsOw4QDzY74BHXzmL5HflWuFxE0l5KhJ YZ0XcBEbaycdICTUgY5l6dVKbhkJkF6N+ds0M2Q4ekDyFiK+HA2CTejlC2Ne8SWtsUbS CfE1wc780gNwLV1mZN8eI0tuvpILEjb0jDunV7fBicLW09asLAJ2k1pdXdd6JZUnfhfe tsF20g5IWWrLovDy6OCel/+nuLdEwWDBSeil+jNvW23W2Z5fap/KmBPjlXddQIHpNR0Z 2WFio5sqMj+h2tsdHJs3lli8/xXJK7QH3g3FGwa3/VQSl2qqJharIC+6P3BV7L4kWusE JJaA== X-Gm-Message-State: ACgBeo2zogYiwt1JTSZ255v+Wm1Lr+bzTOaqm8IIag2494R4uBSeuA/b QKKpiVR/YEc38UHthOPmT2B11Q== X-Google-Smtp-Source: AA6agR69nf0m+V8bp0uiBDVV8RuGuHrMT3v6x68EhNLM5xkk0p6YYDN5UHkGu4q0oHLjoHaT0bzzog== X-Received: by 2002:a19:6b03:0:b0:492:c560:b733 with SMTP id d3-20020a196b03000000b00492c560b733mr7483504lfa.320.1661842667095; Mon, 29 Aug 2022 23:57:47 -0700 (PDT) Received: from krzk-bin.. (balticom-73-99-134.balticom.lv. [109.73.99.134]) by smtp.gmail.com with ESMTPSA id c1-20020a056512074100b00492cdba2903sm1515420lfs.97.2022.08.29.23.57.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Aug 2022 23:57:46 -0700 (PDT) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH v7 0/3] dt-bindings: arm: qcom: qcom,board-id and qcom,msm-id Date: Tue, 30 Aug 2022 09:57:41 +0300 Message-Id: <20220830065744.161163-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 v6 ================ 1. Rebase (new IDs). 2. qcom_board_id2 -> qcom_board_id_named (Bjorn). 3. Add Rb tags. Changes since v5 ================ 1. Dual-license qcom,ids.h (Rob). 2. Minor corrections in comments. 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 | 265 +++++++++--------- include/dt-bindings/arm/qcom,ids.h | 155 ++++++++++ 4 files changed, 412 insertions(+), 130 deletions(-) create mode 100644 include/dt-bindings/arm/qcom,ids.h