Received: by 2002:ab2:7041:0:b0:1f4:bcc8:f211 with SMTP id x1csp161112lql; Fri, 12 Apr 2024 06:53:40 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXL5/5SodtfXsU39SO+O9N4URGakfF+oXJPQ2ZQr2APFkcOUubod/Sb2PmmA0jyIQhFNJgojC5cl3dc1MT05MdSyaJu15BW/YzF+Ik73Q== X-Google-Smtp-Source: AGHT+IEmlG4mqWWki+tLYcEgFhBs5Obz48m5gZWBr+9pxhknYisYHaHJohCDiTebtl8FSMUqTY6g X-Received: by 2002:ad4:51d1:0:b0:699:3da8:f89d with SMTP id p17-20020ad451d1000000b006993da8f89dmr3137000qvq.0.1712930020069; Fri, 12 Apr 2024 06:53:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712930020; cv=pass; d=google.com; s=arc-20160816; b=d8CCxoJskvlJEmCHp7WQtlzcBdY56Q3g3rixTSLATLfLWJxAuadsQgv666FQIFHEEs UGRvKE20r7/2zIMNicAb5l1sj072YX1EpF7OOFhrOLGQvhLbLy20wqUW12P1X75v9IHE a7EMNaVdU9iy6pwa/4S4MbvAV4AewmDyWHRnh8kFvFu3hy0orxp+jIv1mOB/X0KfzChc 0WN4irF1cVMwZMcNWTXj9GhTd1dxqu+65TMpMArUy7GEtrUDMni847e/kzcpbadrEOTu Pq55EEvC4zeq106wR16bcdgZcwnXAs8GHmcJckqfeJnjlyxt/vrcMV7R58ivfRPN6rZl mIBA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:message-id:content-transfer-encoding:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:subject:date :from:dkim-signature; bh=CnwqkibrxM7stLHpO8eWZ/pH05GDjY5J+7dkB5B9riY=; fh=GT16CLgjzwY0CzxKQyUQhh15QbvX9AMx0UIPMwcryno=; b=ewrCBSPNFF1OVKclGli8mx9isnN+EKdoQvpJfaCGXBvO1vpArr5bt0/ZfhPLgwAYwK jrNmCKH2ad7D1y1UuovHnb0j1L29XjRQcshJobjcSOoVGH50g5BcIkeqREvuPsxMK1WG YSyDRD6/IQ7kLyKSsiXVjd0CjV9KO35qTYPkiYktIKxfJmnLLBRQHRZ4x69nsTRkmM+U rUVYqUlqjIVtpkyZeQ4Ezo0e95pSSpELse2PHFG/NKRUpmqs85mChy6JXuBvlhYgUfkC oKjs5jroBiu4vA/NQS1KFlKc1izDCemTBdevNCpPkJLerjBGPQb12lhmfrWcS/WBW8F6 eDLQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=K3UGL19g; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-142770-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-142770-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id y6-20020ad45306000000b0069b1f0bcf69si3558752qvr.450.2024.04.12.06.53.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 06:53:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-142770-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=K3UGL19g; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-142770-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-142770-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id B81D31C20BCC for ; Fri, 12 Apr 2024 13:53:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D1BB985954; Fri, 12 Apr 2024 13:53:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="K3UGL19g" Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com [209.85.221.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A949385287 for ; Fri, 12 Apr 2024 13:53:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712930011; cv=none; b=cjOWm+EU2tID1/BDIu4n+SuG59kLf4KgI9g/l8fNguDDaCWoHz1RB0MftwAhhXaSuWXdAduhDVkK5LuZ6eIDRzjYLV5VooLkInT+h26xDWAJkUo5Mk75ucslZnndxfZJTipYek6+6Xg/+65RqbiOUw5Uq+cMuQkehEb7/nu9XSo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712930011; c=relaxed/simple; bh=iGOYThuLmTpzb3Utxn5kuIV3NqKWOFg7MoLvVpWZBbw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=tdyTi4E+xQ49nSZIARwhPCTEQtxXeft0xPa2qjePkGL2DgjeukeH71HoVWy0JNNU2gI/FGbACS2KvB0vpTxw2Nu8EflbNzYZswM9moCRTZao8TMOfefMoWi+XMWP/O3csYINfYkt1PFT+WQ7bGAhtXKm9SpTN7F9XJdfJdCdk2M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=K3UGL19g; arc=none smtp.client-ip=209.85.221.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wr1-f48.google.com with SMTP id ffacd0b85a97d-346f4266e59so688674f8f.3 for ; Fri, 12 Apr 2024 06:53:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712930007; x=1713534807; darn=vger.kernel.org; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:from:to:cc:subject:date:message-id:reply-to; bh=CnwqkibrxM7stLHpO8eWZ/pH05GDjY5J+7dkB5B9riY=; b=K3UGL19gFZy8qbcs5tEg++HkdG6MqsYsWIsAfZ+wfJ1TIuhe1fzBRI3aZnU9mUu8PY VAK8RP2nEgMUs5sS/Xx1g3gfyRgnzjnwQhmk0GrbPB0M2H56HrKTDzyFQUOUVURWBGx3 zNDhCstqpODx4q1LHf8Rwjc3X77A9EQHn4JOlKoORQ8KWuOXBT3ClKm6KyBqNlj+tXO2 gCa3fEYWFfYbR0xYAo4RIVirfnwQcElPELGnrw+rTJUXBSN2vuEUHqHAd201ypVoNgQ7 x7r3+m1sX2igwdWyZ1mRfgFoFYd4Y2Qj7JGkBIVJ7j0XRlvTqLPWBwYhMwAGRCK4/ldd MzuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712930007; x=1713534807; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=CnwqkibrxM7stLHpO8eWZ/pH05GDjY5J+7dkB5B9riY=; b=G6SYA96zFct/1m7Eur58WuhtxAVFWq/rDlIc5X4ZprHNlB4b01996Hfo4iS6uX36uB JuXj8AdG3JPz+0PKLpERRjEXKYzHUCFxF7G2MEn8ymh6d6HAAHBGRNscb37l679TnmNa ht3ySu+SdPXVdv6SzTGAgOI6a5ET7RjNWOY+iAgP0KfOCm5L5T4+4y8D8nLlY8Sy6wGu 80YbbINjc4h0+x1vCTIgIx6K6l6mbNfZhKOuy3imJWTSJzf2uOLNHP2g0HTkOsPfG2F5 fE0L4agzNr8PTVuege77aFUWLll4Iljzz8RwB+NaExWCeTNDtn5/7ehADUBoU1jfLSPC C3NA== X-Forwarded-Encrypted: i=1; AJvYcCVW+I3duOUKaKXjZg2BXwD6P66YnWkk27rAiA4gh9dyRuroZ+QA2hH0G3ug2LxmgAgBuhYLkXrj6ilKs5+zAsDc+bTM85C7Me7psT2V X-Gm-Message-State: AOJu0YxcWnoNmLW87300Wjrow5OfUzvG6KAsvd6q8y61jsA/santh1ZX cOBG208OpvNZkQuupIxmZ6xWEEd3KAh88N/GLe3lhYfyCy4Uj4oHqvgt0Yka7Vw= X-Received: by 2002:a5d:5482:0:b0:347:2077:53f2 with SMTP id h2-20020a5d5482000000b00347207753f2mr775710wrv.2.1712930007134; Fri, 12 Apr 2024 06:53:27 -0700 (PDT) Received: from [127.0.1.1] ([176.61.106.68]) by smtp.gmail.com with ESMTPSA id h18-20020a5d4312000000b003455e5d2569sm4423521wrq.0.2024.04.12.06.53.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 06:53:26 -0700 (PDT) From: Bryan O'Donoghue Date: Fri, 12 Apr 2024 14:53:25 +0100 Subject: [PATCH] dt-bindings: i2c: qcom-cci: Document sc8280xp compatible Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240412-linux-next-24-04-11-sc8280xp-cci-compat-string-fix-v1-1-7dbafff36932@linaro.org> X-B4-Tracking: v=1; b=H4sIANQ8GWYC/x2NwQrCMBAFf6Xs2QfJmkP0V8RDWbd1QdOQRAmU/ rvB48xhZqeqxbTSddqp6NeqbWmAP00kzzmtCnsMJnYcXPCMl6VPR9LewAEuwHtUiRxdzxAxyPb Oc0NtxdKKxTqUeXZ6UYnnhUY4Fx36P73dj+MHFiMxS4QAAAA= To: wsa@kernel.org, Loic Poulain , Robert Foss , Andi Shyti , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-i2c@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Bryan O'Donoghue X-Mailer: b4 0.14-dev Add sc8280xp compatible consistent with recent CAMSS CCI interfaces. sc8280xp has the following clock list and so requires its own compat string and sc8280xp specific clock definition in the yaml. - const: camnoc_axi - const: slow_ahb_src - const: cpas_ahb - const: cci Signed-off-by: Bryan O'Donoghue --- Initially I added a compat string to yaml and driver for sc8280xp but, it was incomplete and wrong so I asked for a revert. Subsequent to posting the compat string I had posted dtsi changes to sc8280xp to add in the CCI, forgetting to follow up on the compat revert. I then completely forgot about the compat string and worse still misremembered the whole reasoning behind it. This one patch series cleans up the mess. - The fallback compat qcom,msm8916-cci hooks the driver. Since there are no driver changes specific to sc8280xp we don't need to add yet another entry to the CCI driver. - The compat string qcom,sc8280xp-cci is additionally declared in the dts -> compat = "qcom,msm8916-cci", "qcom,sc8280xp-cci"; The sc8280xp-cci will match the yaml and enforce constraints. - The yaml entry for qcom,sc8280xp-cci constrains the list of clocks which is specific to sc8280xp-cci Result: - No new redundant compat string in the CCI driver - DTS is unchanged - YAML expanded to capture missing string - BOD suitably contrite Link: https://git.codelinaro.org/bryan.odonoghue/kernel/-/tree/linux-next-24-04-11-sc8280xp-cci-compat-string-fix?ref_type=heads --- .../devicetree/bindings/i2c/qcom,i2c-cci.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml b/Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml index f0eabff863106..daf4e71b8e7f9 100644 --- a/Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml +++ b/Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml @@ -26,6 +26,7 @@ properties: - items: - enum: - qcom,sc7280-cci + - qcom,sc8280xp-cci - qcom,sdm845-cci - qcom,sm6350-cci - qcom,sm8250-cci @@ -176,6 +177,24 @@ allOf: - const: cci - const: cci_src + - if: + properties: + compatible: + contains: + enum: + - qcom,sc8280xp-cci + then: + properties: + clocks: + minItems: 4 + maxItems: 4 + clock-names: + items: + - const: camnoc_axi + - const: slow_ahb_src + - const: cpas_ahb + - const: cci + additionalProperties: false examples: --- base-commit: 4118d9533ff3a5d16efb476a0d00afceecd92cf5 change-id: 20240412-linux-next-24-04-11-sc8280xp-cci-compat-string-fix-e22a0e9ec83f Best regards, -- Bryan O'Donoghue