From patchwork Mon Feb 26 07:37:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 776083 Received: from mail-ej1-f49.google.com (mail-ej1-f49.google.com [209.85.218.49]) (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 8AC762032A for ; Mon, 26 Feb 2024 07:37:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708933041; cv=none; b=M4kRBqAOAe2iCq8awLXzMwvayzrU9T9d1Hs36Q+VScRUQk8aGDH8uhM31gSf/CziwtadQpI2uMqqWK4NR+8VbMJRt0RaVcw5ljxIVYKL+9UZaVNoL+o5PsGoAelL6GQ88tKptAQLL6YgCBQrm7Zn45nveHhLTB4GvRWZwizZF/I= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708933041; c=relaxed/simple; bh=+CPBBu9WyqTLEESsUyBowQXqNEsqLAta+C9KRApRjH8=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=tR/Ukafvn7CYT6RPWE2o7+kgDRJsPvZwqiqT9q8g0WKkk9pX/vQZIgTEFsJu1XVh28uJ9uwXD21i3JEufy3TXAcNY2Mf62ThDI8hbOpQlJG7Ns0quQJL4iIOqtzBKxX2K3Ugp9JUBqtBP06IOVpuL3R6pUiF59+oj2yVw/6E76M= 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=TSBoM3jT; arc=none smtp.client-ip=209.85.218.49 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="TSBoM3jT" Received: by mail-ej1-f49.google.com with SMTP id a640c23a62f3a-a3d5e77cfbeso480074066b.0 for ; Sun, 25 Feb 2024 23:37:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708933038; x=1709537838; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=f93rFz5E3AeU8cJwJga/R66WIzynOr8vsYGsktU0xqw=; b=TSBoM3jTIjO2dAEvEyGbji+B0VdHDuXUNxxtL3scDftfpm0xdqiTiGkHE2G0HGEHi9 zVQlaBquclIqrM1QXmQvA+Zo8QnDTrwwXDYl5yOeDZg7ByU87/FgINj91zSlZhxhC9bf pcdntgdIkk8w3w0CZvhXpW3U1FqBvjc2wqFEUtN1e8OX9Kdasf5LIruwUo1EH4DvhgLS U830juSl7dUdPveTO311aq2Nc/7jBgY9dEHf7Rh0lMrLoe9WK4YTZtEK3JZv3pRqCYIt lo1NvtKP8nthCDS/87mVNt1piq3kU/NcjSKBktAupN1CWdeTzU6UfJ+K+FI+VBxTEbQd pkpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708933038; x=1709537838; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=f93rFz5E3AeU8cJwJga/R66WIzynOr8vsYGsktU0xqw=; b=s5XOaQ4pqpV+KUiLCmYKHD4HWyO7B0/31qbx+es5CdL8zhjXT0dxz7TkbP9vqwMIUj b5vAKfNinFP/xhdZc8D01ri0//eoly+YxTmbC31PFIc4n3CB4EWiXZ/LP6I9oV7SDd57 UtwxR40kdjwyl8m4A1uNi/xML03RijOFqnfdIbFl2A3Z7rc35hhQpwcHaLQqeDfxe5ZI nNiRbrSXmad/FTqZLtFUh9nQSd+FNpVukOXasGoU6qcwTtwPsj6aL6qira767Ru2v2kX QwAq+x/A5DbobsyvRUJR/pXDhGVMesymsQMfkJV0TepiYwSD1pHB7gs1deE6YA+MuNZA /9Hg== X-Forwarded-Encrypted: i=1; AJvYcCUk4/DG+FjBgWXFZrTSWDJi+moSYZkVIBMOnozGvgKdmmDhUZEr0JXEUSwt9dmXdyfUlA5H9oSaPtjhZMpKIsCHcAuf9E+PlIrLqg== X-Gm-Message-State: AOJu0YxGmxNOAs5OPBcT6Z4b8QfYQpMMc615FRS8CyZM+ZtQV5NGt2nV u9y6UU+0RtIjzifCJNGmMIE53e6ksvDZ2oBR6+CtRlOgmrNXmzPGK3GBJ7P6daw= X-Google-Smtp-Source: AGHT+IH8BkFJeP/UC99e0jX4wZGL1PJeUfLlzAWh6qlnYrXXQUFlZiCkpfV2Ek5S15L9cROt8UR4IQ== X-Received: by 2002:a17:907:1701:b0:a3f:365:2276 with SMTP id le1-20020a170907170100b00a3f03652276mr5277748ejc.34.1708933037889; Sun, 25 Feb 2024 23:37:17 -0800 (PST) Received: from krzk-bin.. ([178.197.222.116]) by smtp.gmail.com with ESMTPSA id y8-20020a170906558800b00a3e8c3fc3ffsm2187425ejp.10.2024.02.25.23.37.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Feb 2024 23:37:17 -0800 (PST) From: Krzysztof Kozlowski To: Pavel Machek , Lee Jones , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 1/2] dt-bindings: leds: qcom-lpg: Drop redundant qcom,pm8550-pwm in if:then: Date: Mon, 26 Feb 2024 08:37:12 +0100 Message-Id: <20240226073713.19045-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-leds@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 "qcom,pm8550-pwm" is compatible with "qcom,pm8350c-pwm" (latter used as fallback), thus it is enough for the "if:then:" clause to check for the presence of the fallback "qcom,pm8350c-pwm". Signed-off-by: Krzysztof Kozlowski Acked-by: Rob Herring Acked-by: Rob Herring --- Documentation/devicetree/bindings/leds/leds-qcom-lpg.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/leds/leds-qcom-lpg.yaml b/Documentation/devicetree/bindings/leds/leds-qcom-lpg.yaml index 6649ca2ec805..699db7995dd5 100644 --- a/Documentation/devicetree/bindings/leds/leds-qcom-lpg.yaml +++ b/Documentation/devicetree/bindings/leds/leds-qcom-lpg.yaml @@ -141,13 +141,13 @@ allOf: maxItems: 1 nvmem-names: maxItems: 1 + - if: properties: compatible: contains: enum: - qcom,pm8350c-pwm - - qcom,pm8550-pwm then: properties: nvmem: From patchwork Mon Feb 26 07:37:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 776718 Received: from mail-ej1-f49.google.com (mail-ej1-f49.google.com [209.85.218.49]) (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 268EA208AF for ; Mon, 26 Feb 2024 07:37:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708933045; cv=none; b=ihYQhNYKG6fBsv+lUsoGfbU++9eqDXw6Ux3lJ8rS7u8cXPsJVOM2y9OOMC9DOEkie0zeYaZJfvErTMcn8tlQm9WHh+OhFL1fMBmhzBwTSFaKBZd07WYeMR2ELotDCZORVzn3D5MQu32wKYPqyXhcA9wq3atq7N3rTszGPcTMomE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708933045; c=relaxed/simple; bh=MSLO6p6CLg5E7T6Q8ECa0ZNmYj3H9/YuL9uFR+h/0zA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=kCI69Efnk7WLt52LugJv8zvcF+IMzGqWbC8ccztlVGtJPr1mqmgociaN8Dj5GjWZ7xablyzHclWDBVO2J4GxqyoHFrLDyb4EP0EKRoFFTb6BvgwU7dpNvuWDG9MATOr4XEr+JH5YkaVpDPNsUv1B8d90lPo2DIpPjmNajkUcufM= 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=bJZFy6W4; arc=none smtp.client-ip=209.85.218.49 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="bJZFy6W4" Received: by mail-ej1-f49.google.com with SMTP id a640c23a62f3a-a3e5d82ad86so375924566b.2 for ; Sun, 25 Feb 2024 23:37:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708933039; x=1709537839; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=qtudR6y+jW6q5p42Avp54tksFKxCeQO9bbxUbvEIoSc=; b=bJZFy6W4LqWlWMS15YCdClvA9Lv55qoJo9ttPxxUlm7VZD8ECtoYKW495w1qk1YSvr 55L0WIIYKfvk662/yvcqtrisvg1yCcek0at7E1iwX0jkUUUdRE97LJ6udcoRg67cnNAZ mCUkx9IheL5bpLgXq7w8Qr95YWuloroSJPQkBra6F0n9pPX0dho/YDk4dWiOGrv7p45o NZ6Kv5TDFckQnwCq9qEDqcF6Uc8pBEe/R1JqcQysdoDqeD871ni3hZLmc7YiyVmABRUB xVMVSFc+Ia2fk7e3Z2HOIAXhIckGrTfM1Vivy8R+ahGSMJvKDKocsYwYp6xHZKfA0ygE A50Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708933039; x=1709537839; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=qtudR6y+jW6q5p42Avp54tksFKxCeQO9bbxUbvEIoSc=; b=JhagSdoMWX+KECBI8CcZmrWCSpSrmORcjiNFrDqsndLs8CBgUVYHtQDjZtykmIfAQG qSlCq0hN1XTRsnQCNSh0DdTrEW32eUtxy83+WzXCa1M9QZQiulPb4YObnvGPCBiPHinO 1bg0kctzFVfJN244hXQhl6vWxSzydV0qPU59E9bBCDe98T/FiQCMfpL8c99jRtHM7rDc giI5BrRWMF5hXz795Zf5ncfciKk5T2Nvb7zirguMt0P5eeDliVkDwNqxruSFfJaUfj68 8T7C9dPDyb2HRSNH2xML5+EYv7fU7wk4RBUyjdi583sFJN+pDcslq0KTbDWKTWaQOm57 6lCQ== X-Forwarded-Encrypted: i=1; AJvYcCWr/5Wtt0pquV+tXK+6XmBHsJ90aIMEyNr+sKHL5B1w2UkodMBHC4Ax+xzLhnv4cpf5lXIo4QU+nqZ9550HIkSVu3MvNkXcTzKjmQ== X-Gm-Message-State: AOJu0Yy+TV3VoVRwXvNh87i4WOX5S5PtubnXFgeJfi3XqDGuciNiBkMi XAfI4jWtlgzleMU+CStLjBOZdhnbMhPXsRnTN1HiH1nsjpOeS8WVwM+TurgFSS0= X-Google-Smtp-Source: AGHT+IFVp6TpNqDWsEk0yqoJn5EaMgZgKDSvrj3Y1Kg9YWhf2qj+4uBY9G7da3cgtt8HkiK9LAofrg== X-Received: by 2002:a17:906:140c:b0:a3e:dcd2:2746 with SMTP id p12-20020a170906140c00b00a3edcd22746mr4391929ejc.3.1708933039586; Sun, 25 Feb 2024 23:37:19 -0800 (PST) Received: from krzk-bin.. ([178.197.222.116]) by smtp.gmail.com with ESMTPSA id y8-20020a170906558800b00a3e8c3fc3ffsm2187425ejp.10.2024.02.25.23.37.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Feb 2024 23:37:19 -0800 (PST) From: Krzysztof Kozlowski To: Pavel Machek , Lee Jones , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 2/2] dt-bindings: leds: qcom-lpg: Narrow nvmem for other variants Date: Mon, 26 Feb 2024 08:37:13 +0100 Message-Id: <20240226073713.19045-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240226073713.19045-1-krzysztof.kozlowski@linaro.org> References: <20240226073713.19045-1-krzysztof.kozlowski@linaro.org> Precedence: bulk X-Mailing-List: linux-leds@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Only few variants support PPG and store LPG per-channel data and pattern in SDAM modules. Disallow the nvmem for other variants to make the binding precise. Signed-off-by: Krzysztof Kozlowski --- .../bindings/leds/leds-qcom-lpg.yaml | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Documentation/devicetree/bindings/leds/leds-qcom-lpg.yaml b/Documentation/devicetree/bindings/leds/leds-qcom-lpg.yaml index 699db7995dd5..54a428d3d46f 100644 --- a/Documentation/devicetree/bindings/leds/leds-qcom-lpg.yaml +++ b/Documentation/devicetree/bindings/leds/leds-qcom-lpg.yaml @@ -130,6 +130,26 @@ required: additionalProperties: false allOf: + - if: + properties: + compatible: + contains: + enum: + - qcom,pm660l-lpg + - qcom,pm8150b-lpg + - qcom,pm8150l-lpg + - qcom,pm8916-pwm + - qcom,pm8941-lpg + - qcom,pm8994-lpg + - qcom,pmc8180c-lpg + - qcom,pmi8994-lpg + - qcom,pmi8998-lpg + - qcom,pmk8550-pwm + then: + properties: + nvmem: false + nvmem-names: false + - if: properties: compatible: