Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1267880imw; Tue, 5 Jul 2022 06:43:05 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tc2+HzL9DOvERUUbqXLGBM0onRoMeP27URf7KfJUynkS/yQq5RldWm5Vx4b+OCjNkr5Eye X-Received: by 2002:a17:907:9005:b0:715:76ce:4476 with SMTP id ay5-20020a170907900500b0071576ce4476mr33420181ejc.560.1657028585415; Tue, 05 Jul 2022 06:43:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657028585; cv=none; d=google.com; s=arc-20160816; b=jvgJd/icn2RnLmAORL5swnHozDTjQ1E6MTp5uhQ37CWTQSI6hMQWiVcpQQu5UwXYKE 12oqPfU9tsUFf+A1N3pbKjr2yE3Z2GEakFxYKoSUX/R2bWyq30H1sZY87004xoJtpfjW CHCbZ87duoXtuaPaHO5VFG18h+estn1OlXeCVnnH5j4vZTiSuf1pB9qRS0bK9NMpIMSe +WJ91VxtIF2DzRXY2DOQyhwjdrfrhtl9KOYsMYfj8F56A6wEMwvGkyZtD6qu08haVQzb GCsqImMVnWcTToIKbq1gjasnBtUh8ifTTbr8nc8+VTpf9gCkxPJvDQHGXqx69tLlRjVY Uq5w== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=1Zu4/ayyyYQ5Ucz1AuuZ8IojHLuhbZJlEcfiqr7+SQ0=; b=HyGu6D2hW024iBsKxdwHqHsA/wrcVh6wTwzuTzuH1Ia/pDXsm71cXJ/d31fs1TmpLf QV8WFQ1qKabhqsjZq+/dxmOfAwuOxpLJbXNl1pUBbV/FDMpDRHPAMsZ61/rljmZPH+/h Yt7H6qWS5ma7fAlfRc2Da4WFWlLQJxQihODxhY10LjoCRuXlGN6edyHZ9JGBsqOtx5xP rXWNRWEy+fsqIQGrAlAC6mJ1rJCyvzyoKCCxPKsgiMGbAXKolwsBwzyZsFBTsTFeMjxj hjCV3aT5dFhO7/H5Zwi6chXnC9qTCmHgn7MuCoAYtS9s5USoA3hla4VPyuOkWjXD/m3A qw0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wNoxfu+E; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ne6-20020a1709077b8600b0072ae8145243si2471635ejc.705.2022.07.05.06.42.38; Tue, 05 Jul 2022 06:43:05 -0700 (PDT) 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=@linaro.org header.s=google header.b=wNoxfu+E; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232838AbiGENla (ORCPT + 99 others); Tue, 5 Jul 2022 09:41:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229710AbiGENlT (ORCPT ); Tue, 5 Jul 2022 09:41:19 -0400 Received: from mail-lj1-x233.google.com (mail-lj1-x233.google.com [IPv6:2a00:1450:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B8911EADC for ; Tue, 5 Jul 2022 06:03:06 -0700 (PDT) Received: by mail-lj1-x233.google.com with SMTP id n15so14400459ljg.8 for ; Tue, 05 Jul 2022 06:03: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=1Zu4/ayyyYQ5Ucz1AuuZ8IojHLuhbZJlEcfiqr7+SQ0=; b=wNoxfu+ExvvLwYJTJNIghGlhtZlrwvY06hiC0aa7kNJ7cR6yKeM+1WIef95kOnvQuK W8FajZD7wjcykRaCOcWbfOEI365sV5MkaqvH3b+utnn84GxqnjNXXRUy41NvXkW0YlPI XoOaWaL2hD2Li5lPIrJHbfODP8eUr9AfHX9M4O32ZBYSzweiGHHR2cdWlyksuMW007Dx u8vSwhwrBnuA1Hop33BOmWC2aIjqr+RVwOOT09oREw1uHNq/Vq3373Vb5SrmvDbLLBxz 4wGk4USnQZDvLlWOfFgMC6rMFLfk0Vk5rgxWoqWiJkMW4fpGwHhyoqH/ltQEJeEHN0WV pjJg== 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=1Zu4/ayyyYQ5Ucz1AuuZ8IojHLuhbZJlEcfiqr7+SQ0=; b=BiiIdy6X87DwrePfarQeJwSW4kvjgdrzHWfa03GDWrRmHY/CnGuu95X4IlIFkKf3BW 0BBX73DHLlVBQzj1EeaJUuDD5h17WVJI5VP70eJSTXkERolf3G+DE5BFW90d0yZphXkb 9xSM4pNx1EApftvRXqD27pX3n/9v4CCruomcX/a0/QPqcz0EUUWp444iZkzY1VstqGh/ ceu58j+zfvFzyW5Kh06YeEGHzgLACP8YWpbRmLI0geZe9K+pWCnPMEU6VYqjqheL25Sh mqdgPkLwbfsW4KCSvnNFFTRPv/hdb7HqqSvUpSIw+SVAG/XxHkkJ7lCqn0JfXeI7xM9N 8AgA== X-Gm-Message-State: AJIora/KpnUe9wU7094sB1DKPkNZM5vzdmtXl1eiaP2Q9MUnOxENXoDD MfqEt7Vn0M+4nxJ3wAPUAVSK2A== X-Received: by 2002:a2e:8813:0:b0:25a:94e9:b2db with SMTP id x19-20020a2e8813000000b0025a94e9b2dbmr20018198ljh.9.1657026184897; Tue, 05 Jul 2022 06:03:04 -0700 (PDT) Received: from krzk-bin.home ([84.20.121.239]) by smtp.gmail.com with ESMTPSA id s14-20020a19770e000000b0047f68d77008sm5688086lfc.178.2022.07.05.06.03.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Jul 2022 06:03: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: Krzysztof Kozlowski Subject: [PATCH v6 0/3] dt-bindings: arm: qcom: qcom,board-id and qcom,msm-id Date: Tue, 5 Jul 2022 15:02:57 +0200 Message-Id: <20220705130300.100882-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Hi, 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 | 259 +++++++++--------- include/dt-bindings/arm/qcom,ids.h | 152 ++++++++++ 4 files changed, 406 insertions(+), 127 deletions(-) create mode 100644 include/dt-bindings/arm/qcom,ids.h -- 2.34.1