From patchwork Mon Jul 23 06:10:16 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "(Exiting) Baolin Wang" X-Patchwork-Id: 10539651 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2FCC4112B for ; Mon, 23 Jul 2018 06:11:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 19F21284C8 for ; Mon, 23 Jul 2018 06:11:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0DE5E284CE; Mon, 23 Jul 2018 06:11:37 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 94877284C8 for ; Mon, 23 Jul 2018 06:11:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=jzsGwBVLDGzw2EE81iNkE9rv9xdaWIsdFdhNBBzAEPU=; b=Be0 /qkno8LZixcJ+L8yqUdB5Pr86E9MiSfmQS6nPBW1vw6VBkEkEYZj+yLdp1vKGQ1BpculvBtfWzwzs Egt0z1MMdXrVLbujV85McFZ/8g5Vej8J4LGSRxmjah9SF5OJiCUFMwngYXE2sXAJGY5kjxBSuj9Sz 6W3ULKtQ2hPk2LN7Ydm4+Cn8QoMKrIxxdAtIVR0PF9ZkF/0oKhkLKaf5cgrQl6t5yd79qBttBT7MY oV1L6bZ8lUQMeFqu+cEoZZU7fLGSNAQurG50CqGMOphT7xUU02A+bVMp0VvMU4THeOEy/Sjyuzeld WJZeYV/pY689+lyc6PuzN1vexo9rEyQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fhU4C-0000kp-5K; Mon, 23 Jul 2018 06:11:32 +0000 Received: from mail-pl0-x241.google.com ([2607:f8b0:400e:c01::241]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fhU49-0000i2-AH for linux-arm-kernel@lists.infradead.org; Mon, 23 Jul 2018 06:11:30 +0000 Received: by mail-pl0-x241.google.com with SMTP id s17-v6so7796214plp.7 for ; Sun, 22 Jul 2018 23:11:18 -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=eLh+RCGI7jFU97vFKRaGVHWFxDScjVDx/ObeOqcYMEs=; b=IHIRFn2cNf+IdHPbtqzBxrOkghdQMjgCcMFDyQ2SqAoeLVMNQbqV4/jOmDX8TfNhv3 FnmBi/5YIsFynIqQEXerR/Worv1d6XgDr6AhpWjR00mJZdcHWxCaBYxWcdrThc16I3bH dorOU+Y++hgH1nzIGKDixKsqG1SLC1E0qkC9o= 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=eLh+RCGI7jFU97vFKRaGVHWFxDScjVDx/ObeOqcYMEs=; b=UV8LBaij8uoUbVsz0phKpT/r0MjElXTU2b/p0gobXYnrDUrG/1IXGepsIvp3usG/il In8J76SNPD3kE652H0rtvwHa3t3QvYU+Bm64m7BC4JBfc0RAZgyEHufOC87BL6cuuB1x WIkiWxmrMbG/44jZ6O5IUbQy38AZ6m3cFsAQmJZotlZqdczdKSrUOPoU5KdvwrsbYHop ydbkuzljKDbgzOxBigxrVCE1gZZV7GVJCHuxERX/0bu4Q32J8yjn2IsnQLSfWwUZYdAB /xeLaFBpc5MVq9sPs2vzibcrNtlpubW64u/WeYu0dd+ec55577If+OU2RUq8hGumB17N 9lJA== X-Gm-Message-State: AOUpUlFCowDBPjfJu1aX0SKCXoU7c+Si6trnitnRikGNske5eu00KF/H 8X5X74gCs/wyNUiqI9FETSV2Mw== X-Google-Smtp-Source: AAOMgpcuEHWO/mR8LrSOEK9nKHUqqLmZI634oyefC9pZ4i1rSoie5GrjYEp/kqMwMIQ9cHBoUIoYYg== X-Received: by 2002:a17:902:968c:: with SMTP id n12-v6mr11574828plp.15.1532326277673; Sun, 22 Jul 2018 23:11:17 -0700 (PDT) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.102]) by smtp.gmail.com with ESMTPSA id 8-v6sm11972303pfk.132.2018.07.22.23.11.14 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 22 Jul 2018 23:11:17 -0700 (PDT) From: Baolin Wang To: robh+dt@kernel.org, mark.rutland@arm.com, catalin.marinas@arm.com, will.deacon@arm.com, arnd@arndb.de, orsonzhai@gmail.com, zhang.lyra@gmail.com Subject: [PATCH 1/5] arm64: dts: sprd: Add SC27XX breathing light controller device Date: Mon, 23 Jul 2018 14:10:16 +0800 Message-Id: <2531014d066e61063b3d7906e6df55caa028e17c.1531881619.git.baolin.wang@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180722_231129_361716_A3C5478E X-CRM114-Status: UNSURE ( 8.09 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, arm@kernel.org, baolin.wang@linaro.org, linux-kernel@vger.kernel.org, broonie@kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The SC27xx breathing light controller can support 3 outputs: red LED, green LED and blue LED. Signed-off-by: Baolin Wang --- arch/arm64/boot/dts/sprd/sc2731.dtsi | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/boot/dts/sprd/sc2731.dtsi b/arch/arm64/boot/dts/sprd/sc2731.dtsi index 98d3b4f..7d53ca6 100644 --- a/arch/arm64/boot/dts/sprd/sc2731.dtsi +++ b/arch/arm64/boot/dts/sprd/sc2731.dtsi @@ -17,6 +17,28 @@ #address-cells = <1>; #size-cells = <0>; + led-controller@200 { + compatible = "sprd,sc27xx-bltc", "sprd,sc2731-bltc"; + reg = <0x200>; + #address-cells = <1>; + #size-cells = <0>; + + led@0 { + label = "red"; + reg = <0x0>; + }; + + led@1 { + label = "green"; + reg = <0x1>; + }; + + led@2 { + label = "blue"; + reg = <0x2>; + }; + }; + rtc@280 { compatible = "sprd,sc27xx-rtc", "sprd,sc2731-rtc"; reg = <0x280>;