From patchwork Fri Mar 31 22:05:58 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 96530 Delivered-To: patches@linaro.org Received: by 10.140.89.233 with SMTP id v96csp923616qgd; Fri, 31 Mar 2017 15:06:05 -0700 (PDT) X-Received: by 10.98.5.6 with SMTP id 6mr4537161pff.47.1490997965707; Fri, 31 Mar 2017 15:06:05 -0700 (PDT) Return-Path: Received: from mail-pg0-x22a.google.com (mail-pg0-x22a.google.com. [2607:f8b0:400e:c05::22a]) by mx.google.com with ESMTPS id i15si6228807pgp.147.2017.03.31.15.06.05 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 31 Mar 2017 15:06:05 -0700 (PDT) Received-SPF: pass (google.com: domain of john.stultz@linaro.org designates 2607:f8b0:400e:c05::22a as permitted sender) client-ip=2607:f8b0:400e:c05::22a; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: domain of john.stultz@linaro.org designates 2607:f8b0:400e:c05::22a as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by mail-pg0-x22a.google.com with SMTP id 21so82748531pgg.1 for ; Fri, 31 Mar 2017 15:06:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=rqvaDqc6ddK8bA5dkM3pwolfU5D7UFXOQlYlF5RN5q8=; b=bX9VK0MCIDLuAAmCaCKC7qU2o8XohMSghXIkD2NMrvofrDDwJX/eUvG8mI783yQRwi HRhSzjHPlojLJbQtNApY2AVW4acpVvbOdoLbmi4JfzL6d7DZMhKpwHzbiMmAMBHU1XBv 6Gt6Cx5/Ng25HsU+HBYpLpa0ZETLd2hc1iAag= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=rqvaDqc6ddK8bA5dkM3pwolfU5D7UFXOQlYlF5RN5q8=; b=spsV/prhFc4BmDebqw3tLS9v4pTROxfvD1rO0+F9+mGqZtFOYtwg5TJvvimRBETcmV zE5kfYMkm6sHIWPJdI0gFRkzaoUmQhY6NEp4qxgvOpHzHx3VPGMKVLexOjSbnygJ8JMW v/Jjxmegga3hRXAx8gsRJM/qNzhbkGiSbk0XpcguZROX7zHzRBBJI4Ij8e7a0KJMIR/9 +CzrYVWqziwTF28VxvdMUOAqCTy7lDQg5nd2MUQ4RWT609HHGlOs3vjOvFudN1KFjZnQ 2nBRKZK4yroARPMnn4bkfZa2eN/ubUjGZGqfTgPArOQksUuk1JS8lvU4oKbHND0Lyr8U uGMA== X-Gm-Message-State: AFeK/H3qomVxYnBB0XSpU9WF21aZGrKxyqwI+Jfe6Cs+odNwK/m+LPfGDJ1aVhvK3oSPsWomEYw= X-Received: by 10.84.238.132 with SMTP id v4mr5664801plk.101.1490997965330; Fri, 31 Mar 2017 15:06:05 -0700 (PDT) Return-Path: Received: from localhost.localdomain ([2601:1c2:1002:83f0:4e72:b9ff:fe99:466a]) by smtp.gmail.com with ESMTPSA id 11sm12317990pgf.28.2017.03.31.15.06.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 31 Mar 2017 15:06:04 -0700 (PDT) From: John Stultz To: lkml Cc: John Stultz , Zhangfei Gao , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Wei Xu , Rob Herring , Andy Green , Dave Long , Guodong Xu Subject: [PATCH 0/3 v4] HiKey i2s bindings, driver and dts changes Date: Fri, 31 Mar 2017 15:05:58 -0700 Message-Id: <1490997961-31937-1-git-send-email-john.stultz@linaro.org> X-Mailer: git-send-email 2.7.4 This patchset provides i2s audio driver and dts changes in order to enable HDMI audio on the HiKey board. Its been a few months since I last sent this out, but I wanted to try to get some thoughts after trying to integrate some of the feedback I've gotten since then. Overally, the current i2s driver is somewhat limited, as the SoC supports three different i2s routes. However, without documentation this driver was originally developed by Andy Green with only an old 3.10 era vendor driver for reference, so the driver only supports one i2s route (S2) which goes to the HDMI bridge on HiKey. >From previous feedback, I have reworked the DTS binding a tiny bit, to allow multi dais to be specified, which will allow other i2s routes/dai links (such as is available on the LS connector) to be used once we manage to figure out how to enable them properly. Further feedback would be greatly appreciated! Though audio is not an area of my expertise, so the more specific the better :) thanks -john Cc: Zhangfei Gao Cc: Liam Girdwood Cc: Mark Brown Cc: Jaroslav Kysela Cc: Takashi Iwai Cc: Wei Xu Cc: Rob Herring Cc: Andy Green Cc: Dave Long Cc: Guodong Xu Andy Green (1): ASoC: hisilicon: Add hi6210 i2s audio driver John Stultz (2): ASoC: add hi6210-i2s DT bindings arm64: dts: hi6220: Add k3-dma and i2s/hdmi audio support .../bindings/sound/hisilicon,hi6210-i2s.txt | 34 ++ arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts | 16 + arch/arm64/boot/dts/hisilicon/hi6220.dtsi | 26 + sound/soc/Kconfig | 1 + sound/soc/Makefile | 1 + sound/soc/hisilicon/Kconfig | 5 + sound/soc/hisilicon/Makefile | 1 + sound/soc/hisilicon/hi6210-i2s.c | 628 +++++++++++++++++++++ sound/soc/hisilicon/hi6210-i2s.h | 276 +++++++++ 9 files changed, 988 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/hisilicon,hi6210-i2s.txt create mode 100644 sound/soc/hisilicon/Kconfig create mode 100644 sound/soc/hisilicon/Makefile create mode 100644 sound/soc/hisilicon/hi6210-i2s.c create mode 100644 sound/soc/hisilicon/hi6210-i2s.h -- 2.7.4