Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp2204802imm; Thu, 21 Jun 2018 08:45:08 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKuWtSAr6X4nueqMkToCHnpkyLkPQ0sSQEwcOVtQqkZwxtdhA5psGmf0L9NSrM6Y7rIOym0 X-Received: by 2002:a65:644e:: with SMTP id s14-v6mr1578281pgv.228.1529595908025; Thu, 21 Jun 2018 08:45:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529595907; cv=none; d=google.com; s=arc-20160816; b=v6er8IGALUvdncfvMNnqipmP+D9CFLjkYC0cpHWuWeD3kS64/rXtl4/xjnT56sNdOR 7def6HcbD238nuHiyl4u96TxEe64vsdQltWs1vnvLuHSkH4GiCOyNlDw1vgakSal09ln Z8BLqd3ZGjJgGWmzq4D+xIzBPhLGUV7qhQxYcKaD+gGyarGEe5Gu9zKIzgdQYv3OrgTb NaspVXciyJ33K0qFJWzwz0qa8MplNn1xR5olDWVhyKqh7B4jKEy30a3CRI4iWdKtDTFR LAg+l+vO2z2qXkqc2JmrgPBKY75nAIdObAR4UZrp70KkW6ChZYHSEafgC5FsOxkTdmex NCQA== 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=CpViU2Hzsk60KAw+XJw1KoX5yLZy7FkeOI7xSKbKon44UxHUgiz91dOazl+P3HzRwi cZ6kKJLGokT9LJ4tuntRUT4L0/eDy8R/Sk0ccJniUDc2ZeLNw98yKWeMq2OPlv7dqmHP iyqk6tEGmi0FzNhzTM3bZC1CBlX8VtCytY5I3x/BsVAi0iKJGJSSBtuqgzYVeNy3xAAP b302bwhZIz0AM3CmE2I1JWciIqdKZrwf7o+4HZTdbzX/KZp4l7/4HtVOt4lSmLNMmqBb ocy9CSg65MT5ppX6VJBJw8OcQovz0vzmqc4KePpJPnHTAGXdIu0xNu6yKv5S8o4bdiXD vumg== 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 z11-v6si4961230pfd.357.2018.06.21.08.44.52; Thu, 21 Jun 2018 08:45:07 -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 S933277AbeFUPoM (ORCPT + 99 others); Thu, 21 Jun 2018 11:44:12 -0400 Received: from smtp02.smtpout.orange.fr ([80.12.242.124]:52335 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933236AbeFUPoL (ORCPT ); Thu, 21 Jun 2018 11:44:11 -0400 Received: from belgarion.home ([90.55.203.186]) by mwinf5d49 with ME id 1Tk01y00E41oiFu03Tk6el; Thu, 21 Jun 2018 17:44:09 +0200 X-ME-Helo: belgarion.home X-ME-Auth: amFyem1pay5yb2JlcnRAb3JhbmdlLmZy X-ME-Date: Thu, 21 Jun 2018 17:44:09 +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 1/2] ALSA: ac97: add bus binding for codecs Date: Thu, 21 Jun 2018 17:43:55 +0200 Message-Id: <20180621154356.5438-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