From patchwork Fri Dec 22 11:16:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 757562 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 BF5AB171B6 for ; Fri, 22 Dec 2023 11:17:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="NRUtbPMK" Received: by mail-wr1-f48.google.com with SMTP id ffacd0b85a97d-3368ac0f74dso1163598f8f.0 for ; Fri, 22 Dec 2023 03:17:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1703243842; x=1703848642; 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=CMtDAy1EXDszTwMTqqohVsilgzyKD7wGsQGS9hZLtqo=; b=NRUtbPMK2ZhT8F9ZGVPZftkoZUPHyEHEwIbn7dZUBBBBDbTO7W2RHlZPvZGMMfmo6g gwyyKj1J0JUVqLJ5SsRKjhmxX5FrWJDOTL7vo6uGTdK7zbwuSAnIdseXf//WLUVf8Qdu LrtSz1y3AZnYF5uO4aFzU8E1FCtBBhkE4dpjzZETvy/PJDf5ebvZZlf4uL8L6PXCaUE/ BtFQ/xPovI6hjnB6WA2oowYUmDLCFK5IN59FjmKRvDxQHr8GBzLhUbd89OMGu3vT6YwL EkgoFyzo15BdUzu8ZSoIw9oHLnBWR65zfFk7noWuWGgPvGPc8hi1lX2+hqSD8bsSgzmm KwXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703243842; x=1703848642; 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=CMtDAy1EXDszTwMTqqohVsilgzyKD7wGsQGS9hZLtqo=; b=BK7umBh7kM7l1c2Ptm8iHIkB3YgO0jlQ3xj3Dk9B8NvsIcvhfcs2zGDxzwGbqdJq3S yaJF1sQovD0GrlhXLYiNRhOSk9pMdG36kh6JilfwtGT6OBREDIQk47eB3hqiR437W3ir q14zMvNurNjgIiJZO7R5TVItoh9KmPvt0w3twPi9LtvPoFWB1EqX9MTTd7+XDaxFTI3h 55/1drFNOuol1kLBW7rsdyBXsQCb06zVMolAt74kqc4pSHB5W2FtWtCOYebQBIIOQXIU M4qs07AgPEdadfgAH6W1RBeR4gHUrEsO7rVnQEkcvfyArvh1zVmEocIBdkGo5T5rhfJ4 z+Zw== X-Gm-Message-State: AOJu0YwqYFqNsaY3fYCil1O2SziOnrmzo7ZULdz/GQ1UEULbZy/E/ef/ Bu6odirpdu9LpZPhnhAqxI00MlBMw7B8wg== X-Google-Smtp-Source: AGHT+IGGUtKBAgABRxh1RQY1Fn8PPnFhYTQfQeBrQ50xlTgo3iXBsPVCM4jR12MyjYwvlX+3OKFDog== X-Received: by 2002:a5d:4a45:0:b0:333:2fd2:8135 with SMTP id v5-20020a5d4a45000000b003332fd28135mr578985wrs.82.1703243841708; Fri, 22 Dec 2023 03:17:21 -0800 (PST) Received: from toaster.lan ([2a01:e0a:3c5:5fb1:c099:e596:3179:b0fa]) by smtp.googlemail.com with ESMTPSA id f8-20020adffcc8000000b003366b500047sm4054069wrs.50.2023.12.22.03.17.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Dec 2023 03:17:21 -0800 (PST) From: Jerome Brunet To: Thierry Reding , =?utf-8?q?Uwe_Kleine-K=C3=B6n?= =?utf-8?q?ig?= , Neil Armstrong , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Jerome Brunet , Kevin Hilman , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-pwm@vger.kernel.org, JunYi Zhao Subject: [PATCH v4 0/6] pwm: meson: dt-bindings fixup Date: Fri, 22 Dec 2023 12:16:48 +0100 Message-ID: <20231222111658.832167-1-jbrunet@baylibre.com> X-Mailer: git-send-email 2.42.0 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Bot: notify This patchset aims to: * Fix the incorrect bindings for the s4 type of pwm that was introduced while converting the documentation from txt to yaml format. * Introduce a new compatible for the existing PWMs to better describe the HW in DT, instead of describing driver settings. * Make the introduction of a new pwm variant (s4) slightly easier. Changes since v3 [3]: * Split first rework patch into 3 changes * Use dev_warn_once() to notify use of obsolete bindings * Rebased on Uwe dev_err_probe() change. Changes since v2 [2]: * Drop DTS changes. These will be re-submitted later on. Possibly after u-boot gets support for the new compatible to minimise conversion problems. * Position deprecated property correctly in dt-bindings for the old meson8 type pwm bindings * Reword commit description of patch #2 to make more obvious it does not introduce a new HW support but fixes a bad bindings. * Dropped Rob's Reviewed-by on patch #2. It seemed appropriate considering the discussion on this change. Changes since v1 [1]: * Fix typo in the new binding compatible documentation * Disallow clock-names for the new compatibles in the schema documenation [1]: https://lore.kernel.org/linux-amlogic/20231106103259.703417-1-jbrunet@baylibre.com [2]: https://lore.kernel.org/linux-amlogic/20231117125919.1696980-1-jbrunet@baylibre.com [3]: https://lore.kernel.org/linux-amlogic/20231129134004.3642121-1-jbrunet@baylibre.com Jerome Brunet (6): dt-bindings: pwm: amlogic: fix s4 bindings dt-bindings: pwm: amlogic: add new compatible for meson8 pwm type pwm: meson: generalize 4 inputs clock on meson8 pwm type pwm: meson: use device data to carry information around pwm: meson: don't carry internal clock elements around pwm: meson: add generic compatible for meson8 to sm1 .../devicetree/bindings/pwm/pwm-amlogic.yaml | 113 ++++++- drivers/pwm/pwm-meson.c | 291 +++++++++++------- 2 files changed, 276 insertions(+), 128 deletions(-)