Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2426904rdb; Wed, 21 Feb 2024 07:23:09 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVCcuNgNsxVqZFwPpm351Evh3o13tzT6nA+o19NM9DrrkhGq/HaFuL2D8t73ZFN8h3rYrp4q/tDjv73I44lqvkC+rCT43I7hLrNVE8rgA== X-Google-Smtp-Source: AGHT+IGm4PRe8hSa61SZz/ZX7zWsDABYD1DbbnAWHv9GwO9yk64u1ymV3ClOCGqR5FAyACyjhnMD X-Received: by 2002:aa7:c908:0:b0:564:b94d:70df with SMTP id b8-20020aa7c908000000b00564b94d70dfmr5937606edt.17.1708528989153; Wed, 21 Feb 2024 07:23:09 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708528989; cv=pass; d=google.com; s=arc-20160816; b=fluyV9XGa9Kf4f5zAaaOyp3zVpvvGxt4mSB4L6xUuBxJBt58H6o7xaF7/n/ta59har sr6khibyYDj1vF3cLPNPydAA+98uhf/FcP0iBlEccikveBKo4tGbER32r38Tj4JOlLai kWDzvejp6105STx5skEymu0QvSrsSrGrNJePNKlpunMUffH8uFMmsOORjw9Q16azswJA 6IUa7qNx1kjtR3hlxtjfM8IWKh8IWGu9DtIivtOc5DC9FhIUNOp4FrgrT+mwvZCjCrvC I4XEbzrpuCcB6cFYGkFysXeiTQRwKxmWMZSdRzYUKnsLB9s5LZ8RtjmwpACdCriGLBY6 SU3g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=3FBkTY4ktEOVpEo6YvXl49m3OViLG+BImsIBijiLHxg=; fh=1FftwO1ww13X1oIsOIWlYg0H9LILkDaOlB8QKMkfeyI=; b=z+OaumFGoVWEaGjhH0W6L0UHNfWnG/WY3O2l5iUTmBi1OqoCwIDRmG3jkBJ7QMNAgZ OM4vZ9whov0rmUIjG00RePezLGs/AE3a1pnFsKN15lIcLD/mxZemchLHgzHiom6jtxNN yL8KabEhTMKuyJlmyMUy60DGkkvHgnTz3MH7uPP934p2gTGMnulsCe1T1sxsyhTcvVVj ppmv9UUXGD1XnrjchJgQo0vWl9cFcc0umm/XXIBpF6NPm2H2VaDxbaa1Ck9+mEFCNAWg sE1iKCNE44JGZCgWpHVy1VjvRFSdJUtFA87nP3s9xiTqXl/xRCH6PFAdz/5rYPZSHTcV JeEA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=cLxbQz6y; arc=pass (i=1 spf=pass spfdomain=baylibre.com dkim=pass dkdomain=baylibre-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-74972-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74972-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id n22-20020a509356000000b00563948cbff6si4449624eda.348.2024.02.21.07.23.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 07:23:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-74972-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=cLxbQz6y; arc=pass (i=1 spf=pass spfdomain=baylibre.com dkim=pass dkdomain=baylibre-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-74972-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74972-linux.lists.archive=gmail.com@vger.kernel.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 am.mirrors.kernel.org (Postfix) with ESMTPS id C175C1F254B1 for ; Wed, 21 Feb 2024 15:12:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9F9118060A; Wed, 21 Feb 2024 15:12:13 +0000 (UTC) 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="cLxbQz6y" Received: from mail-wm1-f54.google.com (mail-wm1-f54.google.com [209.85.128.54]) (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 6BE587FBA4 for ; Wed, 21 Feb 2024 15:12:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708528332; cv=none; b=UIlUals/2keXz7vm+RhNWkWcpcAqMLmxqv4MHcKNFvpJl7Y2gl6Aa09q1PZlbFZz2ha7OSYYmH93C8gs6npjAGaTUxIjhmDk2M4/TAylVXk2D3LbBMeOJujJIF6wqpa093go3In/qux1caPI3TqF9YXOf3y928P8yzz77bjlLds= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708528332; c=relaxed/simple; bh=8MBWv4daSK/tAPnGOdgukRNPyIGRTHZS1yezb+YHTCM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=GQ3mnUYhuUerXliuQit1gx6zXr7tGZ2mcB9qkMRdKxfWMaKCkz6TXWFax3QsmUzrfPatrqiKIjfXh+s2axBDDXuxhm9mzC1Nw49jGgtDIWH/3mHbRoTswTnMGy6jm1OisN1Yv3a7Z999VEuG1lCY4m71byhrSt4qr7uB2zQlHPs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b=cLxbQz6y; arc=none smtp.client-ip=209.85.128.54 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 Received: by mail-wm1-f54.google.com with SMTP id 5b1f17b1804b1-412698cdd77so18329605e9.1 for ; Wed, 21 Feb 2024 07:12:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1708528328; x=1709133128; 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=3FBkTY4ktEOVpEo6YvXl49m3OViLG+BImsIBijiLHxg=; b=cLxbQz6ymcCXqZoV++mA7iXWCRoo1cVCN0C46/gFOZRVJrYijeeBd+ZjjraP8KKWe1 D+78FOPxfFKAK0Vl02L6BYkt9nYWpToJdKw2a0lcY1aaDQmZTtbfqc99gkwGrb/kb1EN pozRg1Q25h5HhBfFyzL+/OGyzGFxUlyLKA1icqyv3+JZWxV+RiKuld/hqPR8Z4FFA7tE PQcb4r9lWDaSSiKXY5T/eW2MDHSZ/ecPJrM2SLMco0p5iW5jW5LwflQH8NLvHxM+Gh9n o6qOoitzP+FKcKpfT+79i8gk0R599CtDD/7jYeU0A8491kpyx/6yBQ4gJRGKRSLmA3bj zaig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708528328; x=1709133128; 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=3FBkTY4ktEOVpEo6YvXl49m3OViLG+BImsIBijiLHxg=; b=CI7fGUtKsICgMPUP87rTvnZLCgFiG5oPJATAHzj1NGza4RQcuLccaj2u1jExnr16sn UnOjBfSry0BpNlkDFxRc7L3zaLlqbSGVPTxYpbIaqABJ9HeLIQrhkwReQ982+Vy3RlIw z0iVZJM/bL1TXXehOV/WwBP5xoXFZGGPEiKYF5ZaB1ge8ztxPe6YENl9jwGzuqKBjxM9 oWsKP7mInZJEeEsDDlWxEotKRC3dgRgTIa5Uw//E847X6mq5k0uNxJzTX18Kax5vuQJt jZ7Ogpd9b91MrBtKKfrJSLNy6IXh1MICEJAnU24B28w8Vs9T07nE5DSlvOKbpiaiitbc oBKw== X-Forwarded-Encrypted: i=1; AJvYcCWXo37BR9ZSkUqEqrByJyspVBfiTGhnlcOfXvi3KzYb7GPbwpIy1kbs1a4mswJ3oDaLlAEVmWr+1dKh30hRYCg7+hkzYFnZ+M2fCkh2 X-Gm-Message-State: AOJu0YyT6uPpBexEraRP34yispKp09D4A8YwIavxhEd6GtqagRnoasM5 jhV3fAiz0xjM8OnfxOLTIGLKSvKLsJ0EgEEc5hV/r3vurgDCd07L0TK0iLv94k4= X-Received: by 2002:a05:600c:458d:b0:412:60f9:3fe3 with SMTP id r13-20020a05600c458d00b0041260f93fe3mr10011548wmo.1.1708528327447; Wed, 21 Feb 2024 07:12:07 -0800 (PST) Received: from toaster.lan ([2a01:e0a:3c5:5fb1:1b1a:d907:d735:9f9e]) by smtp.googlemail.com with ESMTPSA id bg22-20020a05600c3c9600b0040fc56712e8sm18725342wmb.17.2024.02.21.07.12.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 07:12:07 -0800 (PST) From: Jerome Brunet To: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , 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 v5 0/5] pwm: meson: dt-bindings fixup Date: Wed, 21 Feb 2024 16:11:46 +0100 Message-ID: <20240221151154.26452-1-jbrunet@baylibre.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Bot: notify Content-Transfer-Encoding: 8bit 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 v4 [4]: * Rebased on Uwe's pwm rework in pwm-next * Drop change to carry device data in drvdata * Make the length of parent name array fixed * Single allocation instead 3 for the internal clock elements * meson8-pwm-v2 and meson-pwm-s4 compatibles under an enum instead of 2 const 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 [4]: https://lore.kernel.org/linux-amlogic/20231222111658.832167-1-jbrunet@baylibre.com Jerome Brunet (5): dt-bindings: pwm: amlogic: fix s4 bindings dt-bindings: pwm: amlogic: Add a new binding for meson8 pwm types pwm: meson: generalize 4 inputs clock on meson8 pwm type pwm: meson: don't carry internal clock elements around pwm: meson: add generic compatible for meson8 to sm1 .../devicetree/bindings/pwm/pwm-amlogic.yaml | 115 ++++++- drivers/pwm/pwm-meson.c | 289 ++++++++++-------- 2 files changed, 260 insertions(+), 144 deletions(-) -- 2.43.0