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>; + }; + +... From patchwork Thu Jun 20 09:39:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 13705034 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 C58F81A4F28 for ; Thu, 20 Jun 2024 09:40:04 +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=1718876406; cv=none; b=SI26qtlqS/KvDpiNcxTNlsd8E5EhgVjMV2ZQYMohLyEO5FBOZnQHQvHSrekyc26Xn9emep8a7r462wpQh8Y1Qv6YTjnqKalYORZLOwIGPpwJH3yGZmv+AFXjaIJ29k2v2Nt3NfJNQABPYsuO+Y3W8cX5dfWRnv6q6SHGtv0f33c= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718876406; c=relaxed/simple; bh=Dt9pPhUPKxY49NTj7PYxkDDnTHGBCFbjM6B6CNFCAiM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ihaPCDnq+JMCwzNjMuUwYUREXOSrsIcEbCeGOYjVrA9IjrnVWFoLm3p0SoFv1jiBLNYeKJh82CctrzP3OhXBuiRGEyaLfFWxIeCA1Cfuv+zMYbmEWsVzok+0W7ifiPd/HyqCbgxmcLsYyZFu+hjktneCIO/4w0ZztPeumowPrCQ= 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=KE13Pvu3; arc=none smtp.client-ip=209.85.128.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="KE13Pvu3" Received: by mail-wm1-f54.google.com with SMTP id 5b1f17b1804b1-4218008c613so6889015e9.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=1eoyKMeKwORnjXrfh8fRmcKanMlp49yxm/SsNRMKvko=; b=KE13Pvu3l12aL4gwxqzsoza+yc1PRJ9V4u39u52bWmSwZZctg4r1PFU92MLTF1zkNh dhxuI4f+haTwVRmQpTyxxiXZHTnu1T52xuQzqGBGqljZ8GEtcaAS6ug31DIRcq5JKf1a J/mvPnQwakF2H2X1X8Ys9PyanZd7fd7ogMUKoWLe1zFGG7dUc6ndpXbUcNMdsEqCn/T5 kSy0mc74tGKPUM8ZlgYPmO0PrypgG7tqU3V0GaKFNSt5zgIKa2H582yM24CP+RP6jWGn lI6Lom0sP0ojNYG/q+V7nrZ/qv4DW7aDBtNBslGDY9jCWGWfi3f4cp5eqduUtxzvrXU9 Jmiw== 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=1eoyKMeKwORnjXrfh8fRmcKanMlp49yxm/SsNRMKvko=; b=A/E29IovpKr7Kg9hGKiMHn4DWV7VKP3ZXTwlSvNg7Ba+IRw6r4n6W//yqelwqAxS96 KXmvbqcTQsLADLyYUdzU+rT/W+VRHfBD36u+bawZfdLWu/8JT6L6d/9NPt7p5gmBcb/M VnOTUT/qN8uaQ6ghb2QPYzn+NJXJh+vdzre8pMMaQKe9ArInGug62PnLRfzKkl4lLIOD vfJ134MvQcEml/RYaFOTuNfKZ6QHN/M8L0WVPXm3FAeDGRHia3xsjQ5xcS6VdvydPLsK b7geKMGmvbqOhH5Ggm+eXxIn+BmskuufW57LjhRd4ceYBC+RKwAzm/aL8/sY3PsballZ 1JEw== X-Gm-Message-State: AOJu0YwBblDPr2SSU5vaIIiBGJuEQC2lp4den3CuF0Ll5SKTpmsUYrsY aKqBIp94tJ0sq3IK6+en5VMqoxP6xA5FKL6S8z4qicRBO/Wnu0E5Ue3jARUjJeM= X-Google-Smtp-Source: AGHT+IFDJlM479D2ow1xuBjPiaCS8XgHSUUVM8IEoVkLP3TsnYi7kngOy9GAbZDMsF3Dc3VZbJbjvw== X-Received: by 2002:a05:600c:4999:b0:422:4fcd:d4b9 with SMTP id 5b1f17b1804b1-42475297a99mr34223535e9.29.1718876403164; Thu, 20 Jun 2024 02:40:03 -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.40.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Jun 2024 02:40:02 -0700 (PDT) From: Neil Armstrong Date: Thu, 20 Jun 2024 11:39:58 +0200 Subject: [PATCH v2 2/2] ASoC: dt-bindings: convert everest,es7134.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-2-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=2687; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=Dt9pPhUPKxY49NTj7PYxkDDnTHGBCFbjM6B6CNFCAiM=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBmc/juS/ZiY6C79JWMKeEjMvnvKqkxo+frglHe7jEy BNabhHOJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZnP47gAKCRB33NvayMhJ0XkPD/ 9rBxrmrn4vIR3SwOwviZZesq/gdjryZkvsSTmtlO1OqgBgn3dG7HT2soideZLUMeW/6cybHrS9QdI8 p3xyBrlQn8Wmuw5j6Ez0k7TCrVsKalJABR0Uls36chUlM6fa4YozeKZ4U6heu8U4zEjk0pXeIuca5E JAgeTdfVhPtPTSR6PUPmViDzpRbhbpTzHbuEfVGuBMTkmGLIERk6JYgFk5bzWMqDGD84HHlNdZp4kQ bbt/o6u04i19PXeKCVAjWgVFGsbkgCFLbevzK4TnPFUNNuHfUh0qYJ3fZ8WJfOn4blmB/s5VEyeQ74 oos6ShGSMWpDBraiOtAuhvrI0mr7xV4UpwfOW94FKbNqx4hYYZ4C0JTL1iM2+wHFBRP7Anm0lvHXvu uBFzemAD9wVw+wswOgPQaRJBOrMyP8Rgc5Z4dgxyZ/PqNafCI0IAc1MOdfzjRPFNQZ5kkM/Kh0CZX9 xCMDbD6oLoiACwubxgYXCZWngQ3HYI4ny38HGuEMvvPjZZ6Yg2aYmvkKU40fIx2JT9pyu4+8o+T4Gh 3U/Weg23DYh2tNHjHI+qBaMTALwa5kQC4uT2yD0tJEEUNaH5oi3Cpim5dikWXCoCGBvaO8hn6+9ZOR n100tO79w5h3WF4i52DTRIvqFR1/dA+gAXaWJOM9BTOhe6bKtZWmR3OzZ6gg== X-Developer-Key: i=neil.armstrong@linaro.org; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE Convert the text bindings of the Everest ES7134/7144/7154 2 channels I2S analog to digital converter to dt-schema. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Neil Armstrong --- .../devicetree/bindings/sound/everest,es7134.txt | 15 ------ .../devicetree/bindings/sound/everest,es71x4.yaml | 62 ++++++++++++++++++++++ 2 files changed, 62 insertions(+), 15 deletions(-) diff --git a/Documentation/devicetree/bindings/sound/everest,es7134.txt b/Documentation/devicetree/bindings/sound/everest,es7134.txt deleted file mode 100644 index 091666069bde..000000000000 --- a/Documentation/devicetree/bindings/sound/everest,es7134.txt +++ /dev/null @@ -1,15 +0,0 @@ -ES7134 i2s DA converter - -Required properties: -- compatible : "everest,es7134" or - "everest,es7144" or - "everest,es7154" -- VDD-supply : regulator phandle for the VDD supply -- PVDD-supply: regulator phandle for the PVDD supply for the es7154 - -Example: - -i2s_codec: external-codec { - compatible = "everest,es7134"; - VDD-supply = <&vcc_5v>; -}; diff --git a/Documentation/devicetree/bindings/sound/everest,es71x4.yaml b/Documentation/devicetree/bindings/sound/everest,es71x4.yaml new file mode 100644 index 000000000000..fd1b32812228 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/everest,es71x4.yaml @@ -0,0 +1,62 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/everest,es71x4.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Everest ES7134/7144/7154 2 channels I2S analog to digital converter + +maintainers: + - Neil Armstrong + +properties: + compatible: + enum: + - everest,es7134 + - everest,es7144 + - everest,es7154 + + VDD-supply: true + PVDD-supply: true + + '#sound-dai-cells': + const: 0 + +required: + - compatible + - VDD-supply + +allOf: + - $ref: dai-common.yaml# + - if: + properties: + compatible: + contains: + enum: + - everest,es7134 + - everest,es7144 + then: + properties: + PVDD-supply: false + + - if: + properties: + compatible: + contains: + enum: + - everest,es7154 + then: + required: + - PVDD-supply + +unevaluatedProperties: false + +examples: + - | + codec { + compatible = "everest,es7134"; + #sound-dai-cells = <0>; + VDD-supply = <&vdd_supply>; + }; + +...