Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1222569imm; Fri, 22 Jun 2018 12:30:57 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLZ+anDd37fJquHHHICESD7+0Oqa3etV8iljJt7OHUvGRqLRsxm/yk6nLVOZ1LHC5gPCXSg X-Received: by 2002:a17:902:6b84:: with SMTP id p4-v6mr2969611plk.272.1529695857867; Fri, 22 Jun 2018 12:30:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529695857; cv=none; d=google.com; s=arc-20160816; b=YqqCByq2hMfSJqFAxnP14Ck9Py7ZrFiK+UNbln86dtJAy7pyYko2EPWn/e3hNkKAdv uB2febjlYVZ/cM50QNlhXiXiKNGopV6dLBQJe5zYkzFlFxfSCKhdCzylDwHUZU2ZzrTL gQdaFq7KIBgT2UZfas9aqu7Z2j3vpVVJlF3TSGB4cLmUoiemieaWtvEqbP6YpONlfBFl a6VWHokooxHtegmf6Lbr29Ngq5+snE7J7PQm0p/hnpRbBBXJO7tXcUBd+iEevw5wjYMd xdJwsb32KnTqFiE8L2IzlIo6dB32OGTGT+gMQw10ECDD7xnkoNOnxgYa1wSuKlmY4HBQ rLFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=ccWZNqiGgQajUBjTWD5SuequFFnpmk+wMfvE7GORDpo=; b=SnfRqA/l3DjAd3c9yASsjfkKEg09tqI1vblO7YLFsa9iczrjnHDR9JKCDWl+NvbnhH LM0BGeCHNtGPrhYrKq4AOcRw5EiPBfjPhK+DEz9GNqg+RKmjZkFrshxEwd5NRvEj9SHl NqVKVh59kcI1RGYj2xidYJc9mn/GROmz59cCIFh2h58mV57B+YAQvIH7I856KWTFGxB+ cWM4wvy4EPoK9kIckX7I7ICttzR4DynNMy/oBKd4xk1RWS4nP4izJgwqHwLFMGKD90FA PHXFeqF+0gHECcymsN2WM2yJNreABVhb0aE5gWi16g+jP0+E7dZTIPkFBVXTgw8rHqqx NPxQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 61-v6si8492353plr.483.2018.06.22.12.30.43; Fri, 22 Jun 2018 12:30:57 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934491AbeFVT3v (ORCPT + 99 others); Fri, 22 Jun 2018 15:29:51 -0400 Received: from smtp05.smtpout.orange.fr ([80.12.242.127]:49468 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934403AbeFVT3s (ORCPT ); Fri, 22 Jun 2018 15:29:48 -0400 Received: from belgarion.home ([90.55.203.186]) by mwinf5d28 with ME id 1vUj1y00T41oiFu03vVVZU; Fri, 22 Jun 2018 21:29:47 +0200 X-ME-Helo: belgarion.home X-ME-Auth: amFyem1pay5yb2JlcnRAb3JhbmdlLmZy X-ME-Date: Fri, 22 Jun 2018 21:29:47 +0200 X-ME-IP: 90.55.203.186 From: Robert Jarzmik To: Liam Girdwood , Mark Brown , Rob Herring , Mark Rutland , Jaroslav Kysela , Takashi Iwai Cc: alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Robert Jarzmik Subject: [PATCH v2 1/2] ALSA: ac97: add bus binding for codecs Date: Fri, 22 Jun 2018 21:28:33 +0200 Message-Id: <20180622192834.7797-1-robert.jarzmik@free.fr> X-Mailer: git-send-email 2.11.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add the generic ac97 bus binding, especially for ac97 codecs discovered by ac97 hardware probing. Signed-off-by: Robert Jarzmik --- .../devicetree/bindings/sound/ac97-bus.txt | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/ac97-bus.txt diff --git a/Documentation/devicetree/bindings/sound/ac97-bus.txt b/Documentation/devicetree/bindings/sound/ac97-bus.txt new file mode 100644 index 000000000000..103c428f2595 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/ac97-bus.txt @@ -0,0 +1,32 @@ +Generic AC97 Device Properties + +This documents describes the devicetree bindings for an ac97 controller child +node describing ac97 codecs. + +Required properties: +-compatible : Must be "ac97,vendor_id1,vendor_id2 + The ids shall be the 4 characters hexadecimal encoding, such as + given by "%04x" formatting of printf +-reg : Must be the ac97 codec number, between 0 and 3 + +Example: +ac97: sound@40500000 { + compatible = "marvell,pxa270-ac97"; + reg = < 0x40500000 0x1000 >; + interrupts = <14>; + reset-gpios = <&gpio 95 GPIO_ACTIVE_HIGH>; + #sound-dai-cells = <1>; + pinctrl-names = "default"; + pinctrl-0 = < &pinctrl_ac97_default >; + clocks = <&clks CLK_AC97>, <&clks CLK_AC97CONF>; + clock-names = "AC97CLK", "AC97CONFCLK"; + + #address-cells = <1>; + #size-cells = <0>; + audio-codec@0 { + reg = <0>; + compatible = "ac97,574d,4c13"; + clocks = <&fixed_wm9713_clock>; + clock-names = "ac97_clk"; + } +}; -- 2.11.0