From patchwork Thu Jun 20 09:39:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 13705035 Received: from mail-lf1-f54.google.com (mail-lf1-f54.google.com [209.85.167.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 CBE4B1A4F2A for ; Thu, 20 Jun 2024 09:40:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718876406; cv=none; b=HF51S4Amz8uP9470IR4oBH1Y4fOUsDqCDgpazVRHUqiy7vKiY1/NQxcZaY+l45EOMUEfk9Z7k6pafxEJ7D3A9vgDaGhFiaob5w26F1WvQUCSNmqdj4kXk1NUvW++SIEiV1Wy6enQvji/fu3kOCTeHURlUGlNOb2F/dMkI3S9oYU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718876406; c=relaxed/simple; bh=GJvGByFweMn6ANCK82VI0BF3EUijh1V8GrpcePPL6ME=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=aePuiVNSJO2dEIrDp5V74sGOiiBMkbKaGNSn4Ta2/9r2auRjBoeYUbRmXfPgNe9JPs14ZQROKodMSBVDfwQJJWiZipcOGyXLdz8mWoop1Qnd9TL0b+amKmUsg5cV1QvMPIkQtgvhYbJv2jpSDeOyJ0rVj4BsIBguVhMa1GSsoBc= 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=J/2s1gle; arc=none smtp.client-ip=209.85.167.54 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="J/2s1gle" Received: by mail-lf1-f54.google.com with SMTP id 2adb3069b0e04-52c32d934c2so665642e87.2 for ; Thu, 20 Jun 2024 02:40:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1718876403; x=1719481203; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=7HJwxsRCYoMZOjaOIFvY1FIfBvzDW/kPGWODQDPht3Y=; b=J/2s1gle2xGMQaSIG0ytIB4Zkhn6Xq2ZoOd8pVC5vI6adx8tJhgp/ioU7dn9/3OzdN 9ATphxXHByrCIR55Eqq9u31y9Ywax7+eoz60GUEJNgFUrtHgOTs4PkQ2x6ZMNMhozv/9 gtsaweYIy7L6EPlhd4XicsabDS+YxPZNe29yieGHTnM5+qblGoqAYBc6+DlVYAHcKPzj 8WoywBS9EcQp9VRlcBRPdeS2h9Lof4D3zLU+N4axg4Kaaf9goFxcMvXRivl21q6/EiD+ puyu+O1FNMds+LtA/JjLRYz5rqSI3b1P1is0lcGINV1LFfK+TO86HlRFI0PGPBKtqeDM 2E9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718876403; x=1719481203; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7HJwxsRCYoMZOjaOIFvY1FIfBvzDW/kPGWODQDPht3Y=; b=OO8dBpHzVA7BLZUVXe1aXvp82zlPbjv9691TynlVEpZyIRB7MGdp5Hv9zA7oeZhGI4 Sk+NMf3lDTZy8MFZgPh+EQjNXs193baNvb9gk5ci76bMNh1QtMQzy7OcjNtR4HYPcf6h 4wyl9m6o+YVck3+8vCFzWZSnxi9ofn0U4ZnH1mR1D0xX+e4iyE1g/fI9iBvTn7en+iig tOGRcpu6EYTza3Thn/6I/robB0DfujBuhj4l2t1fbUxFHBwMWZVzJ61ZIIpmHovW26J7 bdiAqY36RQmw9wpgggWFVRGQSuVCGD6yfNKwPK1wyyVwWjXOg72kCEKvk/JnxxoTTn1A zY1w== X-Gm-Message-State: AOJu0Yyj2QU9JOfBQj2j4764VLbvl0DJVmQmPLwon6JmfPvLagqynvwB Vw6bF0C/QUg45HaAxs7fgpq3xcevNQ+QBxRmTIiq4UkEXsuSnR7COMPbV4l8TYM= X-Google-Smtp-Source: AGHT+IFRa4i+z0934yR1VEwkd1C7tDAhQ4obmhaD0SnJXv3mZ2tMQyMMzQyUVPUKDqtEki3srh0UVA== X-Received: by 2002:ac2:4e06:0:b0:52c:80fa:2967 with SMTP id 2adb3069b0e04-52ccaa2d61amr3397971e87.12.1718876400350; Thu, 20 Jun 2024 02:40:00 -0700 (PDT) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:8261:5fff:fe11:bdda]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4247d211ae0sm19366095e9.41.2024.06.20.02.39.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Jun 2024 02:40:00 -0700 (PDT) From: Neil Armstrong Date: Thu, 20 Jun 2024 11:39:57 +0200 Subject: [PATCH v2 1/2] ASoC: dt-bindings: convert everest,es7241.txt to dt-schema Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240620-topic-amlogic-upstream-bindings-convert-everest-v2-1-660985615522@linaro.org> References: <20240620-topic-amlogic-upstream-bindings-convert-everest-v2-0-660985615522@linaro.org> In-Reply-To: <20240620-topic-amlogic-upstream-bindings-convert-everest-v2-0-660985615522@linaro.org> To: Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Neil Armstrong , Krzysztof Kozlowski X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3535; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=GJvGByFweMn6ANCK82VI0BF3EUijh1V8GrpcePPL6ME=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBmc/jtK0uLIKlE8w4RMi8aGN6Fo/cWKnqaDz0D/x2v JT1u4MeJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZnP47QAKCRB33NvayMhJ0WMjD/ 49r3HCPEUsq0i6d9q2LUtmIy/+E6B6Y7VaDi54wNk9ppe6zcWnuBeyFih+VrZ8fBOFPbj2kL+3ZJgD 0nqGc/nym91NekCs+o1caDDzeY9gUbhlcNh0mtpwuh9dTzhvv+v1ba+tLLaSNztymAtfKg+HcaoWir uZ2n2lQWt7I+AOL1yQvzjNJyYvUH/xWtP7W31B4EXeuOEzzu6jATCbLpLT06HjduNt8KamDuOb1k69 n6pOn5MOEVoucK1iLoyI/QIOo7Bshy1fst80iCXOyYJkOaC+a23POT/YNcImIRz4M7Zy5oFqQdAf2F BGK0FgScawkDk5Dk/WFpA1J0PgHvVcWYKPGmoDc/hXQJx0Plh0xQCtyuZpKPijl/7G8iDr2rpdhWgG P1DQxnR65D0ohSSNUsDzDBsS3uBOh+p278P+uhSfM5EV2O6WE0egLL3xkmqQROGrVK01/uF3GXD8Q0 hAr53wZgVngofCV1FppPpgn6m+EVLg5Du469s7MFi7qu5eDH4c1/eN3+Ut/UwRNbHOJ0NvPlSKJoVF 0RNzssJR1XPaXlQNB/piEebdZkjU5MtnDm+pWaoU/eezUHKUzt8RB80KDzohH0zt/4Rv2xcdtkhi09 OysW8DWg402QLmEN2FcYhRXU7b1IO+s8ndBl9tuAviFn7tP2b/zS2gIF8IbA== X-Developer-Key: i=neil.armstrong@linaro.org; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE Convert the text biddings for the Everest ES7241 2 channels I2S analog to digital converter to dt-schema. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Neil Armstrong --- .../devicetree/bindings/sound/everest,es7241.txt | 28 --------- .../devicetree/bindings/sound/everest,es7241.yaml | 67 ++++++++++++++++++++++ 2 files changed, 67 insertions(+), 28 deletions(-) diff --git a/Documentation/devicetree/bindings/sound/everest,es7241.txt b/Documentation/devicetree/bindings/sound/everest,es7241.txt deleted file mode 100644 index 28f82cf4959f..000000000000 --- a/Documentation/devicetree/bindings/sound/everest,es7241.txt +++ /dev/null @@ -1,28 +0,0 @@ -ES7241 i2s AD converter - -Required properties: -- compatible : "everest,es7241" -- VDDP-supply: regulator phandle for the VDDA supply -- VDDA-supply: regulator phandle for the VDDP supply -- VDDD-supply: regulator phandle for the VDDD supply - -Optional properties: -- reset-gpios: gpio connected to the reset pin -- m0-gpios : gpio connected to the m0 pin -- m1-gpios : gpio connected to the m1 pin -- everest,sdout-pull-down: - Format used by the serial interface is controlled by pulling - the sdout. If the sdout is pulled down, leftj format is used. - If this property is not provided, sdout is assumed to pulled - up and i2s format is used - -Example: - -linein: audio-codec@2 { - #sound-dai-cells = <0>; - compatible = "everest,es7241"; - VDDA-supply = <&vcc_3v3>; - VDDP-supply = <&vcc_3v3>; - VDDD-supply = <&vcc_3v3>; - reset-gpios = <&gpio GPIOH_42>; -}; diff --git a/Documentation/devicetree/bindings/sound/everest,es7241.yaml b/Documentation/devicetree/bindings/sound/everest,es7241.yaml new file mode 100644 index 000000000000..f179af758730 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/everest,es7241.yaml @@ -0,0 +1,67 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/everest,es7241.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Everest ES7241 2 channels I2S analog to digital converter + +maintainers: + - Neil Armstrong + +properties: + compatible: + enum: + - everest,es7241 + + reset-gpios: + maxItems: 1 + description: GPIO connected to the reset pin + + m0-gpios: + maxItems: 1 + description: GPIO connected to the m0 pin + + m1-gpios: + maxItems: 1 + description: GPIO connected to the m0 pin + + everest,sdout-pull-down: + type: boolean + description: + Format used by the serial interface is controlled by pulling + the sdout. If the sdout is pulled down, leftj format is used. + If this property is not provided, sdout is assumed to pulled + up and i2s format is used + + VDDP-supply: true + VDDA-supply: true + VDDD-supply: true + + '#sound-dai-cells': + const: 0 + +required: + - compatible + - VDDP-supply + - VDDA-supply + - VDDD-supply + +allOf: + - $ref: dai-common.yaml# + +unevaluatedProperties: false + +examples: + - | + #include + codec { + compatible = "everest,es7241"; + #sound-dai-cells = <0>; + reset-gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>; + VDDP-supply = <&vddp_supply>; + VDDA-supply = <&vdda_supply>; + VDDD-supply = <&vddd_supply>; + }; + +...